/* ==========================================================================
   Adobe Tracker — Black & Orange Modern Minimalist Design System
   UI Aesthetic: Deep Obsidian Matte, Crisp Charcoal Surfaces, Electric Orange Accents
   ========================================================================== */

:root {
  --bg-primary: #101114;
  --bg-secondary: #16171b;
  --bg-card: #1c1d22;
  --bg-card-hover: #23252b;
  --bg-surface: #18191e;
  --bg-input: #141519;
  
  --border-subtle: #282b33;
  --border-medium: #32353f;
  --border-accent: #ff5500;
  
  --accent-orange: #ff5500;
  --accent-orange-glow: rgba(255, 85, 0, 0.25);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-cyan: #38bdf8;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;
  
  --text-primary: #ffffff;
  --text-secondary: #9ba0aa;
  --text-tertiary: #636873;
  --text-muted: #475569;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px #282b33;
  --shadow-glow: 0 0 25px -5px rgba(255, 85, 0, 0.3);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 85, 0, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(255, 119, 51, 0.04), transparent);
  background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Typography & Display */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #a7f3d0 70%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-amber-text {
  background: linear-gradient(135deg, #fef08a 20%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--accent-emerald-glow);
  color: #042f2e;
}

.brand-text h1 {
  font-size: 1.2rem;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.75rem;
  color: #34d399;
  font-weight: 500;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.hero-pill-badge {
  background: var(--accent-emerald);
  color: #064e3b;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.hero h2 {
  font-size: 2.85rem;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p,
.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-chip-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

/* Search Box Container */
.search-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.search-box-card {
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.45rem;
  box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.06);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.search-box-card:focus-within {
  border-color: rgba(255, 85, 0, 0.4);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.65), 0 0 25px -4px rgba(255, 85, 0, 0.25);
}

.mode-switcher.segmented-control,
.mode-switcher {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 3px;
  margin-bottom: 1rem;
  gap: 2px;
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mode-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.mode-btn.active {
  background: rgba(255, 85, 0, 0.15);
  color: #ff5500;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 85, 0, 0.2);
}

.search-input-group {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.input-icon-wrap {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
  transition: color 0.2s ease;
}

.search-input-group:focus-within .search-icon {
  color: #ff5500;
}

.search-input {
  width: 100%;
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: rgba(255, 85, 0, 0.5);
  background: rgba(12, 16, 26, 0.95);
  box-shadow: 0 0 15px rgba(255, 85, 0, 0.15);
}

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

.quick-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
  justify-content: center;
}

.quick-tag-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.03em;
  margin-right: 0.25rem;
  display: inline-flex;
  align-items: center;
}

.quick-tag-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-tag-btn:hover {
  background: rgba(255, 85, 0, 0.12);
  color: #ff5500;
  border-color: rgba(255, 85, 0, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.15);
}

/* Metric / Stat Overview Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.stat-card {
  background: rgba(18, 24, 38, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.stat-card:hover::before {
  background: linear-gradient(90deg, #ff5500, transparent);
}

.stat-card-top-asset {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.08), rgba(18, 24, 38, 0.85));
}

.stat-card-top-asset:hover::before {
  background: linear-gradient(90deg, #f59e0b, transparent);
}

/* Opportunity Index & Badges */
.badge-opportunity {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.badge-gold {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-cyan {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.btn-pin-query {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.btn-pin-query:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.badge-amber {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-rose {
  background: rgba(244, 63, 94, 0.16);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.badge-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

/* AI Saturation Barometer */
.saturation-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
}

.saturation-bar-human {
  height: 100%;
  background: linear-gradient(90deg, #ff5500, #ff8833);
  transition: width 0.4s ease;
}

.saturation-bar-ai {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  transition: width 0.4s ease;
}

/* AI Seasonality Radar Section */
.seasonality-radar-card {
  margin: 1.5rem 0 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-card);
}

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

.seasonality-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.seasonality-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 85, 0, 0.12);
  border: 1px solid rgba(255, 85, 0, 0.35);
  color: #ff5500;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.seasonality-subtitle {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.btn-radar-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-radar-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.seasonality-carousel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  transition: all 0.3s ease;
}

@media (max-width: 1200px) {
  .seasonality-carousel {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .seasonality-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .seasonality-carousel {
    grid-template-columns: 1fr;
  }
}

.seasonality-card {
  background: rgba(18, 24, 38, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.seasonality-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.seasonality-card.golden-window {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.08), rgba(18, 24, 38, 0.75));
}

.seasonality-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
}

.seasonality-card-title-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
}

.seasonality-card-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.seasonality-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seasonality-card-formats {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.btn-track-season {
  width: 100%;
  background: rgba(255, 85, 0, 0.12);
  border: 1px solid rgba(255, 85, 0, 0.3);
  color: #ff5500;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-track-season:hover {
  background: #ff5500;
  color: #fff;
  border-color: #ff5500;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.35);
}

/* Multi-Engine Prompt Suite & Palette */
.prompt-suite-nav {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-primary);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  overflow-x: auto;
}

.prompt-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.prompt-tab-btn:hover {
  color: var(--text-primary);
}

.prompt-tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.palette-wrap {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.palette-swatch {
  flex: 1;
  min-width: 60px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.palette-swatch:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.palette-hex {
  font-size: 0.65rem;
  font-family: monospace;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  text-align: center;
}

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

.stat-title {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.35rem;
}

.top-asset-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
  cursor: pointer;
}

.top-asset-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-cover: cover;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.top-asset-info h4 {
  font-size: 0.82rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.top-asset-sales {
  font-size: 0.75rem;
  color: var(--accent-amber);
  font-weight: 700;
}

/* ==========================================================================
   Controls & Filter Bar / Tracker Command Deck
   ========================================================================== */
.controls-bar,
.tracker-control-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  background: rgba(18, 24, 38, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.tracker-control-deck .deck-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tracker-control-deck .deck-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .tracker-control-deck .deck-divider {
    display: none;
  }
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.8rem;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.filter-pill.active {
  background: rgba(255, 85, 0, 0.15);
  color: #ff5500;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 85, 0, 0.2);
}

.filter-pill-count {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 999px;
  color: var(--text-tertiary);
  margin-left: 2px;
  font-weight: 700;
}

.filter-pill.active .filter-pill-count {
  background: rgba(255, 85, 0, 0.25);
  color: #ff5500;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.select-control {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-control:focus {
  border-color: rgba(255, 85, 0, 0.5);
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.2);
}

.select-control option {
  background: #121826;
  color: #fff;
}

.view-toggle {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 2px;
  gap: 2px;
}

.view-btn {
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  padding: 0.35rem 0.65rem;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.view-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.view-btn.active {
  background: rgba(255, 85, 0, 0.15);
  color: #ff5500;
}

/* ==========================================================================
   Asset Cards Grid View
   ========================================================================== */
.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.asset-card {
  background: rgba(18, 24, 38, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.asset-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 85, 0, 0.1);
}

.asset-thumb-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  background: #080c14;
  overflow: hidden;
  cursor: pointer;
}

.asset-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.asset-card:hover .asset-thumb {
  transform: scale(1.05);
}

.asset-badges-top {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}

.badge-type {
  background: rgba(10, 14, 22, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.badge-vector {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.badge-ai {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.asset-bookmark-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10, 14, 22, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.asset-bookmark-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: scale(1.08);
}

.asset-bookmark-btn.saved {
  background: #ff5500;
  color: #fff;
  border-color: #ff5500;
  box-shadow: 0 2px 10px rgba(255, 85, 0, 0.4);
}

.asset-content {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.asset-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.35rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.asset-title:hover {
  color: #ff5500;
}

.asset-creator {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
  margin-bottom: 0.85rem;
}

.asset-dl-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #10b981;
}

.asset-velocity-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #ff5500;
  font-weight: 700;
  background: rgba(255, 85, 0, 0.1);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 85, 0, 0.2);
}

.asset-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.asset-card-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-prompt-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-prompt-card:hover {
  background: rgba(88, 192, 207, 0.15);
  border-color: rgba(88, 192, 207, 0.4);
  color: #58c0cf;
}

.btn-prompt-card.btn-motion-card {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.35);
  color: #38bdf8;
}

.btn-prompt-card.btn-motion-card:hover {
  background: rgba(14, 165, 233, 0.25);
  border-color: rgba(14, 165, 233, 0.6);
  color: #7dd3fc;
}

.btn-link-card {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-tertiary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-link-card:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Table View Container
   ========================================================================== */
.table-container {
  background: rgba(18, 24, 38, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: 3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.data-table th {
  padding: 0.85rem 1rem;
  color: var(--text-tertiary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 22, 0.8);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  color: var(--text-secondary);
}

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

.table-asset-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 320px;
}

.table-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

/* Loading Skeletons */
.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.6s infinite ease-in-out;
  border-radius: var(--radius-sm);
}

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

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#assetModal .modal-card {
  max-width: 1100px;
  width: 95vw;
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

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

.modal-body {
  padding: 1.5rem;
}

.keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}

.keyword-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Notification Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--accent-emerald);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h2 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-actions {
    flex-wrap: wrap;
  }
}

/* ==============================================================================
   ImStocker DNA & Microstock SEO Keyworder Styles
   ============================================================================== */
.nav-tab-group {
  display: flex;
  align-items: center;
  background: rgba(15, 22, 38, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}

.nav-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.nav-tab-btn:hover {
  color: var(--text-primary);
}

.nav-tab-btn.active {
  background: var(--bg-surface);
  color: #34d399;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Keyworder Workspace Container */
.keyworder-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  margin: 2rem 0 4rem;
}

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

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  background: rgba(16, 24, 40, 0.6);
  backdrop-filter: blur(12px);
  padding: 2rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
}

.upload-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  margin: 0 auto 1rem;
}

.file-preview-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.file-thumb-preview {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #090e17;
  border: 1px solid var(--border-subtle);
}

/* SEO Title Box */
.seo-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

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

.seo-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.title-char-counter {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.title-char-counter.optimal {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.title-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  resize: vertical;
  min-height: 75px;
}

.title-textarea:focus {
  outline: none;
  border-color: var(--accent-emerald);
}

/* ImStocker Keyword Chips & Rankings */
.kwd-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 90px;
  padding: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.im-kwd-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.15s ease;
  user-select: none;
}

.im-kwd-chip:hover {
  border-color: var(--border-medium);
}

.kwd-rank-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Rank score colors matching ImStocker standard */
.rank-dot-5 { background-color: #aa63d6; box-shadow: 0 0 6px rgba(170, 99, 214, 0.6); } /* Purple: 50%+ */
.rank-dot-4 { background-color: #6381d6; } /* Blue: 35-50% */
.rank-dot-3 { background-color: #10b981; } /* Emerald: 20-35% */
.rank-dot-2 { background-color: #d4d663; } /* Yellow: 10-20% */
.rank-dot-1 { background-color: #64748b; } /* Slate: <10% */
.rank-dot-tm { background-color: #ef4444; } /* Red: Trademark Alert */

.im-kwd-chip-remove {
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}

.im-kwd-chip-remove:hover {
  color: var(--accent-rose);
}

/* Candidate keyword selector chip */
.candidate-chip {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
}

.candidate-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-medium);
}

.candidate-chip.selected {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.candidate-chip.trademark-chip {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  cursor: not-allowed;
}

.badge-tm-alert {
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  margin-left: 3px;
}

.kwd-count-badge {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  margin-left: 2px;
}

/* Golden Window Counter (30-50 keywords) */
.golden-counter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.golden-badge {
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
}

.golden-badge.good {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.golden-badge.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.golden-badge.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Priority First 5 Keywords Box */
.priority-box {
  background: linear-gradient(135deg, rgba(170, 99, 214, 0.08), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(170, 99, 214, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.priority-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #c084fc;
  margin-bottom: 0.5rem;
}

/* ImStocker Workspace Cards */
.im-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease;
}

.im-card:hover {
  border-color: var(--border-medium);
}

.im-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}

/* Dropzone & Upload */
.seo-dropzone {
  border: 2px dashed rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.03);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.seo-dropzone:hover {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.08);
  transform: translateY(-2px);
}

.seo-dropzone.dragover {
  border-color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
  transform: scale(1.01);
}

.dropzone-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uploaded-file-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  margin-top: 0.85rem;
}

.uploaded-file-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #090e17;
  border: 1px solid var(--border-subtle);
}

.uploaded-file-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.uploaded-file-size {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.protection-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.page1-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.seo-title-area {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  resize: vertical;
  min-height: 70px;
  outline: none;
  transition: border-color 0.2s;
}

.seo-title-area:focus {
  border-color: var(--accent-purple);
}

.priority-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 38px;
  align-items: center;
}

.selected-kws-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 100px;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.candidate-kws-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-height: 320px;
  overflow-y: auto;
  padding: 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.cand-filters-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.cand-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.cand-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.cand-filter-btn.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.5);
  color: #c084fc;
}

.seo-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  position: sticky;
  bottom: 1.5rem;
  z-index: 40;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Metadata Studio & Marketplace Bar (Screenshot 1 & 3 Aesthetic)
   ========================================================================== */
.metadata-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
}

.btn-api-key {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid rgba(229, 169, 60, 0.35);
  color: #e5a93c;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-api-key:hover {
  background: rgba(229, 169, 60, 0.2);
  border-color: #e5a93c;
  transform: translateY(-1px);
}

.api-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
}

.api-status-badge .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.marketplace-tabs-container {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #090e17;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.35rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.mp-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mp-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.mp-tab-btn.active {
  background: #e5a93c;
  color: #0c1017;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(229, 169, 60, 0.3);
}

/* ==========================================================================
   API Keys Modal (Screenshot 1 Design)
   ========================================================================== */
.api-keys-modal-card {
  max-width: 520px;
  background: #0c1017;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

/* Switch Toggle (iOS style) */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s;
  border-radius: 34px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: 0.3s;
  border-radius: 50%;
}

.switch-toggle input:checked + .slider-round {
  background-color: #e5a93c;
}

.switch-toggle input:checked + .slider-round:before {
  transform: translateX(20px);
  background-color: #0c1017;
}

/* Provider Radio Group */
.provider-radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.provider-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.provider-btn .provider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s;
}

