/* ==========================================================================
   Signalled · Sovereign Creator Intelligence Design System (Obsidian & Gold)
   ========================================================================== */

:root {
  --bg-deep: #050609;
  --bg-canvas: #090b11;
  --bg-card: rgba(14, 16, 24, 0.84);
  --bg-card-hover: rgba(20, 23, 35, 0.94);
  --bg-card-solid: #0f121b;
  --bg-card-inner: rgba(8, 9, 14, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.025);
  
  --border-subtle: rgba(212, 175, 55, 0.14);
  --border-highlight: rgba(212, 175, 55, 0.34);
  --border-accent: rgba(212, 175, 55, 0.45);
  --border-green: rgba(16, 185, 129, 0.35);
  
  --text-main: #f5f3ef;
  --text-muted: #a6a29a;
  --text-dim: #6e6a63;
  
  --accent-gold: #d4af37;
  --accent-gold-bright: #fae8a4;
  --accent-orange: #d4af37;
  --accent-orange-glow: rgba(212, 175, 55, 0.22);
  --accent-amber: #e5c158;
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-purple: #a855f7;
  --accent-blue: #38bdf8;
  --accent-red: #ef4444;
  
  /* Platform Colors */
  --color-substack: #ff6719;
  --color-paragraph: #818cf8;
  --color-bluesky: #0285ff;
  --color-threads: #f5f3ef;
  --color-youtube: #ef4444;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-subtle: 0 10px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-glow: 0 0 42px rgba(212, 175, 55, 0.16);
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(ellipse 85% 45% at 50% -15%, rgba(212, 175, 55, 0.13), transparent 70%),
    radial-gradient(ellipse 55% 40% at 95% 95%, rgba(168, 85, 247, 0.06), transparent 70%),
    radial-gradient(ellipse 50% 40% at 5% 60%, rgba(16, 185, 129, 0.04), transparent 70%);
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

.app-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}

/* ==================== TOP NAVIGATION ==================== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: var(--shadow-subtle);
  position: sticky;
  top: 14px;
  z-index: 100;
}

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

.brand-beacon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 4px;
  background: rgba(234, 88, 12, 0.12);
  border-radius: 8px;
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.beacon-bar {
  flex: 1;
  background: var(--accent-orange);
  border-radius: 2px;
}

.beacon-bar.bar-1 { height: 45%; }
.beacon-bar.bar-2 { height: 100%; background: #fff; }
.beacon-bar.bar-3 { height: 70%; }

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: block;
  font-weight: 500;
}

.nav-tabs {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  gap: 2px;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.tab-pill.live-dot-pill {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  display: inline-block;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

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

.btn-sync {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #c2410c, #ea580c);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.3);
}

.btn-sync:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.45);
}

.btn-sync.spinning .sync-icon {
  animation: spin 1s linear infinite;
}

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

.btn-ghost-icon {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-ghost-icon:hover {
  color: #fff;
  border-color: var(--border-highlight);
  background: rgba(255, 255, 255, 0.05);
}

.user-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-orange);
  cursor: pointer;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================== SUB-NAV: PLATFORMS & TIME PILLS ==================== */
.sub-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 0 4px;
  flex-wrap: wrap;
  gap: 12px;
}

.platform-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.plat-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.plat-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.plat-chip.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-highlight);
  color: #fff;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.all-dot { background: #9ca3af; }
.substack-dot { background: var(--color-substack); }
.paragraph-dot { background: var(--color-paragraph); }
.bluesky-dot { background: var(--color-bluesky); }
.youtube-dot { background: var(--color-youtube); }

.time-window-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  padding: 3px 6px;
  border-radius: 20px;
}

.pill-window {
  padding: 4px 10px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-window:hover {
  color: var(--text-main);
}

.pill-window.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.pill-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0 4px;
}
.pill-icon-btn:hover { color: #fff; }

/* ==================== TAB VIEWS TOGGLE ==================== */
.tab-view {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.tab-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==================== GENERAL CARD STYLING ==================== */
.dashboard-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-subtle);
  transition: border-color var(--transition-fast);
}

