@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&display=swap');

/* Tool Visual Enhancements */
.tool-visual-wrapper {
  perspective: 1200px;
}

.tool-card-enhanced {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.tool-card-enhanced::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tool-card-enhanced:hover {
  transform: translateY(-10px) rotateX(1deg) rotateY(1deg);
  border-color: var(--primary);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(59, 130, 246, 0.1);
}

.tool-card-enhanced:hover::before {
  opacity: 1;
}

.tool-icon-wrapper {
  width: 52px;
  height: 52px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.tool-card-enhanced:hover .tool-icon-wrapper {
  transform: scale(1.15) rotate(8deg);
  background: var(--primary);
  color: white;
  box-shadow: 0 0 15px var(--primary-glow);
}

.tool-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.tool-loading-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Pulse animation for active tools */
.tool-active-pulse {
  position: relative;
}

.tool-active-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid var(--primary);
  border-radius: inherit;
  animation: pulse-border 2.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
  pointer-events: none;
}

@keyframes pulse-border {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.08); opacity: 0; }
}

/* CSS Variables - Premium SaaS OLED Precision */
:root {
  /* Premium Cyber-Luxe Palette */
  --primary: #00f2ff; /* Electric Cyan */
  --primary-hover: #00d7e6;
  --primary-glow: rgba(0, 242, 255, 0.3);
  
  --accent: #00ff88; /* Acid Green / Mint */
  --accent-hover: #00e67a;
  --accent-glow: rgba(0, 255, 136, 0.3);
  
  --bg-dark: #0a0b10; /* Midnight Navy Deep */
  --bg-oled: #000000; /* Pure Black */
  --bg-sidebar: rgba(10, 11, 16, 0.9);
  --bg-card: rgba(16, 20, 32, 0.6);
  --bg-glass: rgba(10, 11, 16, 0.7);
  
  --border: rgba(0, 242, 255, 0.1);
  --border-hover: rgba(0, 242, 255, 0.4);
  --border-card: rgba(255, 255, 255, 0.05);
  
  --text-active: #ffffff;
  --text-primary: #f0f2f5;
  --text-muted: #a8b2c1;
  --text-dim: #5d6676;
  
  --success: #00ff88;
  --warning: #ffcc00;
  --danger: #ff3366;
  
  --font-family: 'Geist', 'Outfit', sans-serif;
  --font-mono: 'Geist Mono', 'Fira Code', monospace;
  
  --radius-lg: 0.5rem; /* Sharper geometry */
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  
  --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 242, 255, 0.05);
  --glow-primary: 0 0 25px rgba(0, 242, 255, 0.15);
  --glow-accent: 0 0 25px rgba(0, 255, 136, 0.15);
}

/* Global Purple Ban (Preserved as requested) */
[style*="violet"], [style*="purple"], [style*="indigo"], 
[class*="violet"], [class*="purple"], [class*="indigo"],
.violet-glow, .purple-glow {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

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

/* ==========================================
   CURSOR POINTER AUDIT - UI/UX Pro-Max Standard
   ========================================== */
a, button, .btn, .nav-item, .folder-item, .folder-header,
.bento-card, .feature-card, .price-card, .action-btn,
.connect-btn, .export-btn, .regenerate-btn, .upgrade-link,
.history-toggle, .profile-btn, .dropdown-item, .sidebar-collapse-btn,
.mobile-menu-btn, .toggle-btn, .paypal-btn, [onclick],
[role="button"], .input-group, .input-minimal, .glass-card,
.suggested-question, .history-item, .fix-empty, .activity-item,
.nav-folder, .quick-actions-section button, .settings-section button,
.concept-card, .thumb-card {
  cursor: pointer;
}

/* Ensure focus states are visible for accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible, 
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Premium Reveal Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.view-container > * {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.grid-container > *:nth-child(1) { animation-delay: 0.1s; }
.grid-container > *:nth-child(2) { animation-delay: 0.15s; }
.grid-container > *:nth-child(3) { animation-delay: 0.2s; }
.grid-container > *:nth-child(4) { animation-delay: 0.25s; }
.grid-container > *:nth-child(5) { animation-delay: 0.3s; }

/* Ghost Overlay Kill - ensure hidden overlays don't block mouse */
.modal-backdrop.hidden,
.loading-scrim.hidden,
.processing-overlay.hidden,
.api-overlay.hidden {
  display: none !important;
  pointer-events: none;
  z-index: -1;
}

/* ==========================================
   Floating Layout Architecture
   ========================================== */
.app-layout {
  display: flex;
  height: 100vh;
  padding: 1rem;
  gap: 1.25rem;
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(249, 115, 22, 0.03) 0px, transparent 50%);
  overflow: hidden; 
  position: relative;
}

/* Sidebar - Precision Logic */
.sidebar {
  width: 280px;
  height: 100%; /* Relative to .app-layout container */
  background: var(--bg-glass);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--border); /* Full border since it's floating now */
  border-radius: var(--radius-2xl);
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative; /* Changed from fixed */
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-nav {
  flex: 1;
  min-height: 0; /* Critical for scrolling in flexbox */
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Premium Slim Scrollbar - Visible for accessibility */
.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.2);
  border-radius: 10px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.sidebar-header {
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo i {
  font-size: 30px;
  color: var(--primary);
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.logo-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-active);
}

.logo-text .text-accent {
  color: var(--primary);
}

.sidebar-collapse-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  padding: 7px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.sidebar-collapse-btn:hover {
   background: rgba(59, 130, 246, 0.1);
   color: var(--primary);
   border-color: var(--primary);
   transform: scale(1.08);
 }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  margin: 4px 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  background: none;
  border: 1px solid transparent;
  width: calc(100% - 16px);
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-active);
  transform: translateX(4px);
}

.sidebar-nav a.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: 0 4px 15px -5px rgba(59, 130, 246, 0.2);
}

.sidebar-nav a i {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.sidebar-nav a.active i {
  opacity: 1;
  transform: scale(1.1);
}

/* Sidebar Folders */
.nav-folder {
  margin-bottom: 6px;
}

.folder-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.folder-header:hover {
  background: rgba(15, 23, 42, 0.4);
}

.folder-header i:first-child {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

.folder-icon {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.3s ease;
  color: var(--text-dim);
}

.folder-header.open .folder-icon {
  transform: rotate(90deg);
  color: var(--primary);
}

.folder-content {
  display: none;
  padding: 4px 0 4px 12px;
  margin-left: 12px;
  border-left: 1px solid var(--border);
}

.folder-content.open {
  display: block;
}

.folder-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.folder-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  padding-left: 20px;
}

.folder-item.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.folder-item i {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.folder-item.premium {
  color: var(--text-dim);
  opacity: 0.7;
}

.folder-item.premium:hover {
  opacity: 1;
}

.gold-lock {
  color: #fbbf24;
  font-size: 12px;
  margin-left: auto;
}

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 24px;
}

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.sidebar-version {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.5px;
}

.sidebar.collapsed {
  width: 80px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .folder-header span,
.sidebar.collapsed .folder-icon,
.sidebar.collapsed .folder-item span {
  display: none;
}

/* ==========================================
   Main Content Area - Floating
   ========================================== */
.main-content {
  flex: 1;
  height: 100%;
  margin-left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  z-index: 10;
  pointer-events: all;
  transition: all 0.4s ease;
  width: 95%;
  max-width: 1600px;
}

/* Scanline Effect - Refined */
.main-content::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%), linear-gradient(90deg, rgba(59, 130, 246, 0.01), rgba(249, 115, 22, 0.01));
  z-index: 999;
  background-size: 100% 4px, 4px 100%;
  pointer-events: none;
  opacity: 0.15;
}

/* Glass Utilities */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

.glass-card {
   background: rgba(15, 23, 42, 0.4);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   border: 1px solid var(--border);
   border-radius: var(--radius-xl);
   transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
   cursor: pointer;
 }

 .glass-card:hover {
   background: rgba(15, 23, 42, 0.6);
   border-color: var(--primary);
   transform: translateY(-4px) scale(1.01);
   box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.5),
    0 0 15px var(--primary-glow);
 }

 .glass-card:active {
   transform: translateY(0) scale(0.98);
 }

/* Top Header - Floating Style */
.top-header {
  height: 80px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(20px);
}

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

.page-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-active);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  flex-shrink: 1;
}

/* Credits Display */
.credits-display {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.credits-display:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.credits-display i {
  color: var(--primary);
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.credits-count {
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
}

.credits-label {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.credits-sep {
  color: var(--text-dim);
  opacity: 0.6;
}

.credits-total {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}

/* User Profile */
.user-profile {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.profile-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.profile-avatar i {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.profile-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
}

.profile-btn i.ph-caret-down {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  transition: transform 0.3s ease;
}

.profile-btn:hover i.ph-caret-down {
  transform: translateY(2px);
  color: var(--primary);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  min-width: 220px;
  display: none;
  z-index: 200;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: dropdownFade 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-dropdown.open {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.dropdown-item:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  transform: translateX(4px);
}

.dropdown-item.danger {
  color: var(--danger);
}

.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.dropdown-item i {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

/* ==========================================
   Empty State - Hero Card
   ========================================== */
/* Workspace fills remaining vertical space after header */
.workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 32px;
}

.empty-state-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
  min-height: 0;
  position: relative;
  padding-top: 5vh;
}

/* Decorative blurred preview backgrounds */
.blurred-preview {
  position: absolute;
  border-radius: 16px;
  opacity: 0.08;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.blurred-preview.preview-1 {
  width: 300px;
  height: 200px;
  background: var(--primary);
  top: 10%;
  left: 5%;
}

.blurred-preview.preview-2 {
  width: 250px;
  height: 180px;
  background: var(--accent);
  top: 20%;
  right: 10%;
}

.blurred-preview.preview-3 {
  width: 280px;
  height: 160px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  bottom: 15%;
  left: 15%;
}

.hero-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 64px 48px;
  text-align: center;
  max-width: 580px;
  box-shadow: var(--glass-shadow);
}

.connect-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px 40px;
  max-width: 560px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.connect-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: white;
  animation: pulse-glow 3s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px var(--primary-glow);
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px var(--primary-glow); }
  50% { transform: scale(1.05); box-shadow: 0 0 40px var(--primary-glow); }
}

.connect-card h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-active);
  line-height: 1.1;
}

.connect-card p {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 420px;
  font-size: 16px;
  font-weight: 500;
}

/* Primary Gradient Button */
.connect-btn {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 12px;
   background: linear-gradient(to right, var(--primary), #2563eb);
   color: white;
   border: none;
   padding: 18px 40px;
   border-radius: 14px;
   font-family: var(--font-family);
   font-size: 17px;
   font-weight: 700;
   cursor: pointer;
   transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
   margin-top: 16px;
   box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
   position: relative;
   overflow: hidden;
 }

 .connect-btn:hover {
   transform: translateY(-4px) scale(1.02);
   box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.6);
   filter: brightness(1.1);
 }

 .connect-btn:active {
   transform: translateY(0) scale(0.98);
 }

 .connect-btn::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(
     90deg,
     transparent,
     rgba(255, 255, 255, 0.25),
     transparent
   );
   transition: 0.6s;
 }

 .connect-btn:hover::before {
   left: 100%;
 }

.connect-btn i {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.connect-btn:hover i {
  transform: translateX(4px);
}

.connect-features {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
}

.feature-item i {
  color: var(--success);
  width: 20px;
  height: 20px;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px;
  border-radius: 50%;
}

/* ==========================================
   Bento Grid - Analytics Dashboard
   ========================================== */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 242, 255, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 
    0 30px 60px -12px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(0, 242, 255, 0.05);
  background: rgba(16, 20, 32, 0.8);
}

.bento-card-large {
  grid-row: span 2;
}

.bento-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.bento-header i {
  font-size: 20px;
  color: var(--primary);
  width: 24px;
  height: 24px;
  opacity: 0.9;
}

.bento-header span {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bento-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-active);
  margin-bottom: 10px;
  font-family: var(--font-family);
  letter-spacing: -1px;
}

.bento-desc {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Algorithmic Health Circle */
.algorithmic-circle {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 24px auto;
}

.algo-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.algo-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 10;
}

.algo-ring-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 2s cubic-bezier(0.23, 1, 0.32, 1);
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.algo-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.algo-value span:first-child {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-active);
  line-height: 1;
}

.algo-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Credits Card */
.credit-value {
  font-size: 44px !important;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900 !important;
}

.credits-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  color: #10b981;
  margin: 12px 0;
}

/* Audit Card */
.audit-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 6px;
  text-transform: uppercase;
}

/* Activity Card */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.activity-item:hover {
  background: rgba(15, 23, 42, 0.6);
  border-color: var(--primary);
  transform: translateX(4px);
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon.keyword { background: rgba(249, 115, 22, 0.1); color: var(--accent); }
.activity-icon.audit { background: rgba(16, 185, 129, 0.1); color: var(--success); }

.activity-details {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-active);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-time {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}

.activity-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--text-dim);
  text-align: center;
}

.activity-empty i {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.3;
}

/* ==========================================
   SEO Score Section
   ========================================== */