.provider-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.provider-btn.active {
  background: rgba(229, 169, 60, 0.08);
  border-color: #e5a93c;
  color: #fff;
}

.provider-btn.active .provider-dot {
  background: #e5a93c;
  box-shadow: 0 0 6px rgba(229, 169, 60, 0.8);
}

.styled-model-select {
  width: 100%;
  background: #090e17;
  border: 1px solid #e5a93c;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.styled-model-select option {
  background: #0c1017;
  color: #fff;
  padding: 0.5rem;
}

/* ==========================================================================
   Two-Column Batch Processing Layout
   ========================================================================== */
.batch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.batch-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-top: 0.75rem;
  overflow: hidden;
  display: none;
}

.batch-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #e5a93c, #10b981);
  transition: width 0.3s ease;
}

.batch-queue-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.batch-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.batch-card:hover {
  border-color: var(--border-medium);
}

.batch-card.generating {
  border-color: rgba(229, 169, 60, 0.5);
  box-shadow: 0 0 20px rgba(229, 169, 60, 0.15);
}

.batch-card.done {
  border-color: rgba(16, 185, 129, 0.4);
}

/* Left Column: Preview & Status */
.batch-preview-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.batch-thumb-wrap {
  aspect-ratio: 4/3;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #090e17;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.batch-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.batch-thumb:hover {
  transform: scale(1.03);
}

