/* === Musical SEO — Component Styles === */

/* ═══════════════════════════════════════════════
   LANDING PAGE STYLES (Green #10B981 accent)
   ═══════════════════════════════════════════════ */

.landing-page {
  display: block;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

.lp-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── Fixed Nav ── */
.lp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

.lp-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.lp-nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.lp-nav-brand svg { width: 28px; height: 28px; }
.lp-nav-brand span {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.lp-nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.lp-nav-links a:hover { color: var(--color-text); }

.lp-btn-cta-sm {
  background: #10B981 !important;
  color: #fff !important;
  padding: var(--space-1) var(--space-4) !important;
  border-radius: var(--radius-full) !important;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  border: none !important;
}

.lp-btn-cta-sm:hover {
  background: #34D399 !important;
}

.lp-nav-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
}

.lp-nav-hamburger svg { width: 24px; height: 24px; }

/* ── Hero ── */
.lp-hero {
  position: relative;
  padding: 140px 0 80px;
  text-align: center;
  overflow: hidden;
}

.lp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(16, 185, 129, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 30% 70%, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
  animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.lp-hero-inner { position: relative; z-index: 1; }

.lp-hero-headline {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, #10B981 0%, #34D399 40%, #38BDF8 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 6s ease infinite;
}

@keyframes gradientText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.lp-hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto var(--space-8);
}

.lp-hero-ctas {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.lp-btn-primary {
  background: #10B981 !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: var(--space-3) var(--space-6) !important;
  border-radius: var(--radius-full) !important;
  border: none !important;
  font-size: var(--text-base) !important;
  transition: all var(--transition-fast) !important;
}

.lp-btn-primary:hover {
  background: #34D399 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.lp-btn-ghost {
  background: transparent !important;
  color: var(--color-text-secondary) !important;
  border: 1px solid var(--color-border) !important;
  padding: var(--space-3) var(--space-6) !important;
  font-size: var(--text-base) !important;
  border-radius: var(--radius-full) !important;
  font-weight: 500 !important;
  transition: all var(--transition-fast) !important;
  text-decoration: none !important;
}

.lp-btn-ghost:hover {
  border-color: var(--color-text-muted) !important;
  color: var(--color-text) !important;
}

.lp-btn-lg {
  padding: var(--space-4) var(--space-8) !important;
  font-size: var(--text-lg) !important;
}

.lp-hero-trust {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.lp-hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.lp-stat {
  text-align: center;
}

.lp-stat-number {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-mono);
}

.lp-stat-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-1);
}

/* ── Social Proof Bar ── */
.lp-social-proof {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) 0;
}

.lp-social-label {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.lp-logos {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  align-items: center;
}

.lp-logo-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

.lp-logo-item svg {
  width: 24px;
  height: 24px;
  opacity: 0.6;
}

/* ── Section Shared ── */
.lp-section {
  padding: 80px 0;
}

.lp-section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.lp-section-sub {
  text-align: center;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-10);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Problem / Solution ── */
.lp-ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.lp-ps-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.lp-ps-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.lp-ps-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-ps-icon svg { width: 20px; height: 20px; }

.lp-ps-icon-problem {
  background: rgba(248, 113, 113, 0.15);
  color: #F87171;
}

.lp-ps-icon-solution {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.lp-ps-item h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.lp-ps-item p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ── Features Grid ── */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.lp-feature-card {
  position: relative;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.lp-feature-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.1);
}

.lp-feature-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lp-badge-pro {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
}

.lp-badge-free {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.lp-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.lp-feature-icon svg { width: 22px; height: 22px; }

.lp-feature-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.lp-feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ── Pricing ── */
.lp-pricing { background: rgba(17, 24, 39, 0.3); }

.lp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  max-width: 900px;
  margin: 0 auto;
}

.lp-pricing-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
}

.lp-pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.lp-pricing-featured {
  border-color: #10B981;
  box-shadow: 0 0 0 1px #10B981;
}

.lp-pricing-best {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #10B981;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 14px;
  border-radius: var(--radius-full);
}

