/* ============================================================
   TrendPulse 365 — Global Dark Tech Glassmorphism Stylesheet
   ============================================================ */

:root {
  --bg-main: #060914;
  --bg-card: rgba(16, 23, 53, 0.65);
  --bg-card-hover: rgba(22, 32, 70, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.35);

  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --gold: #f59e0b;
  --emerald: #10b981;

  --accent-gradient: linear-gradient(135deg, #06b6d4, #8b5cf6, #ec4899);
  --gold-gradient: linear-gradient(135deg, #f59e0b, #ef4444);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Ambient Background Orbs ── */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
}
.bg-glow--1 {
  width: 500px;
  height: 500px;
  background: var(--cyan);
  top: -150px;
  left: -100px;
}
.bg-glow--2 {
  width: 600px;
  height: 600px;
  background: var(--purple);
  bottom: 10%;
  right: -150px;
}
.bg-glow--3 {
  width: 400px;
  height: 400px;
  background: var(--pink);
  top: 40%;
  left: 30%;
}

.app-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 12px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0.85rem 1.4rem;
  background: rgba(10, 15, 36, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

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

.brand-icon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
}

.brand-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.6));
}

.brand-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--cyan-bright);
  animation: radarPing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarPing {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}

.brand-highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.5px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ── Center Language Switcher Dropdown ── */
.navbar__center {
  display: flex;
  align-items: center;
}

.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.lang-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.lang-trigger-btn:hover,
.lang-trigger-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.35);
  color: #fff;
}

.lang-globe {
  font-size: 0.95rem;
}

.lang-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.lang-name {
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}

.lang-chevron {
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.lang-trigger-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
  color: var(--cyan-bright);
}

.lang-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 175px;
  background: rgba(11, 17, 43, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(6, 182, 212, 0.15);
  padding: 6px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-popover.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.lang-option:hover {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-bright);
}

.lang-option.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.25));
  color: #fff;
  font-weight: 700;
}

.lang-option .opt-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-option .opt-name {
  flex: 1;
}

.lang-option .opt-check {
  font-size: 0.8rem;
  color: var(--cyan-bright);
  opacity: 0;
  transition: opacity 0.15s;
}

.lang-option.active .opt-check {
  opacity: 1;
}

.install-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.install-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

/* ── Streaming Ticker ── */
.ticker-container {
  display: flex;
  align-items: center;
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-right: 14px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.ticker-track {
  display: inline-flex;
  gap: 32px;
  white-space: nowrap;
  animation: tickerFlow 90s linear infinite;
  padding-left: 100%;
}

.ticker-track:hover {
  animation-play-state: paused;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-main);
  cursor: pointer;
  transition: color 0.2s;
}

.ticker-item:hover {
  color: var(--cyan-bright);
}

.ticker-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--cyan);
}

/* ── Hero Spotlight Card ── */
.hero-spotlight {
  margin-bottom: 2rem;
}

.spotlight-card {
  background: linear-gradient(135deg, rgba(16, 23, 53, 0.9), rgba(10, 15, 36, 0.85));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 25px rgba(6, 182, 212, 0.1);
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
}

.spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 10px;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--cyan-bright);
  letter-spacing: 0.5px;
}

.spotlight-cpc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cpc-value {
  color: var(--gold);
  font-weight: 700;
  margin-left: 4px;
}

.spotlight-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 1.4rem;
}

.spotlight-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.spotlight-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.spotlight-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.stat-box__val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan-bright);
}

.spotlight-keywords {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.2rem;
}

.keywords-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.keyword-chip:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan);
  color: var(--cyan-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

/* ── Calendar Section ── */
.calendar-section {
  margin-bottom: 2.5rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 8px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-emoji {
  font-size: 1.8rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.month-pill-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.months-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.month-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.month-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.month-card.current {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.month-card.current::after {
  content: 'ACTIVE NOW';
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #fff;
}

.month-card__top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.month-card__num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cyan);
}

.month-card__theme {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.month-card__preview {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.month-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 6px;
}

.month-card__cpc {
  color: var(--gold);
  font-weight: 600;
}

.month-card__btn {
  color: var(--cyan-bright);
  font-weight: 600;
}

/* ── Radar Section ── */
.radar-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(20px);
}

.radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
  gap: 12px;
}

.radar-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.radar-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.6));
}