.batch-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
  background: #000;
}

.batch-thumb-video:hover {
  transform: scale(1.03);
}

.video-play-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(12, 16, 23, 0.75);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-full);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #38bdf8;
}

.batch-file-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.batch-filename {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.batch-file-meta {
  font-size: 0.74rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.batch-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.batch-status-badge.idle {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.batch-status-badge.generating {
  background: rgba(229, 169, 60, 0.15);
  color: #e5a93c;
  border: 1px solid rgba(229, 169, 60, 0.35);
}

.batch-status-badge.done {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.batch-status-badge.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Right Column: Metadata & Keywords */
.batch-metadata-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.batch-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.batch-title-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  outline: none;
  resize: vertical;
  min-height: 54px;
}

.batch-title-input:focus {
  border-color: #e5a93c;
}

.batch-desc-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  resize: vertical;
  min-height: 48px;
}

.batch-kws-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 75px;
  max-height: 180px;
  overflow-y: auto;
  padding: 0.65rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

@media (max-width: 860px) {
  .batch-card {
    grid-template-columns: 1fr;
  }
}

.batch-type-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  outline: none;
  width: 100%;
  margin-top: 0.35rem;
}

.batch-type-select:focus {
  border-color: #e5a93c;
}

.batch-asset-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.batch-asset-type-badge.video {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.batch-asset-type-badge.vector {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.batch-asset-type-badge.photo {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   Microstock SEO Studio Design System (StockMetaData PRO)
   Executive Obsidian Dark Glassmorphic Aesthetic
   ========================================================================== */
.gradient-text-purple {
  background: linear-gradient(135deg, #a073ee, #58c0cf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Title Bar */
.metadata-studio-header,
.seo-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.seo-studio-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.seo-studio-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.seo-studio-title-row h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}

.seo-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.seo-status-chip .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDot 1.6s infinite;
}

.seo-studio-subtitle {
  font-size: 0.84rem;
  color: var(--text-tertiary);
  max-width: 650px;
  line-height: 1.45;
  margin: 0;
}

.seo-studio-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Header Credit Pill */
.meta-credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.meta-credit-pill:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.meta-credit-pill .coin-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.btn-credit-add {
  background: linear-gradient(135deg, #ffe600, #f59e0b);
  border: none;
  color: #0c1017;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-credit-add:hover {
  transform: scale(1.05);
}

.btn-seo-header {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-seo-header:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.btn-seo-header.btn-prompt-lens {
  border-color: rgba(88, 192, 207, 0.35);
  color: #58c0cf;
}

.btn-seo-header.btn-prompt-lens:hover {
  background: rgba(88, 192, 207, 0.12);
  border-color: #58c0cf;
}

/* ==========================================================================
   Unified Studio Command Deck
   ========================================================================== */
.seo-control-deck {
  background: rgba(18, 24, 38, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.deck-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.deck-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-right: 0.25rem;
}

.deck-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .deck-divider {
    display: none;
  }
}

.segmented-control {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.meta-filter-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-filter-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.meta-filter-btn.active {
  background: rgba(255, 85, 0, 0.15);
  color: #ff5500;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 85, 0, 0.2);
}

.btn-deck-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-deck-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-deck-action.btn-deck-primary,
.meta-action-btn.highlight {
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid #10b981;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-deck-action.btn-deck-primary:hover,
.meta-action-btn.highlight:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

/* Custom Slide Switches for Deck */
.deck-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.deck-toggle-label input {
  display: none;
}

.custom-switch {
  width: 28px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  position: relative;
  transition: background-color 0.2s ease;
  display: inline-block;
  vertical-align: middle;
}

.custom-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.deck-toggle-label input:checked + .custom-switch {
  background: #ff5500;
}

.deck-toggle-label input:checked + .custom-switch::after {
  transform: translateX(12px);
}

.deck-toggle-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Marketplace Select Wrap */
.deck-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0 0.65rem;
}

.deck-select,
.meta-select-compact {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.25rem;
  cursor: pointer;
  outline: none;
}

.deck-select option,
.meta-select-compact option {
  background: #121826;
  color: #fff;
}

/* Fallback for legacy class aliases */
.meta-fieldsets-bar {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.custom-fieldset {
  background: rgba(18, 24, 38, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
}
.custom-legend {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 0.45rem;
}

/* ==========================================================================
   Modern Interactive Drag & Drop Zone
   ========================================================================== */
.seo-dropzone.meta-dropzone {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(255, 85, 0, 0.04) 0%, rgba(18, 24, 38, 0.65) 100%) !important;
  border: 2px dashed rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-xl);
  padding: 2.75rem 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.seo-dropzone.meta-dropzone:hover {
  border-color: rgba(255, 85, 0, 0.45) !important;
  background: radial-gradient(circle at 50% 50%, rgba(255, 85, 0, 0.08) 0%, rgba(18, 24, 38, 0.8)) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.seo-dropzone.meta-dropzone.dragover {
  border-color: #ff5500 !important;
  background: rgba(255, 85, 0, 0.12) !important;
  box-shadow: 0 0 35px rgba(255, 85, 0, 0.3) !important;
  transform: scale(1.008);
}

.dropzone-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 85, 0, 0.1);
  border: 1px solid rgba(255, 85, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff5500;
  margin: 0 auto 1.15rem;
  transition: transform 0.25s ease;
}

.seo-dropzone.meta-dropzone:hover .dropzone-icon-wrap {
  transform: scale(1.08) translateY(-2px);
  background: rgba(255, 85, 0, 0.18);
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.35);
}

.dropzone-icon-svg {
  width: 28px;
  height: 28px;
}

.dropzone-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.dropzone-browse-link {
  color: #ff5500;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s;
}

.dropzone-browse-link:hover {
  color: #ff7733;
}

.dropzone-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.dropzone-format-pill {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.dropzone-sub {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Queue Toolbar & View Modes
   ========================================================================== */
.meta-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.75rem 1.15rem;
  background: rgba(18, 24, 38, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.queue-meta-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.queue-count-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}

.queue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5500;
  box-shadow: 0 0 8px #ff5500;
}

.protection-pill.target-pill {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
  color: #38bdf8;
}

.protection-pill.tm-pill {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-emerald);
}

.queue-meta-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.view-switch-group {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 2px;
}

.view-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-switch-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-clear-queue {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #fb7185;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-clear-queue:hover {
  background: rgba(244, 63, 94, 0.18);
  border-color: #fb7185;
}

/* ==========================================================================
   Modern Microstock SEO Table
   ========================================================================== */
.meta-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(18, 24, 38, 0.75);
  backdrop-filter: blur(12px);
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.meta-table thead {
  background: rgba(14, 18, 28, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.meta-table th {
  padding: 0.85rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  text-align: left;
  white-space: nowrap;
}

.meta-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.15s ease;
  position: relative;
}

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

.meta-table td {
  padding: 0.75rem;
  vertical-align: top;
}

@keyframes metaScanline {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.meta-table tr.generating-row {
  background: rgba(255, 85, 0, 0.06) !important;
  position: relative;
}

.meta-table tr.generating-row td {
  border-top: 1px solid rgba(255, 85, 0, 0.4);
  border-bottom: 1px solid rgba(16, 185, 129, 0.4);
}

.meta-table tr.generating-row::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 85, 0, 0.2), rgba(16, 185, 129, 0.25), transparent);
  animation: metaScanline 1.8s infinite linear;
  pointer-events: none;
}

/* Table Inputs */
.meta-table-title-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  padding: 0.45rem 0.65rem;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  min-height: 48px;
}

.meta-table-title-input:focus {
  border-color: #ff5500;
  background: rgba(255, 85, 0, 0.04);
}

.meta-table-desc-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.8rem;
  font-family: inherit;
  padding: 0.45rem 0.65rem;
  outline: none;
  resize: vertical;
  min-height: 48px;
}

.meta-table-desc-input:focus {
  border-color: #58c0cf;
}

/* Bottom Sticky Control Dock */
.meta-control-dock {
  position: sticky;
  bottom: 1.25rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 24, 38, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 85, 0, 0.15);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-top: 1.5rem;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.dock-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dock-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.dock-status-dot.pulse {
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 1.5s infinite;
}

.dock-status-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.dock-separator {
  color: rgba(255, 255, 255, 0.2);
}

.dock-lifetime {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.dock-center {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 480px;
}

.dock-progress-bar-wrap {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.dock-progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff5500, #10b981);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.7);
}

.dock-progress-percent {
  font-size: 0.78rem;
  font-weight: 800;
  color: #10b981;
  min-width: 38px;
}

.dock-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-dock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-dock-reset {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

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

.btn-dock-stop {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.btn-dock-stop:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-dock-pause {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.btn-dock-pause:hover {
  background: rgba(245, 158, 11, 0.2);
}

.btn-dock-start {
  background: linear-gradient(135deg, #ff5500, #ea580c);
  border: 1px solid #ff5500;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 85, 0, 0.4);
}

.btn-dock-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 85, 0, 0.6);
}

/* Credit Modal Specifics */
.credit-balance-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(160, 115, 238, 0.15), rgba(88, 192, 207, 0.1));
  border: 1px solid rgba(160, 115, 238, 0.35);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.25rem;
}

.credit-mode-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
}

.credit-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.credit-package-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 0.85rem;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.credit-package-card:hover {
  border-color: rgba(160, 115, 238, 0.5);
  transform: translateY(-2px);
  background: rgba(160, 115, 238, 0.08);
}

.credit-package-card.popular {
  border-color: #a073ee;
  background: rgba(160, 115, 238, 0.12);
  box-shadow: 0 0 20px rgba(160, 115, 238, 0.2);
}

.pkg-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #a073ee, #7c3aed);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.pkg-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.pkg-credits {
  font-size: 1.55rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.pkg-unit {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  margin-bottom: 0.65rem;
}

.pkg-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffe600;
  margin-bottom: 0.85rem;
}

.btn-select-pkg {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-medium);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-select-pkg:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-select-pkg.highlight {
  background: linear-gradient(135deg, #a073ee, #7c3aed);
  border-color: #a073ee;
}

/* Success Modal Styles */
.success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(88, 192, 207, 0.15);
  border: 2px solid #58c0cf;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 25px rgba(88, 192, 207, 0.4);
}

.complete-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.complete-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
}

.complete-stat-box .stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.complete-stat-box .stat-lbl {
  display: block;
  font-size: 0.68rem;
  color: var(--text-tertiary);
  margin-top: 0.2rem;
  text-transform: uppercase;
}

/* Meta Table Cells & Widgets */
.meta-table-thumb-wrap {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(160, 115, 238, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}

.meta-table-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}

.meta-table-thumb-img:hover {
  transform: scale(1.08);
}

.meta-table-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.meta-table-kws-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  max-height: 84px;
  overflow-y: auto;
  padding: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.meta-kw-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(160, 115, 238, 0.12);
  border: 1px solid rgba(160, 115, 238, 0.3);
  color: #c084fc;
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 3px;
}

.meta-kw-chip .kw-remove {
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-weight: 700;
}

.meta-kw-chip .kw-remove:hover {
  color: var(--accent-rose);
}

.meta-kw-more {
  font-size: 0.65rem;
  color: #58c0cf;
  padding: 1px 4px;
}

.meta-kw-inline-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 6px;
  outline: none;
}