.lp-pricing-card h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.lp-pricing-price {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-mono);
  margin-bottom: var(--space-4);
}

.lp-pricing-price span {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}

.lp-pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  text-align: left;
}

.lp-pricing-features li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding-left: var(--space-6);
  position: relative;
}

.lp-pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #10B981;
  font-weight: 700;
}

/* ── FAQ ── */
.lp-faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.lp-faq-item {
  border-bottom: 1px solid var(--color-border);
}

.lp-faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.lp-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.lp-faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-text-muted);
}

.lp-faq-item.open .lp-faq-chevron {
  transform: rotate(180deg);
}

.lp-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.lp-faq-item.open .lp-faq-a {
  max-height: 200px;
}

.lp-faq-a p {
  padding-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ── Final CTA ── */
.lp-final-cta {
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.05) 100%);
}

.lp-final-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.lp-final-cta p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

/* ── Footer ── */
.lp-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-6) 0;
}

.lp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.lp-footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--text-sm);
}

.lp-footer-links {
  display: flex;
  gap: var(--space-4);
}

.lp-footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.lp-footer-links a:hover { color: var(--color-text); }

.lp-footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ── Fade-in Animation ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Landing Page Responsive ── */
@media (max-width: 768px) {
  .lp-nav-links { display: none; }
  .lp-nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(11, 15, 25, 0.95);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-6);
    gap: var(--space-3);
  }
  .lp-nav-hamburger { display: flex; }

  .lp-hero { padding: 100px 0 60px; }
  .lp-hero-stats { gap: var(--space-6); }
  .lp-ps-grid { grid-template-columns: 1fr; }
  .lp-features-grid { grid-template-columns: 1fr; }
  .lp-pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
  .lp-section { padding: 60px 0; }
  .lp-footer-inner { flex-direction: column; text-align: center; }
  .lp-footer-links { justify-content: center; }
}

/* ═══════════════════════════════════════════════
   FULL-PAGE AUTH SCREEN (VidIQ-style)
   ═══════════════════════════════════════════════ */

.auth-fullpage {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-bg);
}

.auth-fullpage.active {
  display: flex;
}

.auth-fullpage-inner {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Left: Testimonial */
.auth-testimonial {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) var(--space-10);
  max-width: 50%;
}

.auth-testimonial-quote {
  margin-bottom: var(--space-6);
}

.auth-testimonial-quote svg {
  width: 48px;
  height: 36px;
}

.auth-testimonial-text {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.auth-testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.auth-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
}

.auth-testimonial-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.auth-testimonial-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Right: Auth Card */
.auth-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 50%;
}

.auth-card-inner {
  width: 100%;
  max-width: 420px;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.auth-card-logo {
  margin-bottom: var(--space-4);
}

.auth-card-logo svg {
  width: 40px;
  height: 40px;
}

.auth-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.auth-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.auth-form { display: flex; flex-direction: column; gap: var(--space-4); }

.form-group { display: flex; flex-direction: column; gap: var(--space-2); }

.form-group label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-3);
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

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

.auth-error {
  background: var(--color-error-muted);
  color: var(--color-error);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  display: none;
}

.auth-error.visible { display: block; }

.auth-toggle {
  text-align: center;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.auth-toggle a {
  color: #10B981;
  font-weight: 500;
}
.auth-toggle a:hover {
  color: #34D399;
}

.auth-back-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: color var(--transition-fast);
  justify-content: center;
}
.auth-back-btn:hover { color: var(--color-text); }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  line-height: 1.4;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #10B981;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.checkbox-label a { color: #10B981; text-decoration: underline; }
.checkbox-label a:hover { color: #34D399; }

/* Auth fullpage responsive */
@media (max-width: 768px) {
  .auth-fullpage-inner {
    flex-direction: column;
  }
  .auth-testimonial {
    display: none;
  }
  .auth-card {
    max-width: 100%;
    padding: var(--space-4);
  }
  .auth-card-inner {
    max-width: 100%;
  }
}


/* ═══════════════════════════════════════════════
   BUTTONS (VidIQ-style pill buttons)
   ═══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1.4;
}

.btn-accent {
  background: #10B981;
  color: #fff;
  font-weight: 600;
}

.btn-accent:hover {
  background: #34D399;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

/* Legacy btn-primary maps to accent */
.btn-primary {
  background: #10B981;
  color: #fff;
}

.btn-primary:hover {
  background: #34D399;
}

.btn-secondary {
  background: var(--color-bg-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

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

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: var(--space-1) var(--space-2);
}

.btn-ghost:hover {
  background: var(--color-bg-hover);
  color: var(--color-text);
}

.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
}

.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-secondary);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--color-bg-hover);
  color: var(--color-text);
}