.radar-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.radar-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.refresh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.refresh-pill:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan);
  color: var(--cyan-bright);
}

.refresh-icon {
  font-size: 0.9rem;
}

/* Radar Tabs */
.radar-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.radar-tab {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.radar-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.radar-tab.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

/* Keyword Bar */
.kw-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.25rem;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.kw-bar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.kw-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kw-bar__icon {
  font-size: 1rem;
}

.kw-bar__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan-bright);
}

.kw-bar__btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.kw-btn {
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kw-btn:hover {
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan-bright);
  border-color: rgba(6, 182, 212, 0.35);
}

.kw-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.25));
  border-color: var(--cyan);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.kw-bar__tip {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-left: auto;
}

/* Trend Grid */
.trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}

.trend-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.trend-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.trend-card__left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.trend-card__rank {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  min-width: 26px;
}

.trend-card__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.trend-card__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.trend-card__vol {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan-bright);
}

.trend-card__btn {
  font-size: 0.75rem;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.trend-card:hover .trend-card__btn {
  background: var(--cyan);
  color: #060914;
  font-weight: 700;
  border-color: var(--cyan);
}

/* ── Ad Slot ── */
.ad-container {
  margin-bottom: 2.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.ad-tag {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand p {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
}

.footer-btn {
  background: none;
  border: none;
  color: var(--cyan);
  cursor: pointer;
  text-decoration: underline;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ── Strategy Modal ── */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.legal-body {
  line-height: 1.65;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.legal-section {
  margin-bottom: 1.15rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.legal-section p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.legal-section strong {
  color: var(--cyan-bright);
}

.modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal__content {
  position: relative;
  background: #0d1430;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 740px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  z-index: 10;
  overflow: hidden;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal__close:hover {
  color: #fff;
}

.modal__header {
  padding: 1.4rem 1.6rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.modal-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-gradient);
  color: #fff;
}

.modal-volume {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--gold);
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.modal__body {
  padding: 1.2rem 1.6rem;
  overflow-y: auto;
  flex: 1;
}

.strategy-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.strategy-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan-bright);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.strategy-row {
  font-size: 0.85rem;
  margin-bottom: 6px;
  line-height: 1.55;
}

.strategy-row strong {
  color: #fff;
  display: inline-block;
  min-width: 90px;
}

.platform-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.platform-tab {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
}

.platform-tab.active {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--purple);
  color: #fff;
}

.platform-desc {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.platform-desc ul {
  padding-left: 1.2rem;
  margin-top: 4px;
}

.prompt-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan-bright);
  line-height: 1.5;
  margin-bottom: 6px;
}

.btn-copy-chip {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-chip:hover {
  background: var(--cyan);
  color: #060914;
}

.modal__footer {
  padding: 1rem 1.6rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn--primary {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(13, 20, 48, 0.95);
  border: 1px solid var(--cyan);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
}

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

/* ── Mobile Responsiveness ── */
@media (max-width: 900px) {
  .navbar {
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    gap: 12px;
  }
  .navbar__brand {
    order: 1;
  }
  .navbar__controls {
    order: 2;
  }
  .navbar__center {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .lang-dropdown-wrapper {
    width: auto;
  }
}

@media (max-width: 768px) {
  .spotlight-body {
    grid-template-columns: 1fr;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .spotlight-title {
    font-size: 1.3rem;
  }
  .months-grid {
    grid-template-columns: 1fr;
  }
  .trend-grid {
    grid-template-columns: 1fr;
  }
  .kw-bar__tip {
    width: 100%;
    margin-left: 0;
  }
}
