/* ═══════════════════════════════════════════════════════════════════
   CYBERNEXO INTELLIGENCE PLATFORM — portal_v2.css
   Preserva todos los estilos anteriores. Agrega: pantalla de análisis,
   Executive Summary, AI Advisor, Roadmap, Historial.
   ═══════════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────────── */
:root {
  --bg:     #020812;
  --bg2:    #0a1520;
  --bg3:    #0f1e2e;
  --panel:  #0c1828;
  --cyan:   #17eadc;
  --cdiml:  rgba(23,234,220,.08);
  --cdim:   rgba(23,234,220,.15);
  --blue:   #0987ff;
  --green:  #10c96a;
  --yellow: #f5c518;
  --red:    #ff4757;
  --text:   #eef6ff;
  --muted:  #6a8fa8;
  --line:   rgba(255,255,255,.07);
  --linec:  rgba(23,234,220,.16);
  --sora:   'Sora', sans-serif;
  --inter:  'Inter', sans-serif;
  --mono:   'JetBrains Mono', monospace;
  --sb:     232px;
  --tbh:    58px;
  --r:      14px;
  --r2:     8px;
  --ease:   cubic-bezier(.22,.68,0,1.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--inter); background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }
.mono { font-family: var(--mono); }
.w-full { width: 100%; }

/* ── VIEWS ───────────────────────────────────────────────────────── */
.view { display: none; }
.view.active { display: block; }
#view-dashboard.active { display: flex; height: 100vh; overflow: hidden; }

/* ══════════════════════════════════════════════════════════════════
   LOGIN
══════════════════════════════════════════════════════════════════ */
#view-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-bg { position: absolute; inset: 0; z-index: 0; }
.lb-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--linec) 1px, transparent 1px),
    linear-gradient(90deg, var(--linec) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .15;
}
.lb-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.lb-tl { width: 520px; height: 520px; top: -140px; left: -100px; background: radial-gradient(circle, rgba(23,234,220,.15), transparent 70%); }
.lb-br { width: 400px; height: 400px; bottom: -100px; right: -80px; background: radial-gradient(circle, rgba(9,135,255,.12), transparent 70%); }

.login-wrap { position: relative; z-index: 1; width: 100%; max-width: 420px; padding: 24px; }

.login-card {
  background: linear-gradient(160deg, var(--bg2) 0%, var(--bg) 100%);
  border: 1px solid var(--linec);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 0 80px rgba(23,234,220,.06), 0 40px 80px rgba(0,0,0,.5);
}

.lc-brand { margin-bottom: 22px; }
.lc-logo { font-family: var(--sora); font-size: 21px; font-weight: 800; color: var(--cyan); letter-spacing: -.02em; display: block; }
.lc-platform { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; margin-top: 3px; display: block; }

.security-strip {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 22px; padding: 9px 12px;
  background: rgba(23,234,220,.04); border: 1px solid var(--linec); border-radius: var(--r2);
}
.sec-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); font-weight: 600; }
.sec-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.sec-dot.on { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 20px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r2); color: var(--text);
  font-family: var(--inter); font-size: 14.5px; font-weight: 600;
  cursor: pointer; transition: background .2s, border-color .2s;
}
.btn-google:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }

.login-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted); font-size: 12px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.fl { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }
.fi {
  background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r2);
  padding: 11px 13px; color: var(--text); font-family: var(--inter); font-size: 14.5px;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.fi:focus { border-color: rgba(23,234,220,.38); box-shadow: 0 0 0 3px rgba(23,234,220,.07); }
