@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;500;700;900&display=swap');

:root {
    --h-bg: #010812;
    --h-cyan: #00d5ff;
    /* Extra bright sci-fi cyan */
    --h-cyan-glow: 0 0 15px rgba(0, 213, 255, 0.5);
    --h-cyan-dim: rgba(0, 213, 255, 0.3);
    --h-amber: #ff9900;
    --f-data: 'Rajdhani', sans-serif;
    --f-num: 'Share Tech Mono', monospace;
    --f-head: 'Orbitron', sans-serif;
    --grid-size: 50px;
}

.blueprint-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 213, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 213, 255, 0.05) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.blueprint-active .blueprint-grid {
    opacity: 1;
}

body.blueprint-active .reactor-wrapper {
    filter: drop-shadow(0 0 50px var(--h-cyan));
}

body.privacy-active .left-side-panel,
body.privacy-active .right-side-panel,
body.privacy-active .matrix-box,
body.privacy-active .time-control-box,
body.privacy-active .house-party-box,
body.privacy-active .element-synth-box {
    filter: blur(15px);
    pointer-events: none;
}

body.dim-active .hex-bg,
body.dim-active .scanlines,
body.dim-active .laser-sweep,
body.dim-active .screen-scanner {
    opacity: 0.1 !important;
}

body.wings-hidden .hud-wing {
    display: none !important;
}

body.studio-focus {
    --h-cyan: #ff9900;
    --h-cyan-dim: rgba(255, 153, 0, 0.2);
    --h-cyan-glow: 0 0 10px rgba(255, 153, 0, 0.4);
    background: #000;
}

body.studio-focus .hud-vignette {
    background: radial-gradient(circle at center, transparent 10%, #000 120%);
}

.mission-box {
    margin-top: 20px;
    padding: 10px;
    border-top: 1px solid var(--h-cyan-dim);
}

.m-task {
    font-family: var(--f-data);
    font-size: 11px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    opacity: 0.8;
}

.m-status {
    color: var(--h-cyan);
    animation: pulse-hex 1s infinite alternate;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--h-bg);
    color: var(--h-cyan);
    font-family: var(--f-data);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
    user-select: none;
    /* Grid background */
    background-image:
        linear-gradient(rgba(0, 213, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 213, 255, 0.08) 1px, transparent 1px);
    background-size: 25px 25px;
}

/* Sci-fi Overlay Layers */
.hex-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='69.28' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 17.32l-20 11.55L0 17.32V-5.77l20-11.55 20 11.55V17.32zm0 46.19l-20 11.55-20-11.55V40.41l20-11.55 20 11.55v23.09z' fill='none' stroke='%2300d5ff' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 40px 69.28px;
    animation: pulse-hex 10s infinite alternate;
}

.hud-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 20%, rgba(0, 5, 15, 0.4) 60%, #000 150%);
    pointer-events: none;
    z-index: 9998;
}

.screen-scanner {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200vw;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--h-cyan), transparent);
    opacity: 0.15;
    z-index: 9996;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-45deg);
    animation: scanner-move 12s infinite ease-in-out;
}

@keyframes scanner-move {
    0% {
        transform: translate(-50%, -150%) rotate(-45deg);
    }

    100% {
        transform: translate(-50%, 150%) rotate(-45deg);
    }
}

.scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(10, 30, 60, 0.1) 2px, rgba(10, 30, 60, 0.1) 4px);
    pointer-events: none;
    z-index: 9999;
}

.laser-sweep {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--h-cyan), transparent);
    opacity: 0.1;
    z-index: 9997;
    pointer-events: none;
    animation: sweep 10s infinite linear;
}

/* Top Ruler */
.top-ruler {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, rgba(0, 213, 255, 0.15), transparent);
    border-bottom: 2px solid rgba(0, 213, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 2px;
    font-family: var(--f-num);
    font-size: 11px;
    z-index: 10;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0, 213, 255, 0.1);
}

.tick-num {
    color: var(--h-cyan);
    letter-spacing: 1px;
    width: 35px;
    text-align: center;
    border-left: 1px solid rgba(0, 213, 255, 0.4);
    padding-left: 2px;
}