/* ═══════════════════════════════════════════════
   TOP NAVIGATION BAR (VidIQ-style)
   ═══════════════════════════════════════════════ */

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-bg-raised);
  border-bottom: 1px solid var(--color-border);
  height: 56px;
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-4);
  max-width: 1440px;
  margin: 0 auto;
}

.topnav-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.topnav-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.topnav-hamburger svg { width: 22px; height: 22px; }

.topnav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}
.topnav-brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.topnav-brand span {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.topnav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 450;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.topnav-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: none; /* Hidden on desktop, shown on mobile */
}

.topnav-link:hover {
  color: var(--color-text);
  background: var(--color-bg-hover);
}

.topnav-link.active {
  color: #10B981;
  font-weight: 600;
}

.topnav-link.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: var(--space-3);
  right: var(--space-3);
  height: 2px;
  background: #10B981;
  border-radius: 2px;
}

.topnav-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.usage-badge {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
}

.usage-badge .count { color: #10B981; font-weight: 600; }

/* Avatar & Dropdown */
.topnav-avatar-wrap {
  position: relative;
}

.topnav-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-xs);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.topnav-avatar:hover {
  border-color: #10B981;
}

.topnav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  padding: var(--space-2);
  animation: dropIn 0.15s ease;
}

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

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

.topnav-dropdown-user {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-2);
}

.topnav-dropdown-email {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topnav-dropdown-plan {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.topnav-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.topnav-dropdown-item:hover {
  background: var(--color-bg-hover);
  color: var(--color-text);
}

.topnav-dropdown-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Mobile overlay */
.topnav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 40;
}
.topnav-mobile-overlay.visible { display: block; }


/* ═══════════════════════════════════════════════
   DASHBOARD LAYOUT (Full-width below top nav)
   ═══════════════════════════════════════════════ */

.dashboard-app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(56px + var(--space-6)) var(--space-6) var(--space-6);
  background: var(--color-bg);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* ── View Container ── */
.view { display: none; }
.view.active { display: block; }

.view-header {
  margin-bottom: var(--space-6);
}

.view-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.view-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ── Unified Search Bar ── */
.unified-search-wrap {
  margin-bottom: var(--space-6);
}
.unified-search-bar {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 6px 6px 6px 16px;
  gap: 12px;
  transition: border-color 0.2s;
}
.unified-search-bar:focus-within {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.unified-search-icon {
  flex-shrink: 0;
  color: var(--color-text-secondary);
}
.unified-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text);
  font-size: var(--text-base);
  padding: 10px 0;
}
.unified-search-input::placeholder {
  color: var(--color-text-secondary);
}
.unified-search-btn {
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: var(--text-sm);
}
.unified-search-hint {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-top: var(--space-2);
  padding-left: var(--space-2);
}

/* ── Free/Pro Mode Toggle ── */
.unified-mode-toggle {
  display: flex;
  flex-shrink: 0;
  background: var(--color-bg);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.mode-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.mode-btn:hover {
  color: var(--color-text);
  background: var(--color-bg-surface);
}
.mode-btn.active[data-mode="free"] {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}
.mode-btn.active[data-mode="paid"] {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
}
.mode-btn svg {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .unified-mode-toggle {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .unified-search-bar {
    flex-wrap: wrap;
  }
}

/* ── Unified Tabs ── */
.unified-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  overflow-x: auto;
  padding-bottom: var(--space-1);
}
.unified-tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.unified-tab:hover {
  border-color: var(--color-text-secondary);
  color: var(--color-text);
}
.unified-tab.active {
  background: #10B981;
  border-color: #10B981;
  color: #000;
}

/* ── Unified Sections ── */
.unified-section {
  margin-bottom: var(--space-6);
}
.unified-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}
.unified-section-header h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
}

