/* ── KIW Marketing Strategy Hub ─────────────────────────── */
/* Design system: mirrors kiw-core (dark, cyan/green, Inter) */

:root {
  --bg-primary: #0A0E14;
  --bg-secondary: #111822;
  --bg-card: #151C28;
  --bg-card-hover: #1A2333;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #E8ECF1;
  --text-secondary: #8892A2;
  --text-muted: #5A6577;
  --cyan: #22D3EE;
  --green: #4ADE80;
  --amber: #FBBF24;
  --red: #F87171;
  --purple: #A78BFA;
  --pink: #F472B6;
  --gradient-main: linear-gradient(135deg, #22D3EE, #4ADE80);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-card: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.4);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --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);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

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

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.topbar-logo svg { flex-shrink: 0; }

.topbar-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.topbar-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

.topbar-badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.2);
  font-weight: 500;
}

.topbar-nav {
  display: flex;
  gap: 0.25rem;
}

.topbar-nav a {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.topbar-nav a:hover,
.topbar-nav a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* ── Hero ── */
.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero h1 .gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

.evolution-summary {
  margin-top: 1.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.evolution-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-weight: 500;
}

.evolution-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.evolution-bar {
  width: 120px;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.evolution-fill {
  width: 100%;
  height: 100%;
  background: var(--gradient-main);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.evolution-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
}

.evolution-note {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-style: italic;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

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

.hero-stat-value {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ── Section ── */
.section {
  padding: 2.5rem 0;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* ── Active Mission Card ── */
#activeMissionContainer {
  margin: 1rem 0 2.5rem 0;
}

.active-mission-card {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

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

.active-mission-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.active-mission-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.active-mission-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
}

.active-mission-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.mission-btn-primary {
  background: var(--cyan);
  color: #000;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
}

.mission-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.5);
  background: #fff;
}

.mission-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.mission-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 800px) {
  .active-mission-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }
  .active-mission-actions {
    width: 100%;
    flex-direction: column;
  }
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: flex-start;
}

.roadmap-col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 600px;
}

.roadmap-col-header h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.roadmap-col-header p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.roadmap-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.roadmap-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: var(--transition);
}