/* Branding */
.brand-title {
    position: absolute;
    top: 35px;
    right: 40px;
    font-family: var(--f-head);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-shadow: var(--h-cyan-glow);
    letter-spacing: 4px;
    z-index: 20;
    border-bottom: 2px solid var(--h-cyan);
    padding-bottom: 5px;
}

.center-header {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--f-head);
    font-size: 44px;
    font-weight: 900;
    letter-spacing: 20px;
    color: var(--h-cyan);
    text-shadow: var(--h-cyan-glow);
    z-index: 20;
    white-space: nowrap;
}

/* Exit Button */
.exit-btn {
    position: absolute;
    top: 45px;
    left: 40px;
    text-decoration: none;
    color: var(--h-cyan);
    font-family: var(--f-num);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
    cursor: pointer;
    transition: 0.3s;
}

.tr-weather {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20;
}

.exit-btn-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 3px solid var(--h-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 0 15px var(--h-cyan), inset 0 0 10px var(--h-cyan);
    background: rgba(0, 213, 255, 0.1);
    transition: 0.3s;
}

.exit-btn:hover .exit-btn-icon {
    background: #ff3333;
    border-color: #ff3333;
    box-shadow: 0 0 30px #ff3333;
    color: #fff;
}

.exit-btn:hover .exit-btn-text {
    color: #ff3333;
    border-color: #ff3333;
    text-shadow: 0 0 10px #ff3333;
}

.exit-btn-text {
    font-family: var(--f-head);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    border-bottom: 2px solid var(--h-cyan);
    padding-bottom: 4px;
    transition: 0.3s;
}

.tr-w-text {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    filter: drop-shadow(0 0 5px var(--h-cyan));
}

.tr-w-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 2px solid var(--h-cyan-dim);
    border-top: 2px solid var(--h-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--f-num);
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px var(--h-cyan);
    box-shadow: inset 0 0 15px rgba(0, 213, 255, 0.2);
    animation: spin 5s linear infinite;
    position: relative;
    background: rgba(0, 213, 255, 0.05);
}

.tr-w-circle span {
    position: absolute;
    animation: spin-rev 5s linear infinite;
}

