/* ============================================================
   GEOINT Dashboard v7.0 — Ultra-Advanced Feature Styles
   3D Globe, AI Assistant, MITRE ATT&CK, Supply Chain,
   Threat Intel, War Gaming, BIOINT, Collaboration Hub
   ============================================================ */

/* ---- v7 Domain Colors ---- */
:root {
    --domain-globe: #06b6d4;
    --domain-aiassist: #10b981;
    --domain-mitre: #ef4444;
    --domain-supplychain: #f59e0b;
    --domain-threatintel: #dc2626;
    --domain-wargame: #f97316;
    --domain-bioint: #6366f1;
    --domain-collab: #8b5cf6;
}

/* ============================================================
   FEATURE 1: 3D Intelligence Globe
   ============================================================ */
.v7-globe-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 500px;
    background: radial-gradient(ellipse at center, #0a1628 0%, #000810 100%);
    border-radius: 12px;
    overflow: hidden;
}
.v7-globe-container canvas { width: 100% !important; height: 100% !important; }

.v7-globe-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}
.v7-globe-controls button {
    background: rgba(6,182,212,0.15);
    border: 1px solid rgba(6,182,212,0.3);
    color: var(--domain-globe);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}
.v7-globe-controls button:hover {
    background: rgba(6,182,212,0.3);
    border-color: var(--domain-globe);
}
.v7-globe-controls button.active {
    background: rgba(6,182,212,0.4);
    border-color: var(--domain-globe);
    box-shadow: 0 0 12px rgba(6,182,212,0.3);
}

.v7-globe-stats {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 12px;
    z-index: 10;
}
.v7-globe-stat-card {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6,182,212,0.2);
    border-radius: 8px;
    padding: 10px 16px;
    text-align: center;
    min-width: 90px;
}
.v7-globe-stat-card .stat-val {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--domain-globe);
}
.v7-globe-stat-card .stat-lbl {
    font-size: 0.7em;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v7-globe-info-panel {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(6,182,212,0.3);
    border-radius: 10px;
    padding: 16px;
    max-width: 300px;
    z-index: 10;
    display: none;
}
.v7-globe-info-panel.visible { display: block; }
.v7-globe-info-panel h3 {
    color: var(--domain-globe);
    margin: 0 0 8px;
    font-size: 1.1em;
}
.v7-globe-info-panel .info-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.85em;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.v7-globe-legend {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px 14px;
    z-index: 10;
    font-size: 0.75em;
}
.v7-globe-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
}
.v7-globe-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================================
   FEATURE 2: AI Intelligence Assistant
   ============================================================ */
.v7-ai-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 16px;
    height: calc(100vh - 200px);
    min-height: 500px;
}
.v7-ai-chat-area {
    display: flex;
    flex-direction: column;
    background: var(--card-bg, #1a1f2e);
    border-radius: 12px;
    overflow: hidden;
}
.v7-ai-chat-header {
    padding: 14px 18px;
    background: rgba(16,185,129,0.08);
    border-bottom: 1px solid rgba(16,185,129,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.v7-ai-chat-header h3 {
    margin: 0;
    color: var(--domain-aiassist);
    font-size: 1em;
}

.v7-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.v7-ai-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9em;
    line-height: 1.5;
    position: relative;
}
.v7-ai-bubble.user {
    align-self: flex-end;
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.25);
    border-bottom-right-radius: 4px;
}
.v7-ai-bubble.assistant {
    align-self: flex-start;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom-left-radius: 4px;
}
.v7-ai-bubble .bubble-time {
    font-size: 0.7em;
    color: rgba(255,255,255,0.4);
    margin-top: 6px;
}
.v7-ai-bubble .bubble-sources {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8em;
}
.v7-ai-bubble .source-tag {
    display: inline-block;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    margin: 2px;
    font-size: 0.85em;
    cursor: pointer;
}
.v7-ai-bubble .source-tag:hover { background: rgba(16,185,129,0.2); }

.v7-ai-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    align-self: flex-start;
}
.v7-ai-typing span {
    width: 8px;
    height: 8px;
    background: var(--domain-aiassist);
    border-radius: 50%;
    animation: v7-typing 1.4s infinite;
}
.v7-ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.v7-ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes v7-typing {
    0%, 60%, 100% { opacity: 0.2; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1); }
}

.v7-ai-input-area {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    gap: 10px;
}
.v7-ai-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 14px;
    color: inherit;
    font-size: 0.9em;
}
.v7-ai-input-area input:focus {
    outline: none;
    border-color: var(--domain-aiassist);
}
.v7-ai-input-area button {
    background: var(--domain-aiassist);
    border: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}
.v7-ai-input-area button:hover { opacity: 0.85; }

