/* ============================================================
   MEMOO ALPHA — OVERVIEW INXO REBUILD — SESSION 2 POLISH
   Gold Hero Chart + Activity Chips + KPI Typography + Stats Panel
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────────────── */
.ov2-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--bg, #07090f);
}

/* ── Top control bar ─────────────────────────────────────────────── */
.ov2-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.ov2-topbar-left  { display: flex; align-items: center; gap: 10px; }
.ov2-topbar-right { display: flex; align-items: center; gap: 8px; }

.ov2-page-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a84c;
  margin: 0;
}

.ov2-page-title span { color: #e2c36b; }

/* ── Badges ──────────────────────────────────────────────────────── */
.ov2-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid;
}

.ov2-badge-paper { color: #67e8f9; border-color: rgba(103,232,249,0.25); background: rgba(103,232,249,0.06); }
.ov2-badge-live  { color: #9fe6bf; border-color: rgba(159,230,191,0.25); background: rgba(159,230,191,0.06); }

.ov2-badge-pilot {
  color: #ffd27a;
  border-color: rgba(255,210,122,0.3);
  background: rgba(255,210,122,0.08);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ov2-badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #ffd27a;
  flex-shrink: 0;
  animation: ov2-blink 1.2s ease-in-out infinite;
}

@keyframes ov2-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Controls ────────────────────────────────────────────────────── */
.ov2-sel {
  font-size: 11px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: #cdd6e0;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
}

.ov2-sel:hover, .ov2-sel:focus { border-color: rgba(201,168,76,0.4); }

.ov2-sel-sm {
  font-size: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #7a8ca0;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
  max-width: 180px;
}

.ov2-btn-icon {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: #cdd6e0;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ov2-btn-icon:hover {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.35);
  color: #c9a84c;
}

.ov2-updated-label { font-size: 10px; color: #3d4f5f; }

/* ─────────────────────────────────────────────────────────────────
   PRIORITY 1 — HERO SECTION: TALLER + GOLD CHART
   ───────────────────────────────────────────────────────────────── */

.ov2-hero {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 0;
  background: #07090f;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  min-height: 420px;
}

/* Left: chart area */
.ov2-hero-chart {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  min-height: 280px;
  border-right: 1px solid rgba(201,168,76,0.10);
}

.ov2-hero-chart-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.ov2-hero-chart-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(201,168,76,0.65);
}

/* Canvas fills remaining space */
#ov-equity-canvas {
  flex: 1;
  width: 100%;
  display: block;
  border-radius: 3px;
}

/* ─────────────────────────────────────────────────────────────────
   PRIORITY 4 — HERO STATS PANEL: GOLD ACCENT + BIGGER VALUES
   ───────────────────────────────────────────────────────────────── */

.ov2-hero-stats {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg,
    rgba(201,168,76,0.05) 0%,
    rgba(7,9,15,0) 100%);
}

/* Each stat row */
.ov2-stat-pill {
  flex: 1;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
  position: relative;
  overflow: hidden;
}

.ov2-stat-pill:last-child { border-bottom: none; }

.ov2-stat-pill:hover { background: rgba(255,255,255,0.025); }

/* Gold left accent bar on hover */
.ov2-stat-pill::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: #c9a84c;
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.2s;
}

.ov2-stat-pill:hover::before { opacity: 0.6; }

