/* ResearchGraph.css — deep-research knowledge map + Iron-Man gesture HUD */

/* ── Result view switcher (Mindmap / List / Timeline) ───────────────────── */
.rg-viewseg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--text, #fff) 8%, transparent); border: 1px solid var(--border, rgba(255,255,255,.12)); }
.rg-viewseg button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--text2, #b9c0cc); font-size: .8rem; font-weight: 600; padding: 6px 11px; border-radius: 9px; cursor: pointer; transition: background .15s ease, color .15s ease; white-space: nowrap; }
.rg-viewseg button:hover { color: var(--text, #fff); }
.rg-viewseg button.active { background: linear-gradient(135deg, #a855f7, #6366f1); color: #fff; }
@media (max-width: 720px) { .rg-viewseg button span { display: none; } }

/* List & Timeline panels overlay the canvas stage */
.rg-altview { position: absolute; inset: 0; overflow-y: auto; padding: 22px clamp(16px, 4vw, 40px) 40px; background: var(--bg, #0a0a0b); z-index: 6; }
.rg-list-item { border: 1px solid var(--border, rgba(255,255,255,.1)); border-left: 4px solid var(--rg-acc, #a855f7); border-radius: 14px; padding: 14px 18px; margin: 0 auto 12px; max-width: 880px; background: var(--bg2, rgba(255,255,255,.035)); }
.rg-list-item h4 { margin: 0 0 5px; font-size: .98rem; color: var(--text, #fff); display: flex; align-items: center; gap: 9px; }
.rg-list-item .rg-li-tag { font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--rg-acc, #a855f7) 20%, transparent); color: var(--rg-acc, #c4b5fd); }
.rg-list-item p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--text2, #aab); }
.rg-list-item a.rg-li-src { display: inline-block; margin-top: 8px; font-size: .8rem; color: var(--rg-acc, #c4b5fd); text-decoration: none; }
.rg-list-item a.rg-li-src:hover { text-decoration: underline; }
.rg-altview-empty { text-align: center; color: var(--text2, #9aa0aa); padding: 60px 20px; }
/* Timeline */
.rg-timeline .rg-tl-track { max-width: 760px; margin: 0 auto; position: relative; padding-left: 30px; border-left: 2px solid var(--border, rgba(255,255,255,.16)); }
.rg-tl-step { position: relative; margin-bottom: 18px; }
.rg-tl-step::before { content: ''; position: absolute; left: -37px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--rg-acc, #a855f7); box-shadow: 0 0 0 4px var(--bg, #0a0a0b); }
.rg-tl-step .rg-tl-num { font-size: .68rem; font-weight: 800; letter-spacing: .1em; color: var(--rg-acc, #c4b5fd); text-transform: uppercase; }
.rg-tl-step h4 { margin: 2px 0 4px; font-size: .95rem; color: var(--text, #fff); }
.rg-tl-step p { margin: 0; font-size: .85rem; line-height: 1.5; color: var(--text2, #aab); }

.rg-open-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  background: linear-gradient(135deg, rgba(168,85,247,0.22), rgba(96,165,250,0.18));
  color: #f5f3ff; font-weight: 600; font-size: 0.92rem; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rg-open-btn:hover { transform: translateY(-2px); border-color: rgba(168,85,247,0.8);
  box-shadow: 0 10px 32px rgba(168,85,247,0.35); }
/* Light theme: the translucent fill turns pale over a light page (near-white text on
   near-white = fails WCAG). Use a solid violet→indigo CTA fill so the label stays
   readable (#fff on #7c3aed ≈ 5.8:1). Dark/galaxy keep the original glass look. */
:is(body.light-mode, [data-skemi-bg="light"]) .rg-open-btn { background: linear-gradient(135deg, #7c3aed, #6366f1); border-color: rgba(124,58,237,0.55); color: #fff; }
:is(body.light-mode, [data-skemi-bg="light"]) .rg-open-btn:hover { border-color: #7c3aed; box-shadow: 0 10px 32px rgba(124,58,237,0.3); }

.rg-overlay {
  position: fixed; inset: 0; z-index: 4000;
  display: none; flex-direction: column;
  /* Follow the user's chosen theme background (was hardcoded dark-pink). */
  background: var(--bg, #0a0a0b);
}
.rg-overlay.open { display: flex; }

.rg-topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px; border-bottom: 1px solid var(--border-light, rgba(255,255,255,.1));
  background: var(--bg-secondary, rgba(255,255,255,.02));
}
.rg-title { font-family: 'Outfit', 'Inter', sans-serif; font-weight: 800; font-size: 1.05rem;
  color: var(--text, #f5f3ff); letter-spacing: .3px; display: flex; align-items: center; gap: 10px; }
.rg-title .dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 12px #34d399; }
.rg-topic { color: var(--text2, #9aa0aa); font-size: .88rem; font-weight: 500;
  max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-spacer { flex: 1; }

.rg-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 10px; cursor: pointer; font-size: .85rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); color: #e9e4ff;
  transition: all .18s ease;
}
.rg-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.28); }
.rg-btn.primary { background: linear-gradient(135deg, #a855f7, #6366f1); border-color: transparent; color: #fff; }
.rg-btn.active { background: linear-gradient(135deg, #10b981, #22d3ee); border-color: transparent; color: #03251c; }
.rg-btn.close { font-size: 1.2rem; padding: 6px 12px; }

.rg-stage { position: relative; flex: 1; overflow: hidden; }
#researchGraphCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#researchGraphHud { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.rg-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center; color: #e9d5ff; font-weight: 600;
}
.rg-loading .ring { width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid rgba(168,85,247,0.25); border-top-color: #a855f7; animation: rg-spin 0.8s linear infinite; }
@keyframes rg-spin { to { transform: rotate(360deg); } }

/* Node detail card */
.rg-detail {
  position: absolute; left: 22px; bottom: 22px; max-width: 340px;
  padding: 16px 18px; border-radius: 16px;
  background: var(--bg-secondary, rgba(18, 10, 30, 0.92)); border: 1px solid var(--border-light, rgba(255,255,255,.12));
  box-shadow: 0 18px 50px rgba(0,0,0,0.5); backdrop-filter: blur(10px);
  color: var(--text, #f3eaff); transform: translateY(12px); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.rg-detail.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.rg-detail .tag { display: inline-block; font-size: .68rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: rgba(168,85,247,0.25); color: #e9d5ff; margin-bottom: 8px; }
.rg-detail h4 { margin: 0 0 6px; font-size: 1.05rem; color: #fff; }
.rg-detail p { margin: 0; font-size: .9rem; line-height: 1.55; color: rgba(243,234,255,0.82); }
.rg-drill-btn {
  margin-top: 12px; width: 100%; padding: 9px 14px; border-radius: 10px; cursor: pointer;
  font-size: .85rem; font-weight: 700; border: 1px solid rgba(52,211,153,0.45);
  background: linear-gradient(135deg, rgba(52,211,153,0.22), rgba(34,211,238,0.18)); color: #d1fae5;
  transition: all .18s ease;
}
.rg-drill-btn:hover:not(:disabled) { background: linear-gradient(135deg, #10b981, #22d3ee); color: #03251c; }
.rg-drill-btn:disabled { opacity: .7; cursor: default; }

/* Legend */
.rg-legend {
  position: absolute; right: 22px; top: 22px; display: flex; flex-direction: column; gap: 7px;
  padding: 12px 14px; border-radius: 14px; background: rgba(18,10,30,0.7);
  border: 1px solid rgba(255,255,255,0.10); backdrop-filter: blur(8px);
}
.rg-legend .row { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: rgba(243,234,255,0.85); }
.rg-legend .swatch { width: 11px; height: 11px; border-radius: 50%; }

/* Gesture status pill */
.rg-gesture-status {
  position: absolute; left: 50%; top: 18px; transform: translateX(-50%);
  padding: 8px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: rgba(16,185,129,0.16); border: 1px solid rgba(16,185,129,0.4); color: #d1fae5;
  display: none;
}
.rg-gesture-status.show { display: block; }

.rg-overview {
  position: absolute; left: 22px; top: 22px; max-width: 360px; max-height: 38vh; overflow-y: auto;
  padding: 14px 16px; border-radius: 14px; background: var(--bg-secondary, rgba(18,10,30,0.78));
  border: 1px solid var(--border-light, rgba(255,255,255,.12)); backdrop-filter: blur(8px);
  color: var(--text, rgba(243,234,255,0.9)); font-size: .88rem; line-height: 1.55;
}
/* Cap the node-detail card height too, so the top overview + bottom detail
   never collide in the left column (the user saw "2 khung chồng lên nhau"). */
.rg-detail { max-height: 42vh; overflow-y: auto; }
/* node-focused overview content (relationships + role) */
.rgov-head { font-size: .98rem; margin-bottom: 6px; }
.rgov-head b { color: #fff; }
.rgov-tag { font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: #c4b5fd; background: rgba(168,85,247,.18); padding: 2px 7px; border-radius: 999px; margin-left: 4px; }
.rgov-body { color: rgba(243,234,255,.82); margin-bottom: 8px; }
.rgov-rel { font-size: .8rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: 8px; }
.rgov-rel-h { color: rgba(255,255,255,.55); margin-right: 4px; }
.rgov-chip { display: inline-block; cursor: pointer; background: rgba(96,165,250,.14); border: 1px solid rgba(96,165,250,.3); color: #dbeafe; border-radius: 999px; padding: 2px 9px; margin: 2px 2px 0 0; font-size: .76rem; transition: background .15s; }
.rgov-chip:hover { background: rgba(96,165,250,.3); }

/* Gesture cheat-sheet */
.rg-gesture-guide {
  position: absolute; right: 22px; bottom: 22px; width: 270px;
  padding: 14px 16px; border-radius: 16px;
  background: rgba(12, 7, 22, 0.86); border: 1px solid rgba(96,165,250,0.35);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5); backdrop-filter: blur(10px);
  color: #e9e4ff; font-size: .8rem;
}
.rg-gesture-guide .gg-title { font-weight: 800; font-size: .92rem; margin-bottom: 10px; color: #fff; }
.rg-gesture-guide .gg-row { display: flex; justify-content: space-between; gap: 10px;
  padding: 4px 0; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.rg-gesture-guide .gg-row b { color: #c7d2fe; font-weight: 600; white-space: nowrap; }
.rg-gesture-guide .gg-row span { color: rgba(233,228,255,0.75); text-align: right; }
.rg-gesture-guide .gg-live { margin-top: 10px; padding-top: 8px; font-size: .85rem; color: #a7f3d0; }
.rg-gesture-guide .gg-live b { color: #34d399; }

/* Lab-mode hint banner */
.rg-lab-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  padding: 9px 18px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: rgba(34,211,238,0.14); border: 1px solid rgba(34,211,238,0.45); color: #a5f3fc;
  box-shadow: 0 6px 22px rgba(34,211,238,0.18); max-width: 80vw; text-align: center;
}

/* NODE WORLD — rich content view on double-click */
.rg-world {
  position: absolute; inset: 0; z-index: 30;
  display: none; align-items: center; justify-content: center;
  background: rgba(6, 3, 14, 0.66); backdrop-filter: blur(7px);
  opacity: 0; transition: opacity .22s ease;
}
.rg-world.show { display: flex; opacity: 1; }
.rg-world-card {
  position: relative; width: min(900px, 94vw); max-height: 86vh; overflow-y: auto;
  padding: 26px 28px; border-radius: 22px;
  background: linear-gradient(165deg, rgba(26,16,44,0.98), rgba(14,9,26,0.98));
  border: 1px solid rgba(168,85,247,0.4); box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  color: #f3eaff; transform: translateY(14px) scale(.98); animation: rg-world-in .26s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes rg-world-in { to { transform: translateY(0) scale(1); } }
.rg-world-close {
  position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: #e9e4ff;
  font-size: 1.2rem; cursor: pointer; transition: all .15s ease;
}
.rg-world-close:hover { background: rgba(255,255,255,0.14); }
.rg-world-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding-right: 40px; }
.rg-world-icon {
  width: 56px; height: 56px; flex: none; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; background: linear-gradient(135deg, rgba(168,85,247,0.35), rgba(96,165,250,0.25));
  border: 1px solid rgba(168,85,247,0.4);
}
.rg-world-head .tag { display: inline-block; font-size: .68rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: rgba(168,85,247,0.25); color: #e9d5ff; }
.rg-world-head h2 { margin: 6px 0 0; font-size: 1.4rem; color: #fff; line-height: 1.2; }
.rg-world-body { font-size: 1rem; line-height: 1.7; color: rgba(243,234,255,0.9); margin: 0 0 20px; }
.rg-world-source {
  display: inline-block; margin: 0 0 16px; padding: 8px 14px; border-radius: 10px;
  background: rgba(34,211,238,0.14); border: 1px solid rgba(34,211,238,0.4);
  color: #a5f3fc; font-size: .85rem; font-weight: 600; text-decoration: none;
  transition: all .15s ease; word-break: break-all;
}
.rg-world-source:hover { background: rgba(34,211,238,0.25); }
.rg-world-section h3 { font-size: .92rem; color: #c7d2fe; margin: 0 0 10px; }
.rg-world-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.rg-world-link {
  display: flex; align-items: center; gap: 9px; text-align: left; width: 100%;
  padding: 10px 13px; border-radius: 12px; cursor: pointer; font-size: .88rem; color: #ece7ff;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); transition: all .15s ease;
}
.rg-world-link:hover { background: rgba(168,85,247,0.16); border-color: rgba(168,85,247,0.4); transform: translateX(3px); }
.rg-world-link .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rg-world-link b { color: #a5b4fc; font-weight: 600; }
.rg-world-empty { font-size: .85rem; color: rgba(243,234,255,0.55); }
.rg-world-actions .rg-drill-btn { margin-top: 0; }

/* Two content panes per node: 📖 Tổng quan + 🧩 Chi tiết & dữ kiện */
.rg-world-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 18px; }
.rg-world-pane {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px; padding: 15px 17px; min-width: 0;
}
.rg-world-pane-title { font-size: .82rem; color: #c7d2fe; margin: 0 0 11px; letter-spacing: .3px; font-weight: 600; }
.rg-world-pane .rg-world-body { margin: 0; font-size: .96rem; }
.rg-world-facts { display: flex; flex-direction: column; gap: 13px; }
.rg-world-points { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.rg-world-points li { font-size: .92rem; line-height: 1.55; color: rgba(243,234,255,0.88); }
.rg-world-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-world-chip {
  font-size: .72rem; padding: 4px 10px; border-radius: 999px;
  background: rgba(96,165,250,0.14); border: 1px solid rgba(96,165,250,0.3); color: #bfdbfe;
}
.rg-world-facts .rg-world-source { margin: 0; }
@media (max-width: 720px) { .rg-world-panes { grid-template-columns: 1fr; } }

/* 3D knowledge-graph scene overlay */
.rg-graph3d {
  position: absolute; inset: 0; z-index: 35; display: none; flex-direction: column;
  background: radial-gradient(circle at 50% 38%, rgba(20,12,40,0.96), rgba(4,2,10,0.99));
}
.rg-graph3d.show { display: flex; }
.rg-graph3d-head {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 18px;
}
.rg-graph3d-title { font-size: .95rem; color: #e9d5ff; font-weight: 600; }
.rg-graph3d-tools { display: flex; gap: 8px; }
.rg-graph3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.rg-graph3d-canvas:active { cursor: grabbing; }
.rg-graph3d-hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: .78rem; color: rgba(233,213,255,0.72); background: rgba(8,4,18,0.5);
  padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(168,85,247,0.25); pointer-events: none;
}
.rg-graph3d-panel {
  position: absolute; top: 62px; right: 18px; width: min(330px, 82vw); z-index: 3;
  background: linear-gradient(165deg, rgba(26,16,44,0.97), rgba(14,9,26,0.97));
  border: 1px solid rgba(168,85,247,0.4); border-radius: 18px; padding: 18px 18px 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55); color: #f3eaff;
}
.rg-graph3d-panel .tag {
  display: inline-block; font-size: .66rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: rgba(168,85,247,0.25); color: #e9d5ff;
}
.rg-graph3d-panel h3 { margin: 9px 0 8px; font-size: 1.12rem; color: #fff; line-height: 1.25; }
.rg-graph3d-panel p { font-size: .9rem; line-height: 1.6; color: rgba(243,234,255,0.88); margin: 0 0 12px; }
.rg-graph3d-panel-close {
  position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: #e9e4ff; cursor: pointer;
}

@media (max-width: 720px) {
  .rg-topic { max-width: 30vw; }
  .rg-overview, .rg-detail { max-width: 70vw; }
  .rg-gesture-guide { display: none !important; }
  .rg-world-card { padding: 20px 18px; }
}

/* ===== 3D Component Lab (exploded blueprint: tháo / lắp / xoay / phóng) ===== */
.rg-3d-btn { background: linear-gradient(135deg, #22d3ee, #6366f1) !important; border: none !important; color: #fff !important; }
.rg-lab3d { position: absolute; inset: 0; z-index: 60; display: none; background: rgba(6,4,16,.85); backdrop-filter: blur(8px); }
.rg-lab3d.show { display: flex; align-items: center; justify-content: center; padding: 24px; }
.rg-lab3d-card { width: min(1100px, 96%); height: min(760px, 92%); display: grid; grid-template-columns: 1fr 300px; grid-template-rows: auto 1fr; background: linear-gradient(160deg, #140e26, #0b0716); border: 1px solid rgba(168,85,247,.3); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.rg-lab3d-head { grid-column: 1 / 3; display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.rg-lab3d-title { font-weight: 800; font-size: 1.05rem; color: #fff; }
.rg-lab3d-tools { display: flex; gap: 8px; }
.rg-lab3d-stage { position: relative; min-width: 0; }
.rg-lab3d-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.rg-lab3d-stage canvas:active { cursor: grabbing; }
.rg-lab3d-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); font-size: .74rem; color: rgba(255,255,255,.62); background: rgba(0,0,0,.42); padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.rg-lab3d-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #cbd5e1; font-size: .85rem; }
.rg-lab3d-loading .ring { width: 34px; height: 34px; border: 3px solid rgba(168,85,247,.25); border-top-color: #a855f7; border-radius: 50%; animation: rgSpin .8s linear infinite; }
@keyframes rgSpin { to { transform: rotate(360deg); } }
.rg-lab3d-rail { border-left: 1px solid rgba(255,255,255,.07); padding: 16px; overflow-y: auto; }
.rg-lab3d-part { font-weight: 800; color: #e0b0ff; font-size: 1rem; margin-bottom: 6px; }
.rg-lab3d-desc { font-size: .82rem; color: rgba(255,255,255,.72); line-height: 1.55; margin-bottom: 14px; }
.rg-lab3d-list { display: flex; flex-direction: column; gap: 6px; }
.rg-lab3d-list button { text-align: left; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: #fff; cursor: pointer; font-size: .82rem; }
.rg-lab3d-list button:hover, .rg-lab3d-list button.active { border-color: rgba(168,85,247,.5); background: rgba(168,85,247,.14); }
.rg-lab3d-list .sw { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; }
@media (max-width: 760px) {
  .rg-lab3d-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .rg-lab3d-rail { border-left: none; border-top: 1px solid rgba(255,255,255,.07); max-height: 170px; }
}

/* Infographic visual (abstract topics) — vivid, glanceable overview */
.rg-vis-info { position: absolute; inset: 0; overflow-y: auto; padding: 26px 30px; }
.rgvi-headline { font-size: 1.35rem; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 20px;
  background: linear-gradient(90deg, #c4b5fd, #67e8f9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rgvi-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 22px; }
.rgvi-stat { background: rgba(168,85,247,.10); border: 1px solid rgba(168,85,247,.28); border-radius: 14px; padding: 14px 16px; text-align: center; }
.rgvi-val { font-size: 1.7rem; font-weight: 800; color: #e9d5ff; line-height: 1.1; }
.rgvi-lab { font-size: .76rem; color: rgba(255,255,255,.6); margin-top: 4px; }
.rgvi-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.rgvi-pillar { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px 16px; transition: border-color .2s, transform .2s; }
.rgvi-pillar:hover { border-color: rgba(96,165,250,.45); transform: translateY(-2px); }
.rgvi-pico { font-size: 1.5rem; margin-bottom: 6px; }
.rgvi-pname { font-weight: 700; color: #fff; margin-bottom: 4px; }
.rgvi-pdesc { font-size: .82rem; color: rgba(255,255,255,.66); line-height: 1.5; }
.rgvi-insight { background: linear-gradient(135deg, rgba(34,211,238,.12), rgba(99,102,241,.12)); border: 1px solid rgba(34,211,238,.3); border-radius: 14px; padding: 14px 18px; color: #e2e8f0; font-size: .92rem; line-height: 1.6; }