.meta-kw-inline-input:focus {
  border-color: #a073ee;
}

.btn-copy-inline {
  background: transparent;
  border: none;
  color: #a073ee;
  font-size: 0.68rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.btn-copy-inline:hover {
  color: #58c0cf;
}

.char-count {
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

.char-count.good {
  color: var(--accent-emerald);
  font-weight: 700;
}

.btn-table-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-table-action.download {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.btn-table-action.download:hover {
  background: rgba(16, 185, 129, 0.28);
}

.btn-table-action.generate {
  background: rgba(160, 115, 238, 0.15);
  border-color: rgba(160, 115, 238, 0.35);
  color: #c084fc;
}

.btn-table-action.generate:hover {
  background: rgba(160, 115, 238, 0.28);
}

.btn-table-action.delete {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.btn-table-action.delete:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* ==============================================================================
   30-Year Microstock Veteran Suite Styles
   ============================================================================== */

/* Trademark Shield & Rejection Guard */
.trademark-shield-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.trademark-shield-banner.safe {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.trademark-shield-banner.risk {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

.shield-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shield-icon-circle.safe {
  background: rgba(16, 185, 129, 0.15);
}

.shield-icon-circle.risk {
  background: rgba(239, 68, 68, 0.2);
  animation: pulse-danger 2s infinite ease-in-out;
}

@keyframes pulse-danger {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.trademark-risk-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.trademark-risk-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  flex-wrap: wrap;
}

.trademark-risk-item .term-flagged {
  color: #f87171;
  text-decoration: line-through;
  font-weight: 700;
}

.trademark-risk-item .term-safe {
  color: #34d399;
  font-weight: 700;
}

.trademark-risk-item .term-cat {
  margin-left: auto;
  color: var(--text-tertiary);
  font-size: 0.68rem;
}

.longevity-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.badge-rejection-risk {
  background: #f43f5e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  animation: pulse-danger 1.5s infinite ease-in-out;
}

/* Series & Collection Multiplier Blueprint */
.series-multiplier-section {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.series-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.series-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.series-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 1080px) {
  .series-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.series-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.series-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.series-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.series-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.12);
  padding: 2px 5px;
  border-radius: 3px;
  line-height: 1;
}

.series-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.series-card-specs {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  display: block;
  margin-top: 2px;
}

.series-card-desc {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0.4rem 0 0.6rem;
  flex: 1;
}

.series-card-persona {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.series-card-footer {
  display: flex;
  gap: 0.4rem;
}

.btn-series-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-series-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-series-action.highlight {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.btn-series-action.highlight:hover {
  background: rgba(168, 85, 247, 0.25);
  color: #fff;
}

/* ==============================================================================
   Autonomous Market Intelligence & Multi-Marketplace Styles
   ============================================================================== */

/* Market Intelligence Bar */
.market-intelligence-bar {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.market-intel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.85rem;
}

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

.intel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.intel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  opacity: 0.8;
}

.intel-card.vacuum-card::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.intel-card.buyer-card::before {
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
}

.intel-card.contrast-card::before {
  background: linear-gradient(90deg, #a855f7, #ec4899);
}

.intel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.intel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  gap: 0.5rem;
}

.intel-icon {
  font-size: 1.1rem;
}

.intel-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.intel-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  flex: 1;
}

.intel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.intel-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.intel-action-text {
  font-size: 0.72rem;
  color: #34d399;
  font-weight: 600;
}

/* Golden First-5 Keywords Strip */
.golden-keywords-strip {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.07), rgba(245, 158, 11, 0.03));
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.15rem;
}

.golden-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-copy-golden {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-golden:hover {
  background: rgba(251, 191, 36, 0.28);
  color: #fff;
}

.golden-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.golden-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.golden-tag-chip:hover {
  border-color: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.golden-tag-rank {
  font-size: 0.65rem;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

.golden-tag-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.golden-tag-score {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

.keyword-badge.golden {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  font-weight: 700;
}

/* Multi-Marketplace Export Dropdown */
.export-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.export-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  min-width: 280px;
  padding: 0.45rem;
  z-index: 95;
  display: none;
  flex-direction: column;
  gap: 3px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.export-dropdown-menu.show {
  display: flex;
}

.export-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s ease, transform 0.1s ease;
}

.export-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.menu-item-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.menu-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.menu-item-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.menu-item-sub {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Master Prompt & Batch 50-100 Concepts CSV Studio
   ========================================================================== */
.prompt-tab-btn.motion-tab-btn {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(14, 165, 233, 0.18));
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #38bdf8;
  font-weight: 700;
}

.prompt-tab-btn.motion-tab-btn:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(14, 165, 233, 0.3));
  color: #fff;
  border-color: rgba(6, 182, 212, 0.6);
}

.prompt-tab-btn.motion-tab-btn.active {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #fff;
  border-color: #06b6d4;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.4);
}

.prompt-tab-btn.master-tab-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.18));
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-weight: 700;
}

.prompt-tab-btn.master-tab-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.3));
  color: #fff;
  border-color: rgba(245, 158, 11, 0.6);
}