.unified-loading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  padding: var(--space-4);
}
.unified-loading .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-border);
  border-top-color: #10B981;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.unified-error {
  color: #EF4444;
  font-size: var(--text-sm);
  padding: var(--space-3);
  background: rgba(239, 68, 68, 0.08);
  border-radius: 8px;
}

/* Unified result cards */
.unified-track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}
.unified-track-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-4);
  transition: border-color 0.15s;
}
.unified-track-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
}
.unified-track-card h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--color-text);
}
.unified-track-card h4 a {
  color: var(--color-text);
  text-decoration: none;
}
.unified-track-card h4 a:hover {
  color: #10B981;
}
.unified-track-card p {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}
.unified-track-card .track-meta {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}
.unified-track-card .track-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── KPI Cards ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.kpi-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  transition: all var(--transition-base);
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(16, 185, 129, 0.3);
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-icon-searches { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.kpi-icon-total { background: rgba(56, 189, 248, 0.12); color: #38BDF8; }
.kpi-icon-plan { background: rgba(251, 191, 36, 0.12); color: #FBBF24; }
.kpi-icon-member { background: rgba(168, 85, 247, 0.12); color: #A855F7; }

.kpi-body { flex: 1; min-width: 0; }

.kpi-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.kpi-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums lining-nums;
  font-family: var(--font-mono);
}

.kpi-delta {
  font-size: var(--text-xs);
  font-weight: 500;
  margin-top: var(--space-1);
}

.kpi-delta.up { color: var(--color-success); }
.kpi-delta.down { color: var(--color-error); }
.kpi-delta.flat { color: var(--color-text-muted); }

/* ── Cards / Panels ── */
.card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-5);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: rgba(30, 41, 59, 0.8);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

/* ── Quick Actions (list-style for dashboard) ── */
.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.quick-action-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-action-row:hover {
  background: var(--color-bg-hover);
}

.quick-action-row .quick-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-action-row .quick-action-icon svg { width: 18px; height: 18px; }

.quick-action-text { flex: 1; min-width: 0; }
.quick-action-text h3 { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.quick-action-text p { font-size: var(--text-xs); color: var(--color-text-muted); }

/* Legacy quick-action cards (old grid style — still used by some JS) */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.quick-action {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-5);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}

.quick-action:hover {
  border-color: #10B981;
  box-shadow: 0 0 0 1px #10B981;
  transform: translateY(-3px);
}

.quick-action-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-action-icon svg { width: 20px; height: 20px; }

.quick-action h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.quick-action p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── Search Input ── */
.search-bar {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

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

.search-input-wrap svg {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
}

.search-input {
  width: 100%;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10);
  color: var(--color-text);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

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

/* ── Data Tables ── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table th {
  background: var(--color-bg-surface);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.data-table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text);
  vertical-align: middle;
}

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

.data-table tbody tr:hover {
  background: var(--color-bg-hover);
}

.data-table .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums lining-nums;
}

.data-table .text-muted { color: var(--color-text-muted); }
.data-table .text-success { color: var(--color-success); }
.data-table .text-warning { color: var(--color-warning); }
.data-table .text-error { color: var(--color-error); }

/* ── Tags / Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
}

.badge-primary {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.badge-success {
  background: var(--color-success-muted);
  color: var(--color-success);
}

.badge-warning {
  background: var(--color-warning-muted);
  color: var(--color-warning);
}

.badge-error {
  background: var(--color-error-muted);
  color: var(--color-error);
}

/* ── Charts ── */
.chart-container {
  position: relative;
  width: 100%;
  height: 280px;
}

.chart-container canvas { width: 100% !important; }

/* ── Result Cards (Spotify/YouTube) ── */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.result-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.result-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.result-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--color-bg-surface);
}

.result-card-body { padding: var(--space-3) var(--space-4) var(--space-4); }

.result-card-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.result-card-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.result-card-stat {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.result-card-stats {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border-subtle);
}

/* ── Niche Intel Grid ── */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
}