.seo-score-section {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
  padding: 32px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.seo-score-circle {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 10;
}

.progress-ring-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 2s cubic-bezier(0.23, 1, 0.32, 1);
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.seo-score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-active);
  display: block;
  line-height: 1;
}

.score-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.seo-score-info h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.seo-score-info p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.score-breakdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.breakdown-label {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
}

.breakdown-value {
  color: var(--text-active);
  font-weight: 700;
  font-size: 13px;
}

/* ==========================================
   Critical Fixes Section
   ========================================== */
.critical-fixes-section {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 32px;
  margin-top: 32px;
}

/* Neural Strategy Center Grid */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.strategy-tip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.strategy-tip .tip-number {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(249, 115, 22, 0.1);
  border-radius: 8px;
  padding: 4px 10px;
  flex-shrink: 0;
}

.strategy-tip p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}

.strategy-tip i {
  flex-shrink: 0;
  color: var(--text-muted);
  margin-top: 2px;
}

.strategy-tip:hover {
  border-color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.strategy-tip.skeleton {
  height: 100px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border: 1px solid var(--border);
  border-radius: 16px;
}

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

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

.section-header h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.fixes-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 12px;
  border-radius: 99px;
}

.fixes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fix-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.fix-empty i {
  font-size: 24px;
  color: var(--success);
}

/* ==========================================
   Quick Actions
   ========================================== */
.quick-actions-section {
  margin-top: 32px;
}

.quick-actions-section h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.action-btn {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 12px;
   padding: 16px 24px;
   background: rgba(15, 23, 42, 0.5);
   border: 1px solid var(--border);
   border-radius: 14px;
   color: var(--text-active);
   font-size: 15px;
   font-weight: 700;
   cursor: pointer;
   transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
   position: relative;
   overflow: hidden;
 }

 .action-btn:hover {
   background: rgba(59, 130, 246, 0.1);
   border-color: var(--primary);
   transform: translateY(-4px);
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
 }

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

 .action-btn::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(
     90deg,
     transparent,
     rgba(255, 255, 255, 0.1),
     transparent
   );
   transition: 0.6s;
 }

 .action-btn:hover::before {
   left: 100%;
 }

.action-btn i {
  width: 20px;
  height: 20px;
  opacity: 0.9;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.action-btn:hover i {
  transform: scale(1.2);
}

/* ==========================================
   Dashboard Stats Grid
   ========================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(15, 23, 42, 0.7);
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.purple { background: rgba(59, 130, 246, 0.1); color: var(--primary); }
.stat-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.stat-icon.orange { background: rgba(249, 115, 22, 0.1); color: var(--accent); }

.stat-icon i {
  width: 24px;
  height: 24px;
}

.stat-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-active);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================
   View Containers
   ========================================== */
.view-container.active {
  display: block;
  animation: viewFade 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.tool-header {
  margin-bottom: 32px;
}

.tool-header h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
  color: var(--text-active);
}

.tool-header p {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

.tool-input-section {
  margin-bottom: 32px;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px;
  transition: all 0.3s ease;
}

.input-group:focus-within {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 15px var(--primary-glow);
}

.input-group.large {
  padding: 10px;
}

.input-group i {
  width: 24px;
  height: 24px;
  color: var(--text-dim);
  margin-left: 20px;
  opacity: 0.8;
}

.input-group input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-active);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 0;
}

.input-group input::placeholder {
  color: var(--text-dim);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(to right, var(--primary), #2563eb);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
  filter: brightness(1.1);
}

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

.btn-primary i {
  width: 20px;
  height: 20px;
}

/* ==========================================
   Settings Page
   ========================================== */
.settings-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.settings-section {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 32px;
}

.settings-section h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.setting-item {
  margin-bottom: 24px;
}

.setting-item label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-active);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-minimal {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  transition: all 0.3s ease;
}

.input-minimal:focus-within {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.8);
}

.input-minimal i {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  opacity: 0.8;
}

.input-minimal input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-active);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 0;
}

.setting-hint {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.5;
}

.plan-display {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(15, 23, 42, 0.4);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.plan-badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.upgrade-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.upgrade-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ==========================================
   History Panel
   ========================================== */
.history-toggle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 14px 0 0 14px;
  padding: 20px 14px;
  cursor: pointer;
  z-index: 150;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.history-toggle:hover {
  padding-right: 20px;
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
}

.history-toggle i {
  font-size: 22px;
  color: var(--text-muted);
}

.history-panel {
  position: fixed;
  right: -320px;
  top: 1rem;
  bottom: 1rem;
  width: 320px;
  background: var(--bg-sidebar);
  backdrop-filter: blur(32px);
  border: 1px solid var(--border);
  border-radius: 20px 0 0 20px;
  z-index: 200;
  transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
}

.history-panel.open {
  right: 0;
}

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

.history-header h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.history-clear {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.history-clear button {
  width: 100%;
  padding: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.history-clear button:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

/* ==========================================
   Glow Effect - Refined
   ========================================== */
.violet-glow {
  position: fixed;
  top: -10%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1200px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .action-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    z-index: 100;
    border-radius: 0 20px 20px 0;
  }
  
  .sidebar.open {
    left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .main-content {
    border-radius: 0;
    padding: 16px;
  }
  
  .app-layout {
    padding: 0;
    gap: 0;
  }

  .top-header {
    padding: 0 20px;
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .header-right {
    gap: 8px;
    flex-shrink: 0;
  }
  .credits-display {
    padding: 6px 12px;
    gap: 6px;
  }
  .page-title {
    font-size: 16px;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .bento-card-large {
    grid-row: span 1;
  }
  
  .action-buttons-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .seo-score-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }
  
  .score-breakdown {
    grid-template-columns: 1fr;
  }

  .hero-glass {
    padding: 40px 24px;
  }
}

/* ==========================================
   Connect CTA Hero Banner
   ========================================== */
.connect-cta {
  position: relative;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--primary-glow);
}

.cta-glow {
  position: absolute;
  top: -100%;
  left: -20%;
  width: 60%;
  height: 300%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 60%);
  filter: blur(50px);
  pointer-events: none;
}

.cta-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  z-index: 1;
}

.cta-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cta-icon i {
  font-size: 36px;
  color: white;
}

.cta-text {
  flex: 1;
}

.cta-text h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.cta-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 500;
}

.connect-btn.primary-gradient {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
  white-space: nowrap;
}

.connect-btn.primary-gradient:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.5);
  filter: brightness(1.1);
}

/* ==========================================
   Research Engine Styles
   ========================================== */
.research-input-section {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
}

.seed-keyword-input {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 20px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.seed-keyword-input:focus-within {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 15px var(--primary-glow);
}

.seed-keyword-input i {
  width: 24px;
  height: 24px;
  color: var(--primary);
  opacity: 0.9;
}

.seed-keyword-input input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-active);
  font-size: 18px;
  font-weight: 600;
  padding: 20px 0;
}

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

.toggle-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toggle-label {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toggle-switch {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 5px;
  gap: 5px;
  border: 1px solid var(--border);
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.toggle-btn i {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.toggle-btn:hover {
  color: var(--text-active);
  background: rgba(255, 255, 255, 0.03);
}

.toggle-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.toggle-btn.active i {
  opacity: 1;
}

.run-research-btn {
  background: linear-gradient(135deg, var(--primary), #2563eb);
}

/* API Overlay */
.api-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.api-overlay-content {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(32px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  max-width: 440px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}

.api-overlay-content i {
  font-size: 56px;
  color: var(--primary);
  margin-bottom: 24px;
  filter: drop-shadow(0 0 15px var(--primary-glow));
}

.api-overlay-content h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.api-overlay-content p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Processing Overlay */
.processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.processing-content {
  text-align: center;
  max-width: 440px;
  width: 100%;
  padding: 0 20px;
}

.processing-bar-container {
  width: 100%;
  height: 12px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.processing-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #2563eb);
  border-radius: 99px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 0 15px var(--primary-glow);
}

.processing-status {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-active);
  letter-spacing: -0.5px;
}

.processing-label {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Results Section */
.results-section {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 32px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.4);
}

.results-header h3 {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
}

.results-header h3 i {
  color: var(--primary);
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.keyword-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}

.export-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.export-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.results-table-container {
  overflow-x: auto;
}

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

.results-table th {
  text-align: left;
  padding: 20px 24px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dim);
  background: rgba(2, 6, 23, 0.3);
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.results-table th:hover {
  color: var(--text-active);
  background: rgba(2, 6, 23, 0.5);
}

.results-table th i {
  margin-left: 8px;
  opacity: 0.6;
}

.results-table td {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.results-table tr:hover td {
  background: rgba(59, 130, 246, 0.03);
}

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

.results-table tr:hover {
  background: rgba(255,255,255,0.02);
}

/* Session Expired Modal */
.session-expired-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1000; }
.session-expired-modal .modal-overlay { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.9); backdrop-filter: blur(4px); }
.session-expired-modal .modal-content { position: relative; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 16px; padding: 40px; text-align: center; max-width: 400px; box-shadow: 0 0 40px rgba(249, 115, 22, 0.2); animation: modalIn 0.3s ease; }
.session-expired-modal .modal-icon { font-size: 48px; color: var(--warning); margin-bottom: 16px; }
.session-expired-modal h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.session-expired-modal p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* ==========================================
   Niche-Relevance Guard
   ========================================== */
.relevance-results { margin-top: 24px; }
.relevance-score { text-align: center; margin-bottom: 24px; }
.relevance-score .score-circle {
  width: 120px; height: 120px; border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--score) * 3.6deg), var(--border) 0);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; position: relative;
}
.relevance-score .score-circle::before {
  content: ''; position: absolute; inset: 8px; border-radius: 50%;
  background: var(--bg-card);
}
.relevance-score .score-circle span {
  position: relative; z-index: 1; font-size: 28px; font-weight: 700;
}
.tag-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.tag-comparison h4 { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.tag-comparison .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.relevance-tips { background: rgba(249, 115, 22, 0.1); border-radius: 12px; padding: 20px; }
.relevance-tips h4 { margin-bottom: 12px; }
.relevance-tips ul { padding-left: 20px; color: var(--text-muted); }
.relevance-tips li { margin-bottom: 8px; }

/* ==========================================
   Thumbnail Lab
   ========================================== */
/* ==========================================
   Thumbnail Lab & Heuristics
   ========================================== */
.thumbnail-upload-zone {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-card);
  padding: 24px;
  border-radius: 16px;
  border: 1px dashed var(--border-card);
}

.upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(249, 115, 22, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.upload-prompt:hover {
  background: rgba(249, 115, 22, 0.05);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.upload-prompt i { font-size: 48px; color: var(--primary); opacity: 0.8; }
.upload-prompt p { font-size: 16px; margin: 0; }
.upload-subtext { font-size: 12px; color: var(--text-muted); }

/* Lens Focus & Scanning Polish */
.lens-focus-blur {
  filter: blur(20px);
  transition: filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lens-cleared {
  filter: blur(0) !important;
}

.result-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  background: #000;
}

.result-image-wrapper img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* Moving Horizontal Laser Line */
.laser-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(249, 115, 22, 0.8);
  box-shadow: 0 0 15px #f97316, 0 0 5px #fff;
  z-index: 10;
  display: none;
  pointer-events: none;
}

.scanning-active .laser-line {
  display: block;
  animation: laserSweep 1.5s infinite ease-in-out;
}

@keyframes laserSweep {
  0% { top: 0; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Skeleton Loading Pulse */
.skeleton-pulse {
  background: linear-gradient(90deg, var(--bg-input) 25%, rgba(249, 115, 22, 0.05) 50%, var(--bg-input) 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 4px;
  color: transparent !important;
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Deep Scan Processing (Artificial Labor) */
.processing-overlay {
  position: relative;
  margin-top: 24px;
  padding: 40px;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
}

.thumbnail-results { margin-top: 32px; }
.thumbnail-preview-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.error-state-card {
  text-align: center;
  padding: 40px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px dashed rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  color: var(--text-primary);
}

.error-state-card i { font-size: 48px; color: #ef4444; margin-bottom: 16px; }

@media (max-width: 992px) {
  .thumbnail-preview-container { grid-template-columns: 1fr; }
}

.result-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.result-image-wrapper img { width: 100%; display: block; border-radius: 12px; transition: filter 0.5s ease; }

/* Heatmap Simulated Filter (Vision AI mode) */
.heatmap-active img {
  filter: contrast(3.5) brightness(1.2) saturate(4) hue-rotate(180deg) blur(1px);
}

.timestamp-danger-zone {
  position: absolute;
  bottom: 0; right: 0; width: 33%; height: 25%;
  background: repeating-linear-gradient(45deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.1) 10px, rgba(239, 68, 68, 0.2) 10px, rgba(239, 68, 68, 0.2) 20px);
  border-top: 2px solid rgba(239, 68, 68, 0.5);
  border-left: 2px solid rgba(239, 68, 68, 0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.5s;
}

.heatmap-active .timestamp-danger-zone { opacity: 1; }

.thumbnail-scores-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.score-row { display: flex; align-items: center; gap: 16px; }
.score-label { flex: 0 0 140px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.score-track { flex: 1; height: 10px; background: var(--bg-dark); border-radius: 5px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.score-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #f97316); border-radius: 5px; transition: width 1s cubic-bezier(0.17, 0.67, 0.83, 0.67); }
.score-value { flex: 0 0 40px; text-align: right; font-weight: 600; color: var(--primary); }

.recom-card {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.1);
  padding: 24px;
  border-radius: 16px;
  margin-top: 24px;
}

.recom-card.warning {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.2);
}

.recom-title { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 16px; font-size: 15px; }
.recom-title i { color: #f59e0b; }
.recom-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.recom-item { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--text-primary); }
.recom-item i { color: #10b981; margin-top: 3px; }
.recom-item.alert i { color: #ef4444; }

.deep-scan-teaser {
  text-align: center;
  padding: 32px;
  background: linear-gradient(rgba(249, 115, 22, 0.05), rgba(249, 115, 22, 0.02));
  border-radius: 16px;
  border: 1px solid rgba(249, 115, 22, 0.1);
}

.btn-pro {
  background: linear-gradient(135deg, #f97316, #f97316);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Script-to-Shorts */
.hooks-results { margin-top: 24px; }
.hook-rank { width: 32px; height: 32px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }
.hook-content { flex: 1; }
.hook-text { font-size: 14px; margin-bottom: 6px; }
.hook-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); }
.hook-score { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.hook-score.high { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.hook-score.medium { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.hook-score.low { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* ==========================================
   Metadata Auditor
   ========================================== */
.audit-results { margin-top: 24px; }
.audit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 900px) { .audit-grid { grid-template-columns: 1fr; } }

.audit-grade-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(16, 20, 32, 0.4);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.audit-grade-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 50%, rgba(0, 242, 255, 0.1), transparent 60%);
  pointer-events: none;
}
.grade-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  text-shadow: 0 0 10px currentColor;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.3);
}
.grade-info {
  display: flex;
  flex-direction: column;
}
.grade-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.grade-avg {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-active);
}

.audit-summary-card {
  background: rgba(16, 20, 32, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  gap: 20px;
}
@media (max-width: 600px) { .audit-summary-card { flex-direction: column; } }

.audit-thumb {
  width: 180px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.audit-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.audit-info h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-active);
  margin-bottom: 8px;
}
.audit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.meta-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.audit-intel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.intel-mini-card {
  background: rgba(16, 20, 32, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.intel-mini-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.08);
}
.intel-mini-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.intel-mini-value {
  font-size: 18px;
  font-weight: 700;
}

.compat-meter {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.compat-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.audit-scores-card, .audit-advice-card, .preview-pane, .growth-hack-checklist {
  background: rgba(16, 20, 32, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
}

.audit-scores {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.audit-score-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.factor-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 160px;
}
.score-bar {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.score-bar div {
  height: 100%;
  border-radius: 3px;
}

.audit-quick-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quick-tip {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  line-height: 1.5;
}
.quick-tip.alert {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}
.quick-tip.success {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.audit-strategy-card, .audit-fixes-section {
  background: rgba(16, 20, 32, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 20px;
}

.audit-strategy-card .priority-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px;
  color: var(--text-primary);
}

.audit-strategy-card .priority-item strong {
  color: var(--text-active);
}

.audit-strategy-card .priority-item .priority-impact {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 8px;
}

.audit-strategy-card h5,
.audit-fixes-section h4 {
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fix-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
}

.fix-header {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.fix-content {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.fix-reason {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.fix-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.tag-chip {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-active);
}

@media (max-width: 900px) {
  .audit-strategy-card,
  .audit-fixes-section,
  .fix-card {
    padding: 16px;
  }
}

/* Simulated Snippet Preview */
.preview-pane {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.preview-switcher {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}
.preview-tab {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}
.preview-tab.active {
  background: rgba(0, 242, 255, 0.1);
  border-color: rgba(0, 242, 255, 0.25);
  color: var(--primary);
}
.preview-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-active);
}

.preview-mockup {
  background: #0f1015;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Simulated Mobile Card */
.yt-search-item-mobile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  margin: 0 auto;
}
.yt-mobile-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
}
.yt-mobile-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-mobile-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
}
.yt-mobile-details {
  display: flex;
  gap: 12px;
}
.yt-mobile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.yt-mobile-info {
  display: flex;
  flex-direction: column;
}
.yt-mobile-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #f1f1f1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.yt-mobile-meta {
  font-size: 12px;
  color: #aaaaaa;
}

/* Simulated Desktop Row */
.yt-search-item-desktop {
  display: flex;
  gap: 16px;
}
@media (max-width: 600px) { .yt-search-item-desktop { flex-direction: column; } }

.yt-desktop-thumb-wrap {
  position: relative;
  width: 246px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
@media (max-width: 600px) { .yt-desktop-thumb-wrap { width: 100%; } }

.yt-desktop-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-desktop-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
}
.yt-desktop-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.yt-desktop-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: #f1f1f1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  text-decoration: none;
}
.yt-desktop-title:hover {
  color: #3ea6ff;
}
.yt-desktop-meta {
  font-size: 12px;
  color: #aaaaaa;
  margin-bottom: 8px;
}
.yt-desktop-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.yt-desktop-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
}
.yt-desktop-channel-name {
  font-size: 12px;
  color: #aaaaaa;
  font-weight: 500;
}
.yt-desktop-badge {
  color: #aaaaaa;
  display: inline-flex;
  align-items: center;
}
.yt-desktop-desc {
  font-size: 12px;
  color: #aaaaaa;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Strategic Growth Hacks Checklist */
.growth-hack-checklist {
  grid-column: 1 / -1;
}
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 768px) { .checklist-grid { grid-template-columns: 1fr; } }

.checklist-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.01);
  transition: all 0.3s ease;
}
.checklist-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
.checklist-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}
.checklist-icon.pass {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
}
.checklist-icon.fail {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}
.checklist-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.checklist-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-active);
}
.checklist-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.audit-recommendations { background: rgba(249, 115, 22, 0.1); border-radius: 12px; padding: 20px; }
.audit-recommendations h4 { margin-bottom: 12px; }
.audit-recommendations ul { padding-left: 20px; color: var(--text-muted); }

/* ==========================================
   Magic Fix Options
   ========================================== */
.magic-fix-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.fix-type-card {
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; text-align: center; cursor: pointer; transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}
.fix-type-card:hover { border-color: var(--primary); background: rgba(249, 115, 22, 0.1); transform: translateY(-4px); }
.fix-type-card i { font-size: 32px; color: var(--primary); margin-bottom: 12px; }
.fix-type-card h3 { font-size: 16px; margin-bottom: 8px; }
.fix-type-card p { font-size: 13px; color: var(--text-muted); }

/* ==========================================
   Bulk Injector
   ========================================== */
.bulk-tags-input { margin-top: 24px; }
.bulk-tags-input textarea { width: 100%; min-height: 120px; margin-bottom: 16px; }

/* ==========================================
   Evergreen Audit
   ========================================== */
.evergreen-results { margin-top: 24px; }
.evergreen-list { display: grid; gap: 12px; }
.evergreen-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--bg-input); border-radius: 12px; }
.evergreen-info h4 { font-size: 14px; margin-bottom: 4px; }
.evergreen-info p { font-size: 12px; color: var(--text-muted); }
.btn-primary.small { padding: 8px 16px; font-size: 13px; }

/* ==========================================
   Playlist Growth
   ========================================== */
.playlist-select { display: flex; gap: 12px; margin-top: 24px; }
.playlist-select select { flex: 1; padding: 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); }

/* ==========================================
   Retention Re-Orderer
   ========================================== */