/* Glassmorphism Generic Class */
.glass-module {
    background: rgba(0, 15, 30, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(0, 213, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.glass-module:hover {
    border-color: var(--h-cyan);
    box-shadow: 0 8px 40px 0 rgba(0, 213, 255, 0.15);
}

/* Dynamic Matrix Data Box */
.matrix-box {
    position: absolute;
    bottom: 240px;
    left: 280px;
    width: 170px;
    height: 120px;
    border: 1px solid var(--h-cyan-dim);
    background: rgba(0, 0, 0, 0.4);
    z-index: 20;
    overflow: hidden;
    padding: 10px;
    border-left: 3px solid var(--h-cyan);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 20px rgba(0, 213, 255, 0.05);
}

.matrix-title {
    font-family: var(--f-head);
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    border-bottom: 1px dotted var(--h-cyan);
    padding-bottom: 5px;
    letter-spacing: 2px;
}

.matrix-content {
    font-family: var(--f-num);
    font-size: 11px;
    color: rgba(0, 213, 255, 0.8);
    line-height: 1.3;
    word-break: break-all;
    opacity: 0.8;
}

.site-stats-box {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    z-index: 100;
    border-bottom: 2px solid var(--h-cyan);
    padding: 12px;
    background: rgba(0, 15, 30, 0.85);
    backdrop-filter: blur(12px);
}

/* Floating Targets */
.target-box {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(0, 213, 255, 0.4);
    pointer-events: none;
    z-index: 4;
}

.target-box::before {
    content: '';
    position: absolute;
    top: 38px;
    left: -10px;
    width: 96px;
    height: 2px;
    background: rgba(0, 213, 255, 0.7);
}

.target-box::after {
    content: '';
    position: absolute;
    left: 38px;
    top: -10px;
    height: 96px;
    width: 2px;
    background: rgba(0, 213, 255, 0.7);
}

.tb-1 {
    top: 25%;
    left: 20%;
    animation: float-target 15s infinite alternate ease-in-out;
}

.tb-2 {
    bottom: 35%;
    right: 25%;
    animation: float-target 22s infinite alternate-reverse ease-in-out;
}

/* ---------------- ARC REACTOR CENTER ---------------- */
.reactor-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CLICKABLE CENTER CORE - This is the Main Action Point */
.r-core {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, rgba(0, 213, 255, 0.8) 40%, rgba(0, 0, 0, 0.5) 80%);
    box-shadow: 0 0 60px var(--h-cyan), inset 0 0 30px #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid var(--h-cyan);
    animation: core-pulse 3s infinite alternate;
    z-index: 100;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.r-core:hover {
    box-shadow: 0 0 100px var(--h-cyan), inset 0 0 80px #fff;
    transform: scale(1.15);
    border-color: #fff;
}

.r-core:active {
    transform: scale(0.9);
}

.r-core-icon {
    font-size: 45px;
    color: #fff;
    text-shadow: 0 0 15px #fff;
    transition: 0.3s;
}

.r-core:hover .r-core-icon {
    color: #000;
    text-shadow: none;
}

/* Voice Recording State for Core */
.r-core.listening {
    border-color: #ff0044;
    background: radial-gradient(circle, #ffffff 0%, rgba(255, 0, 68, 0.8) 40%, rgba(0, 0, 0, 0.5) 80%);
    box-shadow: 0 0 100px #ff0044, inset 0 0 60px #ff0044;
    animation: core-record 0.5s infinite alternate;
}

.r-core.listening .r-core-icon {
    color: #fff;
    text-shadow: 0 0 20px #ff0044;
}

/* Rings */
.ring {
    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
}

.ring-1 {
    width: 660px;
    height: 660px;
    border: 2px dotted rgba(0, 213, 255, 0.3);
    animation: spin 50s linear infinite;
}

.ring-2 {
    width: 580px;
    height: 580px;
    border: 35px solid rgba(0, 213, 255, 0.05);
    border-right: 35px solid rgba(0, 213, 255, 0.3);
    border-bottom: 35px solid rgba(0, 213, 255, 0.3);
    animation: spin-rev 30s linear infinite;
    box-shadow: inset 0 0 30px rgba(0, 213, 255, 0.1);
}

.ring-3 {
    width: 480px;
    height: 480px;
    background: repeating-conic-gradient(var(--h-cyan) 0deg 1.5deg, transparent 1.5deg 4deg);
    -webkit-mask: radial-gradient(transparent 68%, black 69%);
    mask: radial-gradient(transparent 68%, black 69%);
    animation: spin 40s linear infinite;
    opacity: 0.9;
}

.ring-4 {
    width: 400px;
    height: 400px;
    border: 6px dashed rgba(0, 213, 255, 0.5);
    border-left: 6px solid #fff;
    animation: spin-rev 20s linear infinite;
}

.ring-5 {
    width: 280px;
    height: 280px;
    border: 3px solid var(--h-cyan);
    box-shadow: 0 0 20px var(--h-cyan), inset 0 0 20px var(--h-cyan);
}

.ring-6 {
    width: 170px;
    height: 170px;
    border: 1px dotted #fff;
    animation: spin 10s linear infinite alternate;
}

/* Geometric crosshairs */
.arc-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    animation: spin-rev 100s linear infinite;
}

.line {
    position: absolute;
    background: rgba(0, 213, 255, 0.2);
}

.line-h {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.line-v {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* SVG Data Curve */
.svg-hud {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

.data-arc {
    fill: transparent;
    stroke: rgba(0, 213, 255, 0.6);
    stroke-width: 30;
    stroke-dasharray: 4 10;
    animation: dash-flow 20s linear infinite;
}

/* Wing UI connecting out from arc */
.hud-wing {
    position: absolute;
    transform-origin: left bottom;
    width: 220px;
    border-bottom: 3px solid var(--h-cyan);
    z-index: 10;
    padding-bottom: 8px;
}

.w-title {
    font-family: var(--f-num);
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}

.w-bar {
    height: 8px;
    background: rgba(0, 213, 255, 0.15);
    margin-top: 6px;
    width: 100%;
    border: 1px solid rgba(0, 213, 255, 0.4);
}

.w-fill {
    height: 100%;
    background: var(--h-cyan);
    box-shadow: 0 0 10px var(--h-cyan);
}

.wing-1 {
    left: 70%;
    top: 35%;
    transform: rotate(-30deg);
}

.wing-1 .w-title {
    transform: rotate(30deg) translateY(-20px);
    text-align: right;
}

.wing-2 {
    left: 75%;
    top: 50%;
    transform: rotate(0deg);
    width: 260px;
    border-bottom-color: #fff;
}

.wing-2 .w-fill {
    background: #fff;
    box-shadow: 0 0 15px #fff;
    width: 100%;
    animation: pulse-hex 2s infinite alternate;
}

.wing-3 {
    left: 70%;
    top: 65%;
    transform: rotate(30deg);
}

.wing-3 .w-title {
    transform: rotate(-30deg) translateY(30px);
    text-align: right;
}


/* ---------------- RIGHT PANEL CHAT / NEURAL ---------------- */
.right-side-panel {
    position: absolute;
    top: 100px;
    right: 15px;
    bottom: 140px;
    width: 275px;
    display: flex;
    flex-direction: column;
    z-index: 20;
    background: rgba(0, 10, 20, 0.75);
    border: 1px solid var(--h-cyan-dim);
    border-top: 4px solid var(--h-cyan);
    padding: 25px;
    box-shadow: -15px 15px 30px rgba(0, 213, 255, 0.05);
    backdrop-filter: blur(5px);
}

.rsp-title {
    font-family: var(--f-head);
    font-size: 16px;
    letter-spacing: 4px;
    color: #fff;
    border-bottom: 2px solid var(--h-cyan);
    padding-bottom: 12px;
    margin-bottom: 20px;
    text-shadow: var(--h-cyan-glow);
    text-align: right;
    display: flex;
    justify-content: space-between;
}

.chat-window {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding-right: 15px;
}

.chat-window::-webkit-scrollbar {
    width: 4px;
    background: rgba(0, 213, 255, 0.1);
}

.chat-window::-webkit-scrollbar-thumb {
    background: var(--h-cyan);
    border-radius: 4px;
}

.c-msg {
    font-family: var(--f-data);
    font-size: 16px;
    line-height: 1.6;
    padding: 15px 18px;
    background: rgba(0, 213, 255, 0.08);
    max-width: 95%;
    position: relative;
    border: 1px solid var(--h-cyan-dim);
    box-shadow: inset 0 0 15px rgba(0, 213, 255, 0.05);
    letter-spacing: 0.5px;
}

.c-msg.ai {
    border-left: 4px solid var(--h-cyan);
    color: #fff;
    align-self: flex-start;
    border-radius: 0 10px 10px 10px;
}

.c-msg.user {
    background: rgba(255, 255, 255, 0.05);
    border-right: 4px solid #fff;
    border-left: none;
    color: var(--h-cyan);
    align-self: flex-end;
    text-align: right;
    border-radius: 10px 0 10px 10px;
}

.chat-input-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audio-viz {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 20px;
    border-bottom: 1px dotted var(--h-cyan-dim);
    padding-bottom: 5px;
}

.audio-viz span {
    width: 6px;
    height: 3px;
    background: var(--h-cyan);
    border-radius: 2px;
}

.audio-viz.active span {
    background: #ff0044;
    animation: eq 0.5s infinite alternate ease-in-out;
    box-shadow: 0 0 10px #ff0044;
}

.chat-controls {
    display: flex;
    gap: 10px;
}

.chat-controls input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 213, 255, 0.5);
    color: #fff;
    padding: 12px 15px;
    font-family: var(--f-num);
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.chat-controls input:focus {
    border-color: var(--h-cyan);
    box-shadow: inset 0 0 20px rgba(0, 213, 255, 0.3);
}

.cnt-btn {
    width: 55px;
    background: rgba(0, 213, 255, 0.1);
    border: 1px solid var(--h-cyan);
    color: var(--h-cyan);
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.cnt-btn:hover {
    background: var(--h-cyan);
    color: #000;
    box-shadow: var(--h-cyan-glow);
}

/* ---------------- BOTTOM DOCK ---------------- */
.bottom-dock {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 35px;
    z-index: 50;
}

.dock-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--h-cyan);
    box-shadow: 0 0 20px rgba(0, 213, 255, 0.2), inset 0 0 20px rgba(0, 213, 255, 0.2);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    background: rgba(0, 10, 20, 0.8);
}

.dock-circle::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 213, 255, 0.5);
    transition: 0.3s;
}

.dock-circle:hover {
    color: #000;
    background: var(--h-cyan);
    box-shadow: var(--h-cyan-glow);
    transform: scale(1.1);
    border-color: #fff;
}

.dock-circle:hover::after {
    border-color: #fff;
    animation: spin 5s linear infinite;
}

.dock-circle.active {
    background: #fff;
    border-color: #fff;
    color: #000;
    box-shadow: 0 0 30px #fff;
}


/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-rev {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes core-pulse {
    to {
        box-shadow: 0 0 90px var(--h-cyan), inset 0 0 40px #fff;
        transform: scale(1.05);
    }
}

@keyframes core-record {
    from {
        box-shadow: 0 0 50px #ff0044, inset 0 0 30px #ff0044;
        transform: scale(1);
    }

    to {
        box-shadow: 0 0 120px #ff0044, inset 0 0 70px #ff0044;
        transform: scale(1.1);
    }
}

@keyframes eq {
    0% {
        height: 3px;
    }

    100% {
        height: 22px;
    }
}

@keyframes rotate-globe {
    0% {
        transform: rotateX(25deg) rotateY(0);
    }

    100% {
        transform: rotateX(25deg) rotateY(360deg);
    }
}

@keyframes pulse-hex {
    0% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.3;
    }
}

@keyframes float-target {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -60px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 50px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: 1000;
    }
}

@keyframes sweep {
    0% {
        top: -100px;
    }

    100% {
        top: 100vh;
    }
}

/* ---------------- LEFT PANEL NEW BIOMETRICS ---------------- */
.left-side-panel {
    position: absolute;
    top: 70px;
    left: 5px;
    width: 170px;
    display: flex;
    flex-direction: column;
    z-index: 20;
    color: #fff;
    background: rgba(0, 10, 20, 0.5);
    border-right: 4px solid var(--h-cyan);
    padding: 15px;
    border-radius: 10px 0 0 10px;
    backdrop-filter: blur(5px);
    box-shadow: 20px 0 30px -10px rgba(0, 213, 255, 0.05);
}

.bio-row {
    font-family: var(--f-num);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
    border-bottom: 1px dotted rgba(0, 213, 255, 0.4);
    padding-bottom: 4px;
    border-left: 2px solid var(--h-cyan);
    padding-left: 10px;
}

/* Vital ECG Graph Box */
.vital-graph-box {
    width: 100%;
    height: 60px;
    border: 1px solid var(--h-cyan-dim);
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    border-left: 4px solid #00ff00;
}

.vital-svg {
    width: 100%;
    height: 100%;
}

.ecg-line {
    fill: none;
    stroke: #00ff00;
    stroke-width: 1.5;
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    animation: ecg-draw 2s linear infinite;
    filter: drop-shadow(0 0 4px #00ff00);
}

.ecg-scan {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: rgba(0, 255, 0, 0.8);
    box-shadow: 0 0 10px #00ff00;
    animation: ecg-scan 2s linear infinite;
}

/* Radar System */
.radar-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 15px auto;
    position: relative;
    border: 3px solid var(--h-cyan);
    box-shadow: 0 0 20px rgba(0, 213, 255, 0.2), inset 0 0 20px rgba(0, 213, 255, 0.2);
    overflow: hidden;
    background: radial-gradient(circle, rgba(0, 213, 255, 0.2) 0%, transparent 80%);
}

.radar-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 213, 255, 0.4);
}