.fi::placeholder { color: var(--muted); opacity: .5; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--cyan), #0bbcff);
  border: none; border-radius: var(--r2);
  color: #001419; font-family: var(--inter); font-size: 14.5px; font-weight: 800;
  cursor: pointer; transition: box-shadow .2s, transform .15s; margin-top: 4px;
}
.btn-primary:hover { box-shadow: 0 0 28px rgba(23,234,220,.38); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.login-help { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.login-help a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.login-note {
  margin-top: 18px; padding: 10px 13px;
  background: rgba(9,135,255,.05); border: 1px solid rgba(9,135,255,.15);
  border-radius: var(--r2); font-size: 11px; color: var(--muted); line-height: 1.6;
}
.login-note strong { color: #6aaeff; }

/* ══════════════════════════════════════════════════════════════════
   ANALYSIS SCREEN
══════════════════════════════════════════════════════════════════ */
#view-analysis {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.analysis-bg { position: absolute; inset: 0; z-index: 0; }
.an-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(23,234,220,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,234,220,.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.an-glow {
  position: absolute;
  width: 600px; height: 600px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(23,234,220,.1), transparent 65%);
  filter: blur(40px);
}

.analysis-card {
  position: relative;
  z-index: 1;
  width: 400px;
  padding: 44px 40px;
  background: linear-gradient(160deg, rgba(12,24,40,.96), rgba(2,8,18,.98));
  border-radius: 16px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px) scale(.98);
  animation: cardReveal .6s var(--ease) .1s forwards;
}
@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scan border animation */
.scan-border {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.scan-rect {
  animation: scanMove 2.4s linear infinite;
  stroke-dashoffset: 0;
}
@keyframes scanMove {
  to { stroke-dashoffset: -1100; }
}

/* Logo ring */
.an-logo-wrap {
  position: relative;
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.an-logo-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(23,234,220,.3);
  animation: ringPulse 1.8s ease-in-out infinite;
}
@keyframes ringPulse {
  0%,100% { transform: scale(1); opacity: .3; }
  50% { transform: scale(1.12); opacity: .7; }
}
.an-logo-text {
  font-family: var(--sora);
  font-size: 18px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -.02em;
  position: relative;
  z-index: 1;
}

.an-title { margin-bottom: 24px; }
.an-brand {
  display: block;
  font-family: var(--sora);
  font-size: 14px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.an-sub { font-size: 11px; color: var(--muted); font-family: var(--mono); }

.an-status-line {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(23,234,220,.6);
  margin-bottom: 20px;
  min-height: 18px;
}

.an-checks {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.an-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s ease, transform .3s ease, color .3s ease;
}
.an-check-item.visible { opacity: 1; transform: translateX(0); }
.an-check-item.done { color: var(--text); }
.an-check-icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.an-check-icon .ic-pending {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  animation: spinPending 1s linear infinite;
}
@keyframes spinPending { to { border-top-color: var(--cyan); transform: rotate(360deg); } }
.an-check-icon .ic-done { color: var(--cyan); font-size: 13px; }

.an-progress-wrap {
  height: 2px;
  background: rgba(255,255,255,.06);
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 14px;
}
.an-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), #0987ff);
  width: 0%;
  transition: width .4s ease;
  border-radius: 1px;
}

.an-bottom { font-size: 11px; color: var(--muted); font-family: var(--mono); }

/* ══════════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
══════════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sb); height: 100vh;
  background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; flex-shrink: 0;
  transition: width .25s ease; overflow: hidden; z-index: 20; position: relative;
}
.sidebar.collapsed { width: 56px; }

.sb-header {
  padding: 14px 16px; min-height: var(--tbh);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.sb-brand-wrap { display: flex; align-items: center; gap: 8px; overflow: hidden; }
.sb-logo { font-family: var(--sora); font-size: 15px; font-weight: 800; color: var(--cyan); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; transition: opacity .2s; }
.sb-platform-tag {
  font-size: 9px; font-weight: 700; font-family: var(--mono);
  color: #001419; background: var(--cyan);
  padding: 2px 5px; border-radius: 4px; flex-shrink: 0;
  transition: opacity .2s;
}
.sidebar.collapsed .sb-logo, .sidebar.collapsed .sb-platform-tag { opacity: 0; }
.sb-toggle { background: none; border: none; color: var(--muted); cursor: pointer; padding: 5px; border-radius: 6px; transition: color .15s, background .15s; flex-shrink: 0; }
.sb-toggle:hover { color: var(--text); background: var(--bg3); }

.sb-client {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; border-bottom: 1px solid var(--line); overflow: hidden; flex-shrink: 0;
}
.sb-avatar {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #001419; font-family: var(--sora); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sb-info { overflow: hidden; transition: opacity .2s; }
.sidebar.collapsed .sb-info { opacity: 0; }
.sb-name { font-size: 12.5px; font-weight: 700; color: var(--text); white-space: nowrap; }
.sb-role { font-size: 10px; color: var(--muted); white-space: nowrap; }

.sb-security {
  padding: 10px 13px; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 7px; overflow: hidden; flex-shrink: 0;
  transition: opacity .2s;
}
.sidebar.collapsed .sb-security { opacity: 0; pointer-events: none; }
.ss-row { display: flex; align-items: flex-start; gap: 7px; }
.ss-ico { font-size: 12px; flex-shrink: 0; margin-top: 1px; }
.ss-lbl { font-size: 9.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.ss-val { font-size: 11px; color: var(--cyan); font-family: var(--mono); font-weight: 500; }

.sb-nav { flex: 1; padding: 8px 6px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; overflow-x: hidden; }
.ni {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r2);
  color: var(--muted); text-decoration: none;
  font-size: 12.5px; font-weight: 600;
  transition: color .15s, background .15s; white-space: nowrap; overflow: hidden;
}
.ni:hover { color: var(--text); background: var(--bg3); }
.ni.active { color: var(--cyan); background: var(--cdiml); }
.ni-ico { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; }
.ni span { transition: opacity .2s; }
.sidebar.collapsed .ni span { opacity: 0; width: 0; overflow: hidden; }

.sb-footer { padding: 10px 10px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; overflow: hidden; }
.sb-monitor { display: flex; align-items: center; gap: 6px; padding: 7px 9px; background: var(--cdiml); border-radius: 6px; }
.mon-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); animation: pdot 2s ease-in-out infinite; flex-shrink: 0; }
@keyframes pdot { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(23,234,220,.5)} 50%{opacity:.6;box-shadow:0 0 0 5px rgba(23,234,220,0)} }
.mon-txt { font-size: 10.5px; font-family: var(--mono); color: var(--cyan); white-space: nowrap; transition: opacity .2s; }
.sidebar.collapsed .mon-txt, .sidebar.collapsed .btn-logout { opacity: 0; pointer-events: none; }
.btn-logout { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 7px; color: var(--muted); font-family: var(--inter); font-size: 11.5px; font-weight: 600; cursor: pointer; transition: color .15s, border-color .15s; text-align: center; }
.btn-logout:hover { color: var(--red); border-color: rgba(255,71,87,.4); }

/* ── MAIN ──────────────────────────────────────────────────────── */
.portal-main { flex: 1; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

.ptopbar {
  height: var(--tbh); background: rgba(2,8,18,.97); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; backdrop-filter: blur(12px); flex-shrink: 0; gap: 16px;
}
.ptb-left { display: flex; align-items: center; gap: 12px; }
.ptb-menu { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; transition: color .15s; display: none; }
.ptb-menu:hover { color: var(--text); }
.ptb-crumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.crumb-sep { color: rgba(255,255,255,.18); }
.ptb-crumb span:last-child { color: var(--text); }
.ptb-right { display: flex; align-items: center; gap: 14px; }
.ptb-live { display: flex; align-items: center; gap: 6px; padding: 5px 11px; background: var(--cdiml); border: 1px solid var(--linec); border-radius: 20px; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); animation: pdot 1.8s ease-in-out infinite; flex-shrink: 0; }
.ptb-live .mono { font-size: 10px; font-weight: 700; color: var(--cyan); letter-spacing: .05em; }
.ptb-date { font-size: 11px; color: var(--muted); }

/* ── SECTIONS ─────────────────────────────────────────────────── */
.psec { display: none; flex: 1; overflow-y: auto; padding: 24px 24px 48px; }
.psec.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:translateY(0)} }
@media (prefers-reduced-motion: reduce) { .psec.active { animation: none; } }