/* ── AI Strategy ── */
.ai-tabs {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  background: var(--color-bg-surface);
  padding: var(--space-1);
  border-radius: var(--radius-full);
  width: fit-content;
}

.ai-tab {
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ai-tab:hover { color: var(--color-text); }
.ai-tab.active {
  background: #10B981;
  color: #fff;
}

.ai-result {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-5);
}

.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.swot-card {
  background: var(--color-bg-surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.swot-card h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.swot-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.swot-card li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding-left: var(--space-4);
  position: relative;
}

.swot-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
}

/* ── Niche Score Gauge ── */
.niche-score-display {
  text-align: center;
  padding: var(--space-6);
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  position: relative;
}

.score-circle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: #10B981;
  border-right-color: #10B981;
}

.score-value {
  font-size: var(--text-3xl);
  font-weight: 700;
  font-family: var(--font-mono);
  color: #10B981;
}

.score-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Settings ── */
.settings-section {
  margin-bottom: var(--space-6);
}

.settings-section h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.settings-row:last-child { border-bottom: none; }

.settings-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.settings-value {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

/* ── Pricing Card (Upgrade) ── */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  max-width: 800px;
}

.pricing-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-6);
  text-align: center;
}

.pricing-card.featured {
  border-color: #10B981;
  box-shadow: 0 0 0 1px #10B981;
  position: relative;
}

.pricing-card.featured::before {
  content: 'Best Value';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #10B981;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: var(--radius-full);
}

.pricing-price {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-mono);
  margin: var(--space-3) 0;
}

.pricing-price span {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-features {
  list-style: none;
  margin: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: left;
}

.pricing-features li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding-left: var(--space-6);
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10B981;
  font-weight: 700;
}

/* ── Loading States ── */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg-surface) 25%, var(--color-bg-hover) 50%, var(--color-bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: var(--radius-md);
}

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

.skeleton-text { height: 14px; margin-bottom: var(--space-2); }
.skeleton-heading { height: 24px; width: 60%; margin-bottom: var(--space-4); }
.skeleton-card { height: 120px; }

/* ── Empty States ── */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--color-text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  opacity: 0.4;
}

.empty-state h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.empty-state p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Toast Notification ── */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.toast {
  background: var(--color-bg-overlay);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 360px;
}

.toast.success { border-left: 3px solid var(--color-success); }
.toast.error { border-left: 3px solid var(--color-error); }
.toast.info { border-left: 3px solid #10B981; }

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

/* ── Upgrade Prompt ── */
.upgrade-prompt {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(56, 189, 248, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: var(--space-5);
  text-align: center;
  margin: var(--space-6) 0;
}

.upgrade-prompt h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.upgrade-prompt p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

/* ── Select / Dropdown ── */
.form-select {
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-3);
  color: var(--color-text);
  font-size: var(--text-sm);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ── Search History Dropdown ── */
.search-history-wrap {
  position: relative;
}

.history-toggle-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.history-toggle-btn:hover {
  background: var(--color-bg-hover);
  color: var(--color-text);
  border-color: var(--color-border-hover);
}

.history-toggle-btn svg { width: 16px; height: 16px; }

.history-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 360px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 30;
  padding: var(--space-2);
}

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

.history-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-1);
}

.history-dropdown-header span {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.history-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
  font-size: var(--text-sm);
}

.history-item:hover {
  background: var(--color-bg-hover);
}

.history-item-query {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-text);
  font-weight: 500;
}

.history-item-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.history-item-csv {
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.history-item-csv:hover {
  background: var(--color-bg-surface);
  color: #10B981;
}

.history-item-csv svg { width: 14px; height: 14px; }

.history-download-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-1);
  border-top: 1px solid var(--color-border-subtle);
  font-size: var(--text-xs);
  color: #10B981;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-radius: var(--radius-md);
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  width: 100%;
}