.ov2-stat-label {
  font-size: 0.60rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

.ov2-stat-val {
  font-size: 1.50rem;
  font-weight: 800;
  color: #e2c36b;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(201,168,76,0.28);
}

.ov2-stat-val.pos { color: #4ade80; text-shadow: none; }
.ov2-stat-val.neg { color: #f87171; text-shadow: none; }

/* Chart area overlay labels */
.ov2-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 4px;
}

.ov2-hero-title.pos { color: #4ade80; }
.ov2-hero-title.neg { color: #f87171; }

.ov2-hero-label {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 5px;
}

.ov2-hero-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─────────────────────────────────────────────────────────────────
   PRIORITY 3 — KPI BAND: BIGGER NUMBERS + FLAT DIVIDERS
   ───────────────────────────────────────────────────────────────── */

.ov2-kpi-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #09111e;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ov2-kpi-card {
  padding: 20px 24px;
  border-right: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  transition: background 0.15s;
}

.ov2-kpi-card:last-child { border-right: none; }

/* Gold bottom accent on hover */
.ov2-kpi-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,168,76,0.50) 50%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.2s;
}

.ov2-kpi-card:hover { background: rgba(255,255,255,0.02); }
.ov2-kpi-card:hover::before { opacity: 1; }

/* Primary card (first — Total PnL) — CSS :first-child so no HTML change needed */
.ov2-kpi-card.primary,
.ov2-kpi-card:first-child {
  background: linear-gradient(135deg,
    rgba(201,168,76,0.09) 0%, #09111e 55%);
}

.ov2-kpi-card.primary::before,
.ov2-kpi-card:first-child::before { opacity: 0.55; }

.ov2-kpi-card:first-child .ov2-kpi-val {
  color: #e2c36b;
  text-shadow: 0 0 24px rgba(201,168,76,0.28);
}

/* Label row */
.ov2-kpi-label,
.ov2-kpi-name {
  font-size: 0.60rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

/* THE BIG NUMBER */
.ov2-kpi-val {
  font-size: 1.70rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.ov2-kpi-card.primary .ov2-kpi-val {
  color: #e2c36b;
  text-shadow: 0 0 24px rgba(201,168,76,0.28);
}

.ov2-kpi-val.pos { color: #4ade80 !important; }
.ov2-kpi-val.neg { color: #f87171 !important; }

.ov2-kpi-sub {
  font-size: 0.66rem;
  color: rgba(255,255,255,0.26);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov2-kpi-sub.pos { color: rgba(74,222,128,0.65); }
.ov2-kpi-sub.neg { color: rgba(248,113,113,0.65); }

/* ── Main 2-column grid ──────────────────────────────────────────── */
.ov2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px 20px;
}

.ov2-panel {
  background: #0a1520;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────────
   PRIORITY 2 (partial) — PANEL HEADERS: REFINED
   ───────────────────────────────────────────────────────────────── */

.ov2-panel-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.012);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.35);
}

.ov2-filter-group { display: flex; gap: 4px; }

.ov2-filter-btn {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.10);
  background: transparent;
  color: rgba(255,255,255,0.28);
  cursor: pointer;
  transition: all 0.15s;
}

.ov2-filter-btn.active,
.ov2-filter-btn:hover {
  background: rgba(201,168,76,0.10);
  border-color: rgba(201,168,76,0.35);
  color: #c9a84c;
}

/* ── Portfolio rows — PRIORITY 1 rich layout ─────────────────────── */
.ov-pf-grid-inner { display: flex; flex-direction: column; gap: 0; }

/* Column header */
.ov-pf-header {
  display: grid;
  grid-template-columns: 14px 1fr auto auto auto;
  gap: 10px;
  padding: 6px 14px 8px;
  border-bottom: 1px solid rgba(201,168,76,0.10);
  margin-bottom: 2px;
}

.ov-pf-header span {
  font-size: 0.58rem;
  color: rgba(201,168,76,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.ov-pf-row {
  display: grid;
  grid-template-columns: 14px 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(255,255,255,0.035);
}

.ov-pf-row:hover {
  background: rgba(201,168,76,0.05);
  border-color: rgba(201,168,76,0.12);
}

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

.ov-pf-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  justify-self: center;
}

.ov-pf-dot.active  { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,0.55); }
.ov-pf-dot.halted  { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.45); }
.ov-pf-dot.stopped { background: rgba(255,255,255,0.20); }

.ov-pf-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ov-pf-equity {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2c36b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ov-pf-pnl {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ov-pf-pct {
  font-size: 0.70rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  min-width: 52px;
}

.ov-pf-open { font-size: 0.68rem; color: rgba(255,255,255,0.35); white-space: nowrap; }
.ov-pf-wr   { font-size: 0.70rem; color: rgba(255,255,255,0.35); white-space: nowrap; }

.ov-pf-pnl.pos, .ov-pf-pct.pos { color: #4ade80; }
.ov-pf-pnl.neg, .ov-pf-pct.neg { color: #f87171; }
.ov-pf-pnl.neu, .ov-pf-pct.neu { color: rgba(255,255,255,0.30); }

/* ── Health grid (JS-written) ────────────────────────────────────── */
.ov-health-grid-inner { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px 4px; }

.ov-health-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 4px 0;
}

.ov-health-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────────
   PRIORITY 2 — ACTIVITY STREAM: HEIGHT CAP + CHIP SYSTEM
   ───────────────────────────────────────────────────────────────── */

#ov-activity {
  max-height: 200px !important;
  overflow-y: auto !important;
}

.ov-evt {
  display: flex;
  gap: 8px;
  padding: 5px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.12s;
  align-items: flex-start;
}

.ov-evt:hover { background: rgba(255,255,255,0.02); }

.ov-evt-time {
  font-size: 0.63rem;
  color: rgba(201,168,76,0.50);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  width: 48px;
  padding-top: 2px;
  font-weight: 600;
  white-space: nowrap;
}

.ov-evt-type {
  flex-shrink: 0;
  width: 80px;
  padding-top: 1px;
  font-size: 11px;
  color: #67e8f9;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ov-evt-body {
  flex: 1;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chip component (for future JS enhancement) */
.ov-evt-chip {
  font-size: 0.56rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  display: inline-block;
}

.chip-proposal { background: rgba(96,165,250,0.13);  color: #60a5fa; }
.chip-vote     { background: rgba(201,168,76,0.10);  color: #c9a84c; }
.chip-agent    { background: rgba(167,139,250,0.10); color: #a78bfa; }
.chip-exec     { background: rgba(74,222,128,0.10);  color: #4ade80; }
.chip-system   { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.38); }
.chip-warn     { background: rgba(251,191,36,0.10);  color: #fbbf24; }
.chip-error    { background: rgba(248,113,113,0.10); color: #f87171; }

/* ── Collapsible sections ────────────────────────────────────────── */
.ov2-collapse-card {
  margin: 0 20px 10px;
  background: #0a1520;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}

.ov2-collapse-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.ov2-collapse-hdr:hover { background: rgba(201,168,76,0.05); }

.ov2-collapse-left  { display: flex; align-items: center; gap: 10px; }

.ov2-collapse-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #cdd6e0;
}

.ov2-collapse-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(159,230,191,0.10);
  border: 1px solid rgba(159,230,191,0.20);
  color: #9fe6bf;
}

.ov2-badge-dim {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.28);
}

.ov2-collapse-icon { font-size: 11px; color: #4a5a6a; }

.ov2-collapse-body { padding: 0 16px 14px; overflow-x: auto; }

/* ── Tables ──────────────────────────────────────────────────────── */
.ov-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }

.ov-tbl th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #4a5a6a;
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}

.ov-tbl td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #cdd6e0;
}

.ov-tbl tbody tr:hover td { background: rgba(255,255,255,0.025); }

/* Table sticky header when inside collapse-body */
.ov2-collapse-body .ov-tbl th {
  position: sticky;
  top: 0;
  background: #0d1e2e;
  z-index: 1;
}

/* BUY / SELL / symbol cell classes */
.ov-tbl td.buy  { color: #4ade80; font-weight: 700; }
.ov-tbl td.sell { color: #f87171; font-weight: 700; }
.ov-tbl td.sym  { color: #e2c36b; font-weight: 600; letter-spacing: 0.02em; }

/* ── Loading placeholder ─────────────────────────────────────────── */
.ov2-loading { color: #3d4f5f; font-size: 12px; padding: 8px 14px; }

/* ── Inspector overlay + drawer ──────────────────────────────────── */
.ov-insp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 900;
}

.ov-insp-overlay.open { display: block; }

.ov-inspector {
  position: fixed;
  top: 0; right: -490px;
  width: 490px; height: 100vh;
  background: #0d1622;
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 901;
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
  overflow: hidden;
}

.ov-inspector.open { right: 0; }

.ov-inspector-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.ov-inspector-hdr h3 { margin: 0; font-size: 14px; font-weight: 700; color: #e2e8f0; }

.ov-inspector-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: #7a8ca0;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
}

.ov-inspector-close:hover {
  background: rgba(255,100,100,0.10);
  border-color: #ffa3a3;
  color: #ffa3a3;
}

.ov-btn {
  font-size: 11px;
  padding: 3px 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: #cdd6e0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.ov-btn:hover {
  background: rgba(201,168,76,0.10);
  border-color: rgba(201,168,76,0.30);
  color: #c9a84c;
}

.ov-insp-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.ov-tab-btn {
  flex: 1;
  padding: 10px 6px;
  font-size: 11px;
  font-weight: 600;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #4a5a6a;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ov-tab-btn.active         { color: #c9a84c; border-bottom-color: #c9a84c; }
.ov-tab-btn:hover:not(.active) { color: #cdd6e0; }

.ov-inspector-body { flex: 1; overflow-y: auto; padding: 14px 18px; }

/* ── Value color classes ─────────────────────────────────────────── */
.positive { color: #9fe6bf !important; }
.negative { color: #ffa3a3 !important; }

/* ── Custom scrollbars ───────────────────────────────────────────── */
.ov2-page *::-webkit-scrollbar,
.ov-inspector-body::-webkit-scrollbar,
.ov2-collapse-body::-webkit-scrollbar,
#ov-activity::-webkit-scrollbar          { width: 4px; height: 4px; }

.ov2-page *::-webkit-scrollbar-track,
.ov-inspector-body::-webkit-scrollbar-track,
.ov2-collapse-body::-webkit-scrollbar-track,
#ov-activity::-webkit-scrollbar-track    { background: transparent; }

.ov2-page *::-webkit-scrollbar-thumb,
.ov-inspector-body::-webkit-scrollbar-thumb,
.ov2-collapse-body::-webkit-scrollbar-thumb,
#ov-activity::-webkit-scrollbar-thumb    { background: rgba(201,168,76,0.18); border-radius: 2px; }

/* ── Section separator ───────────────────────────────────────────── */
.ov2-section-sep {
  height: 1px;
  margin: 0 0 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201,168,76,0.25) 20%,
    rgba(201,168,76,0.40) 50%,
    rgba(201,168,76,0.25) 80%,
    transparent 100%
  );
}

/* ── Quick Nav ───────────────────────────────────────────────────── */
.ov2-quicknav {
  padding: 20px 24px 28px;
}

.ov2-quicknav-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #3d4f5f;
  margin-bottom: 12px;
}

.ov2-quicknav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.ov2-nav-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 14px 10px 12px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.ov2-nav-card:hover {
  background: rgba(201,168,76,0.07);
  border-color: rgba(201,168,76,0.30);
  transform: translateY(-2px);
}

.ov2-nav-icon {
  font-size: 20px;
  line-height: 1;
}

.ov2-nav-label {
  font-size: 11px;
  font-weight: 600;
  color: #8a9bb0;
  letter-spacing: 0.02em;
}

.ov2-nav-card:hover .ov2-nav-label { color: #c9a84c; }

.ov2-nav-sub {
  font-size: 10px;
  color: #3d4f5f;
  margin-top: 2px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .ov2-hero { grid-template-columns: 1fr; min-height: auto; }
  .ov2-hero-stats { flex-direction: row; border-left: none; border-top: 1px solid rgba(201,168,76,0.10); }
  .ov2-stat-pill { border-bottom: none; border-right: 1px solid rgba(255,255,255,0.05); }
  .ov2-stat-pill:last-child { border-right: none; }
  .ov2-kpi-band { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .ov2-grid { grid-template-columns: 1fr; }
  .ov2-kpi-band { grid-template-columns: repeat(2, 1fr); }
  .ov2-quicknav-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .ov2-quicknav-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   SESSION 4 — CHARTS ROW + MICRO-ANIMATIONS
   ============================================================ */

/* ── CHARTS ROW ──────────────────────────────────────────── */
.ov2-charts-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  padding: 20px 32px;
  background: #07090f;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Chart panel base */
.ov2-chart-panel {
  background: #0c1020;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.20s ease;
}

.ov2-chart-panel:hover {
  border-color: rgba(201,168,76,0.16);
}

.ov2-chart-panel-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.012);
}

.ov2-chart-panel-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ov2-chart-panel-meta {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.22);
}

.ov2-chart-panel-body {
  padding: 16px;
}

/* ── DONUT CHART ─────────────────────────────────────────── */
.ov2-donut-body {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 16px !important;
}

.ov2-donut-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.ov2-donut-wrap canvas {
  width: 140px !important;
  height: 140px !important;
}

.ov2-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ov2-donut-pct {
  font-size: 1.60rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 0 16px rgba(74,222,128,0.30);
}

.ov2-donut-lbl {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Legend */
.ov2-donut-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ov2-donut-leg-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ov2-donut-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ov2-donut-leg-dot.win     { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,0.45); }
.ov2-donut-leg-dot.loss    { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.35); }
.ov2-donut-leg-dot.neutral { background: rgba(255,255,255,0.25); }

.ov2-donut-leg-label {
  font-size: 0.70rem;
  color: rgba(255,255,255,0.40);
  flex: 1;
}

.ov2-donut-leg-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  font-variant-numeric: tabular-nums;
}

.ov2-donut-leg-val.win  { color: #4ade80; }
.ov2-donut-leg-val.loss { color: #f87171; }

.ov2-donut-leg-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 3px 0;
}

/* ── DAILY PNL BAR CHART ─────────────────────────────────── */
.ov2-daily-canvas-wrap {
  height: 110px;
  position: relative;
  margin-bottom: 12px;
}

.ov2-daily-canvas-wrap canvas {
  width: 100% !important;
  height: 110px !important;
}

.ov2-daily-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 12px;
}

.ov2-daily-stat {
  text-align: center;
}

.ov2-daily-stat-lbl {
  display: block;
  font-size: 0.58rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ov2-daily-stat-val {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.70);
}

.ov2-daily-stat-val.win  { color: #4ade80; }
.ov2-daily-stat-val.loss { color: #f87171; }

/* ── KPI CARD ANIMATIONS ─────────────────────────────────── */
@keyframes ov2-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ov2-kpi-card {
  animation: ov2-fade-up 0.4s ease both;
}

.ov2-kpi-card:nth-child(1) { animation-delay: 0.05s; }
.ov2-kpi-card:nth-child(2) { animation-delay: 0.10s; }
.ov2-kpi-card:nth-child(3) { animation-delay: 0.15s; }
.ov2-kpi-card:nth-child(4) { animation-delay: 0.20s; }
.ov2-kpi-card:nth-child(5) { animation-delay: 0.25s; }

.ov2-kpi-card {
  transition: background 0.20s ease,
              box-shadow  0.25s ease,
              transform   0.20s cubic-bezier(0.34,1.56,0.64,1) !important;
  will-change: transform;
}

.ov2-kpi-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35),
              0 0 0 1px rgba(201,168,76,0.18),
              0 0 20px rgba(201,168,76,0.07) !important;
  z-index: 2;
  position: relative;
}

.ov2-kpi-card:hover .ov2-kpi-val {
  transition: transform 0.18s ease;
  transform: scale(1.03);
  display: inline-block;
}

.ov2-kpi-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,168,76,0.55) 40%,
    rgba(226,195,107,0.80) 50%,
    rgba(201,168,76,0.55) 60%,
    transparent 100%);
  transform: scaleX(0);
  transition: transform 0.30s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: center;
}

.ov2-kpi-card:hover::after { transform: scaleX(1); }

/* ── HERO STAT ANIMATIONS ────────────────────────────────── */
@keyframes ov2-slide-left {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ov2-hero-stat {
  animation: ov2-slide-left 0.45s ease both;
  transition: background 0.18s ease !important;
}

.ov2-hero-stat:nth-child(1) { animation-delay: 0.15s; }
.ov2-hero-stat:nth-child(2) { animation-delay: 0.25s; }
.ov2-hero-stat:nth-child(3) { animation-delay: 0.35s; }
.ov2-hero-stat:nth-child(4) { animation-delay: 0.45s; }

.ov2-hero-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 2px;
  background: linear-gradient(180deg,
    transparent, #c9a84c 30%, #e2c36b 50%, #c9a84c 70%, transparent);
  border-radius: 1px;
  transform: scaleY(0);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: center;
}

.ov2-hero-stat:hover::before { transform: scaleY(1); }
.ov2-hero-stat:hover .ov2-stat-val {
  transition: text-shadow 0.20s ease;
  text-shadow: 0 0 24px rgba(201,168,76,0.35) !important;
}

/* ── NAV CARD ANIMATIONS ─────────────────────────────────── */
@keyframes ov2-fade-scale {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ov2-nav-card {
  animation: ov2-fade-scale 0.40s ease both;
  transition: background  0.20s ease,
              border-color 0.20s ease,
              transform   0.22s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow  0.25s ease !important;
  will-change: transform;
}

.ov2-nav-card:nth-child(1) { animation-delay: 0.10s; }
.ov2-nav-card:nth-child(2) { animation-delay: 0.15s; }
.ov2-nav-card:nth-child(3) { animation-delay: 0.20s; }
.ov2-nav-card:nth-child(4) { animation-delay: 0.25s; }
.ov2-nav-card:nth-child(5) { animation-delay: 0.30s; }
.ov2-nav-card:nth-child(6) { animation-delay: 0.35s; }

.ov2-nav-card:hover {
  transform: translateY(-4px) !important;
  background: rgba(201,168,76,0.07) !important;
  border-color: rgba(201,168,76,0.28) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35),
              0 0 20px rgba(201,168,76,0.08) !important;
}

.ov2-nav-card:hover .ov2-nav-icon {
  animation: ov2-icon-bounce 0.40s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes ov2-icon-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25) translateY(-3px); }
  70%  { transform: scale(0.95) translateY(1px); }
  100% { transform: scale(1) translateY(0); }
}

.ov2-nav-card:hover .ov2-nav-label {
  color: #e2c36b !important;
  transition: color 0.15s ease;
}

/* ── PORTFOLIO ROW HOVER ─────────────────────────────────── */
.ov-pf-row {
  transition: background 0.15s ease, padding-left 0.15s ease !important;
}
.ov-pf-row:hover { padding-left: 18px !important; }

/* ── PANEL HOVER ─────────────────────────────────────────── */
.ov2-panel {
  transition: border-color 0.20s ease, box-shadow 0.25s ease !important;
}
.ov2-panel:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.25),
              0 0 0 1px rgba(201,168,76,0.10) !important;
}

/* ── COLLAPSE BADGE HOVER ────────────────────────────────── */
.ov2-collapse-badge {
  transition: background 0.20s ease, border-color 0.20s ease,
              box-shadow 0.20s ease !important;
}
.ov2-collapse-hdr:hover .ov2-collapse-badge {
  background: rgba(201,168,76,0.18) !important;
  border-color: rgba(201,168,76,0.40) !important;
  box-shadow: 0 0 10px rgba(201,168,76,0.15) !important;
}

/* ── CHARTS ROW RESPONSIVE ───────────────────────────────── */
@media (max-width: 1100px) {
  .ov2-charts-row {
    grid-template-columns: 1fr;
    padding: 16px 20px;
  }
  .ov2-donut-body { justify-content: center; }
}

/* ── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ov2-kpi-card, .ov2-hero-stat,
  .ov2-nav-card, .ov2-chart-panel {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   FINAL POLISH — Icons + Counters + Hover Arrows
   ============================================================ */

/* ── KPI ICON ROW ────────────────────────────────────────── */
.ov2-kpi-icon-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.ov2-kpi-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.20s ease;
}

.ov2-kpi-card:hover .ov2-kpi-svg {
  opacity: 1.0;
}

.ov2-kpi-name {
  font-size: 0.67rem;
  font-weight: 600;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  flex: 1;
}

/* ── TREND ARROWS ────────────────────────────────────────── */
.ov2-kpi-trend {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.20s ease;
}

.ov2-kpi-card:hover .ov2-kpi-trend {
  transform: scale(1.15);
}

/* ── LIVE PULSE DOT ──────────────────────────────────────── */
.ov2-kpi-live-dot {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}

.ov2-kpi-live-dot.active {
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.40);
  animation: ov2-live-pulse 2s ease infinite;
}

@keyframes ov2-live-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(74,222,128,0.40); }
  70%  { box-shadow: 0 0 0 7px rgba(74,222,128,0.00); }
  100% { box-shadow: 0 0 0 0   rgba(74,222,128,0.00); }
}

/* ── PORTFOLIO ROW HOVER ARROW ───────────────────────────── */
.ov-pf-arrow {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.15);
  transition: color     0.15s ease,
              transform 0.20s cubic-bezier(0.34,1.56,0.64,1),
              opacity   0.15s ease;
  opacity: 0;
  flex-shrink: 0;
}

.ov-pf-row:hover .ov-pf-arrow {
  color: rgba(201,168,76,0.70);
  transform: translateX(4px);
  opacity: 1;
}

/* Update grid columns to include arrow */
.ov-pf-row,
.ov-pf-header {
  grid-template-columns: 14px 1fr auto auto auto 16px !important;
}

/* Reduce-motion: skip live pulse */
@media (prefers-reduced-motion: reduce) {
  .ov2-kpi-live-dot.active {
    animation: none !important;
    box-shadow: 0 0 0 2px rgba(74,222,128,0.50) !important;
  }
}