.roadmap-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.roadmap-card.critical { border-left-color: #ef4444; }
.roadmap-card.high { border-left-color: #f59e0b; }
.roadmap-card.medium { border-left-color: var(--cyan); }
.roadmap-card.low { border-left-color: var(--text-muted); }

.roadmap-card-type {
  font-size: 0.6rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.roadmap-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.roadmap-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.roadmap-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

[class^="roadmap-btn-"] {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: 1px solid transparent;
}

.roadmap-btn-approve {
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.3);
}

.roadmap-btn-approve:hover {
  background: var(--cyan);
  color: #000;
}

.roadmap-btn-execute {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.roadmap-btn-execute:hover {
  background: #fbbf24;
  color: #000;
}

.roadmap-btn-done {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border-color: rgba(74, 222, 128, 0.3);
}

.roadmap-btn-done:hover {
  background: var(--green);
  color: #000;
}

.roadmap-empty {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ── Ecosystem Map ── */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.eco-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.eco-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition);
}

.eco-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

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

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

.eco-card-name {
  font-weight: 600;
  font-size: 1rem;
}

.eco-card-url {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.eco-card-status {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-weight: 500;
}

.eco-card-status.active {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.eco-card-status.inactive {
  background: rgba(248, 113, 113, 0.1);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.eco-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.eco-metric {
  text-align: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

.eco-metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.eco-metric-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
}

.eco-metric .trend-up { color: var(--green); }
.eco-metric .trend-down { color: var(--red); }
.eco-metric .trend-flat { color: var(--text-muted); }

.eco-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.eco-tag {
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.eco-card-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0;
  transition: var(--transition);
}

.eco-card:hover .eco-card-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ── SEO Reporting ── */
.seo-badge {
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.seo-badge.indexed { background: rgba(34, 211, 238, 0.1); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.2); }
.seo-badge.pending { background: rgba(251, 191, 36, 0.1); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.2); }
.seo-badge.none { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid var(--border); }

.seo-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}
.seo-summary-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.seo-summary-card:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--border-hover); }
.seo-val { font-size: 1.8rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.seo-lab { font-size: 0.75rem; font-weight: 600; color: var(--text-primary); margin-top: 0.4rem; display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.seo-status { font-size: 0.6rem; color: var(--text-muted); margin-top: 0.2rem; }
.seo-summary-card.pending .seo-val { color: var(--cyan); }

.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 8px var(--green); }

/* ── Dashboard KPI Cards ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kpi-card.highlight {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.05);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
}

.kpi-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.kpi-progress-fill {
  height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transition: width 1s ease-out;
}

.kpi-val-small {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  min-height: 2.8rem;
  display: flex;
  align-items: center;
}

.kpi-val {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-status {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── Dashboard Layout ── */
.dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

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

.dashboard-focus, .dashboard-changelog {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
}

.dashboard-focus:hover, .dashboard-changelog:hover {
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-changelog {
  border-color: rgba(74, 222, 128, 0.1);
}

.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* ── Dashboard Focus Items ── */
.focus-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.focus-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: var(--transition);
}

.focus-item:hover {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
}

.focus-item.done {
  opacity: 0.6;
  background: rgba(74, 222, 128, 0.02);
}

.focus-priority {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.focus-priority.critical { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.focus-priority.high { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.focus-priority.done { background: rgba(74, 222, 128, 0.1); color: #4ade80; }

.focus-title {
  font-weight: 600;
  flex: 1;
  font-size: 0.95rem;
}

.focus-landing {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.view-all {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

.view-all-success { color: #4ade80; }
.view-all:hover { text-decoration: underline; }

/* ── Smart Insights ── */
.section-badge-smart {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.1);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.insight-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
}

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

.insight-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.insight-badge {
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.insight-main {
  display: flex;
  gap: 1rem;
}

.insight-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.insight-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.insight-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.insight-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.insight-impact {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.insight-impact span {
  color: var(--text-primary);
  font-weight: 700;
}

.insight-cta {
  background: transparent;
  border: 1px solid;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.insight-cta:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.05);
}

/* ── SEO Evolution Board ── */
.seo-evolution-board {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), rgba(74, 222, 128, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.seo-health-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.seo-health-circle {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.circular-chart {
  display: block;
  margin: 10px auto;
  max-width: 100%;
  max-height: 250px;
}

.circle-bg {
  fill: none;
  stroke: rgba(255,255,255,0.05);
  stroke-width: 2.8;
}

.circle {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  animation: progress 1s ease-out forwards;
  stroke: var(--cyan);
}

.circular-chart.success .circle {
  stroke: var(--green);
}

@keyframes progress {
  0% { stroke-dasharray: 0 100; }
}

.percentage {
  fill: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  text-anchor: middle;
  font-weight: 700;
}

.seo-health-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.seo-health-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 400px;
}

.seo-health-desc strong {
  color: var(--cyan);
}

@media (max-width: 768px) {
  .seo-health-main { flex-direction: column; text-align: center; }
  .seo-summary { grid-template-columns: repeat(2, 1fr); }
}

/* ── Milestones Timeline ── */
.seo-milestones {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  gap: 1rem;
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: slideIn 0.5s ease-out forwards;
}

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

.milestone-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.milestone-item.done .milestone-dot {
  background: var(--green);
  color: var(--bg-primary);
  border-color: var(--green);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.milestone-item.active .milestone-dot {
  border-color: var(--cyan);
  color: var(--cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.milestone-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
}

.milestone-date {
  font-size: 0.6rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .seo-milestones { flex-direction: column; gap: 1rem; }
}

/* ── Actions Board ── */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: var(--transition);
}

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

.action-priority {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.action-priority.critical { color: var(--red); }
.action-priority.high { color: var(--amber); }
.action-priority.medium { color: var(--cyan); }
.action-priority.low { color: var(--green); }

.action-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.action-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.action-impact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.action-impact-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  flex: 1;
  max-width: 80px;
  overflow: hidden;
}

.action-impact-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--gradient-main);
}

.action-landing {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  margin-top: 0.5rem;
}

.action-status {
  float: right;
  font-size: 0.6rem;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  font-weight: 500;
}

.action-status.done {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.action-status.cancelled {
  background: rgba(248, 113, 113, 0.1);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.action-status.standby {
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.action-status.plan {
  background: rgba(167, 139, 250, 0.1);
  color: var(--purple);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.action-card.done {
  opacity: 0.6;
  border-color: rgba(74, 222, 128, 0.15);
}

.action-card.done .action-title {
  text-decoration: line-through;
  text-decoration-color: rgba(74, 222, 128, 0.4);
}

.action-card.cancelled {
  opacity: 0.4;
  border-color: rgba(248, 113, 113, 0.15);
}

.action-card.cancelled .action-title {
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.4);
}

/* ── Cross-link Matrix ── */
.crosslink-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
}

.crosslink-matrix {
  min-width: 600px;
}

.crosslink-row {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

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

.crosslink-source {
  width: 140px;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 500;
}

.crosslink-targets {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  flex: 1;
}

.crosslink-arrow {
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.crosslink-arrow.exists {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.15);
}

.crosslink-arrow.suggested {
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
  border: 1px dashed rgba(251, 191, 36, 0.3);
}

/* ── LinkedIn Strategy ── */
.linkedin-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.linkedin-pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
}

.linkedin-pillar:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.linkedin-pillar-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.linkedin-pillar-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.linkedin-pillar-freq {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.linkedin-calendar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.calendar-day {
  text-align: center;
  padding: 0.75rem 0.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
}

.calendar-day-name {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.calendar-day.has-post {
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
}

.calendar-day.has-post .calendar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  margin: 0.3rem auto 0;
}

/* ── Blog Strategy ── */
.blog-topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.blog-topic {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: var(--transition);
}

.blog-topic:hover {
  border-color: var(--border-hover);
}

.blog-topic-category {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.blog-topic-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.blog-topic-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.blog-topic-seo {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.blog-seo-kw {
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: rgba(167, 139, 250, 0.1);
  color: var(--purple);
  border: 1px solid rgba(167, 139, 250, 0.15);
}

/* ── Funnel ── */
.funnel-container {
  max-width: 600px;
  margin: 0 auto;
}

.funnel-stage {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.funnel-stage:hover {
  border-color: var(--border-hover);
}

.funnel-stage-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.funnel-stage-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.funnel-stage-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.funnel-stage-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.funnel-stage-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.funnel-connector {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0.2rem 0;
}

/* ── Domains Inventory ── */
.domains-summary {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.domains-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.domains-summary-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.domains-summary-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

.domain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: var(--transition);
  position: relative;
}

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

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

.domain-name {
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-mono);
}

.domain-badge {
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.domain-badge.in-use {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.domain-badge.opportunity {
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.domain-badge.hold {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.domain-badge.consider-drop {
  background: rgba(248, 113, 113, 0.1);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.domain-badge.urgent {
  background: rgba(251, 191, 36, 0.15);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.domain-expiry {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.domain-expiry.warning { color: var(--amber); }
.domain-expiry.danger { color: var(--red); }

.domain-recommendation {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  min-height: 3.6em;
}

.domain-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}

.domain-action.create-landing {
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
}

.domain-action.redirect {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
}

.domain-action.sell {
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
}

.domain-action.keep {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.domain-action.drop {
  background: rgba(248, 113, 113, 0.1);
  color: var(--red);
}

@media (max-width: 768px) {
  .domains-grid { grid-template-columns: 1fr; }
  .domains-summary { flex-direction: column; }
}

/* ── Utilities ── */
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

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

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

.mkt-footer p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-stats { gap: 1.5rem; }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .actions-grid { grid-template-columns: 1fr; }
  .linkedin-pillars { grid-template-columns: repeat(2, 1fr); }
  .blog-topics { grid-template-columns: 1fr; }
  .calendar-week { grid-template-columns: repeat(4, 1fr); }
  .topbar-nav { display: none; }
  .crosslink-container { padding: 1rem; }
  .eco-card-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.3rem; }
  .linkedin-pillars { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}

/* ── GSC Dashboard Panel ─────────────────────────── */
.gsc-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.gsc-summary-stat { text-align: center; }
.gsc-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #22D3EE;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.gsc-stat-num.pending { color: #FBBF24; }
.gsc-stat-num.accent { color: #4ADE80; }
.gsc-stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.gsc-note {
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-left: 3px solid #22D3EE;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.gsc-note strong { color: var(--text); }

.gsc-domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.gsc-domain-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}
.gsc-domain-card:hover { border-color: rgba(34, 211, 238, 0.3); transform: translateY(-2px); }
.gsc-domain-card.active { border-left: 3px solid #4ADE80; }
.gsc-domain-card.pending { border-left: 3px solid #FBBF24; }
.gsc-domain-card.legacy { border-left: 3px solid #94A3B8; }

.gsc-domain-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.gsc-domain-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.gsc-domain-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.gsc-domain-sub { font-size: 0.75rem; color: var(--text-muted); }
.gsc-link-btn {
  margin-left: auto;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.gsc-link-btn:hover { color: #22D3EE; border-color: #22D3EE; }

.gsc-domain-status { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.gsc-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
}
.gsc-badge.active { background: rgba(74, 222, 128, 0.15); color: #4ADE80; }
.gsc-badge.pending { background: rgba(251, 191, 36, 0.15); color: #FBBF24; }
.gsc-badge.legacy { background: rgba(148, 163, 184, 0.15); color: #94A3B8; }
.gsc-date-badge { font-size: 0.72rem; color: var(--text-muted); }

.gsc-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  background: var(--bg);
  border-radius: 8px;
  padding: 0.75rem;
}
.gsc-metric { text-align: center; }
.gsc-metric-val { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.gsc-metric-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }

.gsc-next-data { font-size: 0.75rem; color: var(--text-muted); }
.gsc-next-data strong { color: var(--text); }


/* FIX CLAUDE BTN HOVER OVERLAP */
#runClaudeAuditBtn { position: relative !important; z-index: 9999 !important; pointer-events: auto !important; margin-left: auto; }
.section-header { pointer-events: none; }
.section-header > * { pointer-events: auto; }