.history-download-all:hover {
  background: var(--color-bg-hover);
}

/* ── Content Plan Table ── */
.content-plan-week {
  margin-bottom: var(--space-6);
}

.content-plan-week h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #10B981;
  margin-bottom: var(--space-3);
}

/* ── Spotify Specific ── */
.spotify-card {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3);
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.spotify-card:hover {
  border-color: var(--color-border-hover);
  background: var(--color-bg-hover);
}

.spotify-card-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-bg-surface);
}

.spotify-card-info { flex: 1; min-width: 0; }

.spotify-card-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-card-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.popularity-bar {
  width: 60px;
  height: 6px;
  background: var(--color-bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
}

.popularity-bar-fill {
  height: 100%;
  background: #10B981;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* ── Spotify List ── */
.spotify-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* ── Section Heading ── */
.section-heading {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-subheading {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

/* ── Two-Column Layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

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

/* ── Activity List ── */
.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-subtle);
  align-items: flex-start;
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-text {
  font-size: var(--text-sm);
  color: var(--color-text);
}

.activity-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ── Pro Badge ── */
.pro-only-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.15);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: var(--space-2);
  flex-shrink: 0;
}

/* ── FREE Badge (green pills) ── */
.free-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.575rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: var(--space-2);
  flex-shrink: 0;
}

/* Quick Action FREE badge */
.quick-action-free-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Welcome Message ── */
.welcome-message {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ── Plan Badge ── */
.plan-badge-pro {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* ── Pricing: Current Plan Card ── */
.pricing-card.current-plan-card {
  opacity: 0.7;
}

/* ── Table Alternating Rows ── */
.data-table tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.3);
}

.data-table tbody tr:nth-child(even):hover {
  background: var(--color-bg-hover);
}

/* ── Sortable Table Headers ── */
.sortable-th {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
.sortable-th:hover {
  color: #38BDF8;
}
.sort-arrow {
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.7;
}

/* ── Loading Skeleton Animation ── */
.skeleton-row {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.skeleton-row .skeleton {
  flex: 1;
  height: 40px;
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — Dashboard
   ═══════════════════════════════════════════════ */

@media (max-width: 900px) {
  .topnav-links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--color-bg-raised);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-3);
    z-index: 55;
    box-shadow: var(--shadow-lg);
  }

  .topnav-links.open {
    display: flex;
  }

  .topnav-link {
    width: 100%;
    justify-content: flex-start;
    padding: var(--space-3);
  }

  .topnav-link svg { display: block; }

  .topnav-link.active::after {
    display: none;
  }

  .topnav-link.active {
    background: rgba(16, 185, 129, 0.1);
  }

  .topnav-hamburger {
    display: flex;
  }

  .usage-badge {
    font-size: 0.6875rem;
    padding: var(--space-1) var(--space-2);
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: calc(56px + var(--space-4)) var(--space-4) var(--space-4);
  }

  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .niche-grid { grid-template-columns: 1fr; }
  .swot-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }

  .search-bar { flex-direction: column; }
}

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

/* ── Progress Bar ── */
.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #38BDF8);
  border-radius: 4px;
  transition: width 0.3s ease;
}
.progress-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(16,185,129,0.2);
  border-top-color: #10B981;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Export Dropdown ── */
.export-dropdown {
  position: relative;
  display: inline-flex;
}
.export-dropdown .export-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.export-dropdown .export-toggle svg {
  transition: transform 0.2s;
}
.export-dropdown.open .export-toggle svg {
  transform: rotate(180deg);
}
.export-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 4px;
  min-width: 110px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.export-dropdown.open .export-menu {
  display: flex;
  flex-direction: column;
}
.export-menu button {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  padding: 8px 14px;
  text-align: left;
  font-size: var(--text-sm);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  font-family: var(--font-mono);
}
.export-menu button:hover {
  background: rgba(16,185,129,0.1);
  color: #10B981;
}