.psec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.psec-title { font-family: var(--sora); font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.psec-sub { margin-top: 4px; font-size: 12.5px; color: var(--muted); }

/* ── CARDS ─────────────────────────────────────────────────────── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 18px; }
.card:last-child { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 17px; border-bottom: 1px solid var(--line); gap: 10px; }
.card-title { font-family: var(--sora); font-size: 13px; font-weight: 700; color: var(--text); }
.ctag { font-size: 10px; font-weight: 600; color: var(--muted); background: var(--bg3); padding: 3px 8px; border-radius: 20px; border: 1px solid var(--line); white-space: nowrap; }
.live-ctag { display: flex; align-items: center; gap: 4px; color: var(--cyan); background: var(--cdiml); border-color: var(--linec); }
.live-dot-sm { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); animation: pdot 1.5s ease-in-out infinite; }

/* ── LAYOUTS ───────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.two-col > .card { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════════════
   EXECUTIVE SUMMARY — NEW
══════════════════════════════════════════════════════════════════ */

/* Welcome */
.exec-welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(23,234,220,.06) 0%, rgba(9,135,255,.04) 100%);
  border: 1px solid var(--linec);
  border-radius: var(--r);
  flex-wrap: wrap;
}

.exec-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 10px;
}
.exec-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pdot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.exec-name {
  font-family: var(--sora);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.exec-subtitle {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

.exec-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.exec-meta-item { text-align: right; }
.em-label { display: block; font-size: 9.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.em-value { font-size: 13px; font-weight: 700; color: var(--text); font-family: var(--mono); }
.exec-score {
  font-family: var(--sora);
  font-size: 36px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -.04em;
  line-height: 1;
}

/* Status card */
.exec-status-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 18px;
}
.esc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
  flex-wrap: wrap;
}
.esc-title { font-family: var(--sora); font-size: 13px; font-weight: 700; color: var(--text); }
.esc-tag { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; color: var(--cyan); background: var(--cdiml); border: 1px solid var(--linec); padding: 3px 9px; border-radius: 20px; white-space: nowrap; }

.esc-grid { display: flex; flex-direction: column; }
.esc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.esc-row:last-child { border-bottom: none; }
.esc-row:hover { background: rgba(255,255,255,.02); }
.esc-indicator {
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.esc-indicator.green  { background: var(--green);  box-shadow: 0 0 8px rgba(16,201,106,.5);  }
.esc-indicator.yellow { background: var(--yellow); box-shadow: 0 0 8px rgba(245,197,24,.4);  }
.esc-indicator.blue   { background: var(--blue);   box-shadow: 0 0 8px rgba(9,135,255,.4);   }
.esc-indicator.red    { background: var(--red);    box-shadow: 0 0 8px rgba(255,71,87,.4);   }
.esc-label { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--text); }
.esc-status { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.esc-score-bar {
  width: 80px; height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.esc-score-fill { height: 100%; border-radius: 2px; transition: width 1.2s var(--ease); }

/* AI Advisor */
.advisor-card {
  position: relative;
  border-radius: var(--r);
  margin-bottom: 18px;
  overflow: hidden;
  /* The signature element: animated gradient border */
}
.advisor-border {
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--r) + 1px);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(23,234,220,.5) 60deg,
    rgba(9,135,255,.6) 120deg,
    transparent 180deg,
    rgba(23,234,220,.3) 240deg,
    rgba(9,135,255,.4) 300deg,
    transparent 360deg
  );
  animation: advisorRotate 4s linear infinite;
  z-index: 0;
}
@keyframes advisorRotate { to { transform: rotate(360deg); } }

