/* =============================================
   TrendPulse — Premium Dark Glassmorphism Theme
   ============================================= */

:root {
  --bg-primary: #080b14;
  --bg-secondary: #0d1120;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-active: rgba(139, 92, 246, 0.5);

  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --orange: #f97316;
  --green: #10b981;
  --red: #ef4444;

  --reddit-color: #ff4500;
  --twitter-color: #1da1f2;
  --tiktok-color: #fe2c55;
  --instagram-color: #e1306c;
  --meta-color: #0866ff;
  --google-color: #4285f4;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --font: 'Inter', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ─── Background Orbs ─── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7c3aed, transparent);
  top: -200px;
  left: -200px;
  animation: float1 12s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #0891b2, transparent);
  top: 40%;
  right: -150px;
  animation: float2 15s ease-in-out infinite;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #be185d, transparent);
  bottom: -100px;
  left: 30%;
  animation: float3 10s ease-in-out infinite;
}

@keyframes float1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, 40px) scale(1.1);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-40px, -30px) scale(1.08);
  }
}

@keyframes float3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -40px) scale(1.05);
  }
}

/* ─── Header ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(8, 11, 20, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 8px #8b5cf6);
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-badge {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 20px;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.refresh-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--purple-light);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.refresh-btn:hover {
  background: rgba(139, 92, 246, 0.25);
  transform: translateY(-1px);
}

.refresh-icon {
  display: inline-block;
  transition: transform 0.6s;
}

.refresh-btn:active .refresh-icon {
  transform: rotate(360deg);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  z-index: 1;
  padding: 70px 32px 40px;
  text-align: center;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(36px, 6vw, 66px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

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

  100% {
    background-position: 200% center;
  }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
}

/* ─── Industry Chips ─── */
.industry-selector {
  margin-top: 8px;
}

.selector-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 14px;
}

.industry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  text-transform: capitalize;
  backdrop-filter: blur(8px);
}

.chip:hover {
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

.chip.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
  border-color: var(--purple);
  color: var(--purple-light);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* ─── Viral Pipeline Banner ─── */
.viral-banner {
  position: relative;
  z-index: 1;
  margin: 0 32px 32px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}

.viral-banner-inner {
  background: linear-gradient(135deg, rgba(30, 8, 60, 0.8), rgba(8, 24, 56, 0.8));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  backdrop-filter: blur(12px);
}

.viral-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
  white-space: nowrap;
}

.viral-flow {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 260px;
}

.viral-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  flex: 1;
}

.reddit-node {
  border-color: rgba(255, 69, 0, 0.3);
}

.twitter-node {
  border-color: rgba(29, 161, 242, 0.3);
}

.instagram-node {
  border-color: rgba(225, 48, 108, 0.3);
}

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

.node-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.node-desc {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flow-arrow {
  flex: 0.7;
  position: relative;
  height: 2px;
  display: flex;
  align-items: center;
}

.arrow-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #0891b2);
  position: relative;
}

.arrow-particles {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
}

.arrow-particles span {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: flow-particle 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--cyan);
}

.arrow-particles span:nth-child(2) {
  animation-delay: 0.6s;
}

.arrow-particles span:nth-child(3) {
  animation-delay: 1.2s;
}

@keyframes flow-particle {
  0% {
    transform: translateX(-20px);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateX(20px);
    opacity: 0;
  }
}

.view-pipeline-btn {
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--purple-light);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.view-pipeline-btn:hover {
  background: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

/* ─── Platform Tabs ─── */
.platform-tabs-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px 24px;
}

.platform-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.platform-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font);
  backdrop-filter: blur(8px);
}

.tab-btn:hover {
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.08);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(59, 130, 246, 0.25));
  border-color: var(--purple);
  color: var(--purple-light);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.tab-btn.pipeline-btn {
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.tab-btn.pipeline-btn:hover,
.tab-btn.pipeline-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--green);
  color: var(--green);
}

.tab-icon {
  font-size: 15px;
}

/* ─── Main Content ─── */
.main {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

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

/* ─── Loading ─── */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  gap: 16px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

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

/* ─── Error ─── */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  gap: 12px;
}

.error-icon {
  font-size: 48px;
}

.error-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
}

.error-sub {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 400px;
  text-align: center;
}

.retry-btn {
  margin-top: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--red);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: var(--transition);
}

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

.hidden {
  display: none !important;
}