.radar-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(0, 213, 255, 0.4);
}

.radar-ring {
    position: absolute;
    border: 1px dashed rgba(0, 213, 255, 0.5);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.rad-2 {
    width: 120px;
    height: 120px;
}

.rad-3 {
    width: 60px;
    height: 60px;
}

.radar-sweep-arm {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 50%;
    transform-origin: bottom left;
    background: linear-gradient(90deg, transparent, rgba(0, 213, 255, 0.8));
    animation: radar-spin 4s linear infinite;
    border-right: 2px solid #fff;
}

.radar-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: dot-fade 4s infinite;
}

.radar-dot.enemy {
    background: #ff3333;
    box-shadow: 0 0 10px #ff3333;
}

.radar-dot.ally {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    width: 8px;
    height: 8px;
}

/* Left Panels Anim & Fixes */
@keyframes ecg-draw {
    0% {
        stroke-dashoffset: 200;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes ecg-scan {
    0% {
        left: 0%;
        opacity: 1;
    }

    99% {
        left: 100%;
        opacity: 0;
    }

    100% {
        left: 0%;
        opacity: 0;
    }
}

@keyframes radar-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes dot-fade {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    10% {
        opacity: 1;
        transform: scale(1.5);
    }

    30% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* ---------------- NEW MODULES: SYNTHESIS & HOUSE PARTY ---------------- */
.element-synth-box {
    position: absolute;
    bottom: 25px;
    right: 10px;
    width: 275px;
    background: rgba(0, 10, 20, 0.5);
    border: 1px solid var(--h-cyan-dim);
    border-bottom: 3px solid var(--h-cyan);
    padding: 10px;
    z-index: 20;
    backdrop-filter: blur(5px);
}

.synth-bar {
    width: 100%;
    height: 8px;
    border: 1px solid rgba(0, 213, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.synth-fill {
    width: 0%;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 10px #fff;
    animation: synth-load 5s ease-in-out infinite alternate;
}

@keyframes synth-load {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes synth-blink {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

.house-party-box {
    position: absolute;
    bottom: 48%;
    left: 280px;
    width: 160px;
    top: auto;
    background: rgba(0, 10, 20, 0.6);
    border: 1px solid rgba(255, 153, 0, 0.3);
    border-top: 3px solid #ff9900;
    padding: 10px;
    z-index: 20;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.1);
}

.armor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.armor-slot {
    font-family: var(--f-num);
    font-size: 11px;
    padding: 4px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    transition: 0.3s;
}

.armor-slot.active {
    border-color: #ff9900;
    color: #ff9900;
    background: rgba(255, 153, 0, 0.1);
    box-shadow: inset 0 0 5px rgba(255, 153, 0, 0.2);
}

.armor-slot.offline {
    border-color: #ff3333;
    color: #ff3333;
    background: rgba(255, 51, 51, 0.1);
    text-decoration: line-through;
}

/* TEMPORAL NAVIGATION (Endgame GPS/Mobius) */
.time-control-box {
    position: absolute;
    bottom: 55px;
    left: 280px;
    width: 170px;
    top: auto;
    right: auto;
    background: rgba(0, 10, 20, 0.6);
    border: 1px solid rgba(0, 213, 255, 0.3);
    border-left: 3px solid var(--h-cyan);
    padding: 10px;
    z-index: 20;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 213, 255, 0.05);
}

.mobius-wrapper {
    position: relative;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 300px;
    margin: 10px 0;
}

.mobius-ring {
    position: absolute;
    width: 100px;
    height: 30px;
    border: 2px solid var(--h-cyan);
    border-radius: 50%;
    transform: rotateX(60deg) rotateY(20deg);
    animation: mobius-spin 4s linear infinite;
    box-shadow: 0 0 10px var(--h-cyan);
}

.mobius-ring.m-2 {
    transform: rotateX(60deg) rotateY(-20deg);
    animation: mobius-spin-rev 4s linear infinite;
    border-color: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.mobius-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    animation: quantum-jump 2s ease-in-out infinite;
}

.mobius-particle.p-2 {
    animation: quantum-jump 2s ease-in-out infinite reverse;
    animation-delay: 1s;
}

.time-player {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
    color: var(--h-cyan);
    font-size: 14px;
}

.ctrl-btn {
    cursor: pointer;
    transition: 0.3s;
    padding: 5px;
    border-radius: 50%;
    border: 1px solid transparent;
}

.ctrl-btn:hover {
    color: #fff;
    text-shadow: 0 0 10px #fff;
}

.ctrl-btn.active {
    color: #fff;
    text-shadow: 0 0 10px #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

@keyframes mobius-spin {
    0% {
        transform: rotateX(60deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(60deg) rotateZ(360deg);
    }
}

@keyframes mobius-spin-rev {
    0% {
        transform: rotateX(60deg) rotateZ(360deg);
    }

    100% {
        transform: rotateX(60deg) rotateZ(0deg);
    }
}

@keyframes quantum-jump {
    0% {
        transform: translateX(-50px) scale(0.5);
        opacity: 0.2;
    }

    50% {
        transform: translateX(50px) scale(1.5);
        opacity: 1;
    }

    100% {
        transform: translateX(-50px) scale(0.5);
        opacity: 0.2;
    }
}

/* Glitch init */
.glitch-layer {
    position: fixed;
    inset: 0;
    background: #fff;
    mix-blend-mode: overlay;
    z-index: 99999;
    pointer-events: none;
    animation: initial-glitch 2s forwards;
}

@keyframes initial-glitch {
    0% {
        opacity: 1;
    }

    10% {
        opacity: 0;
    }

    15% {
        opacity: 0.8;
    }

    20% {
        opacity: 0;
    }

    30% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;
        display: none;
    }
}

@media(max-width: 1400px) {
    .reactor-wrapper {
        transform: translate(-50%, -50%) scale(0.7);
    }

    .house-party-box {
        left: 15px;
        bottom: 42%;
    }

    .time-control-box {
        left: 15px;
        bottom: 80px;
    }
}

/* ---------------- HOLOGRAPHIC TERMINAL STYLES ---------------- */
.holo-terminal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 5, 15, 0.85);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.terminal-frame {
    width: 80%;
    max-width: 900px;
    height: 70%;
    background: rgba(0, 15, 30, 0.9);
    border: 2px solid var(--h-cyan);
    box-shadow: 0 0 50px rgba(0, 213, 255, 0.3), inset 0 0 30px rgba(0, 213, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.terminal-header {
    background: var(--h-cyan);
    color: #000;
    padding: 15px 25px;
    font-family: var(--f-head);
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 2px;
}

.terminal-header button {
    background: none;
    border: none;
    color: #000;
    font-size: 20px;
    cursor: pointer;
}

.terminal-body {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    position: relative;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(0, 213, 255, 0.05) 0%, transparent 80%);
}

.scan-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--h-cyan);
    box-shadow: 0 0 20px var(--h-cyan);
    opacity: 0.5;
    animation: scan-down 3s linear infinite;
    pointer-events: none;
}

@keyframes scan-down {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.loading-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 20px;
    font-family: var(--f-num);
    font-size: 18px;
    color: var(--h-cyan);
    text-shadow: 0 0 10px var(--h-cyan);
}

.data-block-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    animation: fade-in 0.5s ease-out;
}

.data-hex-block {
    background: rgba(0, 213, 255, 0.05);
    border: 1px solid var(--h-cyan-dim);
    padding: 25px;
    position: relative;
    border-left: 5px solid var(--h-cyan);
    transition: 0.3s;
}

.data-hex-block:hover {
    background: rgba(0, 213, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--h-cyan);
}

.hex-title {
    font-family: var(--f-head);
    font-size: 11px;
    color: #fff;
    opacity: 0.7;
    margin-bottom: 5px;
}

.hex-val {
    font-family: var(--f-num);
    font-size: 28px;
    font-weight: bold;
    color: var(--h-cyan);
    text-shadow: 0 0 10px var(--h-cyan);
}

.hex-sub {
    font-family: var(--f-data);
    font-size: 12px;
    color: #fff;
    opacity: 0.5;
    margin-top: 10px;
    text-transform: uppercase;
}

.terminal-footer {
    padding: 10px 25px;
    font-family: var(--f-num);
    font-size: 10px;
    color: var(--h-cyan);
    opacity: 0.5;
    border-top: 1px solid var(--h-cyan-dim);
    text-align: center;
    letter-spacing: 2px;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media(max-width: 1100px) {
    .reactor-wrapper {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.6;
    }

    .holo-globe,
    .matrix-box,
    .target-box,
    .exit-btn-text,
    .house-party-box,
    .time-control-box,
    .element-synth-box,
    .left-side-panel,
    .hud-wing,
    .tr-weather .tr-w-text {
        display: none !important;
    }

    .right-side-panel {
        position: absolute;
        top: 80px;
        right: 20px;
        width: 300px;
        bottom: 120px;
        z-index: 21;
    }

    .bottom-dock {
        bottom: 52%;
        width: 100%;
        padding: 0 10px;
        gap: 10px;
        justify-content: space-around;
        transform: translateX(-50%) scale(0.8);
    }

    .exit-btn {
        top: 20px;
        left: 20px;
        transform: scale(0.8);
    }
}

/* ---------------- HOLOGRAPHIC TERMINAL ENHANCEMENTS ---------------- */
.holo-terminal-overlay {
    animation: flicker-in 0.3s ease-out;
}

@keyframes flicker-in {
    0% {
        opacity: 0;
        filter: brightness(2) blur(10px);
    }

    10% {
        opacity: 0.5;
    }

    20% {
        opacity: 0.2;
    }

    100% {
        opacity: 1;
        filter: brightness(1) blur(0);
    }
}

.terminal-frame {
    border: 1px solid rgba(0, 213, 255, 0.8);
    background: linear-gradient(135deg, rgba(0, 15, 30, 0.9), rgba(0, 30, 60, 0.95));
    clip-path: polygon(0% 0%, 100% 0%, 100% 95%, 95% 100%, 0% 100%);
}

.data-hex-block {
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.data-hex-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.05) 50.5%, transparent 51%);
    background-size: 15px 15px;
}

.data-hex-block:nth-child(even) {
    animation: glitch-v 4s infinite alternate;
}

@keyframes glitch-v {
    0% {
        transform: translate(0);
    }

    1% {
        transform: translate(-2px, 2px);
    }

    2% {
        transform: translate(2px, -1px);
    }

    3% {
        transform: translate(0);
    }
}

/* Sparklines for Telemetry */
.sparkline-container {
    height: 30px;
    width: 100%;
    margin-top: 10px;
    opacity: 0.6;
}

.sparkline-svg {
    stroke: var(--h-cyan);
    stroke-width: 2;
    fill: transparent;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-line 5s linear infinite;
}

@keyframes draw-line {
    to {
        stroke-dashoffset: 0;
    }
}

/* ---------------- MOBILE OVERHAUL ---------------- */
@media(max-width: 768px) {
    .reactor-wrapper {
        transform: translate(-50%, -68%) scale(0.32) !important;
        opacity: 0.6 !important;
        z-index: 5;
    }

    .brand-title {
        font-size: 12px;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        text-align: center;
        width: 100%;
        letter-spacing: 3px;
        z-index: 20;
    }

    .center-header {
        font-size: 16px !important;
        letter-spacing: 12px !important;
        top: 75px !important;
        width: 100%;
        text-align: center;
    }

    .right-side-panel {
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 94%;
        bottom: 90px;
        background: rgba(0, 8, 15, 0.92);
        backdrop-filter: blur(25px);
        border: 1px solid rgba(0, 213, 255, 0.3);
        border-radius: 20px;
        padding: 15px;
        z-index: 30;
        max-height: 38vh;
    }

    .chat-window {
        flex: 1;
        height: auto;
        max-height: 180px;
        font-size: 11px;
    }

    .chat-window .c-msg {
        font-size: 11px;
        padding: 8px;
        margin-bottom: 5px;
    }

    .chat-input-box {
        margin-top: 10px;
    }

    .chat-controls input {
        font-size: 12px;
        padding: 8px;
    }

    .bottom-dock {
        bottom: 15px;
        top: auto;
        width: 95%;
        background: rgba(0, 15, 30, 0.9);
        border: 1px solid rgba(0, 213, 255, 0.4);
        border-radius: 30px;
        padding: 8px 15px;
        backdrop-filter: blur(20px);
        transform: translateX(-50%);
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 50;
    }

    .dock-circle {
        width: 42px !important;
        height: 42px !important;
        font-size: 16px !important;
        margin: 0 !important;
    }

    .exit-btn {
        top: 25px;
        left: 20px;
        transform: scale(0.65);
        z-index: 100;
    }

    .exit-btn-text {
        display: none !important;
    }

    /* Hide redundant clutter */
    .top-ruler,
    .scanlines,
    .r-core-text,
    .site-stats-box,
    .matrix-box,
    .house-party-box,
    .time-control-box,
    .element-synth-box,
    .left-side-panel,
    .tr-weather,
    .hud-wing,
    .mobile-sync-box {
        display: none !important;
    }
}