.advisor-inner {
  position: relative;
  z-index: 1;
  margin: 1px;
  border-radius: calc(var(--r) - 1px);
  background: linear-gradient(160deg, rgba(13,25,42,.98) 0%, rgba(8,16,28,.98) 100%);
  padding: 22px 24px;
}

.advisor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.advisor-brand { display: flex; align-items: flex-start; gap: 12px; }
.advisor-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(23,234,220,.15), rgba(9,135,255,.15));
  border: 1px solid rgba(23,234,220,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.advisor-name { font-family: var(--sora); font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.advisor-sub { font-size: 11px; color: var(--muted); font-weight: 500; }
.advisor-status-pill {
  display: flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700;
  color: var(--cyan);
  background: var(--cdiml);
  border: 1px solid var(--linec);
  padding: 4px 10px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
}

.advisor-body { margin-bottom: 18px; }
.advisor-text {
  font-size: 14px;
  line-height: 1.72;
  color: #c8dff0;
  margin-bottom: 10px;
}
.advisor-note {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
  padding: 8px 12px;
  background: rgba(255,255,255,.03);
  border-left: 2px solid rgba(23,234,220,.25);
  border-radius: 0 4px 4px 0;
}

.advisor-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-advisor-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: linear-gradient(135deg, var(--cyan), #0bbcff);
  border: none; border-radius: var(--r2);
  color: #001419; font-family: var(--inter); font-size: 13.5px; font-weight: 800;
  cursor: pointer; transition: box-shadow .2s, transform .15s;
}
.btn-advisor-cta:hover { box-shadow: 0 0 28px rgba(23,234,220,.4); transform: translateY(-1px); }
.btn-advisor-cta:active { transform: translateY(0); }

.advisor-metrics {
  display: flex;
  align-items: center;
  gap: 0;
}
.am-item { text-align: center; padding: 0 16px; }
.am-val { display: block; font-family: var(--sora); font-size: 20px; font-weight: 700; color: var(--cyan); line-height: 1; }
.am-lbl { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.am-div { width: 1px; height: 30px; background: rgba(255,255,255,.1); }

/* Quick actions */
.quick-actions-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 0;
}
.qac-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
}
.qac-view-all {
  background: none; border: none;
  color: var(--cyan); font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: var(--inter);
  transition: opacity .15s;
}
.qac-view-all:hover { opacity: .7; }

.quick-actions-list { list-style: none; display: flex; flex-direction: column; }
.qa-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.qa-item:last-child { border-bottom: none; }
.qa-item:hover { background: rgba(255,255,255,.02); }
.qa-num {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(23,234,220,.08);
  border: 1px solid rgba(23,234,220,.16);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--cyan);
  flex-shrink: 0;
}
.qa-text { font-size: 13.5px; color: #cde0ef; font-weight: 500; flex: 1; }

/* ══════════════════════════════════════════════════════════════════
   OVERVIEW — PRESERVED
══════════════════════════════════════════════════════════════════ */
.authority-badge { text-align: right; flex-shrink: 0; }
.ab-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.ab-value { font-family: var(--sora); font-size: 48px; font-weight: 800; color: var(--cyan); line-height: 1; letter-spacing: -.04em; }
.ab-sub { font-size: 12px; color: var(--muted); font-family: var(--mono); }

.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 18px; }
.kpi {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 17px 16px 13px; display: flex; flex-direction: column; gap: 6px;
  position: relative; overflow: hidden; transition: border-color .2s, transform .2s;
}
.kpi:hover { border-color: var(--linec); transform: translateY(-2px); }
.kpi::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ka, var(--cyan)); opacity: .7; }
.kl { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.kv { font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.1; }
.kd { font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.kd.up { color: var(--green); } .kd.down { color: var(--red); } .kd.neutral { color: var(--muted); }
.ks { font-size: 10.5px; color: var(--muted); line-height: 1.4; }

.chart-wrap { padding: 16px; height: 188px; }
.chart-wrap svg { width: 100%; height: 100%; }

.monthly-compare { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mc-row { display: flex; align-items: center; gap: 11px; }
.mc-label { width: 120px; font-size: 12px; font-weight: 600; color: var(--muted); flex-shrink: 0; }
.mc-bars { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.mc-bar-wrap { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.mc-bar { height: 100%; border-radius: 3px; transition: width .8s var(--ease); }
.mc-vals { display: flex; justify-content: space-between; font-size: 10.5px; font-family: var(--mono); color: var(--muted); }

.status-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); }
.sg-item { display: flex; align-items: center; gap: 11px; padding: 13px 17px; background: var(--panel); }
.sg-ico { font-size: 17px; flex-shrink: 0; }
.sg-body { flex: 1; min-width: 0; }
.sg-name { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.sg-desc { font-size: 11px; color: var(--muted); }
.sg-badge { font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 20px; font-family: var(--mono); flex-shrink: 0; }
.sg-badge.ok   { background: rgba(16,201,106,.1);  color: var(--green);  }
.sg-badge.warn { background: rgba(245,197,24,.1);  color: var(--yellow); }
.sg-badge.bad  { background: rgba(255,71,87,.1);   color: var(--red);    }

.rec-list { list-style: none; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.ri { display: flex; gap: 10px; padding: 11px 13px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r2); align-items: flex-start; transition: border-color .2s; }
.ri:hover { border-color: var(--linec); }
.rip { flex-shrink: 0; width: 21px; height: 21px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 900; font-family: var(--mono); }
.rip.high { background: rgba(255,71,87,.15); color: var(--red); }
.rip.med  { background: rgba(245,197,24,.12); color: var(--yellow); }
.rip.low  { background: var(--cdiml); color: var(--cyan); }
.rit { font-size: 13px; line-height: 1.55; color: #c8dff0; }

/* ── VISIBILITY (preserved) ── */
.gbp-body { padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.gbp-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.gbp-row span:first-child { color: var(--muted); font-weight: 600; }
.gbp-row span:last-child { font-family: var(--mono); font-weight: 700; }

.rank-dist { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rd { display: flex; flex-direction: column; gap: 4px; }
.rd-lbl { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.rd-lbl span:first-child { color: var(--muted); }
.rd-track { height: 5px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.rd-fill { height: 100%; border-radius: 3px; transition: width .9s var(--ease); }

.kw-table-wrap { overflow-x: auto; }
.kwt { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.kwt th { padding: 9px 13px; text-align: left; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--line); }
.kwt td { padding: 11px 13px; color: var(--text); border-bottom: 1px solid var(--line); vertical-align: middle; }
.kwt tr:last-child td { border-bottom: none; }
.kwt tr:hover td { background: rgba(255,255,255,.02); }
.rk { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 20px; border-radius: 5px; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.rk.t3  { background: rgba(16,201,106,.12);  color: var(--green);  }
.rk.t10 { background: var(--cdiml);           color: var(--cyan);   }
.rk.mid { background: rgba(245,197,24,.1);   color: var(--yellow); }
.rk.low { background: rgba(255,255,255,.05); color: var(--muted);  }
.ta { font-size: 12.5px; }

.traffic-bars { padding: 16px; display: flex; flex-direction: column; gap: 11px; }
.tb { display: flex; align-items: center; gap: 11px; }
.tb-src { width: 110px; font-size: 12px; font-weight: 600; color: var(--muted); flex-shrink: 0; }
.tb-track { flex: 1; height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.tb-fill { height: 100%; border-radius: 3px; }
.tb-val { width: 34px; text-align: right; font-family: var(--mono); font-size: 11.5px; color: var(--text); flex-shrink: 0; }

.backlinks { display: flex; flex-direction: column; }
.bl { display: flex; align-items: center; gap: 10px; padding: 10px 17px; border-bottom: 1px solid var(--line); }
.bl:last-child { border-bottom: none; }
.bl-domain { flex: 1; font-size: 12.5px; font-weight: 600; color: var(--text); }
.bl-type { font-size: 11px; color: var(--muted); font-weight: 600; }
.bl-da { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: var(--cdiml); color: var(--cyan); }

/* ── AI ENGINES (preserved) ── */
.ai-engines { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 0; }
.aie { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 16px; text-align: center; transition: border-color .2s, transform .2s; }
.aie:hover { border-color: var(--linec); transform: translateY(-2px); }
.aie-name { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 13px; }
.aie-ring { width: 76px; height: 76px; margin: 0 auto 12px; position: relative; }
.aie-ring svg { transform: rotate(-90deg); }
.aie-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--text); }
.aie-status { font-size: 11px; color: var(--muted); line-height: 1.5; }
.aie-status strong { color: var(--cyan); }

.console-out { background: #020a10; padding: 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.9; max-height: 280px; overflow-y: auto; }
.co{color:rgba(23,234,220,.4)} .cg{color:var(--green)} .cy{color:var(--yellow)}
.cr{color:var(--red)} .cm{color:#a0e0d8} .cd{color:#253a50} .cb{color:var(--text);font-weight:700}

/* ── RISKS (preserved) ── */
.risk-list,.opp-list { display: flex; flex-direction: column; }
.risk-item,.opp-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.risk-item:last-child,.opp-item:last-child { border-bottom: none; }
.ri-level { flex-shrink: 0; padding: 2px 8px; border-radius: 20px; font-size: 9.5px; font-weight: 700; font-family: var(--mono); margin-top: 2px; }
.ri-level.crit { background: rgba(255,71,87,.12); color: var(--red); }
.ri-level.med  { background: rgba(245,197,24,.1);  color: var(--yellow); }
.ri-level.opp  { background: rgba(16,201,106,.1);  color: var(--green); }
.ri-body { flex: 1; }
.ri-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.ri-desc { font-size: 12px; color: var(--muted); line-height: 1.55; }

/* ── BENCHMARK (preserved) ── */
.benchmark-bars { padding: 20px; display: flex; flex-direction: column; gap: 13px; }
.bb-row { display: flex; align-items: center; gap: 13px; }
.bb-name { width: 150px; font-size: 12px; font-weight: 600; color: var(--muted); flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-name.highlight { color: var(--text); font-weight: 800; }
.bb-track { flex: 1; height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.bb-fill { height: 100%; border-radius: 4px; transition: width .9s var(--ease); }
.bb-val { width: 34px; text-align: right; font-family: var(--mono); font-size: 12.5px; font-weight: 700; flex-shrink: 0; }
.bb-val.highlight { color: var(--cyan); }

.bench-ai,.bench-analysis { padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.ba-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.ba-row span:first-child { color: var(--muted); font-weight: 600; }
.ba-analysis { font-size: 13px; color: #c8dff0; line-height: 1.7; }

/* ══════════════════════════════════════════════════════════════════
   ROADMAP — NEW
══════════════════════════════════════════════════════════════════ */
.roadmap-phase-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--cdiml);
  border: 1px solid var(--linec);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cyan);
  font-family: var(--mono);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 4px;
}

.roadmap-timeline {
  position: relative;
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  padding: 28px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow-x: auto;
}
.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 60px; right: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--linec), rgba(23,234,220,.08));
  transform: translateY(-50%);
}

.rm-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  position: relative;
  min-width: 100px;
}
.rm-dot-wrap {
  width: 40px; height: 40px;
  position: relative;
  flex-shrink: 0;
}
.rm-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  border: 2px solid transparent;
  position: relative;
  z-index: 1;
}
.rm-dot.done     { background: linear-gradient(135deg, rgba(23,234,220,.2), rgba(9,135,255,.2)); border-color: var(--cyan); }
.rm-dot.current  { background: linear-gradient(135deg, rgba(23,234,220,.3), rgba(9,135,255,.3)); border-color: var(--cyan); animation: nodePulse 2s ease-in-out infinite; }
.rm-dot.upcoming { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
@keyframes nodePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(23,234,220,.3); }
  50%      { box-shadow: 0 0 0 8px rgba(23,234,220,.0); }
}
.rm-month { font-family: var(--sora); font-size: 12px; font-weight: 700; }
.rm-month.done     { color: var(--cyan); }
.rm-month.current  { color: var(--cyan); }
.rm-month.upcoming { color: var(--muted); }
.rm-label { font-size: 11px; color: var(--muted); text-align: center; max-width: 90px; line-height: 1.4; }

.roadmap-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.rm-detail-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  transition: border-color .2s;
}
.rm-detail-card:hover { border-color: var(--linec); }
.rm-detail-card.current { border-color: rgba(23,234,220,.25); }
.rmd-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rmd-title { font-family: var(--sora); font-size: 13.5px; font-weight: 700; color: var(--text); }
.rmd-badge { font-size: 9.5px; font-weight: 700; font-family: var(--mono); padding: 2px 7px; border-radius: 20px; }
.rmd-badge.done     { background: rgba(16,201,106,.1); color: var(--green); }
.rmd-badge.current  { background: rgba(23,234,220,.1); color: var(--cyan); }
.rmd-badge.upcoming { background: rgba(255,255,255,.05); color: var(--muted); }
.rmd-items { display: flex; flex-direction: column; gap: 6px; }
.rmd-item { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.rmd-item.done-item { color: #a0c8d8; }
.rmd-item-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; background: var(--line); }
.rmd-item.done-item .rmd-item-dot { background: var(--cyan); }

/* ══════════════════════════════════════════════════════════════════
   ACTIONS (preserved + enhanced)
══════════════════════════════════════════════════════════════════ */
.actions-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.as-count {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}
.as-label { font-size: 11px; color: var(--muted); }

.actions-board { display: flex; flex-direction: column; gap: 8px; }
.act { display: flex; align-items: center; gap: 14px; padding: 13px 17px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
.act:hover { border-color: var(--linec); }
.act-chk {
  width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid rgba(255,255,255,.15);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s; cursor: pointer; font-size: 11px;
}
.act-chk.done { border-color: var(--cyan); background: rgba(23,234,220,.12); color: var(--cyan); }
.act-body { flex: 1; }
.act-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.act-title.done-txt { opacity: .45; text-decoration: line-through; }
.act-meta { font-size: 11px; color: var(--muted); display: flex; gap: 11px; flex-wrap: wrap; }
.act-prio { font-size: 10px; font-weight: 700; font-family: var(--mono); padding: 2px 8px; border-radius: 20px; flex-shrink: 0; }
.act-prio.high { background: rgba(255,71,87,.1); color: var(--red); }
.act-prio.med  { background: rgba(245,197,24,.1); color: var(--yellow); }
.act-prio.low  { background: var(--cdiml); color: var(--cyan); }

/* ══════════════════════════════════════════════════════════════════
   HISTORY — NEW (changelog style)
══════════════════════════════════════════════════════════════════ */
.history-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hf-month-group { margin-bottom: 28px; }
.hf-month-label {
  font-size: 11px; font-weight: 700; color: var(--cyan);
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.hf-month-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.hf-entry {
  display: flex;
  gap: 16px;
  padding: 0 0 16px 0;
  position: relative;
}
.hf-entry:last-child { padding-bottom: 0; }
.hf-entry::before {
  content: '';
  position: absolute;
  left: 52px;
  top: 24px; bottom: 0;
  width: 1px;
  background: var(--line);
}
.hf-entry:last-child::before { display: none; }

.hf-date {
  width: 44px;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  padding-top: 3px;
  text-align: right;
}
.hf-node {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  border: 1.5px solid rgba(23,234,220,.3);
  background: var(--panel);
  position: relative;
  z-index: 1;
  margin-top: 1px;
}
.hf-node.completed { border-color: var(--cyan); background: rgba(23,234,220,.1); }
.hf-content { flex: 1; padding-bottom: 2px; }
.hf-title { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.hf-desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-bottom: 6px; }
.hf-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hf-tag { font-size: 10px; font-weight: 700; font-family: var(--mono); padding: 2px 8px; border-radius: 20px; background: var(--bg3); border: 1px solid var(--line); color: var(--muted); }
.hf-impact { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.hf-impact.high { background: rgba(16,201,106,.1); color: var(--green); border: 1px solid rgba(16,201,106,.2); }
.hf-impact.med  { background: rgba(245,197,24,.1); color: var(--yellow); border: 1px solid rgba(245,197,24,.2); }

/* ══════════════════════════════════════════════════════════════════
   REPORTS (preserved + enhanced)
══════════════════════════════════════════════════════════════════ */
.reports-list { display: flex; flex-direction: column; gap: 10px; }
.rep { display: flex; align-items: center; gap: 13px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
.rep:hover { border-color: var(--linec); }
.rep-ico { width: 40px; height: 40px; border-radius: 9px; background: var(--cdiml); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.rep-body { flex: 1; }
.rep-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.rep-date { font-size: 11.5px; color: var(--muted); }
.rep-badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; font-family: var(--mono); background: var(--cdiml); color: var(--cyan); flex-shrink: 0; }
.rep-badge.pending { background: rgba(245,197,24,.1); color: var(--yellow); }
.btn-dl {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; background: none; border: 1px solid var(--line); border-radius: var(--r2);
  color: var(--muted); font-size: 11.5px; font-weight: 700; font-family: var(--inter);
  cursor: pointer; transition: color .15s, border-color .15s; text-decoration: none; flex-shrink: 0;
}
.btn-dl:hover { color: var(--cyan); border-color: var(--linec); }
.btn-dl[aria-disabled="true"] { opacity: .3; pointer-events: none; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .ai-engines { grid-template-columns: repeat(2,1fr); }
  .status-grid { grid-template-columns: repeat(2,1fr); }
  .two-col { grid-template-columns: 1fr; }
  .roadmap-detail-grid { grid-template-columns: 1fr; }
  .exec-welcome { flex-direction: column; align-items: flex-start; }
  .exec-meta { align-items: flex-start; }
}

@media (max-width: 900px) {
  :root { --sb: 0px; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 232px; transform: translateX(-100%); z-index: 100; box-shadow: 4px 0 40px rgba(0,0,0,.6); }
  .sidebar.open { transform: translateX(0); width: 232px; }
  .sidebar.collapsed { transform: translateX(-100%); width: 232px; }
  .ptb-menu { display: flex; }
  .psec { padding: 16px 14px 40px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .ai-engines { grid-template-columns: 1fr 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .ptb-date, .ptb-live .mono { display: none; }
  .ab-value { font-size: 40px; }
  .exec-name { font-size: 20px; }
  .analysis-card { width: 90%; max-width: 360px; padding: 36px 28px; }
  .advisor-footer { flex-direction: column; align-items: flex-start; }
  .advisor-metrics { padding-left: 0; }
}

@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .ai-engines { grid-template-columns: 1fr 1fr; }
  .psec-title { font-size: 18px; }
  .login-card { padding: 26px 20px; }
  .exec-name { font-size: 18px; }
}