/* ─── Cards Grid ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.trend-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: card-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.trend-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}

.trend-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-platform-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.card-rank {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.content-type-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.meta-chip {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.meta-chip.highlight {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple-light);
  border-color: rgba(139, 92, 246, 0.3);
}

.card-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.hashtag {
  font-size: 11px;
  color: var(--cyan);
  cursor: pointer;
}

.hashtag:hover {
  color: var(--purple-light);
}

.card-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-link {
  font-size: 12px;
  color: var(--purple-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.card-link:hover {
  color: var(--cyan);
}

.trend-stage-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stage-emerging {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.stage-peaking {
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
  animation: pulse-stage 1.5s ease-in-out infinite;
}

.stage-declining {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes pulse-stage {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
  }
}

/* Platform badge colors */
.badge-reddit {
  background: rgba(255, 69, 0, 0.15);
  color: #ff6b35;
  border: 1px solid rgba(255, 69, 0, 0.3);
}

.badge-twitter {
  background: rgba(29, 161, 242, 0.15);
  color: #60c9fb;
  border: 1px solid rgba(29, 161, 242, 0.3);
}

.badge-tiktok {
  background: rgba(254, 44, 85, 0.15);
  color: #fe6d8b;
  border: 1px solid rgba(254, 44, 85, 0.3);
}

.badge-instagram {
  background: rgba(225, 48, 108, 0.15);
  color: #f06292;
  border: 1px solid rgba(225, 48, 108, 0.3);
}

.badge-meta {
  background: rgba(8, 102, 255, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(8, 102, 255, 0.3);
}

.badge-google {
  background: rgba(66, 133, 244, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(66, 133, 244, 0.3);
}

/* ─── Reddit Specific ─── */
.score-bar {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--reddit-color), var(--orange));
  margin-bottom: 10px;
  transition: width 1s ease;
}

.reddit-stats {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.reddit-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── Google Trends Layout ─── */
.google-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.google-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.google-section-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--google-color);
  border-radius: 2px;
}

.rising-queries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.rising-query-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: var(--transition);
  animation: card-in 0.3s ease both;
  backdrop-filter: blur(8px);
}

.rising-query-item:hover {
  border-color: rgba(66, 133, 244, 0.4);
  transform: translateY(-2px);
}

.rq-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.rq-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--google-color);
  background: rgba(66, 133, 244, 0.1);
  border: 1px solid rgba(66, 133, 244, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.rq-value.breakout {
  color: var(--green);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.topics-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  animation: card-in 0.3s ease both;
}

.topic-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.topic-type {
  font-size: 11px;
  color: var(--text-muted);
}

.topic-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
}

.google-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ─── Pipeline Layout ─── */
.pipeline-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pipeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(12px);
  animation: card-in 0.4s ease both;
  position: relative;
  overflow: hidden;
}

.pipeline-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--purple), var(--cyan));
  border-radius: 3px 0 0 3px;
}

.pipeline-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(4px);
}

.pipeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pipeline-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pipeline-content-type {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pipeline-velocity {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
  white-space: nowrap;
}

.pipeline-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pipeline-stage {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stage-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stage-reddit .stage-label {
  color: var(--reddit-color);
}

.stage-twitter .stage-label {
  color: var(--twitter-color);
}

.stage-instagram .stage-label {
  color: var(--instagram-color);
}

.stage-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pipeline-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.pipeline-relevance {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Meta Ads Specific ─── */
.performance-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.hook-text {
  font-size: 12px;
  color: var(--cyan);
  font-style: italic;
  background: rgba(6, 182, 212, 0.05);
  border-left: 2px solid var(--cyan);
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  margin-top: 10px;
  line-height: 1.5;
}

/* ─── Footer ─── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 20px 32px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {

  .header-inner,
  .hero,
  .viral-banner,
  .main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .viral-banner {
    margin: 0 0 24px;
  }

  .viral-banner-inner {
    flex-direction: column;
  }

  .pipeline-stages {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 36px;
  }

  .trend-card {
    padding: 16px;
  }
}

/* ─── Region & Embeds ─── */
.region-dropdown {
  padding: 8px 36px 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  backdrop-filter: blur(8px);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}

.region-dropdown:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
}

.region-dropdown:focus {
  outline: none;
  border-color: var(--purple-light);
}

.region-dropdown option {
  background: var(--bg-primary);
  color: white;
}

.embed-preview-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-right: 8px;
  font-family: var(--font);
}

.embed-preview-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.embed-container iframe {
  border-radius: 8px;
  overflow: hidden;
  margin-top: 10px;
  max-width: 100%;
}

.embed-container blockquote {
  margin: 10px auto !important;
  border-radius: 8px;
}