.dashboard-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.card-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Badges */
.badge-subtle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 12px;
}

.badge-accent {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-orange);
  background: rgba(234, 88, 12, 0.15);
  border: 1px solid rgba(234, 88, 12, 0.3);
  padding: 2px 9px;
  border-radius: 12px;
  letter-spacing: 0.04em;
}

.badge-emerald {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 9px;
  border-radius: 12px;
}

/* ==================== TAB 1: CONTENT ==================== */

/* Suggestions (3 Ideas) */
.suggestions-container {
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.06), rgba(20, 23, 33, 0.75));
  border: 1px solid rgba(234, 88, 12, 0.22);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.suggestions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestions-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.suggestions-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.accent-spark {
  color: var(--accent-orange);
  font-size: 1.2rem;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 14px;
}

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

.suggestion-card {
  background: rgba(12, 14, 21, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.suggestion-card:hover {
  border-color: rgba(234, 88, 12, 0.4);
  transform: translateY(-2px);
  background: rgba(18, 21, 31, 0.85);
}

.suggestion-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sug-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
}

.tag-top-post {
  background: rgba(234, 88, 12, 0.2);
  color: #fb923c;
  border: 1px solid rgba(234, 88, 12, 0.35);
}

.tag-substack {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.tag-competitor {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.sug-headline {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 8px;
}

.sug-reason {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

.btn-draft-this {
  align-self: flex-start;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-draft-this:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.4);
}

.suggestions-disclaimer {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
}

/* 6 Metric Cards Row */
.metric-cards-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 1100px) {
  .metric-cards-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 650px) {
  .metric-cards-row { grid-template-columns: repeat(2, 1fr); }
}

.metric-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all var(--transition-fast);
}

.metric-box:hover {
  border-color: var(--border-highlight);
}

.box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.metric-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric-val.positive { color: var(--accent-emerald); }

.metric-sub {
  font-size: 0.72rem;
  font-weight: 600;
}
.metric-sub.positive { color: var(--accent-emerald); }
.text-dim { color: var(--text-dim); }

.btn-inline-edit {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}
.btn-inline-edit:hover { opacity: 1; }

/* Signal Callout Banners */
.signal-banners-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.signal-banner {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.banner-bar {
  width: 4px;
  height: 38px;
  border-radius: 4px;
  flex-shrink: 0;
}

.banner-green .banner-bar { background: var(--accent-emerald); }
.banner-purple .banner-bar { background: var(--accent-purple); }

.banner-body {
  flex: 1;
}

.banner-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

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

.banner-action {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

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

/* Grids */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

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

/* Step Chart */
.step-chart-container {
  margin-top: 10px;
}

.svg-chart {
  width: 100%;
  height: 200px;
  overflow: visible;
}

.chart-legend-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.green { background: var(--accent-emerald); }
.legend-dot.orange { background: var(--accent-orange); }
.legend-dot.gray { background: #6b7280; }
.legend-dot.dashed { width: 12px; height: 2px; background: #6b7280; }
.legend-dot.dashed-blue { width: 12px; height: 2px; background: var(--accent-blue); }

/* Goals Card */
.goals-widget-body {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 16px 0;
}

.circular-progress {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-emerald) 66%, rgba(255, 255, 255, 0.08) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inner-ring-text {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--bg-card-solid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-bold {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.ring-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.goals-checklist {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.goal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.goal-item.completed {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.goal-check-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
}

.goal-item.completed .goal-check-btn {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #fff;
}

.goal-info {
  flex: 1;
}

.goal-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
}

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

.btn-mini-add {
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-mini-add:hover { background: var(--accent-orange); }

.goals-footer {
  font-size: 0.72rem;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

/* Top Posts & Best Time */
.top-posts-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

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

.top-post-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.post-multiplier-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Best Days Bar Chart */
.best-days-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 120px;
  padding: 14px 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.bar-fill {
  width: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}

.bar-fill.best {
  background: linear-gradient(180deg, var(--accent-emerald), #059669);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
}

.bar-day {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
}

.best-days-bar-chart .active-best .bar-day {
  color: var(--accent-emerald);
  font-weight: 800;
}

.best-time-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.summary-tile {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.tile-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.tile-val {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 2px 0;
}

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

/* ==================== TAB 2: COMPETITORS ==================== */

.competitor-summary-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(20, 23, 33, 0.6));
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.banner-dot-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  flex-shrink: 0;
}

.banner-h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

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

.grid-competitors-main {
  display: grid;
  grid-template-columns: 4.2fr 6.8fr;
  gap: 20px;
}

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

.comp-col-left, .comp-col-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Rank Dial */
.rank-dial-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 14px 0;
}

.dial-circle {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 3px solid var(--accent-orange);
  box-shadow: 0 0 20px rgba(234, 88, 12, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(234, 88, 12, 0.08);
}

.dial-score {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.dial-sub-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-orange);
  letter-spacing: 0.06em;
}

.rank-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.rank-of-writers {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: block;
}

.rank-status.positive {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.rank-progress-indicator {
  margin: 14px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.rank-prog-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  margin-top: 6px;
  overflow: hidden;
}

.rank-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 6px;
}

.rank-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rank-metric-pill {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.rank-metric-pill.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

/* Range Sliders */
.sliders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 14px 0;
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.slider-diff-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.slider-diff-badge.ahead {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.slider-diff-badge.gap {
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent-orange);
}

.slider-diff-badge.level {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.slider-track-wrap {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.slider-dot-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.slider-dot-marker.green {
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.slider-dot-marker.orange {
  background: var(--accent-orange);
  box-shadow: 0 0 10px var(--accent-orange);
}

.slider-dot-marker.gray {
  background: #6b7280;
}

.slider-labels-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.you-val-text {
  font-weight: 700;
  color: var(--accent-emerald);
}

.slider-row.gap .you-val-text {
  color: var(--accent-orange);
}

/* Rival Breakouts */
.rival-breakouts-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rival-breakout-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid rgba(234, 88, 12, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  gap: 14px;
}

.breakout-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.breakout-title-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.breakout-advice-link {
  font-size: 0.78rem;
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

/* Growth Race */
.growth-race-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.growth-race-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.race-name {
  width: 90px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.growth-race-row.is-you .race-name {
  color: #fff;
  font-weight: 800;
}

.race-bar-track {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

.race-bar-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.growth-race-row.is-you .race-bar-fill {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.race-val {
  width: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
  color: var(--text-dim);
}

.growth-race-row.is-you .race-val {
  color: var(--accent-emerald);
}

/* Head to Head 1v1 */
.head-to-head-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

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

.fighter-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.fighter-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.vs-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--accent-orange);
  letter-spacing: 0.1em;
}

.measures-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.measure-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}

.measure-val-left {
  width: 60px;
  text-align: right;
  font-weight: 700;
  color: #fff;
}

.measure-bar-left {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  display: flex;
  justify-content: flex-end;
}

.measure-fill-left {
  height: 100%;
  border-radius: 4px;
  background: var(--accent-emerald);
}

.measure-name-center {
  width: 130px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 600;
}

.measure-bar-right {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.measure-fill-right {
  height: 100%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
}

.measure-val-right {
  width: 60px;
  font-weight: 700;
  color: var(--text-muted);
}

.head-to-head-extra {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-dim);
}

.select-rival-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Leaderboard */
.peers-table {
  width: 100%;
  border-collapse: collapse;
}

.peers-table th {
  text-align: left;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.peers-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
}

.leader-rank-badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--text-dim);
}

.leader-creator-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.leader-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.leader-name {
  font-weight: 700;
  color: #fff;
  display: block;
}

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

/* ==================== TAB 3: SNAPSHOT ==================== */

.todays-move-card {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.1), rgba(20, 23, 33, 0.85));
  border: 1px solid rgba(234, 88, 12, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-glow);
}

.action-headline {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 12px 0 6px;
}

.action-detail {
  font-size: 1.05rem;
  color: var(--accent-orange);
  font-weight: 700;
  margin-bottom: 16px;
}

.confidence-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

.ring-mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--accent-emerald);
}

.todays-move-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.feedback-label {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.btn-vote {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.vote-toast {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* Focus Drawer */
.btn-subtle-expand {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

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

.focus-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 850px) {
  .focus-grid-3 { grid-template-columns: 1fr; }
}

.focus-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.focus-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.strong-tag { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.opening-tag { background: rgba(14, 165, 233, 0.15); color: var(--accent-blue); }
.move-tag { background: rgba(234, 88, 12, 0.15); color: var(--accent-orange); }

.focus-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.focus-box-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Snapshot Metrics Grid */
.snapshot-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

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

.dial-circle-sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-orange);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(234, 88, 12, 0.1);
}

.dial-score-sm {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.dial-sub-sm {
  font-size: 0.5rem;
  font-weight: 800;
  color: var(--accent-orange);
}

.bold-text {
  font-weight: 700;
  color: #fff;
}

.text-xs { font-size: 0.72rem; }

/* Growth vs Field Area Chart */
.growth-field-chart-container {
  margin-top: 14px;
}

/* Ask About My Numbers Box */
.ask-input-bar {
  display: flex;
  gap: 10px;
}

.ask-text-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.ask-text-input:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.btn-ask-send {
  padding: 0 24px;
  background: var(--accent-orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-ask-send:hover {
  background: #c2410c;
}

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

.prompt-chip {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.ask-response-box {
  background: rgba(12, 14, 21, 0.8);
  border: 1px solid rgba(234, 88, 12, 0.3);
  border-radius: var(--radius-md);
  padding: 18px;
  animation: fadeIn 0.3s ease;
}

.answer-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(234, 88, 12, 0.2);
  color: var(--accent-orange);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.answer-text {
  font-size: 0.92rem;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 12px;
}

.answer-action-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-emerald);
}

.action-tag {
  display: block;
  font-size: 0.65rem;
  color: var(--accent-emerald);
  font-weight: 800;
  margin-bottom: 2px;
}

.action-advice {
  font-size: 0.82rem;
  color: var(--text-main);
  font-weight: 600;
}

/* ==================== TAB 4: LIVE SIGNALS STREAM ==================== */
.signals-page-header {
  margin-bottom: 24px;
}

.signals-big-headline {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin: 10px 0 6px;
}

.signals-subhead {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.signals-stream-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.stream-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.live-dot-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 1.8s infinite;
}

.stream-live-label {
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

.stream-filter-pills {
  display: flex;
  gap: 6px;
}

.stream-pill {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.stream-pill.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.live-signals-feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stream-signal-card {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  gap: 14px;
}

.stream-signal-bar {
  width: 4px;
  height: 34px;
  border-radius: 4px;
  flex-shrink: 0;
}

.stream-signal-content {
  flex: 1;
}

.stream-signal-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.stream-signal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ==================== SLIDE-OUT DRAFT DRAWER ==================== */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease;
}

.drawer-backdrop.hidden { display: none; }

.draft-drawer {
  width: 500px;
  max-width: 90vw;
  height: 100vh;
  background: #11141e;
  border-left: 1px solid var(--border-highlight);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  margin-bottom: 8px;
}

.drawer-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 700;
}

.drawer-title-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.drawer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.draft-saved-pill {
  font-size: 0.7rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.btn-close-drawer {
  position: absolute;
  top: -6px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.drawer-meta-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.drawer-tone-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tone-chip {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tone-chip:hover {
  background: rgba(234, 88, 12, 0.15);
  border-color: rgba(234, 88, 12, 0.4);
  color: #fff;
}

.drawer-textarea-container {
  margin-bottom: 8px;
}

.draft-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  resize: vertical;
}

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

.drawer-counts-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.drawer-rules-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.rules-box-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rules-list li {
  font-size: 0.78rem;
  color: var(--accent-emerald);
  font-weight: 500;
}

.drawer-timing-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.timing-icon { color: var(--accent-orange); font-size: 0.7rem; }

.drawer-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.btn-primary-action {
  padding: 12px 20px;
  background: linear-gradient(135deg, #c2410c, #ea580c);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.4);
}

.btn-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.55);
}

.drawer-sub-actions {
  display: flex;
  gap: 10px;
}

.btn-ghost {
  flex: 1;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ==================== MODALS ==================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-backdrop.hidden { display: none; }

.modal-card {
  width: 480px;
  max-width: 90vw;
  background: #151824;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-head h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 9px 12px;
  color: #fff;
  font-size: 0.85rem;
}

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

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.btn-primary {
  padding: 9px 18px;
  background: linear-gradient(135deg, #c2410c, #ea580c);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

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

.toast {
  padding: 10px 18px;
  background: #1e2233;
  color: #fff;
  border-left: 4px solid var(--accent-orange);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: slideInUp 0.25s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }


/* ==================== SIGNALLED LUXURY REFINEMENTS & MOBILE ==================== */
.brand-crest-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.28);
  flex-shrink: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.38rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: linear-gradient(135deg, #ffffff 0%, #fae8a4 55%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.05;
}

.brand-edition-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-gold-bright);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.btn-sync, .btn-primary, .btn-primary-action, .btn-ask-send {
  background: linear-gradient(135deg, #9a7b1c 0%, #d4af37 55%, #e5c158 100%);
  color: #06070a;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.28);
}

.btn-sync:hover, .btn-primary:hover, .btn-primary-action:hover, .btn-ask-send:hover {
  background: linear-gradient(135deg, #b59226 0%, #e5c158 55%, #fae8a4 100%);
  color: #050609;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.42);
}

.nav-tab.active {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--accent-gold-bright);
}

.threads-dot {
  background: #f5f3ef;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.instagram-dot {
  background: linear-gradient(135deg, #f43f5e, #d946ef, #f59e0b);
}

.facebook-dot {
  background: #3b82f6;
}

.legend-dot.gold {
  background: var(--accent-gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.banner-gold .banner-bar {
  background: linear-gradient(180deg, #fae8a4, #d4af37);
}

.suggestions-container {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.07), rgba(14, 16, 24, 0.88));
  border: 1px solid rgba(212, 175, 55, 0.26);
}

.suggestions-title, .action-headline, .signals-big-headline {
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.suggestions-title {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==================== APP-SPECIFIC INTELLIGENCE ENGINE ==================== */
.platform-intel-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.intel-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.10), rgba(14, 16, 24, 0.92));
  border: 1px solid rgba(212, 175, 55, 0.30);
  border-radius: var(--radius-lg);
}

.intel-header-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #fff;
}

.intel-header-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.intel-scorecards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

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

.intel-scorecard {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-subtle);
}

.intel-scorecard.accent-gold {
  border-color: rgba(212, 175, 55, 0.38);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.07), rgba(14, 16, 24, 0.88));
}

.intel-scorecard.accent-emerald {
  border-color: rgba(16, 185, 129, 0.38);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.07), rgba(14, 16, 24, 0.88));
}

.intel-sc-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.intel-sc-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.intel-scorecard.accent-gold .intel-sc-val { color: var(--accent-gold-bright); }
.intel-scorecard.accent-emerald .intel-sc-val { color: #34d399; }

.intel-sc-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Action Verdicts: DO MORE / DO LESS / TRY THIS */
.verdicts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.verdict-card {
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verdict-card.verdict-more {
  border-color: rgba(16, 185, 129, 0.42);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.09), rgba(12, 15, 22, 0.92));
}

.verdict-card.verdict-less {
  border-color: rgba(239, 68, 68, 0.42);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.09), rgba(12, 15, 22, 0.92));
}

.verdict-card.verdict-try {
  border-color: rgba(212, 175, 55, 0.45);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.10), rgba(12, 15, 22, 0.92));
}

.verdict-pill {
  align-self: flex-start;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}

.verdict-more .verdict-pill {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.verdict-less .verdict-pill {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.verdict-try .verdict-pill {
  background: rgba(212, 175, 55, 0.22);
  color: var(--accent-gold-bright);
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.verdict-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.verdict-body {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Format Split (e.g. Long Essays vs Substack Notes / YouTube Shorts vs Long Videos) */
.format-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.format-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.format-card.winner-format {
  border-color: rgba(212, 175, 55, 0.40);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.08);
}

.format-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.format-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-gold-bright);
  background: rgba(212, 175, 55, 0.14);
  padding: 3px 9px;
  border-radius: 6px;
}

.format-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.format-stats-strip {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.format-big-stat {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #34d399;
}

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

.format-best-box {
  font-size: 0.82rem;
  color: var(--text-main);
  padding: 10px 12px;
  background: rgba(212, 175, 55, 0.07);
  border-left: 3px solid var(--accent-gold);
  border-radius: 6px;
}

.format-insight {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Sweet Spot Analyzers */
.sweet-spots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1080px) {
  .sweet-spots-grid { grid-template-columns: 1fr; }
}

.sweet-spot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sweet-cat-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.sweet-winner-headline {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.sweet-rows-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sweet-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sweet-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
}

.sweet-row-label {
  color: var(--text-main);
  font-weight: 600;
}

.sweet-row-metric {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--accent-gold-bright);
  white-space: nowrap;
}

.sweet-bar-bg {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

.sweet-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.25);
}

.sweet-bar-fill.is-sweet {
  background: linear-gradient(90deg, #10b981, #d4af37);
}

/* Overview 5-Channel Cards Grid */
.channel-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.channel-overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all var(--transition-fast);
}

.channel-overview-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.ch-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.ch-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ch-card-aud {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--accent-gold-bright);
}

.ch-card-row {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.ch-card-row strong {
  color: #fff;
}

.btn-open-channel {
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.10);
  color: var(--accent-gold-bright);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-open-channel:hover {
  background: var(--accent-gold);
  color: #050609;
}

/* Format-Split Lists Grid */
.intel-lists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 18px;
}

@media (max-width: 650px) {
  .intel-lists-grid, .channel-overview-grid {
    grid-template-columns: 1fr;
  }
}

.type-pill-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent-gold-bright);
  border: 1px solid rgba(212, 175, 55, 0.25);
  white-space: nowrap;
}

.top-post-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.top-post-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-dim);
}

.mono-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-main);
}

.leader-row-you {
  background: rgba(212, 175, 55, 0.08) !important;
}

/* Peer Manager Bar */
.mb-20 { margin-bottom: 20px; }

.peer-manager-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.peer-add-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 540px;
}

.peer-search-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.peer-search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.table-responsive-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==================== MOBILE & TABLET RESPONSIVENESS ==================== */
@media (max-width: 820px) {
  .app-shell {
    padding: 12px 14px 90px;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    position: relative;
    top: 0;
  }

  .nav-tabs {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 4px;
  }

  .nav-tab {
    padding: 7px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .sub-nav-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .platform-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .plat-chip {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .time-window-pills {
    align-self: flex-start;
  }

  .signal-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .banner-bar {
    width: 100%;
    height: 3px;
  }

  .goals-widget-body {
    flex-direction: column;
    align-items: stretch;
  }

  .goals-ring-container {
    align-self: center;
  }

  .peer-add-controls {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .measure-name-center {
    width: 90px;
    font-size: 0.68rem;
  }
}