.prompt-tab-btn.master-tab-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border-color: #f59e0b;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.master-engine-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.master-engine-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.master-engine-pill.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
}

.batch-concept-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  transition: background 0.15s ease;
}

.batch-concept-item:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.batch-concept-item:hover {
  background: rgba(245, 158, 11, 0.06);
}

.batch-concept-index {
  font-family: monospace;
  font-weight: 700;
  color: #fbbf24;
  width: 28px;
  flex-shrink: 0;
}

.batch-concept-name {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 0.5rem;
}

.batch-concept-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.batch-btn-copy {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
}

.batch-btn-copy:hover {
  color: #fff;
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
}

.count-pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.count-pill-btn.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

/* ==============================================================================
   Top 10 Priority Rankers & Tiered Keyword System (Adobe Stock Search Engine)
   ============================================================================== */
.top10-indicator-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e879f9;
  letter-spacing: 0.03em;
}

.btn-clean-junk-sm {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clean-junk-sm:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: #c084fc;
  color: #fff;
  transform: translateY(-1px);
}

.meta-kw-chip.rank-slot-super {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(236, 72, 153, 0.45);
  color: #f472b6;
  font-weight: 600;
}

.meta-kw-chip.rank-slot-anchor {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 600;
}

.rank-num {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0 3px;
  border-radius: 2px;
  margin-right: 2px;
}

.rank-num.super {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.15);
}

.rank-num.anchor {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.15);
}

/* 2-Column Card Top 10 Box */
.batch-top10-rankers-box {
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.55rem;
}

.top10-header-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #c084fc;
  letter-spacing: 0.02em;
}

.top10-algo-pill {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: #f472b6;
}

.tier-label-sub {
  font-size: 0.66rem;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-right: 2px;
}

.rank-chip-super {
  background: rgba(236, 72, 153, 0.12) !important;
  border-color: rgba(236, 72, 153, 0.35) !important;
  color: #f472b6 !important;
  font-size: 0.72rem;
}

.rank-chip-anchor {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #38bdf8 !important;
  font-size: 0.72rem;
}

.rank-badge {
  font-weight: 800;
  font-size: 0.68rem;
  margin-right: 2px;
}

.rank-badge.super {
  color: #ec4899;
}

.rank-badge.anchor {
  color: #38bdf8;
}