.retention-results { margin-top: 24px; }
.retention-order h4 { margin-bottom: 16px; }
.retention-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--bg-input); border-radius: 12px; margin-bottom: 12px; }
.retention-pos { width: 32px; height: 32px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.retention-title { flex: 1; }
.retention-score { padding: 4px 12px; border-radius: 6px; font-weight: 600; font-size: 13px; }
.retention-score.high { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.retention-score.medium { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

/* ==========================================
   System Status
   ========================================== */
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.status-card { background: var(--bg-input); border: 1px solid var(--border); border-radius: 16px; padding: 24px; text-align: center; }
.status-card i { font-size: 32px; color: var(--primary); display: block; margin-bottom: 12px; }
.status-card span:first-of-type { display: block; font-size: 14px; margin-bottom: 8px; }
.status-ok { color: #10b981; font-weight: 600; }
.status-error { color: #ef4444; font-weight: 600; }

/* Loading Spinner */
.loading-spinner { text-align: center; padding: 40px; color: var(--text-muted); }
.loading-spinner i { font-size: 32px; animation: spin 1s linear infinite; display: block; margin-bottom: 12px; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.results-table .intent-high {
  color: var(--success);
  font-weight: 600;
}

.results-table .intent-medium {
  color: var(--warning);
  font-weight: 600;
}

.results-table .intent-low {
  color: var(--text-muted);
}

.results-table .competition-high { color: var(--danger); }
.results-table .competition-medium { color: var(--warning); }
.results-table .competition-low { color: var(--success); }
.results-table .competition-easy { 
  color: var(--success); 
  font-weight: 600;
}

.results-table .action-btn {
  padding: 6px 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.results-table .action-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.results-table .factory-btn:hover {
  background: var(--success);
  border-color: var(--success);
}

.results-table .snipe-btn:hover {
  background: var(--warning);
  border-color: var(--warning);
}

.results-table td:last-child {
  display: flex;
  gap: 6px;
}

/* ==========================================
   Video Factory Wizard Styles
   ========================================== */
.wizard-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-dot span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.step-dot.active span {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.step-dot.completed span {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step-label {
  font-size: 12px;
  color: var(--text-muted);
}

.step-dot.active .step-label {
  color: var(--primary);
}

.step-line {
  width: 80px;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  margin-bottom: 24px;
}

.wizard-content {
  min-height: 400px;
}

.step-content {
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.step-header {
  margin-bottom: 24px;
}

.step-header h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-header h3 i {
  color: var(--primary);
}

.step-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.concept-input textarea {
  width: 100%;
  height: 150px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-family);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.concept-input textarea:focus {
  border-color: var(--primary);
}

.concept-input textarea::placeholder {
  color: var(--text-muted);
}

.concept-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.concept-hint i {
  color: var(--primary);
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: var(--bg-dark);
  border-color: var(--text-muted);
}

/* Wizard Processing */
.wizard-processing {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #ea580c);
  background-size: 200% 100%;
  border-radius: 4px;
  width: 0%;
  animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.progress-status {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.progress-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* Script Preview */
.script-preview {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

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

.preview-header h4 {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-header h4 i {
  color: var(--primary);
}

.regenerate-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.regenerate-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.script-content {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: monospace;
}

/* Style Options */
.style-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.style-group {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.style-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.style-select select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.style-select select:focus {
  border-color: var(--primary);
}

/* Export Preview */
.export-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.preview-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.preview-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
}

.preview-details h4 {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.preview-details p {
  font-size: 14px;
  font-weight: 600;
}

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

/* ==========================================
   Competitor Sniper Styles
   ========================================== */
.competitor-input-section {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.competitor-url-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
}

.competitor-url-input i {
  width: 20px;
  height: 20px;
  color: var(--primary);
  opacity: 0.7;
}

.competitor-url-input input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  padding: 14px 0;
}

.competitor-processing {
  display: flex;
  justify-content: center;
  padding: 40px;
}

.competitor-results {
  margin-top: 24px;
}

.results-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

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

.result-header h3 {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-header h3 i {
  color: var(--primary);
}

.copy-all-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.copy-all-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.infiltration-bundle {
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(249, 115, 22, 0.05);
}

.badge-optimized {
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag-chip {
  padding: 6px 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.tag-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tag-chip.generated {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.3);
  color: var(--primary);
}

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

.bundle-actions .btn-secondary,
.bundle-actions .btn-primary {
  flex: 1;
  justify-content: center;
}

/* ==========================================
   Credits Animation
   ========================================== */
@keyframes creditsFlash {
  0% { transform: scale(1); }
  25% { transform: scale(0.9); background: rgba(239, 68, 68, 0.3); }
  50% { transform: scale(1.1); }
  75% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.credits-flash {
  animation: creditsFlash 0.5s ease;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: toastIn 0.3s ease;
}

.toast.credit-deduction {
  border-color: rgba(239, 68, 68, 0.5);
}

.toast.credit-deduction .toast-icon {
  color: var(--danger);
}

.toast.credit-addition {
  border-color: rgba(16, 185, 129, 0.5);
}

.toast.credit-addition .toast-icon {
  color: var(--success);
}

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

.toast-icon {
  font-size: 20px;
}

.toast-message {
  font-size: 14px;
}

.toast-message strong {
  font-weight: 600;
}

/* ==========================================
   Golden Tag Badge
   ========================================== */
.golden-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  color: #000;
  margin-left: 8px;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.golden-tag i {
  font-size: 10px;
}

/* ==========================================
   Factory Workspace - 2 Column Layout
   ========================================== */
.factory-workspace {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  min-height: 500px;
}

.factory-inputs {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group-factory {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group-factory label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.input-group-factory label i {
  color: var(--primary);
  width: 16px;
  height: 16px;
}

.input-group-factory select,
.input-group-factory textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-family);
  outline: none;
  transition: border-color 0.2s;
}

.input-group-factory select:focus,
.input-group-factory textarea:focus {
  border-color: var(--primary);
}

.input-group-factory textarea {
  height: 120px;
  resize: vertical;
}

.input-group-factory textarea::placeholder {
  color: var(--text-muted);
}

.generate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  margin-top: auto;
  background: linear-gradient(135deg, var(--primary), #ea580c);
}

.credit-cost {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 400;
}

/* Small outline button (status bar actions) */
.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  background: transparent;
  color: #cbd5e1;
  line-height: 1;
}
.btn-outline {
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.05);
  color: #cbd5e1;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.btn-outline i {
  width: 12px;
  height: 12px;
}

/* Status bar flex row */
.proposal-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.75rem;
}

.factory-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.factory-preview .preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.factory-preview .preview-header h3 {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.factory-preview .preview-header h3 i {
  color: var(--primary);
}

.factory-preview .regenerate-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.factory-preview .regenerate-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Script Output Container with Glow */
.script-output-container {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.1);
  min-height: 300px;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes auraPulse {
  0% { box-shadow: 0 0 15px rgba(249, 115, 22, 0.1); }
  50% { box-shadow: 0 0 40px rgba(249, 115, 22, 0.4); }
  100% { box-shadow: 0 0 15px rgba(249, 115, 22, 0.1); }
}

.aura-active {
  animation: auraPulse 2s infinite ease-in-out;
  border-color: rgba(249, 115, 22, 0.6) !important;
}

.script-output {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  white-space: pre-wrap;
  font-family: monospace;
  margin: 0;
}

.factory-seo-quality-panel {
  margin-top: 18px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.seo-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.seo-panel-label {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.seo-panel-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.seo-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 36px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #064e3b;
  font-size: 14px;
  font-weight: 800;
}

.seo-panel-content {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.7;
  display: grid;
  gap: 8px;
}

.seo-panel-content ul {
  list-style: inside disc;
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.seo-panel-content li {
  margin-bottom: 6px;
}

.seo-report-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.seo-panel-notes {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 12px;
}

.seo-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Typewriter Cursor Effect */
.typewriter-active {
  border-right: 2px solid var(--primary);
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 50% { border-color: var(--primary); }
  51%, 100% { border-color: transparent; }
}

.export-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  margin-top: 16px;
  background: linear-gradient(135deg, var(--primary), #ea580c);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.export-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

/* ==========================================
   Metadata Modal
   ========================================== */
/* Pulse Dot Animation */
.status-dot {
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.pulsing-dot {
  width: 10px;
  height: 10px;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); opacity: 1; filter: drop-shadow(0 0 0 rgba(16, 185, 129, 0.7)); }
  70% { transform: scale(1.2); opacity: 0.8; filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0)); }
  100% { transform: scale(0.95); opacity: 1; filter: drop-shadow(0 0 0 rgba(16, 185, 129, 0)); }
}

/* System Badge Overhaul */
.system-complete-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
}

.metadata-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.2);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header i {
  font-size: 24px;
  color: var(--primary);
}

.modal-header h3 {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
}

.modal-header .close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 20px;
  padding: 4px;
  transition: color 0.2s;
}

.modal-header .close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.metadata-section label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.metadata-value {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.metadata-value span {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
}

.metadata-value .description-text {
  font-size: 13px;
  line-height: 1.5;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.copy-btn.full-width {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

.tags-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tags-preview .tag-chip {
  padding: 6px 12px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 20px;
  font-size: 12px;
  color: var(--primary);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.modal-footer .btn-primary {
  padding: 10px 24px;
}

/* ==========================================
   Results Table with Glow
   ========================================== */
.results-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.1);
}

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

.results-table th {
  text-align: left;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  white-space: nowrap;
}

.results-table th:hover {
  color: var(--text-primary);
}

.results-table th i {
  margin-left: 6px;
  opacity: 0.5;
}

.results-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.results-table tr:hover {
  background: rgba(255,255,255,0.02);
}

.hook-rank { width: 32px; height: 32px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }
.hook-content { flex: 1; }
.hook-text { font-size: 14px; margin-bottom: 6px; }
.hook-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); }
.hook-score { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.hook-score.high { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.hook-score.medium { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.hook-score.low { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* ==========================================
   Metadata Auditor
   ========================================== */
.audit-results { margin-top: 24px; }
.audit-summary { display: flex; gap: 16px; margin-bottom: 24px; }
.audit-thumb { width: 160px; height: 90px; object-fit: cover; border-radius: 8px; }
.audit-info h4 { font-size: 16px; margin-bottom: 4px; }
.audit-info p { font-size: 13px; color: var(--text-muted); }
.audit-scores { display: grid; gap: 16px; margin-bottom: 24px; }
.audit-score-item { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.audit-score-item span:first-child { flex: 0 0 180px; color: var(--text-muted); }
.audit-recommendations { background: rgba(249, 115, 22, 0.1); border-radius: 12px; padding: 20px; }
.audit-recommendations h4 { margin-bottom: 12px; }
.audit-recommendations ul { padding-left: 20px; color: var(--text-muted); }

/* ==========================================
   Magic Fix Options
   ========================================== */
.magic-fix-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.fix-type-card {
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; text-align: center; cursor: pointer; transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}
.fix-type-card:hover { border-color: var(--primary); background: rgba(249, 115, 22, 0.1); transform: translateY(-4px); }
.fix-type-card i { font-size: 32px; color: var(--primary); margin-bottom: 12px; }
.fix-type-card h3 { font-size: 16px; margin-bottom: 8px; }
.fix-type-card p { font-size: 13px; color: var(--text-muted); }

/* ==========================================
   Bulk Injector
   ========================================== */
.bulk-tags-input { margin-top: 24px; }
.bulk-tags-input textarea { width: 100%; min-height: 120px; margin-bottom: 16px; }

/* ==========================================
   Evergreen Audit
   ========================================== */
.evergreen-results { margin-top: 24px; }
.evergreen-list { display: grid; gap: 12px; }
.evergreen-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--bg-input); border-radius: 12px; }
.evergreen-info h4 { font-size: 14px; margin-bottom: 4px; }
.evergreen-info p { font-size: 12px; color: var(--text-muted); }
.btn-primary.small { padding: 8px 16px; font-size: 13px; }

/* ==========================================
   Playlist Growth
   ========================================== */
.playlist-select { display: flex; gap: 12px; margin-top: 24px; }
.playlist-select select { flex: 1; padding: 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); }

/* ==========================================
   Retention Re-Orderer
   ========================================== */
.retention-results { margin-top: 24px; }
.retention-order h4 { margin-bottom: 16px; }
.retention-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--bg-input); border-radius: 12px; margin-bottom: 12px; }
.retention-pos { width: 32px; height: 32px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.retention-title { flex: 1; }
.retention-score { padding: 4px 12px; border-radius: 6px; font-weight: 600; font-size: 13px; }
.retention-score.high { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.retention-score.medium { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

/* ==========================================
   System Status
   ========================================== */
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.status-card { background: var(--bg-input); border: 1px solid var(--border); border-radius: 16px; padding: 24px; text-align: center; }
.status-card i { font-size: 32px; color: var(--primary); display: block; margin-bottom: 12px; }
.status-card span:first-of-type { display: block; font-size: 14px; margin-bottom: 8px; }
.status-ok { color: #10b981; font-weight: 600; }
.status-error { color: #ef4444; font-weight: 600; }

.system-complete-badge {
  display: inline-block;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Input Row */
.input-row { display: flex; gap: 12px; margin-top: 12px; }
.input-row input { flex: 1; padding: 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); }

/* ==========================================
   Sidebar Sniper
   ========================================== */
.sniper-results { margin-top: 24px; }
.competitor-list h4 { margin-bottom: 16px; }
.competitor-card {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  background: var(--bg-input); border-radius: 12px; margin-bottom: 12px;
}
.competitor-info { flex: 1; }
.competitor-info strong { display: block; font-size: 14px; margin-bottom: 4px; }
.competitor-info span { font-size: 12px; color: var(--text-muted); }
.competitor-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.infiltration-bundle { background: rgba(249, 115, 22, 0.1); border-radius: 12px; padding: 20px; margin-top: 20px; }
.infiltration-bundle h4 { margin-bottom: 8px; }
.infiltration-bundle p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.bundle-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ==========================================
   Premium Feature Content
   ========================================== */
.premium-feature-content { margin-top: 24px; }
.btn-primary.premium { background: linear-gradient(135deg, #f59e0b, #d97706); }
.btn-primary.premium:hover { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

/* ==========================================
   Thumbnail Redesign
   ========================================== */
.redesign-results { margin-top: 24px; }
.concept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.concept-card { background: var(--bg-input); border-radius: 12px; padding: 16px; }
.concept-preview {
  height: 120px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.concept-text { color: white; font-weight: 600; font-size: 14px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.concept-colors { display: flex; gap: 8px; margin-bottom: 12px; }
.color-swatch { width: 24px; height: 24px; border-radius: 6px; cursor: pointer; }
.concept-card h4 { font-size: 14px; margin-bottom: 4px; }
.concept-card p { font-size: 12px; color: var(--text-muted); }

/* ==========================================
   AI Auto-Responder
   ========================================== */
.auto-responder-config { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.config-option label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.config-option select { width: 100%; padding: 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); }
.config-option input[type="checkbox"] { width: 20px; height: 20px; }
.responder-stats { margin-top: 24px; }
.responder-active { display: flex; align-items: center; gap: 12px; padding: 16px; background: rgba(16, 185, 129, 0.1); border-radius: 12px; margin-bottom: 16px; }
.responder-active i { font-size: 24px; color: #10b981; }
.responder-details strong { display: block; font-size: 14px; }
.responder-details span { font-size: 12px; color: var(--text-muted); }
.responder-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-box { background: var(--bg-input); border-radius: 12px; padding: 20px; text-align: center; }
.stat-num { display: block; font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-muted); }

/* ==========================================
   Automation Pipeline
   ========================================== */
.pipeline-builder { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 24px 0; }
.pipeline-step {
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 12px; padding: 16px 24px; display: flex; align-items: center; gap: 12px;
}
.pipeline-step .step-num {
  width: 24px; height: 24px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.pipeline-arrow { font-size: 24px; color: var(--primary); }
.pipeline-status { margin-top: 24px; }
.pipeline-active { display: flex; align-items: center; gap: 12px; padding: 16px; background: rgba(16, 185, 129, 0.1); border-radius: 12px; margin-bottom: 16px; }
.pipeline-active i { font-size: 24px; color: #10b981; }
.pipeline-steps-status { display: grid; gap: 12px; }
.step-status { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-input); border-radius: 8px; }
.step-status.active i { color: #10b981; }
.step-status.pending i { color: var(--text-muted); }
.step-status span { font-size: 13px; }

/* Pipeline Insights */
.pipeline-meta { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.pipeline-insights { display: grid; gap: 1rem; }
.insight-section { background: var(--bg-input); border-radius: 10px; padding: 1rem; }
.insight-section.highlight { border: 1px solid rgba(139,92,246,0.3); background: rgba(139,92,246,0.08); }
.insight-section h4 { font-size: 0.85rem; color: #fff; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.insight-section h4 i { width: 16px; height: 16px; }
.insight-item { padding: 0.4rem 0.6rem; border-radius: 6px; font-size: 0.8rem; margin-bottom: 0.3rem; }
.insight-item.success { background: rgba(16,185,129,0.08); color: #10b981; }
.insight-item.warning { background: rgba(245,158,11,0.08); color: #f59e0b; }
.insight-item.tip { background: rgba(59,130,246,0.08); color: #60a5fa; }
.insight-item::before { content: '• '; font-weight: bold; }
.reasoning { font-size: 0.78rem; color: var(--text-muted); font-style: italic; margin-top: 0.5rem; }
.pipeline-error { padding: 1rem; background: rgba(239,68,68,0.1); border-radius: 8px; color: #ef4444; text-align: center; }

/* ==========================================
   Suggested Analytics
   ========================================== */
.analytics-chart { margin-top: 24px; }
.chart-placeholder {
  text-align: center; padding: 60px;
  background: var(--bg-input); border-radius: 16px;
}
.chart-placeholder i { font-size: 48px; color: var(--text-muted); display: block; margin-bottom: 16px; }
.chart-placeholder p { color: var(--text-muted); }
.traffic-sources-chart { background: var(--bg-input); border-radius: 16px; padding: 24px; }
.chart-bars { display: grid; gap: 16px; }
.chart-bar-row { display: flex; align-items: center; gap: 16px; }
.source-name { flex: 0 0 140px; font-size: 13px; color: var(--text-muted); }
.bar-container { flex: 1; height: 24px; background: var(--bg-dark); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; transition: width 0.5s; }
.source-percent { flex: 0 0 50px; text-align: right; font-weight: 600; font-size: 13px; }
.chart-summary { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.summary-item { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.summary-item.highlight { color: var(--primary); }
.summary-item i { font-size: 20px; }
.summary-item strong { font-size: 18px; }
/* ==========================================
   Sidebar Sniper 2.0 (SaaS Pro)
   ========================================== */
.sniper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.sniper-col {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sniper-col h4 {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.sniper-col.competitor-meta {
  border-right-color: transparent;
}

/* The Sniper Blur */
.blurred-metadata {
  filter: blur(6px) grayscale(0.8);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.blur-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.4);
  z-index: 10;
  text-align: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sniper-tag {
  padding: 6px 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.sniper-col.pro-bundle {
  background: linear-gradient(rgba(249, 115, 22, 0.05), transparent);
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.1);
}

.sniper-tag.bridge {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
  color: var(--primary);
  font-weight: 500;
}

.sniper-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compat-score-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compat-meter {
  flex: 1;
  height: 8px;
  background: var(--bg-dark);
  border-radius: 4px;
  overflow: hidden;
}

.compat-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ==========================================================================
   AI AUTO-RESPONDER (AUTOPILOT MODULE)
   ========================================================================== */
.comments-feed-container {
  margin-top: 2rem;
}

.comments-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.comment-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.comment-item:hover {
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-dark);
  object-fit: cover;
}

.comment-meta {
  display: flex;
  flex-direction: column;
}

.comment-author {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-likes {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.comment-text {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.6;
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* AI Draft Box */
.ai-draft-box {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 8px;
  padding: 1.25rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
  animation: slideDown 0.3s ease;
}

.ai-draft-box.active {
  display: flex;
}

.draft-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.draft-content {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #fff;
  white-space: pre-wrap;
}

.reply-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ==========================================
   Automation Pipeline Dashboard
   ========================================== */

.automation-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem 0;
}

.pipeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.pipeline-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.15);
}

.pipeline-card.active {
  border-color: var(--success);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-card) 100%);
}

.pipeline-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pipeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.seo-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.comment-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #c2410c 100%);
}

.evergreen-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.pipeline-info {
  flex: 1;
}

.pipeline-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #fff;
}

.pipeline-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch .slider {
  position: absolute;
  inset: 0;
  background: var(--border-card);
  border-radius: 28px;
  transition: 0.3s;
}

.toggle-switch .slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .slider {
  background: var(--success);
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(24px);
}

.pipeline-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.inactive {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
}

.status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.status-badge.active::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.next-run {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pipeline-credits {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--warning);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pipeline-summary {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
}

.pipeline-summary h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.summary-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.summary-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .pipeline-card-header {
    flex-wrap: wrap;
  }
  
  .toggle-switch {
    margin-left: auto;
  }
}

/* ==========================================
   AI Recommendations & Magic Fix Modal
   ========================================== */

.ai-recommendations-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.ai-recommendations-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #f97316;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recommendation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.recommendation-card:hover {
  border-color: #f97316;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.15);
}

.rec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.rec-type {
  font-weight: 600;
  color: #fff;
}

.rec-score {
  font-size: 0.8rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
}

.rec-suggestion {
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 8px;
  border-left: 3px solid #f97316;
}

.rec-reason {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.btn-magic-fix {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.btn-magic-fix:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

/* Badge styles */
.badge-own {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-public {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #f97316;
}

/* Before/After View */
.before-after-view {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.before-section, .after-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.before-section .label, .after-section .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.before-section .value {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.4;
}

.after-section .value {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.9rem;
  color: #10b981;
  line-height: 1.4;
}

.before-section .value.scroll, .after-section .value.scroll {
  max-height: 150px;
  overflow-y: auto;
}

.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
}

.rec-reason {
  background: rgba(249, 115, 22, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-content .btn-primary {
  width: 100%;
  margin-bottom: 0.75rem;
}

.modal-content .btn-secondary {
  width: 100%;
}

.apply-disabled {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Thumbnail Strategy */
.thumbnail-strategy {
  margin-bottom: 1rem;
}

.thumbnail-strategy h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.thumbnail-strategy p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.ai-prompt-box {
  background: #1a1a2e;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 1rem;
  position: relative;
}

.ai-prompt-box code {
  font-size: 0.8rem;
  color: #10b981;
  word-break: break-all;
  display: block;
  font-family: 'Monaco', 'Consolas', monospace;
}

.ai-prompt-box .btn-copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
}

.thumbnail-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.thumbnail-note i {
  color: #3b82f6;
}

/* ==========================================
   Pre-Upload Metadata Lab
   ========================================== */

.preupload-input-section {
  margin-bottom: 2rem;
}

.preupload-input-section .input-group {
  margin-bottom: 1rem;
}

.preupload-input-section select {
  background: var(--bg-card);
  color: #fff;
  border: 1px solid var(--border-card);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 180px;
}

.preupload-input-section select:focus {
  outline: none;
  border-color: var(--primary);
}

.seo-bundle-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bundle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1.25rem;
}

.bundle-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.bundle-card-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-select {
  font-size: 0.75rem;
  color: var(--primary);
  background: rgba(249, 115, 22, 0.15);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
}

.btn-copy-small {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-card);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.btn-copy-small:hover {
  background: rgba(249, 115, 22, 0.1);
  color: #fff;
  border-color: var(--primary);
}

/* Title Options */
.title-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.title-option {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.title-option:hover {
  border-color: var(--primary);
  background: rgba(249, 115, 22, 0.15);
}

.title-option.selected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.title-option.selected .check-icon {
  color: #10b981;
}

.title-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  min-width: 80px;
}

.title-text {
  flex: 1;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.4;
}

.check-icon {
  color: var(--text-muted);
  font-size: 1.25rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.title-option.selected .check-icon {
  opacity: 1;
}

/* Tags Output */
.tags-output {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.tag-pill:hover {
  background: rgba(59, 130, 246, 0.25);
}

/* Description Output */
.description-output pre {
  background: #1a1a2e;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
  font-family: 'Geist', sans-serif;
  max-height: 300px;
  overflow-y: auto;
}

/* Bundle Actions */
.bundle-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.bundle-actions .btn-secondary,
.bundle-actions .btn-primary {
  flex: 1;
  max-width: 250px;
}

/* Info Box */
.preupload-info {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
}

.preupload-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preupload-info i {
  color: #3b82f6;
}

/* ==========================================
   Niche Detection UI
   ========================================== */

.niche-detected {
  font-weight: 600;
  color: #10b981;
}

.ai-verified {
  font-size: 0.75rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  margin-left: 0.5rem;
}

/* ==========================================
   Smart Bulk Overhaul UI
   ========================================== */

.bulk-mode-selector {
  margin-bottom: 1.5rem;
}

.mode-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.mode-option:hover {
  border-color: var(--primary);
}

.mode-option input[type="radio"] {
  margin-top: 0.25rem;
  accent-color: var(--primary);
}

.mode-title {
  display: block;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.mode-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bulk-playlist-select {
  margin-bottom: 1rem;
}

.bulk-playlist-select label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.bulk-playlist-select select {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-card);
  color: #fff;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  font-size: 0.9rem;
}

.bulk-playlist-select select:focus {
  outline: none;
  border-color: var(--primary);
}

.bulk-info {
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.bulk-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bulk-info i {
  color: #3b82f6;
}

.overhaul-progress {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
}

.overhaul-progress h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.progress-log {
  max-height: 300px;
  overflow-y: auto;
  font-family: 'Monaco', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
}

.log-entry {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.log-entry.success {
  color: #10b981;
}

.log-entry.error {
  color: #ef4444;
}

.log-number {
  color: var(--text-muted);
  min-width: 60px;
}

.log-title {
  flex: 1;
  color: #fff;
}

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

.log-placeholder, .log-loading {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}

.progress-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.stat-success {
  color: #10b981;
}

.stat-failed {
  color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
  .bundle-actions {
    flex-direction: column;
  }
  
  .bundle-actions .btn-secondary,
  .bundle-actions .btn-primary {
    max-width: 100%;
  }
}

/* ==========================================
   Bulk Injector Review Stage
   ========================================== */

.permission-warning {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.permission-warning i {
  color: #f59e0b;
  font-size: 1.25rem;
}

.permission-warning span {
  flex: 1;
  color: #f59e0b;
}

.review-stage {
  margin-top: 1.5rem;
}

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

.review-header h4 {
  font-size: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-actions {
  display: flex;
  gap: 0.75rem;
}

.video-review-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 600px;
  overflow-y: auto;
}

.video-review-card {
  display: grid;
  grid-template-columns: 30% 1fr 200px;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  align-items: start;
  width: 100%;
  max-width: none;
}

.video-scoreboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0.75rem;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  min-width: 0;
}

.video-review-card:hover {
  border-color: var(--primary);
}

.video-review-card.applied-success {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.video-review-card.applied-failed {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.video-current h5, .video-proposal h5 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Divider between Current and Proposed columns */
.video-current {
  border-right: 1px solid rgba(255,255,255,0.08);
  padding-right: 1rem;
}
.video-proposal {
  border-right: 1px solid rgba(255,255,255,0.08);
  padding-right: 1rem;
}

.current-title, .proposal-title {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.25rem;
  font-weight: 600;
  width: 100%;
  white-space: normal;
  word-break: break-word;
}

.current-desc, .proposal-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  width: 100%;
  white-space: normal;
  word-break: break-word;
}

.current-tags, .proposal-tags {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.proposal-reason {
  font-size: 0.75rem;
  color: var(--primary);
  margin-top: 0.5rem;
  font-style: italic;
}

.proposal-placeholder {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
}

.video-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.video-actions .generate-btn {
  font-size: 0.8rem;
  padding: 0.5rem;
}

.proposal-status {
  font-size: 0.75rem;
  text-align: center;
}

.status-generated {
  color: #10b981;
}

.status-error {
  color: #ef4444;
}

/* ── YouTube Compliance Badges (Bulk Injector) ── */
.compliance-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.35rem;
  font-weight: 600;
  vertical-align: middle;
}
.compliance-pass {
  background: rgba(16,185,129,0.12);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.3);
}
.compliance-fail {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.3);
}

/* ── Proposal Card (inside 50% column) ── */
.proposal-card-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  gap: 0.75rem;
}

/* Title row — full width on its own line */
.proposal-title-row {
  width: 100% !important;
  min-width: 0;
  display: block;
}

/* Body: single column, full width */
.proposal-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.5rem;
}

/* Content column (70%) */
.proposal-content {
  flex: 1 1 0%;
  min-width: 300px;
  width: 100%;
  overflow-wrap: break-word;
}

/* Scoreboard column (30%) */
.proposal-actions {
  flex: 0 0 auto;
  width: 200px;
  min-width: 200px;
  max-width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
  .proposal-body {
    flex-direction: column;
  }
  .proposal-actions {
    width: 100%;
    max-width: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.scoreboard-placeholder {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

.proposal-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

/* ── Efficiency Bar (Impact Pills) — now in scoreboard ── */
.efficiency-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
  width: 100%;
}

.impact-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  background: rgba(16,185,129,0.12);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.22);
  letter-spacing: 0.3px;
}

.efficiency-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* ── Score Circle ── */
.score-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 3px solid var(--score-color, var(--primary));
  flex-shrink: 0;
}

.score-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--score-color, var(--primary));
  line-height: 1;
}

.score-circle .score-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.score-change {
  font-size: 0.6rem;
  font-weight: 700;
  color: #10b981;
  margin-top: 1px;
}

/* ── Proposal Field Header ── */
.proposal-field-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}

.proposal-field-header strong {
  font-size: 0.8rem;
  color: #fff;
}

.title-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ── Mobile Preview Popup ── */
.mobile-preview-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(249,115,22,0.12);
  cursor: pointer;
  transition: background 0.2s;
  color: #f97316;
}
.mobile-preview-trigger:hover {
  background: rgba(249,115,22,0.22);
}
.mobile-preview-trigger i {
  width: 13px;
  height: 13px;
}

.mobile-preview-popup {
  position: absolute;
  z-index: 100;
  background: var(--bg-card);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  margin-top: 4px;
}

/* ── Search Snippet ── */
.search-snippet {
  display: block;
  color: var(--text-muted);
  font-size: 0.68rem;
  margin-top: 0.25rem;
  opacity: 0.7;
}

/* ── Quality Footer ── */
.quality-footer {
  background: rgba(245,158,11,0.08);
  color: #f59e0b;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-top: 0.75rem;
  border: 1px solid rgba(245,158,11,0.15);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Description readability ── */
.proposal-desc {
  line-height: 1.6 !important;
}

/* ── Neural badges: 20% smaller ── */
.neural-pulse {
  padding: 4px 10px !important;
  gap: 6px !important;
  margin-left: 10px !important;
}
.neural-pulse span {
  font-size: 9px !important;
}
.pulse-dot {
  width: 6px !important;
  height: 6px !important;
}

.char-badge-warn {
  background: rgba(239,68,68,0.15) !important;
  color: #ef4444 !important;
  border-color: rgba(239,68,68,0.3) !important;
}

.quality-warning {
  background: rgba(245,158,11,0.12);
  color: #f59e0b;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(245,158,11,0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-preview {
  background: rgba(139,92,246,0.08);
  border-left: 3px solid var(--primary);
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-radius: 0 4px 4px 0;
}

.tag-chip-warn {
  background: rgba(239,68,68,0.12) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239,68,68,0.35) !important;
  text-decoration: line-through;
  text-decoration-color: rgba(239,68,68,0.4);
}

.tag-warning {
  background: rgba(239,68,68,0.08);
  color: #ef4444;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  margin: 0.25rem 0;
  border: 1px dashed rgba(239,68,68,0.25);
}

.video-approve {
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-approve {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.checkbox-approve input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.checkbox-approve span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .video-review-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .video-scoreboard {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  
  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   EVERGREEN AUDIT (The Revival Engine)
   ============================================ */

/* Controls Section */
.evergreen-audit-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.audit-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Loading State */
.evergreen-loading {
  text-align: center;
  padding: 3rem;
}

.evergreen-loading .spinner-pro {
  margin: 0 auto 1.5rem;
  width: 48px;
  height: 48px;
}

.evergreen-loading h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.evergreen-loading p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Results Summary */
.evergreen-summary {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-card);
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

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

/* Revival List */
.revival-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 600px;
  overflow-y: auto;
}

/* Revival Card */
.revival-card {
  display: grid;
  grid-template-columns: 1fr 200px 1fr 80px;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  align-items: start;
}

.revival-card:hover {
  border-color: var(--primary);
}

.revival-card.applied-success {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.revival-card.applied-failed {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Video Info Section */
.revival-video-info {
  display: flex;
  gap: 1rem;
}

.revival-thumb {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
}

.revival-details {
  flex: 1;
}

.revival-title {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.revival-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.staleness-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Actions Section */
.revival-actions-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.revival-actions-section .generate-btn {
  font-size: 0.8rem;
  padding: 0.5rem;
}

.revival-status {
  font-size: 0.75rem;
  text-align: center;
}

/* Proposal Section */
.revival-proposal {
  font-size: 0.85rem;
}

.revival-proposal .proposal-placeholder {
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
}

.proposal-content h5 {
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.proposal-field {
  margin-bottom: 0.75rem;
}

.proposal-field label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.proposal-field p {
  font-size: 0.8rem;
  color: #fff;
  line-height: 1.4;
}

.proposal-reasoning {
  font-size: 0.75rem;
  color: var(--primary);
  font-style: italic;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 6px;
}

/* Tags Preview */
.tags-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.tags-preview .tag-chip {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
}

/* Approve Section */
.revival-approve {
  display: flex;
  align-items: flex-start;
  padding-top: 0.5rem;
}

.checkbox-approve {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.checkbox-approve input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* Batch Actions */
.revival-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-card);
}

.revival-actions button {
  flex: 1;
}

/* Empty State */
.evergreen-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-card);
}

.evergreen-empty i {
  font-size: 4rem;
  color: #10b981;
  margin-bottom: 1rem;
}

.evergreen-empty h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

/* Responsive */
@media (max-width: 768px) {
  .revival-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .revival-video-info {
    flex-direction: column;
  }
  
  .revival-thumb {
    width: 100%;
    height: 160px;
  }
  
  .evergreen-summary {
    flex-direction: column;
    gap: 1rem;
  }
  
  .revival-actions {
    flex-direction: column;
  }
}

/* ==================== PLAYLIST GROWTH SUITE STYLES ==================== */

/* Suite Tabs */
.suite-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.suite-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.suite-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.suite-tab.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* Suite Panel */
.suite-panel {
  display: block;
}

.suite-panel[style*="display: none"] {
  display: none !important;
}

/* Panel Header */
.panel-header {
  margin-bottom: 20px;
}

.panel-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.panel-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* Panel Controls */
.panel-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.panel-controls .input-group {
  flex: 1;
  max-width: 400px;
}

/* Retention Re-Orderer Panel Controls */
#view-retention-reorderer .panel-controls {
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

#view-retention-reorderer .panel-controls .input-group {
  max-width: 100%;
}

/* Loading State */
.collusion-loading,
.linker-loading,
.weaver-loading {
  text-align: center;
  padding: 40px;
}

.weaver-loading .spinner-pro,
.collusion-loading .spinner-pro,
.linker-loading .spinner-pro {
  margin: 0 auto 20px;
}

.weaver-loading h4,
.collusion-loading h4,
.linker-loading h4 {
  color: #fff;
  margin-bottom: 8px;
}

.weaver-loading p,
.collusion-loading p,
.linker-loading p {
  color: rgba(255, 255, 255, 0.6);
}

/* Result Cards */
.result-card {
  padding: 24px;
}

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

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2));
  border-radius: 20px;
  font-size: 12px;
  color: #10b981;
}

.result-meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.result-content {
  margin-bottom: 16px;
}

.result-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  font-size: 12px;
  color: #fb923c;
}

/* Tag Bundle Card */
.tag-bundle-card {
  padding: 24px;
}

.bundle-header {
  margin-bottom: 16px;
}

.bundle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.bundle-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.bundle-tag {
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 8px;
  font-size: 14px;
  color: #fb923c;
}

.bundle-strategy {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 16px;
}

.bundle-strategy p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

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

/* Gateway Card */
.gateway-card {
  padding: 24px;
}

.gateway-header {
  margin-bottom: 16px;
}

.gateway-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2));
  border-radius: 20px;
  font-size: 12px;
  color: #10b981;
}

.gateway-video {
  margin-bottom: 12px;
}

.gateway-video h4 {
  color: #fff;
  font-size: 18px;
}

.gateway-score {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.score-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.score-value {
  font-size: 20px;
  font-weight: 700;
  color: #8b5cf6;
}

.gateway-url-box {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.gateway-url-box input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
}

.gateway-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.gateway-info i {
  color: #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
  .suite-tabs {
    flex-wrap: wrap;
  }
  
  .suite-tab {
    flex: 1;
    min-width: calc(50% - 4px);
    justify-content: center;
  }
  
  .panel-controls {
    flex-direction: column;
  }
  
  .panel-controls .input-group {
    max-width: 100%;
    width: 100%;
  }
  
  .bundle-tags {
    justify-content: center;
  }
  
  .gateway-url-box {
    flex-direction: column;
  }
}

/* ==================== PLAYLIST SUITE ACTIONS & PROGRESS ==================== */

.suite-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 16px;
}

.action-credit-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.action-credit-note i {
  color: #fbbf24;
  font-size: 16px;
}

/* Premium Action Buttons */
.btn-action-apply, 
.btn-action-inject {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-action-apply {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.btn-action-apply:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
}

.btn-action-inject {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.btn-action-inject:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.btn-action-apply:active,
.btn-action-inject:active {
  transform: translateY(0);
}

.btn-action-apply:disabled,
.btn-action-inject:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.8);
  box-shadow: none;
}

/* Progress Tracking UI */
.apply-progress {
  margin-top: 24px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
  border-radius: 20px;
  transition: width 0.5s cubic-bezier(0.1, 0.7, 0.1, 1);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.inject-fill {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.progress-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.3px;
}

/* Session Linker Specifics */
.magic-gateway-label {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.magic-gateway-label i {
  color: #fbbf24;
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.4));
}

.gateway-free-badge {
  font-size: 10px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 3px 10px;
  border-radius: 6px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gateway-info-highlight {
  background: rgba(139, 92, 246, 0.08) !important;
  border: 1px solid rgba(139, 92, 246, 0.15);
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 16px !important;
}

.gateway-info-highlight i {
  color: #fb923c;
}

.gateway-info-highlight strong {
  color: #c084fc;
}

.gateway-card .gateway-video h4 {
  font-size: 20px;
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==================== RETENTION RE-ORDERER ==================== */
.retention-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reorder-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 24px;
  position: relative;
}

.reorder-comparison::before {
  content: '⚔️';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 12px 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  z-index: 10;
}

.comparison-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid #27272a;
  border-radius: 1.5rem;
  padding: 16px;
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-muted);
}

.comparison-header i {
  font-size: 1.2rem;
}

.comparison-header.algorithmic {
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.retention-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease;
}

.retention-item:hover {
  transform: translateX(4px);
  border-color: var(--accent-primary);
}

.item-index {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 24px;
}

.item-thumb {
  width: 80px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.item-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.item-stats {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-avd {
  color: var(--accent-primary);
  font-weight: 600;
}

/* ==================== AI ARCHITECT CHATBOT ==================== */
.coach-chat-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  pointer-events: none; /* Allow clicks to pass through to dashboard under container */
}

.coach-toggle, .coach-window {
  pointer-events: auto; /* Re-enable clicks for actual UI items */
}

.coach-toggle {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background: var(--accent-primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.coach-toggle:hover {
  transform: scale(1.1) rotate(5deg);
}

.coach-toggle i {
  font-size: 1.8rem;
}

.coach-window {
  width: 380px;
  height: 520px;
  background: var(--bg-main);
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 1px rgba(99, 102, 241, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.coach-window.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  padding: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-info h3 {
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.chat-header-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.chat-close:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 90%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
  animation: slideIn 0.3s ease-out;
}

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

.message.ai {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--text-primary);
}

.message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  display: flex;
  gap: 8px;
  flex-direction: column;
  background: linear-gradient(to top, rgba(99, 102, 241, 0.02) 0%, transparent 100%);
}

.chat-input {
  flex: 1;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  outline: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.chat-input:focus {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.chat-send {
  background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
  color: white;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.chat-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Chat Prompt Suggestion UI */
.chat-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.prompt-chip {
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.04));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--accent-primary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.prompt-chip:hover {
  background: var(--accent-primary);
  color: white;
}

@media (max-width: 768px) {
  .reorder-comparison {
    grid-template-columns: 1fr;
  }
  
  .coach-window {
    width: calc(100vw - 48px);
    height: 400px;
  }
}

/* Shimmer for comparison items */
.retention-item.loading {
  position: relative;
  overflow: hidden;
}

.retention-item.loading::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Strategic Badges */
.item-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-gateway {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.badge-retention {
  background: var(--emerald-bg);
  color: var(--emerald-growth);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.badge-gateway i, .badge-retention i {
  font-size: 0.8rem;
}

/* ==================== AI ASSISTANT DRAWER (GLASSMORPHIC) ==================== */
#ai-assistant-drawer {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 380px;
  height: 520px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--primary);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(249, 115, 22, 0.05);
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  overflow: hidden;
}

#ai-assistant-drawer.open {
  transform: translateY(0);
}

.assistant-header {
  padding: 1.25rem;
  background: rgba(249, 115, 22, 0.1);
  border-bottom: 1px solid rgba(249, 115, 22, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.assistant-header h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.assistant-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.assistant-close-btn:hover {
  color: var(--text-primary);
}

#chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-behavior: smooth;
}

.message {
  max-width: 85%;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.message.user {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.message.ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
}

.assistant-input-area {
  padding: 1rem 1.25rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border);
}

.assistant-input-group {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  transition: border-color 0.2s;
}

.assistant-input-group:focus-within {
  border-color: var(--primary);
}

#chat-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 8px 10px;
  font-size: 0.9rem;
  outline: none;
}

#chat-input::placeholder {
  color: var(--text-muted);
}

.assistant-send-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

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

.assistant-send-btn:active {
  transform: translateY(0);
}

/* ==================== SKELETON SCREENS (HYDRATION) ==================== */
.skeleton-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  border-radius: 12px;
}

.shimmer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmerAnim 1.5s infinite;
}

.skeleton-content {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skeleton-title {
  height: 2rem;
  width: 40%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.skeleton-row {
  height: 1.25rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

@keyframes shimmerAnim {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ==================== SVG SPRITE ICONS ==================== */
.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* ===== GROWTH HACK STYLES ===== */

/* RARE FIND Badge - Orange Pulse Animation */
.rare-find-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #f97316;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid #f97316;
  border-radius: 12px;
  animation: pulse-orange 2s infinite;
  vertical-align: middle;
}

@keyframes pulse-orange {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(249, 115, 22, 0);
  }
}

/* Power Title Tag - 2026 Algorithmic Triggers */
.power-title-tag {
  display: block;
  font-size: 11px;
  color: #f97316;
  margin-top: -5px;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Credit Progress Bar */
.credit-progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.credit-progress-container:hover {
  background: rgba(15, 23, 42, 0.8);
}

.credit-bar {
  flex: 1;
  height: 8px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 4px;
  overflow: hidden;
}

.credit-fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.credit-text {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Smart Paywall - Script Blur */
.script-preview {
  position: relative;
}

.paywall-blur {
  filter: blur(5px);
  opacity: 0.6;
  user-select: none;
}

.unlock-btn {
  display: block;
  width: 100%;
  margin-top: 15px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.unlock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

/* Top-up Modal */
.topup-modal-content {
  text-align: center;
  padding: 20px;
}

.paypal-btn {
  width: 100%;
  padding: 15px;
  background: #0070ba;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
}

.paypal-btn:hover {
  background: #005ea6;
}

#paypal-button-container {
    min-height: 150px !important;
    display: block !important;
    visibility: visible !important;
    z-index: 9999;
}

/* Ensure the PayPal wrapper div fills container width */
#paypal-button-container > div[id^="zoid-paypal-buttons"] {
  width: 100% !important;
  min-height: 100px !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ==========================================
   BILLING PANEL & PAYMENT MODAL (Clean Fix)
   ========================================== */

#payment-modal {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    z-index: 99999999 !important; /* Force to front */
    display: flex !important; /* Visible when .hidden is removed */
    justify-content: center !important;
    align-items: center !important;
    background: rgba(0,0,0,0.9) !important;
    backdrop-filter: blur(10px) !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

#payment-modal.hidden {
  display: none !important;
  pointer-events: none !important;
  z-index: -1 !important;
}
#payment-modal:not(.hidden) { visibility: visible !important; opacity: 1 !important; }

.payment-card {
  background: #0f172a !important; /* Slate-900 */
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #f97316; /* Signal Orange */
  width: 90%; max-width: 400px;
  box-shadow: 0 0 50px rgba(249, 115, 22, 0.2);
  margin: auto; /* Ensure horizontal centering */
}

.payment-modal-card {
  background: #0f172a !important; /* Slate-900 */
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid #f97316; /* Signal Orange */
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 50px rgba(249, 115, 22, 0.2);
  position: relative;
  color: #ffffff !important;
  margin: auto; /* Ensure horizontal centering */
}

#paypal-button-container {
    min-height: 150px !important;
    display: block !important;
    visibility: visible !important;
    z-index: 9999;
}

/* Close Modal Button */
.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
}

/* Billing Grid (Bento Style) */
.billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}

.price-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.price-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.price-card.popular {
  border: 2px solid var(--primary);
  transform: scale(1.05);
  z-index: 2;
}

.price-card.popular:hover {
  transform: scale(1.05) translateY(-8px);
}

.price-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.price-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.price-card .price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.price-card ul li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-card ul li i {
  color: var(--success);
  font-size: 1rem;
}

.btn-upgrade {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-upgrade:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

/* Animations */
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-slide-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Sidebar Link Active State */
.nav-item[data-view="billing"].active {
  background: rgba(249, 115, 22, 0.1);
  color: var(--primary);
  border-color: rgba(249, 115, 22, 0.2);
}

/* ==================== ZERO-FAIL VISIBILITY FIX (Root Level Components) ==================== */
#payment-modal, #coach-window {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important; /* For modal */
    z-index: 2147483647 !important; /* Max Z-Index */
    pointer-events: auto !important;
}

#coach-window {
    left: auto !important; /* Keep it as a side drawer */
    width: 50vw !important;
    max-width: 700px !important;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

#coach-window.active { transform: translateX(0); }

/* Launch YouTube OS button - Signal Orange */
.btn-main {
  background-color: #f97316 !important;
  color: white !important;
  border: none !important;
  transition: background-color 0.2s ease !important;
}
.btn-main:hover {
  background-color: #ea580c !important;
}

/* Strategy Center Styles */
.strategy-center {
  background: rgba(15, 23, 42, 0.6);
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  margin-top: 32px;
}

/* AI Coach Drawer Enhancement */
#coach-window {
  background: rgba(2, 6, 23, 0.95) !important;
  backdrop-filter: blur(40px) !important;
  border-left: 1px solid var(--primary) !important;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8) !important;
  width: 50vw !important;
  max-width: 700px !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

.coach-header {
  padding: 24px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coach-header h3 {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.coach-header h3 i {
  color: var(--primary);
}

.coach-messages {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.coach-bubble {
  padding: 14px 18px;
  border-radius: 16px;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.6;
}

.coach-bubble.ai {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.coach-bubble.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.coach-input-area {
  padding: 24px;
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid var(--border);
}

.coach-input-wrapper {
  display: flex;
  gap: 12px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 12px;
}

.coach-input-wrapper:focus-within {
  border-color: var(--primary);
}

.coach-input-wrapper input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: white;
  padding: 10px 0;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(148, 163, 184, 0.1) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Animations */
.fade-in-up {
  animation: fadeInUp 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

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

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

  #coach-window {
    width: 100% !important;
  }
}

/* Neural Pulse Styles */
.neural-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 12px;
  border-radius: 99px;
  margin-left: 16px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.neural-pulse span {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--success);
  border-radius: 50%;
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ═══════════════════════════════════════════
   🆕 2026 MODERN FEATURE STYLES
   ═══════════════════════════════════════════ */

/* Badge: NEW */
.badge-new {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 700;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 6px;
  animation: pulse-glow 2s infinite;
}

/* Trend Pulse */
.trend-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.2s;
}
.trend-card:hover { border-color: var(--primary); transform: translateX(4px); }
.trend-rank {
  background: var(--primary);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.trend-info { flex: 1; }
.trend-info h3 { font-size: 1rem; margin: 0 0 6px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trend-volume {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 700;
  text-transform: uppercase;
}
.volume-viral { background: #ef4444; color: #fff; }
.volume-high { background: rgba(249,115,22,0.2); color: #f97316; }
.volume-medium { background: rgba(245,158,11,0.2); color: #f59e0b; }
.volume-low { background: rgba(148,163,184,0.15); color: var(--text-muted); }
.trend-why, .trend-angle { font-size: 0.82rem; color: var(--text-muted); margin: 2px 0; }
.trend-why i, .trend-angle i { width: 16px; margin-right: 4px; color: var(--primary); }
.trend-loading, .ml-loading, .chapters-loading, .community-loading, .ai-label-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
  color: var(--text-muted);
}

/* Smart Chapters */
.chapter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(15,23,42,0.3);
  border-radius: 8px;
  margin-bottom: 6px;
  transition: background 0.2s;
}
.chapter-row:hover { background: rgba(249,115,22,0.08); }
.chapter-time {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  min-width: 48px;
  text-align: center;
  font-family: monospace;
}
.chapter-bar {
  width: 4px;
  height: 24px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
}
.chapter-title { font-size: 0.9rem; color: var(--text-primary); flex: 1; }
.chapters-results { margin-top: 20px; }

/* Community Posts */
.community-post-preview {
  background: #fff;
  color: #1e293b;
  border-radius: 12px;
  padding: 20px;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  margin: 16px 0;
}
.community-post-preview .post-type-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 10px;
}
.community-post-preview .post-content {
  font-size: 0.9rem;
  line-height: 1.7;
}
.community-actions { display: flex; gap: 10px; margin-top: 12px; }

/* Multi-Language SEO */
.ml-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.ml-tab {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.ml-tab.active, .ml-tab:hover {
  background: rgba(249,115,22,0.15);
  color: var(--primary);
  border-color: var(--primary);
}
.ml-lang-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.ml-lang-card h4 { margin: 0 0 12px; color: var(--primary); font-size: 1rem; }
.ml-field { margin-bottom: 10px; font-size: 0.85rem; }
.ml-field strong { color: var(--text-muted); display: block; margin-bottom: 4px; }
.copy-text { cursor: pointer; padding: 2px 4px; border-radius: 4px; transition: background 0.2s; }
.copy-text:hover { background: rgba(249,115,22,0.1); }

/* AI Content Labeling */
.checkbox-group { margin: 12px 0; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: background 0.2s;
}
.checkbox-label:hover { background: rgba(255,255,255,0.03); }
.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px; height: 16px;
}
.label-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 16px;
}
.label-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.label-badge {
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 99px;
  font-weight: 700;
}
.label-altered { background: rgba(245,158,11,0.2); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.label-safe { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.label-compliance {
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
}
.label-disclosure { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.label-field { margin-bottom: 14px; }
.label-field strong { display: block; margin-bottom: 6px; font-size: 0.85rem; color: var(--text-muted); }
.copy-field {
  background: rgba(0,0,0,0.3);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.copy-field code { flex: 1; color: var(--text-primary); word-break: break-word; }

/* Input Row (reusable) */
.input-row { display: flex; gap: 12px; margin-bottom: 12px; }
.input-row .input-group { flex: 1; }
@media (max-width: 600px) { .input-row { flex-direction: column; } }

/* ═══════ Niche Guard 3.0 — Advanced Analysis & Visualization ═══════ */
.niche-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 768px) { .niche-results-grid { grid-template-columns: 1fr; } }

.niche-score-card, .niche-gap-card, .niche-tags-card, .niche-tips-card, .niche-intel-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.niche-score-card:hover, .niche-gap-card:hover, .niche-tags-card:hover, .niche-tips-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.niche-score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-color: rgba(16, 185, 129, 0.3);
}

.score-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(
    #10b981 0%,
    #6366f1 var(--score),
    rgba(99, 102, 241, 0.1) var(--score),
    rgba(99, 102, 241, 0.1) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.score-ring::before {
  content: '';
  position: absolute;
  inset: 10px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-radius: 50%;
}

.score-value {
  font-size: 1.8rem;
  font-weight: 900;
  position: relative;
  z-index: 1;
  color: #10b981;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.score-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.niche-category {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 8px 12px;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 8px;
}

.video-title-ref {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}

.niche-gap-card, .niche-tags-card, .niche-tips-card {
  border-color: rgba(139, 92, 246, 0.25);
}

.niche-gap-card:hover, .niche-tags-card:hover, .niche-tips-card:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.niche-gap-card h4, .niche-tags-card h4, .niche-tips-card h4, .niche-intel-card h4 {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gap-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.gap-keywords {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gap-keywords strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.niche-results-grid .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Tag grouping */
.tag-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tag-group-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-group-label.match {
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tag-group-label.match::before {
  content: '✓';
  font-weight: 900;
}

.tag-group-label.gap {
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tag-group-label.gap::before {
  content: '⚡';
}

.tag-chip {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tag-chip.tag-match {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
}

.tag-chip.tag-match:hover {
  background: rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
}

.tag-chip.tag-unique {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
}

.tag-chip.tag-unique:hover {
  background: rgba(245, 158, 11, 0.25);
  transform: translateY(-2px);
}

.tag-chip.tag-gap {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.4);
  cursor: pointer;
}

.tag-chip.tag-gap:hover {
  background: rgba(139, 92, 246, 0.25);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

/* Overlap/Relevance bar */
.overlap-bar, .relevance-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.bar-track {
  flex: 1;
  height: 10px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(90deg, #6366f1 0%, #10b981 100%);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.bar-value {
  font-weight: 700;
  color: #8b5cf6;
  min-width: 40px;
  text-align: right;
  font-size: 0.85rem;
}

/* Tips */
.tips-list, .recommendations-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-list li, .recommendations-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tips-list li:last-child, .recommendations-list li:last-child {
  border-bottom: none;
}

.tip-num {
  background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.niche-actions-bar {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.niche-action-btn {
  padding: 8px 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.niche-action-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

/* Niche Guard - Strategic Intelligence Card */
.niche-intel-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(99, 102, 241, 0.3);
}

.niche-intel-card:hover {
  box-shadow: 0 12px 48px rgba(99, 102, 241, 0.2);
}

.intel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.intel-item {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s;
}

.intel-item:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}

.intel-item.full-width {
  grid-column: 1 / -1;
}

.intel-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.intel-value {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 500;
}

.intel-tips {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.intel-tips li {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}

.intel-tips li::before {
  content: '→';
  color: var(--accent);
  font-weight: bold;
  flex-shrink: 0;
}
.intel-tips li {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  padding-left: 16px;
  position: relative;
}
.intel-tips li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Sniper - Strategic Intel */
.sniper-intel-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.sniper-intel-section h4 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.intel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.intel-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.intel-row.full {
  flex-direction: column;
}
.intel-row .intel-label {
  min-width: 110px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  padding-top: 2px;
}
.intel-row .intel-text {
  flex: 1;
  font-size: 0.84rem;
  color: var(--text-primary);
  line-height: 1.45;
}

/* Traffic Hijack Blueprint v3.2 */
.hijack-steps-grid {
  display: grid;
  gap: 12px;
}

.hijack-steps-grid > div:hover {
  transform: translateX(4px);
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(0,255,170,0.3) !important;
}

.intel-grid > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2) !important;
}

.sniper-grid .sniper-col {
  transition: all 0.3s ease;
}

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

.error-card {
  text-align: center;
  padding: 30px;
  color: #ef4444;
}
.error-card i { width: 40px; height: 40px; margin-bottom: 10px; }

/* Script-to-Shorts */
.shorts-script-card {
  background: linear-gradient(180deg, rgba(239,68,68,0.08), var(--bg-card));
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
}
.shorts-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(239,68,68,0.15); }
.shorts-style-badge { background: rgba(239,68,68,0.15); color: #f87171; padding: 4px 12px; border-radius: 99px; font-size: 0.8rem; font-weight: 700; }
.shorts-duration { font-size: 0.8rem; color: var(--text-muted); }
.shorts-script-body { font-size: 0.88rem; line-height: 1.8; color: var(--text-primary); background: rgba(0,0,0,0.2); padding: 20px; border-radius: 10px; margin-bottom: 16px; }
.shorts-actions { display: flex; gap: 10px; }


/* ============================================================
   PRODUCT SHOWCASE & VIDEO EXPLAINER  (index.html only)
   ============================================================ */

/* — section chrome — */
.showcase-section {
  padding: 80px 24px;
  background: var(--bg-app);
  overflow: hidden;
}
.showcase-container {
  max-width: 1180px;
  margin: 0 auto;
}
.showcase-header {
  text-align: center;
  margin-bottom: 40px;
}
.showcase-header p {
  max-width: 620px;
  margin: 12px auto 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.showcase-scroll {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.showcase-scroll::-webkit-scrollbar { height: 6px; }
.showcase-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.showcase-scroll::-webkit-scrollbar-track { background: transparent; }

.showcase-screen {
  flex: 0 0 min(820px, 87vw);
  scroll-snap-align: start;
}
.showcase-credit {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 14px;
  opacity: 0.7;
}

/* — mock browser chrome — */
.mock-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  font-size: 0.78rem;
}
.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mock-dot-red   { background: #ff5f57; }
.mock-dot-yellow { background: #febc2e; }
.mock-dot-green  { background: #28c840; }
.mock-url {
  flex: 1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.73rem;
  opacity: 0.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* — dashboard mock — */
.mock-body {
  background: #0c0e17;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  display: flex;
  height: 540px;
}

/* sidebar */
.mock-sidebar {
  width: 210px;
  min-width: 210px;
  background: #0f1220;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  gap: 10px;
}
.mock-logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mock-icon-zap {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #f97316, #a855f7);
  border-radius: 8px;
}
.mock-logo-text {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.mock-logo-text-accent {
  font-size: 0.62rem;
  color: #f97316;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.mock-nav-section {
  margin-top: 4px;
}
.mock-nav-heading {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.1em;
  padding: 8px 6px 3px;
}
.mock-nav-item {
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  padding: 5px 8px;
  border-radius: 6px;
  cursor: default;
}
.mock-nav-item:hover { background: rgba(255,255,255,0.04); }
.mock-nav-active {
  background: rgba(249,115,22,0.12);
  color: #f97316;
  font-weight: 600;
}
.mock-nav-bottom {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 4px;
}

/* main */
.mock-main {
  flex: 1;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.mock-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-page-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.mock-page-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.mock-credits-badge {
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.28);
  color: #f97316;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 99px;
}
.mock-credits-label {
  font-size: 0.6rem;
  opacity: 0.65;
  letter-spacing: 0.08em;
}

/* welcome hero */
.mock-welcome-hero {
  background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(168,85,247,0.07));
  border: 1px solid rgba(249,115,22,0.16);
  border-radius: 12px;
  padding: 20px 24px;
}
.mock-welcome-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #f97316;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.mock-welcome-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.mock-welcome-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.mock-connect-buttons {
  display: flex;
  gap: 10px;
}
.mock-btn-connect {
  background: #f97316;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: default;
}
.mock-btn-outline-ghost {
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: default;
}

/* stat grid */
.mock-grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mock-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.mock-stat-icon {
  width: 24px;
  height: 24px;
  background: rgba(249,115,22,0.16);
  border-radius: 6px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.mock-icon-search { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") center/contain no-repeat; }
.mock-icon-file   { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/%3E%3Cpath fill='%23fff' d='M14 2v6h6'/%3E%3C/svg%3E") center/contain no-repeat; }
.mock-icon-image  { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E") center/contain no-repeat; }
.mock-icon-brain  { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z'/%3E%3C/svg%3E") center/contain no-repeat; }
.mock-stat-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255,255,255,0.62);
}
.mock-stat-action {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 99px;
  letter-spacing: 0.08em;
}
.mock-tag-free {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.22);
}
.mock-tag-new {
  background: rgba(249,115,22,0.15);
  color: #fb923c;
  border: 1px solid rgba(249,115,22,0.22);
}

/* bottom row */
.mock-bottom-row {
  display: flex;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.mock-panel {
  flex: 1;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-y: auto;
}
.mock-panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}
.mock-panel-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mock-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 5px;
}
.mock-quick-btn {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 4px 10px;
  border-radius: 99px;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mock-btn-icon { font-size: 0.75rem; }
.mock-chat-row {
  margin-top: 8px;
}
.mock-chat-msg {
  background: rgba(249,115,22,0.07);
  border: 1px solid rgba(249,115,22,0.14);
  border-radius: 8px;
  padding: 8px 12px;
}
.mock-chat-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: #f97316;
  margin-bottom: 3px;
}
.mock-chat-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.45;
}
.mock-history-item {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.5);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock-history-empty {
  color: rgba(255,255,255,0.2);
  font-style: italic;
  font-size: 0.72rem;
  padding-top: 8px;
}
.mock-h-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.65;
  white-space: nowrap;
}

/* mock screen label */
.mock-screen-label {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.65;
  padding: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ===== TOOL PAGE MOCK ===== */
.mock-tool-page { padding: 22px 25px; }
.mock-tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}
.mock-tool-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: rgba(249,115,22,0.75);
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}
.mock-tool-page-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
}
.mock-tool-page-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 6px;
  max-width: 560px;
}
.mock-credits-simple {
  font-size: 0.72rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.22);
  padding: 4px 13px;
  border-radius: 99px;
  white-space: nowrap;
}
.mt-2 { margin-top: 6px; }

/* keyword grid */
.mock-keyword-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-label-sm {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.mock-input-bar {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
}
.mock-kw-params {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mock-kw-param {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 5px 13px;
  border-radius: 7px;
}
.mock-param-label { color: var(--text-muted); }
.mock-kw-btn {
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 11px;
  border-radius: 9px;
  cursor: default;
}
.mock-kw-go {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
}
.mock-kw-results {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mock-result-header-row {
  display: grid;
  grid-template-columns: 2fr 50px 56px 80px 50px;
  gap: 8px;
  font-size: 0.66rem;
  font-weight: 700;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0 10px 5px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mock-kw-row {
  display: grid;
  grid-template-columns: 2fr 50px 56px 80px 50px;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  align-items: center;
}
.mock-kw-row:hover { background: rgba(255,255,255,0.025); }
.mock-kw-kw  { color: rgba(255,255,255,0.82); word-break: break-word; }
.mock-kw-vol { color: rgba(255,255,255,0.5); font-size: 0.74rem; font-family: monospace; }
.mock-kw-opti {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 99px;
}
.mock-kw-opti[data-opti="Low"]  { background: rgba(34,197,94,0.12); color: #4ade80; }
.mock-kw-opti[data-opti="Med"]  { background: rgba(251,191,36,0.12); color: #fbbf24; }
.mock-kw-opti[data-opti="High"] { background: rgba(248,113,113,0.12); color: #f87171; }
.mock-kw-intent { color: var(--text-muted); font-size: 0.74rem; }
.mock-kw-score {
  text-align: right;
  font-weight: 800;
  font-size: 0.85rem;
}
.score-excellent { color: #4ade80; }
.score-great      { color: #60a5fa; }
.score-good       { color: #fbbf24; }

/* audit tool */
.mock-audit-input-area { margin-bottom: 22px; }
.mock-audit-input-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.mock-audit-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 7px;
  cursor: default;
  white-space: nowrap;
}
.mock-audit-score-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 22px;
  padding: 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
}
.mock-score-ring {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}
.mock-score-svg { width: 100%; height: 100%; }
.mock-score-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #f97316;
}
.mock-score-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.mock-score-factors { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.mock-factor {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mock-factor-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  width: 72px;
  flex-shrink: 0;
}
.mock-factor-bar {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  height: 6px;
}
.mock-factor-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #f97316, #a855f7);
}
.mock-factor-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  width: 22px;
  text-align: right;
  flex-shrink: 0;
}
.mock-audit-fixes { display: flex; flex-direction: column; gap: 8px; }
.mock-fix-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 11px;
  background: rgba(255,255,255,0.025);
  border-radius: 8px;
  border-left: 2px solid var(--border);
}
.mock-fix-badge-danger {
  font-size: 0.62rem;
  font-weight: 800;
  color: #f87171;
  background: rgba(248,113,113,0.12);
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.mock-fix-badge-warn {
  font-size: 0.62rem;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(251,191,36,0.12);
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.mock-fix-badge-safe {
  font-size: 0.62rem;
  font-weight: 800;
  color: #4ade80;
  background: rgba(74,222,128,0.12);
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.mock-fix-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* ===== VIDEO EXPLAINER ===== */
.video-section {
  padding: 80px 24px;
  background: var(--bg-app);
  text-align: center;
}
.video-wrapper {
  max-width: 850px;
  margin: 0 auto;
}
.video-embed-mock {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #0c0e17, #121525);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.video-play-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(249,115,22,0.16);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(249,115,22,0.3);
  transition: transform 0.18s ease, background 0.18s ease;
}
.video-play-btn:hover .video-play-ring {
  transform: scale(1.1);
  background: rgba(249,115,22,0.28);
}
.video-play-ring:hover .video-play-icon {
  margin-left: 6px;
}
.video-play-icon {
  pointer-events: none;
  transition: none;
}
.video-embed-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 18px;
  pointer-events: none;
  z-index: 1;
}
.video-embed-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.video-channel-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.82);
  background: rgba(0,0,0,0.48);
  backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 6px;
}
.video-embed-bottom { text-align: left; }
.video-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 3px;
}
.video-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.video-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 22px auto 0;
  text-align: left;
}
.vt-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.vt-time {
  font-size: 0.76rem;
  font-weight: 700;
  color: #f97316;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}
.vt-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* responsive tweaks */
@media (max-width: 768px) {
  .showcase-scroll { scroll-snap-type: x mandatory; }
  .showcase-screen { flex: 0 0 85vw; }
  .mock-grid-cards { grid-template-columns: repeat(2, 1fr); }
  .mock-bottom-row { flex-direction: column; }
  .mock-tool-header { flex-direction: column; gap: 10px; }
  .mock-keyword-grid { gap: 7px; }
  .mock-kw-results { display: none; }
  .mock-audit-score-row { flex-direction: column; align-items: flex-start; }
  .mock-result-header-row,
  .mock-kw-row { grid-template-columns: 2fr 40px 60px 70px 40px; }
  .vt-row { gap: 12px; }
}

@media (max-width: 480px) {
  .showcase-screen { flex: 0 0 92vw; }
  .mock-sidebar { display: none; }
  .mock-grid-cards { grid-template-columns: 1fr 1fr; }
}

/* ══ DASHBOARD RESPONSIVE BREAKPOINTS ══ */

/* Tablet: collapse sidebar, stack main grid */
@media (max-width: 1024px) {
  .sidebar { width: 0; overflow: hidden; padding: 0; border: none; }
  .sidebar.open { width: 260px; padding: 16px; border: 1px solid var(--border); }
  .main-content { margin-left: 0; }
  .war-main-grid { grid-template-columns: 1fr; }
  .phronesis-scan-column,
  .phronesis-recommend-column { border-right: none !important; border-bottom: 1px solid var(--border); }
  .agent-stats-row { flex-wrap: wrap; gap: 8px; }
  .agent-stat { flex: 1 1 45%; min-width: 140px; }
  .war-controls-row { flex-wrap: wrap; gap: 8px; }
  .control-group { flex: 1 1 auto; }
  .mobile-menu-btn { display: flex !important; }
}

/* Phone: single column, stack everything */
@media (max-width: 640px) {
  .sidebar.open { width: 100%; position: fixed; z-index: 100; }
  .top-header { flex-direction: column; gap: 8px; align-items: flex-start; }
  .header-right { flex-wrap: wrap; gap: 6px; }
  .stat-card { min-width: 100%; }
  .agent-stats-row { flex-direction: column; }
  .agent-stat { flex: 1 1 100%; }
  .war-controls-row { flex-direction: column; }
  .goal-input-row { flex-direction: column; }
  .goal-input { width: 100%; }
  .inbox-filters { flex-wrap: wrap; }
  .coach-chat-container { width: 100%; right: 0; border-radius: 0; }
  .page-title { font-size: 1.1rem; }
}

/* ══ LOADING SKELETONS ══ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.03) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}
.skeleton-text { height: 14px; width: 80%; margin-bottom: 8px; }
.skeleton-text.short { width: 50%; }
.skeleton-stat { height: 36px; width: 60px; margin-bottom: 4px; }
.skeleton-label { height: 10px; width: 90px; }
.skeleton-card { height: 80px; width: 100%; }
.skeleton-row { height: 20px; width: 100%; margin-bottom: 6px; }
@keyframes skeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ══ REUSABLE UTILITY CLASSES (replacing inline styles) ══ */
.flex-row { display: flex; align-items: center; gap: 8px; }
.flex-col { display: flex; flex-direction: column; gap: 8px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.text-xs { font-size: 10px; }
.text-sm { font-size: 11px; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-primary-var { color: var(--primary); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; letter-spacing: 0.5px; }
.p-8 { padding: 8px; }
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }
.rounded-8 { border-radius: 8px; }
.rounded-12 { border-radius: 12px; }
.border-subtle { border: 1px solid var(--border); }
.bg-glass { background: rgba(16,20,32,0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Checklist Fix Buttons */
.btn-fix-mini {
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa !important;
    border: 1px solid rgba(167, 139, 250, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-fix-mini:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: rgba(167, 139, 250, 0.4);
    transform: translateY(-1px);
}
.btn-fix-mini i {
    width: 12px;
    height: 12px;
}

/* ── Niche Discovery Mode UI ── */
.btn-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.discovery-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.discovery-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