.v7-ai-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.v7-ai-quick-actions {
    background: var(--card-bg, #1a1f2e);
    border-radius: 10px;
    padding: 14px;
}
.v7-ai-quick-actions h4 {
    margin: 0 0 10px;
    font-size: 0.85em;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.v7-ai-quick-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.12);
    color: inherit;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82em;
    margin-bottom: 6px;
    transition: all 0.2s;
}
.v7-ai-quick-btn:hover {
    background: rgba(16,185,129,0.15);
    border-color: rgba(16,185,129,0.3);
}
.v7-ai-suggestions {
    background: var(--card-bg, #1a1f2e);
    border-radius: 10px;
    padding: 14px;
    flex: 1;
    overflow-y: auto;
}

/* ============================================================
   FEATURE 3: MITRE ATT&CK Framework
   ============================================================ */
.v7-mitre-container { padding: 0; }

.v7-mitre-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(239,68,68,0.06);
    border-bottom: 1px solid rgba(239,68,68,0.12);
    flex-wrap: wrap;
}
.v7-mitre-toolbar select,
.v7-mitre-toolbar input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: inherit;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85em;
}

.v7-mitre-matrix {
    overflow-x: auto;
    padding: 16px;
}
.v7-mitre-matrix-grid {
    display: grid;
    grid-template-columns: repeat(14, minmax(130px, 1fr));
    gap: 4px;
    min-width: 1800px;
}
.v7-mitre-tactic-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.v7-mitre-tactic-header {
    background: rgba(239,68,68,0.15);
    color: var(--domain-mitre);
    text-align: center;
    padding: 8px 4px;
    border-radius: 6px;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: sticky;
    top: 0;
    z-index: 2;
}
.v7-mitre-technique {
    background: rgba(239,68,68,0.04);
    border: 1px solid rgba(239,68,68,0.08);
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 0.7em;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.v7-mitre-technique:hover {
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.3);
    transform: translateY(-1px);
}
.v7-mitre-technique.highlighted {
    background: rgba(239,68,68,0.25);
    border-color: var(--domain-mitre);
    box-shadow: 0 0 8px rgba(239,68,68,0.2);
}
.v7-mitre-technique .tech-id {
    color: rgba(255,255,255,0.4);
    font-size: 0.9em;
    font-family: monospace;
}
.v7-mitre-technique .tech-name {
    margin-top: 2px;
    font-weight: 500;
}
.v7-mitre-technique .tech-severity {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.v7-mitre-technique .tech-severity.critical { background: #ef4444; }
.v7-mitre-technique .tech-severity.high { background: #f97316; }
.v7-mitre-technique .tech-severity.medium { background: #eab308; }
.v7-mitre-technique .tech-severity.low { background: #22c55e; }

.v7-mitre-detail-panel {
    position: fixed;
    right: -420px;
    top: 60px;
    bottom: 0;
    width: 400px;
    background: var(--card-bg, #1a1f2e);
    border-left: 2px solid rgba(239,68,68,0.3);
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
}
.v7-mitre-detail-panel.open { right: 0; }
.v7-mitre-detail-panel h3 { color: var(--domain-mitre); margin-top: 0; }

.v7-mitre-kill-chain {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 16px;
}
.v7-mitre-kc-step {
    flex: 0 0 150px;
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.12);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    position: relative;
}
.v7-mitre-kc-step::after {
    content: '\2192';
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--domain-mitre);
    font-size: 1.2em;
}
.v7-mitre-kc-step:last-child::after { display: none; }
.v7-mitre-kc-step .step-num {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--domain-mitre);
}
.v7-mitre-kc-step .step-name {
    font-size: 0.8em;
    font-weight: 600;
    margin-top: 4px;
}

/* ============================================================
   FEATURE 4: Global Supply Chain Intelligence
   ============================================================ */
.v7-sc-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    height: calc(100vh - 200px);
    min-height: 500px;
}
.v7-sc-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.v7-sc-graph-area {
    flex: 1;
    background: var(--card-bg, #1a1f2e);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.v7-sc-graph-area svg { width: 100%; height: 100%; }

.v7-sc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.v7-sc-chokepoint-card {
    background: var(--card-bg, #1a1f2e);
    border-radius: 10px;
    padding: 12px;
    border-left: 3px solid var(--domain-supplychain);
}
.v7-sc-chokepoint-card.status-disrupted { border-left-color: #ef4444; }
.v7-sc-chokepoint-card.status-at-risk { border-left-color: #f97316; }
.v7-sc-chokepoint-card.status-open { border-left-color: #22c55e; }

.v7-sc-chokepoint-card .cp-name {
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 4px;
}
.v7-sc-chokepoint-card .cp-status {
    display: inline-block;
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}
.cp-status.open { background: rgba(34,197,94,0.15); color: #22c55e; }
.cp-status.disrupted { background: rgba(239,68,68,0.15); color: #ef4444; }
.cp-status.at-risk { background: rgba(249,115,22,0.15); color: #f97316; }

.v7-sc-risk-card {
    background: var(--card-bg, #1a1f2e);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.v7-sc-risk-card .risk-score {
    font-size: 1.3em;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
}
.v7-sc-risk-card .risk-score.high { color: #ef4444; }
.v7-sc-risk-card .risk-score.medium { color: #f59e0b; }
.v7-sc-risk-card .risk-score.low { color: #22c55e; }
.v7-sc-risk-card .risk-info { flex: 1; }
.v7-sc-risk-card .risk-name { font-weight: 600; font-size: 0.85em; }
.v7-sc-risk-card .risk-trend { font-size: 0.75em; color: rgba(255,255,255,0.5); }

.v7-sc-sparkline {
    width: 60px;
    height: 24px;
}
.v7-sc-sparkline polyline {
    fill: none;
    stroke: var(--domain-supplychain);
    stroke-width: 1.5;
}

.v7-sc-disruption-panel {
    background: var(--card-bg, #1a1f2e);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(249,115,22,0.2);
}
.v7-sc-disruption-panel h4 {
    color: var(--domain-supplychain);
    margin: 0 0 12px;
}
.v7-sc-cascade-step {
    padding: 8px 12px;
    margin: 4px 0;
    background: rgba(249,115,22,0.06);
    border-left: 3px solid;
    border-radius: 0 6px 6px 0;
    font-size: 0.85em;
}
.v7-sc-cascade-step.severity-1 { border-left-color: #eab308; }
.v7-sc-cascade-step.severity-2 { border-left-color: #f97316; }
.v7-sc-cascade-step.severity-3 { border-left-color: #ef4444; }

/* Supply chain node styles for D3 */
.v7-sc-node circle { stroke-width: 2; }
.v7-sc-node.country circle { fill: var(--domain-supplychain); stroke: rgba(245,158,11,0.5); }
.v7-sc-node.chokepoint circle { fill: #ef4444; stroke: rgba(239,68,68,0.5); }
.v7-sc-node.commodity circle { fill: #06b6d4; stroke: rgba(6,182,212,0.5); }
.v7-sc-node text { font-size: 10px; fill: rgba(255,255,255,0.7); }
.v7-sc-link { stroke-opacity: 0.4; }
.v7-sc-link.critical { stroke: #ef4444; stroke-width: 3; }
.v7-sc-link.high { stroke: #f97316; stroke-width: 2; }
.v7-sc-link.medium { stroke: #eab308; stroke-width: 1.5; }

/* ============================================================
   FEATURE 5: Dark Web & Threat Intel Monitor
   ============================================================ */
.v7-ti-container { display: flex; flex-direction: column; gap: 0; }

.v7-ti-subtabs {
    display: flex;
    gap: 2px;
    padding: 10px 16px;
    background: rgba(220,38,38,0.05);
    border-bottom: 1px solid rgba(220,38,38,0.12);
    overflow-x: auto;
}
.v7-ti-subtab {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.82em;
    font-weight: 600;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.v7-ti-subtab:hover { color: rgba(255,255,255,0.9); background: rgba(220,38,38,0.08); }
.v7-ti-subtab.active {
    color: var(--domain-threatintel);
    background: rgba(220,38,38,0.12);
    border-color: rgba(220,38,38,0.25);
}

.v7-ti-content { padding: 16px; }

/* IOC Table */
.v7-ti-ioc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85em;
}
.v7-ti-ioc-table th {
    background: rgba(220,38,38,0.08);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(255,255,255,0.6);
    position: sticky;
    top: 0;
}
.v7-ti-ioc-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.v7-ti-ioc-table tr:hover td { background: rgba(220,38,38,0.04); }

.v7-ti-ioc-value {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    word-break: break-all;
    max-width: 300px;
}
.v7-ti-copy-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
}
.v7-ti-copy-btn:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

/* Severity pills */
.v7-severity-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
}
.v7-severity-pill.critical { background: rgba(239,68,68,0.15); color: #ef4444; }
.v7-severity-pill.high { background: rgba(249,115,22,0.15); color: #f97316; }
.v7-severity-pill.medium { background: rgba(234,179,8,0.15); color: #eab308; }
.v7-severity-pill.low { background: rgba(34,197,94,0.15); color: #22c55e; }
.v7-severity-pill.info { background: rgba(59,130,246,0.15); color: #3b82f6; }

/* Confidence bar */
.v7-ti-confidence-bar {
    width: 60px;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.v7-ti-confidence-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #ef4444, #eab308, #22c55e);
}

/* Ransomware cards */
.v7-ti-ransomware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}
.v7-ti-ransom-card {
    background: var(--card-bg, #1a1f2e);
    border-radius: 10px;
    padding: 14px;
    border-left: 3px solid var(--domain-threatintel);
}
.v7-ti-ransom-card .group-name {
    font-weight: 700;
    font-size: 1em;
    color: var(--domain-threatintel);
}
.v7-ti-ransom-card .victim-info {
    font-size: 0.85em;
    margin: 6px 0;
    color: rgba(255,255,255,0.7);
}
.v7-ti-ransom-card .ransom-amount {
    font-size: 1.1em;
    font-weight: 700;
    color: #ef4444;
}

/* Threat actor dossier */
.v7-ti-actor-card {
    background: var(--card-bg, #1a1f2e);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(220,38,38,0.12);
    margin-bottom: 12px;
}
.v7-ti-actor-card .actor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.v7-ti-actor-card .actor-name {
    font-weight: 700;
    font-size: 1.05em;
}
.v7-ti-actor-card .actor-aliases {
    font-size: 0.8em;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}
.v7-ti-actor-card .actor-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.v7-ti-actor-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 600;
}
.v7-ti-actor-badge.apt { background: rgba(239,68,68,0.12); color: #ef4444; }
.v7-ti-actor-badge.criminal { background: rgba(249,115,22,0.12); color: #f97316; }
.v7-ti-actor-badge.nation_state { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.v7-ti-actor-badge.hacktivist { background: rgba(6,182,212,0.12); color: #06b6d4; }

/* Threat landscape radar */
.v7-ti-radar-container {
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================================
   FEATURE 6: Advanced War Gaming Engine
   ============================================================ */
.v7-wg-container { display: flex; flex-direction: column; gap: 0; }

.v7-wg-subtabs {
    display: flex;
    gap: 2px;
    padding: 10px 16px;
    background: rgba(249,115,22,0.05);
    border-bottom: 1px solid rgba(249,115,22,0.12);
    overflow-x: auto;
}
.v7-wg-subtab {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.82em;
    font-weight: 600;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.v7-wg-subtab:hover { color: rgba(255,255,255,0.9); background: rgba(249,115,22,0.08); }
.v7-wg-subtab.active {
    color: var(--domain-wargame);
    background: rgba(249,115,22,0.12);
    border-color: rgba(249,115,22,0.25);
}

.v7-wg-content { padding: 16px; }

/* Scenario cards */
.v7-wg-scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 14px;
}
.v7-wg-scenario-card {
    background: var(--card-bg, #1a1f2e);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(249,115,22,0.12);
    cursor: pointer;
    transition: all 0.2s;
}
.v7-wg-scenario-card:hover {
    border-color: rgba(249,115,22,0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.v7-wg-scenario-card .scenario-type {
    display: inline-block;
    font-size: 0.72em;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(249,115,22,0.12);
    color: var(--domain-wargame);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.v7-wg-scenario-card .scenario-name {
    font-weight: 700;
    font-size: 1.05em;
    margin-bottom: 6px;
}
.v7-wg-scenario-card .scenario-actors {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.v7-wg-actor-chip {
    font-size: 0.72em;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Escalation ladder */
.v7-wg-escalation {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 600px;
}
.v7-wg-escal-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.88em;
    position: relative;
}
.v7-wg-escal-step .step-level {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
    flex-shrink: 0;
}
.v7-wg-escal-step .step-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}
.v7-wg-escal-step .step-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
/* Escalation gradient from green to red */
.v7-wg-escal-step.level-1 { background: rgba(34,197,94,0.06); }
.v7-wg-escal-step.level-1 .step-level { background: rgba(34,197,94,0.2); color: #22c55e; }
.v7-wg-escal-step.level-1 .step-bar-fill { background: #22c55e; }
.v7-wg-escal-step.level-2 { background: rgba(132,204,22,0.06); }
.v7-wg-escal-step.level-2 .step-level { background: rgba(132,204,22,0.2); color: #84cc16; }
.v7-wg-escal-step.level-2 .step-bar-fill { background: #84cc16; }
.v7-wg-escal-step.level-3 { background: rgba(234,179,8,0.06); }
.v7-wg-escal-step.level-3 .step-level { background: rgba(234,179,8,0.2); color: #eab308; }
.v7-wg-escal-step.level-3 .step-bar-fill { background: #eab308; }
.v7-wg-escal-step.level-4 { background: rgba(249,115,22,0.06); }
.v7-wg-escal-step.level-4 .step-level { background: rgba(249,115,22,0.2); color: #f97316; }
.v7-wg-escal-step.level-4 .step-bar-fill { background: #f97316; }
.v7-wg-escal-step.level-5 { background: rgba(239,68,68,0.06); }
.v7-wg-escal-step.level-5 .step-level { background: rgba(239,68,68,0.2); color: #ef4444; }
.v7-wg-escal-step.level-5 .step-bar-fill { background: #ef4444; }
.v7-wg-escal-step.level-6 { background: rgba(220,38,38,0.08); }
.v7-wg-escal-step.level-6 .step-level { background: rgba(220,38,38,0.25); color: #dc2626; }
.v7-wg-escal-step.level-6 .step-bar-fill { background: #dc2626; }

/* Monte Carlo histogram */
.v7-wg-histogram { margin-top: 16px; }
.v7-wg-hist-bar-container {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 200px;
    padding: 10px 0;
}
.v7-wg-hist-bar {
    flex: 1;
    background: linear-gradient(to top, rgba(249,115,22,0.4), var(--domain-wargame));
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 0.5s ease;
    cursor: pointer;
}
.v7-wg-hist-bar:hover { opacity: 0.85; }
.v7-wg-hist-bar .bar-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6em;
    white-space: nowrap;
    color: rgba(255,255,255,0.5);
}
.v7-wg-hist-bar .bar-value {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7em;
    font-weight: 600;
    color: var(--domain-wargame);
}

/* Decision tree (D3) */
.v7-wg-tree-container {
    width: 100%;
    min-height: 400px;
    background: var(--card-bg, #1a1f2e);
    border-radius: 10px;
    overflow: auto;
}
.v7-wg-tree-container svg { width: 100%; min-height: 400px; }
.v7-wg-tree-node circle {
    fill: var(--domain-wargame);
    stroke: rgba(249,115,22,0.3);
    stroke-width: 2;
    cursor: pointer;
}
.v7-wg-tree-node text { font-size: 11px; fill: rgba(255,255,255,0.8); }
.v7-wg-tree-link {
    fill: none;
    stroke: rgba(249,115,22,0.25);
    stroke-width: 1.5;
}

/* ============================================================
   FEATURE 7: Biographical Intelligence (BIOINT)
   ============================================================ */
.v7-bio-container { display: flex; flex-direction: column; gap: 0; }

.v7-bio-subtabs {
    display: flex;
    gap: 2px;
    padding: 10px 16px;
    background: rgba(99,102,241,0.05);
    border-bottom: 1px solid rgba(99,102,241,0.12);
    overflow-x: auto;
}
.v7-bio-subtab {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.82em;
    font-weight: 600;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.v7-bio-subtab:hover { color: rgba(255,255,255,0.9); background: rgba(99,102,241,0.08); }
.v7-bio-subtab.active {
    color: var(--domain-bioint);
    background: rgba(99,102,241,0.12);
    border-color: rgba(99,102,241,0.25);
}

.v7-bio-content { padding: 16px; }

/* Leader cards grid */
.v7-bio-leader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.v7-bio-leader-card {
    background: var(--card-bg, #1a1f2e);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(99,102,241,0.1);
    cursor: pointer;
    transition: all 0.2s;
}
.v7-bio-leader-card:hover {
    border-color: rgba(99,102,241,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.v7-bio-leader-card .leader-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.v7-bio-leader-card .leader-flag {
    font-size: 2em;
    line-height: 1;
}
.v7-bio-leader-card .leader-name {
    font-weight: 700;
    font-size: 1.05em;
    margin: 6px 0 2px;
}
.v7-bio-leader-card .leader-title {
    font-size: 0.82em;
    color: rgba(255,255,255,0.5);
}
.v7-bio-leader-card .leader-country {
    font-size: 0.85em;
    color: var(--domain-bioint);
    margin-top: 4px;
}
.v7-bio-leader-card .leader-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.v7-bio-role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.72em;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(99,102,241,0.12);
    color: var(--domain-bioint);
}
.v7-bio-threat-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.72em;
    font-weight: 600;
}
.v7-bio-threat-badge.critical { background: rgba(239,68,68,0.12); color: #ef4444; }
.v7-bio-threat-badge.high { background: rgba(249,115,22,0.12); color: #f97316; }
.v7-bio-threat-badge.medium { background: rgba(234,179,8,0.12); color: #eab308; }
.v7-bio-threat-badge.neutral { background: rgba(107,114,128,0.12); color: #6b7280; }

/* Power index bar */
.v7-bio-power-bar {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}
.v7-bio-power-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--domain-bioint), #a78bfa);
}

/* Influence network (D3) */
.v7-bio-network-container {
    width: 100%;
    height: 500px;
    background: var(--card-bg, #1a1f2e);
    border-radius: 12px;
    overflow: hidden;
}
.v7-bio-network-container svg { width: 100%; height: 100%; }
.v7-bio-net-node circle {
    stroke-width: 2;
    cursor: pointer;
}
.v7-bio-net-node text { font-size: 10px; fill: rgba(255,255,255,0.8); }
.v7-bio-net-link { stroke-opacity: 0.4; }
.v7-bio-net-link.ally { stroke: #22c55e; }
.v7-bio-net-link.rival { stroke: #ef4444; }
.v7-bio-net-link.counterpart { stroke: #3b82f6; }
.v7-bio-net-link.adversary { stroke: #dc2626; stroke-dasharray: 4,2; }
.v7-bio-net-link.mentor { stroke: #8b5cf6; }

/* Profile detail panel */
.v7-bio-profile-panel {
    position: fixed;
    right: -450px;
    top: 60px;
    bottom: 0;
    width: 430px;
    background: var(--card-bg, #1a1f2e);
    border-left: 2px solid rgba(99,102,241,0.3);
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
}
.v7-bio-profile-panel.open { right: 0; }
.v7-bio-profile-panel .profile-header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
}
.v7-bio-profile-panel .profile-flag { font-size: 3em; }
.v7-bio-profile-panel .profile-name {
    font-size: 1.3em;
    font-weight: 700;
    margin-top: 8px;
}
.v7-bio-profile-panel .profile-title {
    color: rgba(255,255,255,0.5);
    font-size: 0.9em;
}

.v7-bio-profile-section {
    margin-bottom: 16px;
}
.v7-bio-profile-section h4 {
    color: var(--domain-bioint);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.v7-bio-profile-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.88em;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.v7-bio-profile-row .label { color: rgba(255,255,255,0.5); }

/* Power index ranking */
.v7-bio-ranking-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.v7-bio-ranking-table th {
    background: rgba(99,102,241,0.08);
    padding: 10px 12px;
    text-align: left;
    font-size: 0.8em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.v7-bio-ranking-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.88em;
}
.v7-bio-ranking-table tr:hover td { background: rgba(99,102,241,0.04); }
.v7-bio-rank-num {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--domain-bioint);
    width: 40px;
    text-align: center;
}

/* Comparison radar */
.v7-bio-compare-container {
    display: grid;
    grid-template-columns: 1fr 300px 1fr;
    gap: 20px;
    align-items: start;
}
.v7-bio-compare-card {
    background: var(--card-bg, #1a1f2e);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}
.v7-bio-compare-chart { max-width: 300px; margin: 0 auto; }

/* ============================================================
   FEATURE 8: Real-time Collaboration Hub
   ============================================================ */

/* Floating collaboration widget */
.v7-collab-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}
.v7-collab-toggle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--domain-collab);
    border: none;
    color: #fff;
    font-size: 1.4em;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(139,92,246,0.4);
    transition: all 0.3s;
    position: relative;
}
.v7-collab-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(139,92,246,0.5);
}
.v7-collab-toggle .notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.5em;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary, #0f1419);
}

.v7-collab-panel {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 380px;
    max-height: 520px;
    background: var(--card-bg, #1a1f2e);
    border-radius: 14px;
    border: 1px solid rgba(139,92,246,0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    transform: translateY(10px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.v7-collab-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.v7-collab-panel-header {
    padding: 14px 16px;
    background: rgba(139,92,246,0.08);
    border-bottom: 1px solid rgba(139,92,246,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.v7-collab-panel-header h3 {
    margin: 0;
    font-size: 1em;
    color: var(--domain-collab);
}

.v7-collab-panel-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.v7-collab-panel-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 0.78em;
    font-weight: 600;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.v7-collab-panel-tab:hover { color: rgba(255,255,255,0.8); }
.v7-collab-panel-tab.active {
    color: var(--domain-collab);
    border-bottom-color: var(--domain-collab);
}

.v7-collab-panel-body {
    padding: 12px;
    overflow-y: auto;
    max-height: 380px;
}

/* Notification center dropdown */
.v7-notif-bell {
    position: relative;
    cursor: pointer;
    font-size: 1.3em;
    padding: 4px 8px;
}
.v7-notif-bell .bell-badge {
    position: absolute;
    top: -2px;
    right: 0;
    background: #ef4444;
    color: #fff;
    font-size: 0.45em;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v7-notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 400px;
    background: var(--card-bg, #1a1f2e);
    border-radius: 10px;
    border: 1px solid rgba(139,92,246,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    overflow-y: auto;
    z-index: 9999;
    display: none;
}
.v7-notif-dropdown.open { display: block; }

.v7-notif-item {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.15s;
}
.v7-notif-item:hover { background: rgba(139,92,246,0.06); }
.v7-notif-item.unread { border-left: 3px solid var(--domain-collab); }
.v7-notif-item .notif-title {
    font-weight: 600;
    font-size: 0.88em;
    margin-bottom: 2px;
}
.v7-notif-item .notif-message {
    font-size: 0.8em;
    color: rgba(255,255,255,0.5);
}
.v7-notif-item .notif-time {
    font-size: 0.72em;
    color: rgba(255,255,255,0.3);
    margin-top: 4px;
}
.v7-notif-category {
    display: inline-block;
    font-size: 0.68em;
    padding: 1px 6px;
    border-radius: 6px;
    font-weight: 600;
    margin-right: 4px;
}
.v7-notif-category.critical_alert { background: rgba(239,68,68,0.15); color: #ef4444; }
.v7-notif-category.intelligence { background: rgba(59,130,246,0.15); color: #3b82f6; }
.v7-notif-category.task { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.v7-notif-category.collaboration { background: rgba(16,185,129,0.15); color: #10b981; }
.v7-notif-category.system { background: rgba(107,114,128,0.15); color: #6b7280; }
.v7-notif-category.threat_intel { background: rgba(220,38,38,0.15); color: #dc2626; }

/* Task board (Kanban) */
.v7-collab-task-board {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.v7-collab-task-column {
    flex: 0 0 200px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 8px;
}
.v7-collab-task-column .col-title {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
    text-align: center;
}
.v7-collab-task-card {
    background: var(--card-bg, #1a1f2e);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
    border-left: 3px solid var(--domain-collab);
    font-size: 0.82em;
    cursor: pointer;
    transition: transform 0.15s;
}
.v7-collab-task-card:hover { transform: translateX(2px); }
.v7-collab-task-card.priority-critical { border-left-color: #ef4444; }
.v7-collab-task-card.priority-high { border-left-color: #f97316; }
.v7-collab-task-card.priority-medium { border-left-color: #eab308; }
.v7-collab-task-card.priority-low { border-left-color: #22c55e; }

/* Activity feed in collab panel */
.v7-collab-activity-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.82em;
}
.v7-collab-activity-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(139,92,246,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    flex-shrink: 0;
}
.v7-collab-activity-text {
    flex: 1;
    color: rgba(255,255,255,0.7);
}
.v7-collab-activity-text strong { color: rgba(255,255,255,0.9); }
.v7-collab-activity-time {
    font-size: 0.8em;
    color: rgba(255,255,255,0.3);
}

/* Online presence */
.v7-collab-online-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.v7-collab-online-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--domain-collab);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85em;
    color: #fff;
    position: relative;
}
.v7-collab-online-avatar::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--card-bg, #1a1f2e);
}
.v7-collab-online-info { flex: 1; }
.v7-collab-online-name { font-weight: 600; font-size: 0.88em; }
.v7-collab-online-tab {
    font-size: 0.75em;
    color: rgba(255,255,255,0.4);
}

/* Annotation panel */
.v7-annotation-panel {
    position: fixed;
    right: -380px;
    top: 60px;
    bottom: 0;
    width: 360px;
    background: var(--card-bg, #1a1f2e);
    border-left: 2px solid rgba(139,92,246,0.3);
    padding: 0;
    overflow-y: auto;
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
}
.v7-annotation-panel.open { right: 0; }
.v7-annotation-panel .ann-header {
    padding: 14px 16px;
    background: rgba(139,92,246,0.08);
    border-bottom: 1px solid rgba(139,92,246,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.v7-annotation-panel .ann-header h3 {
    margin: 0;
    font-size: 1em;
    color: var(--domain-collab);
}
.v7-annotation-panel .ann-list { padding: 12px; }
.v7-annotation-item {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-left: 3px solid var(--domain-collab);
}
.v7-annotation-item .ann-content { font-size: 0.88em; line-height: 1.4; }
.v7-annotation-item .ann-meta {
    font-size: 0.75em;
    color: rgba(255,255,255,0.4);
    margin-top: 6px;
    display: flex;
    gap: 8px;
}

/* Workspace items */
.v7-collab-workspace-card {
    background: var(--card-bg, #1a1f2e);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border-left: 4px solid;
    cursor: pointer;
    transition: all 0.2s;
}
.v7-collab-workspace-card:hover { transform: translateX(2px); }
.v7-collab-workspace-card .ws-name { font-weight: 600; font-size: 0.9em; }
.v7-collab-workspace-card .ws-count {
    font-size: 0.78em;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

/* ============================================================
   SHARED: Sub-tab navigation (glassmorphism)
   ============================================================ */
.v7-sub-nav {
    display: flex;
    gap: 2px;
    padding: 10px 16px;
    overflow-x: auto;
}
.v7-sub-tab {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.82em;
    font-weight: 600;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}
.v7-sub-tab:hover { color: rgba(255,255,255,0.9); }

/* ============================================================
   SHARED: Context menu
   ============================================================ */
.v7-context-menu {
    position: fixed;
    background: var(--card-bg, #1a1f2e);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 4px 0;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 10000;
    display: none;
}
.v7-context-menu.visible { display: block; }
.v7-context-menu-item {
    padding: 8px 16px;
    font-size: 0.85em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}
.v7-context-menu-item:hover { background: rgba(139,92,246,0.1); }
.v7-context-menu-separator {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 4px 0;
}

/* ============================================================
   SHARED: Pagination
   ============================================================ */
.v7-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    padding: 10px 0;
}
.v7-pagination button {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: inherit;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82em;
    transition: all 0.2s;
}
.v7-pagination button:hover { background: rgba(255,255,255,0.1); }
.v7-pagination button.active {
    background: rgba(139,92,246,0.2);
    border-color: var(--domain-collab);
    color: var(--domain-collab);
}
.v7-pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ============================================================
   SHARED: Loading spinner
   ============================================================ */
.v7-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.v7-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.08);
    border-top-color: var(--domain-collab);
    border-radius: 50%;
    animation: v7-spin 0.8s linear infinite;
}
@keyframes v7-spin { to { transform: rotate(360deg); } }

/* ============================================================
   SHARED: Empty state
   ============================================================ */
.v7-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.4);
}
.v7-empty-state .empty-icon { font-size: 2.5em; margin-bottom: 12px; }
.v7-empty-state .empty-text { font-size: 0.9em; }

/* ============================================================
   THEME COMPATIBILITY: Light theme overrides
   ============================================================ */
body.light-theme .v7-globe-container {
    background: radial-gradient(ellipse at center, #e0e7f0 0%, #c8d6e5 100%);
}
body.light-theme .v7-globe-stat-card,
body.light-theme .v7-globe-info-panel,
body.light-theme .v7-globe-legend {
    background: rgba(255,255,255,0.85);
    border-color: rgba(0,0,0,0.1);
}
body.light-theme .v7-globe-stat-card .stat-lbl { color: rgba(0,0,0,0.5); }
body.light-theme .v7-ai-bubble.assistant {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
}
body.light-theme .v7-mitre-technique {
    background: rgba(239,68,68,0.03);
    border-color: rgba(239,68,68,0.1);
}
body.light-theme .v7-collab-panel {
    background: #fff;
    border-color: rgba(139,92,246,0.15);
}
body.light-theme .v7-context-menu {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
}
body.light-theme .v7-notif-dropdown { background: #fff; }
body.light-theme .v7-annotation-panel { background: #fff; }
body.light-theme .v7-mitre-detail-panel { background: #fff; }
body.light-theme .v7-bio-profile-panel { background: #fff; }

/* ============================================================
   THEME COMPATIBILITY: Midnight theme overrides
   ============================================================ */
body.midnight-theme .v7-globe-container {
    background: radial-gradient(ellipse at center, #050a15 0%, #000005 100%);
}
body.midnight-theme .v7-ai-bubble.user {
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.15);
}

/* ============================================================
   RESPONSIVE: Tablet & Mobile
   ============================================================ */
@media (max-width: 1200px) {
    .v7-ai-container { grid-template-columns: 1fr; }
    .v7-ai-sidebar { display: none; }
    .v7-sc-container { grid-template-columns: 1fr; }
    .v7-sc-sidebar { flex-direction: row; overflow-x: auto; }
    .v7-bio-compare-container { grid-template-columns: 1fr; }
    .v7-mitre-matrix-grid { grid-template-columns: repeat(14, 120px); }
}

@media (max-width: 768px) {
    .v7-globe-container { height: 400px; min-height: 300px; }
    .v7-globe-stats { flex-wrap: wrap; gap: 6px; }
    .v7-globe-stat-card { min-width: 70px; padding: 6px 10px; }
    .v7-globe-stat-card .stat-val { font-size: 1.1em; }
    .v7-collab-panel { width: calc(100vw - 40px); right: -10px; }
    .v7-bio-leader-grid { grid-template-columns: 1fr; }
    .v7-wg-scenario-grid { grid-template-columns: 1fr; }
    .v7-ti-ransomware-grid { grid-template-columns: 1fr; }
    .v7-mitre-detail-panel,
    .v7-bio-profile-panel,
    .v7-annotation-panel {
        width: 100vw;
        right: -100vw;
    }
}
