/* ----------------------------------------------------
   Proof of Pulse (PoP) Dashboard Styling System
   Futuristic Glassmorphic Neon Space Theme
   Author: Vikram D. Katral
   ---------------------------------------------------- */

:root {
    --bg-dark: #030209;
    --card-bg: rgba(9, 6, 22, 0.72);
    --border-color: rgba(189, 0, 255, 0.1);
    --border-glow: rgba(0, 243, 255, 0.2);
    --text-primary: #e2e8f0;
    --text-muted: #8a99ad;
    
    /* Neon Palettes */
    --neon-cyan: #00f3ff;
    --neon-purple: #bd00ff;
    --neon-green: #00ff88;
    --neon-pink: #ff0099;
    --neon-yellow: #ffb700;
    --neon-blue: #0088ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Background effects */
.stars-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    opacity: 0.18;
    z-index: -2;
}

.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
}

.glow-orb.blue {
    width: 600px;
    height: 600px;
    background-color: var(--neon-cyan);
    top: -200px;
    right: -100px;
}

.glow-orb.purple {
    width: 500px;
    height: 500px;
    background-color: var(--neon-purple);
    bottom: -150px;
    left: -100px;
}

.glow-orb.magenta {
    width: 500px;
    height: 500px;
    background-color: var(--neon-pink);
    top: 30%;
    left: 45%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    animation: pulseNebula 20s infinite alternate ease-in-out;
}

@keyframes pulseNebula {
    0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.04; }
    100% { transform: translate(-50%, -50%) scale(1.3) rotate(180deg); opacity: 0.08; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(13, 17, 33, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.5);
}

/* Header Elements */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-svg path {
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    animation: drawPulse 4s linear infinite;
}

@keyframes drawPulse {
    0% { stroke-dashoffset: 400; }
    100% { stroke-dashoffset: 0; }
}

.logo-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #d000ff, #00f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.logo-text .subtitle {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.system-time-sync {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}

.system-time-sync .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-cyan);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 2px var(--neon-cyan); }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 8px var(--neon-cyan); }
    100% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 2px var(--neon-cyan); }
}

.system-time-sync .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.system-time-sync .time-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

/* Metrics Overview Banner */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1.2rem 3%;
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, border-color 0.2s ease;
    min-width: 0;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.08);
}

.metric-icon {
    font-size: 1.4rem;
    color: var(--neon-cyan);
    opacity: 0.85;
}

.metric-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.metric-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.metric-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.1rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* Core Dashboard Columns Grid */
.dashboard-body {
    flex: 1;
    display: grid;
    grid-template-columns: 28% 42% 30%;
    gap: 1.2rem;
    padding: 0 3% 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
}

.dashboard-panel {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-height: 0;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-card {
    flex-shrink: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.01);
}

.card-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-icon {
    font-size: 0.95rem;
}

.card-body {
    padding: 1.2rem;
    position: relative;
}

/* Badges */
.badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.badge-cyan { background: rgba(0, 240, 255, 0.1); color: var(--neon-cyan); border: 1px solid rgba(0, 240, 255, 0.2); }
.badge-purple { background: rgba(208, 0, 255, 0.1); color: var(--neon-purple); border: 1px solid rgba(208, 0, 255, 0.2); }

.badge-active {
    background: rgba(57, 255, 20, 0.06);
    color: var(--neon-green);
    border: 1px solid rgba(57, 255, 20, 0.2);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-active .dot {
    width: 6px;
    height: 6px;
    background-color: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--neon-green);
}

.formula {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Pulse Canvas Wave view */
.canvas-wrapper {
    height: 180px;
    padding: 0;
    position: relative;
    background: #060914;
}

#pulse-canvas, #radar-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.wave-overlay-stats {
    position: absolute;
    bottom: 8px;
    right: 12px;
    display: flex;
    gap: 0.8rem;
}

.stat-bubble {
    background: rgba(13, 17, 33, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stat-bubble .lbl {
    font-size: 0.52rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stat-bubble .val {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
}

/* Telemetry & Entropy */
.telemetry-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.telemetry-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bar-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.bar-val {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    font-weight: 600;
}

.bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.bar-fill.cyan { background-color: var(--neon-cyan); box-shadow: 0 0 6px var(--neon-cyan); }
.bar-fill.purple { background-color: var(--neon-purple); box-shadow: 0 0 6px var(--neon-purple); }
.bar-fill.green { background-color: var(--neon-green); box-shadow: 0 0 6px var(--neon-green); }
.bar-fill.yellow { background-color: var(--neon-yellow); box-shadow: 0 0 6px var(--neon-yellow); }
.bar-fill.pink { background-color: var(--neon-pink); box-shadow: 0 0 6px var(--neon-pink); }

.bar-fill-gradient {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    box-shadow: 0 0 6px var(--neon-cyan);
    transition: width 0.4s ease;
}

.entropy-hash-box {
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.entropy-hash-box .label {
    color: var(--text-muted);
}

.entropy-hash-box code {
    font-family: monospace;
    color: var(--neon-purple);
    word-break: break-all;
}

/* Validator Mesh Grid */
.validators-mesh-card {
    flex: 1;
}

.validators-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    height: 100%;
}

.validator-card {
    background: rgba(13, 17, 33, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Highlight current proposer */
.validator-card.is-proposer {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
    background: rgba(0, 240, 255, 0.04);
    transform: scale(1.02);
}

.validator-card.is-proposer::after {
    content: "PROPOSER";
    position: absolute;
    top: -6px;
    right: 6px;
    background: var(--neon-cyan);
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 0.5rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 5px var(--neon-cyan);
}

/* Highlight eligibility indicator */
.validator-card.is-eligible {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.1);
}

.validator-card.is-eligible .card-top .eligibility-dot {
    background-color: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
}

.validator-card.is-slashed {
    border-color: rgba(255, 0, 127, 0.3) !important;
    background: rgba(255, 0, 127, 0.02) !important;
    opacity: 0.5;
}

.validator-card.is-slashed .card-top .eligibility-dot {
    background-color: var(--neon-pink) !important;
    box-shadow: 0 0 5px var(--neon-pink) !important;
}

.validator-card .card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.validator-card .card-top h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
}

.validator-card .eligibility-dot {
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.validator-card .v-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.6rem;
    color: var(--text-muted);
}

.validator-card .v-metrics .val {
    color: var(--text-primary);
    font-weight: 500;
}

.validator-card .stake-box {
    margin-top: 0.2rem;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-size: 0.58rem;
    display: flex;
    justify-content: space-between;
}

.validator-card .stake-box .num {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-purple);
    font-weight: 700;
}

/* Block Finality layouts */
.finality-layout {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.meter-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circular-progress {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform-origin: 50% 50%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-text .percent {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.progress-text .label {
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.finality-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.25rem;
}

.detail-row .val {
    font-weight: 600;
    color: var(--text-primary);
}

.badge-pending { color: var(--neon-yellow); font-weight: 700; text-shadow: 0 0 5px rgba(255, 223, 0, 0.3); }
.badge-success { color: var(--neon-green); font-weight: 700; text-shadow: 0 0 5px rgba(57, 255, 20, 0.3); }

/* Right Columns - Controls Deck */
.run-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    color: #000;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.speed-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.speed-toggle select {
    background: #0b0f19;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    outline: none;
}

/* AI Tuning Sliders */
.ai-tuning-deck {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 0.8rem;
    margin-bottom: 1rem;
}

.ai-tuning-deck h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--neon-purple);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.control-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.control-row label {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.control-row input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #181d30;
    border-radius: 2px;
    outline: none;
}

.control-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon-cyan);
    cursor: pointer;
    box-shadow: 0 0 6px var(--neon-cyan);
}

.auto-toggle {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0;
}

.switch-lbl {
    font-size: 0.65rem;
    color: var(--text-primary);
}

/* Switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 16px;
    flex-shrink: 0;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-btn {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1f253d;
    transition: .4s;
    border-radius: 34px;
}

.slider-btn:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked + .slider-btn {
    background-color: var(--neon-cyan);
}

.switch input:checked + .slider-btn:before {
    transform: translateX(12px);
}

/* Switch standard fallback */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1f253d;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: var(--neon-cyan);
}

.switch input:checked + .slider:before {
    transform: translateX(12px);
}

/* Attack Panels */
.attack-simulation h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--neon-pink);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.attack-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.btn-attack {
    background: #0f1324;
    border: 1px solid rgba(255, 0, 127, 0.12);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 0.6rem 0.4rem;
    font-size: 0.68rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.btn-attack i {
    font-size: 0.85rem;
}

.btn-attack:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-attack.btn-byz:hover { border-color: var(--neon-pink); background: rgba(255, 0, 127, 0.05); box-shadow: 0 0 10px rgba(255, 0, 127, 0.15); }
.btn-attack.btn-time:hover { border-color: var(--neon-yellow); background: rgba(255, 223, 0, 0.05); box-shadow: 0 0 10px rgba(255, 223, 0, 0.15); }
.btn-attack.btn-double:hover { border-color: var(--neon-purple); background: rgba(208, 0, 255, 0.05); box-shadow: 0 0 10px rgba(208, 0, 255, 0.15); }
.btn-attack.btn-ent:hover { border-color: var(--neon-cyan); background: rgba(0, 240, 255, 0.05); box-shadow: 0 0 10px rgba(0, 240, 255, 0.15); }

/* Explorer Card Table scrollable */
.explorer-card {
    flex: 1;
    min-height: 240px;
}

.scroll-y {
    overflow-y: auto;
    padding: 0;
    max-height: 230px;
}

.explorer-table-header {
    display: grid;
    grid-template-columns: 20% 38% 24% 18%;
    padding: 0.5rem 1rem;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #0d1121; /* Solid background prevents text overlap */
    position: sticky;
    top: 0;
    z-index: 2;
}

.explorer-block-list {
    display: flex;
    flex-direction: column;
}

.explorer-row {
    display: grid;
    grid-template-columns: 20% 38% 24% 18%;
    padding: 0.6rem 1rem;
    font-size: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    align-items: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.explorer-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.explorer-row:hover {
    background: rgba(0, 240, 255, 0.03);
}

.explorer-row .col-height {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--neon-cyan);
}

.explorer-row .col-proposer {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
}

.explorer-row .col-votes {
    color: var(--text-muted);
}

.explorer-row .col-finalized {
    display: flex;
    justify-content: flex-start;
}

/* Alert Notification Banner styling */
.alert-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(255, 0, 127, 0.92);
    border: 1px solid var(--neon-pink);
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.4);
    min-width: 450px;
    max-width: 90%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alert-banner.hidden {
    top: -100px;
    opacity: 0;
    pointer-events: none;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}

.pulse-icon {
    font-size: 1.1rem;
    animation: iconPulse 1.2s infinite;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.alert-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.alert-close:hover {
    color: #fff;
}

/* Modal Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 12, 0.75);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    width: 500px;
    max-width: 90%;
    padding: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.15s ease;
}

.btn-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 0.5rem;
}

.info-row .key {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.info-row .val {
    font-size: 0.75rem;
    color: var(--text-primary);
}

.info-row code {
    font-family: monospace;
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    word-break: break-all;
}

.text-warning-row {
    background: rgba(255, 0, 127, 0.05);
    border: 1px solid rgba(255, 0, 127, 0.15);
    border-radius: 6px;
    padding: 0.5rem;
}

.text-warning {
    color: var(--neon-pink) !important;
}

.info-row.hidden {
    display: none;
}

/* Footer Section */
.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1rem 3%;
    text-align: center;
    background: rgba(7, 9, 19, 0.9);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Text Colors utilities */
.text-cyan { color: var(--neon-cyan) !important; text-shadow: 0 0 6px rgba(0, 243, 255, 0.4); }
.text-purple { color: var(--neon-purple) !important; text-shadow: 0 0 6px rgba(189, 0, 255, 0.4); }
.text-pink { color: var(--neon-pink) !important; text-shadow: 0 0 6px rgba(255, 0, 153, 0.4); }
.text-green { color: var(--neon-green) !important; text-shadow: 0 0 6px rgba(0, 255, 136, 0.4); }

/* Responsive adjustments */
@media (max-width: 1450px) {
    .dashboard-body {
        grid-template-columns: 1fr;
    }
}

/* Smart Contract Sandbox styling */
.contract-card {
    flex-shrink: 0;
}

.contract-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.code-preview-box {
    background: #03060c;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 0.5rem;
    max-height: 90px;
    overflow-y: auto;
}

.code-preview-box pre {
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--neon-cyan);
}

/* Spinner Loader */
.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.5rem 0;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--neon-cyan);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

#deploy-stage-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Active Contract View */
.contract-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.4rem;
}

.contract-status-header .c-info {
    display: flex;
    flex-direction: column;
}

.contract-status-header .c-info .lbl {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.contract-status-header .c-info .val {
    font-size: 0.75rem;
    color: var(--text-primary);
}

.contract-address-box {
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    font-size: 0.65rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contract-address-box .lbl {
    color: var(--text-muted);
}

.contract-address-box code {
    color: var(--neon-purple);
}

.contract-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

/* Console Logs */
.console-logs {
    background: #03060c;
    border: 1px solid rgba(0, 240, 255, 0.05);
    border-radius: 6px;
    padding: 0.5rem;
    font-family: monospace;
    font-size: 0.62rem;
}

.console-row {
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.console-row.system { color: var(--text-muted); }
.console-row.success { color: var(--neon-green); }
.console-row.warning { color: var(--neon-pink); }
.console-row.info { color: var(--neon-cyan); }

/* Dual-Token Metrics HUD Layout */
.metrics-sections-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding: 1.2rem 3%;
    width: 100%;
    box-sizing: border-box;
}

.metrics-group {
    flex: 1;
    min-width: 320px;
    background: rgba(13, 17, 33, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 1rem;
    position: relative;
    backdrop-filter: blur(10px);
}

.metrics-group.pop-group {
    border-left: 3px solid var(--neon-cyan);
    box-shadow: inset 5px 0 15px rgba(0, 240, 255, 0.02);
}

.metrics-group.wsn-group {
    border-left: 3px solid var(--neon-purple);
    box-shadow: inset 5px 0 15px rgba(208, 0, 255, 0.02);
}

.group-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metrics-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

/* Tab Management */
.tab-content {
    animation: fadeInTab 0.4s ease-in-out;
}
.tab-content.hidden {
    display: none !important;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header Tabs */
.header-tabs {
    display: flex;
    gap: 0.8rem;
    margin: 0 1.5rem;
}

.tab-button {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-button:hover {
    color: #fff;
    background: rgba(0, 240, 255, 0.06);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.tab-button.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(208, 0, 255, 0.2), rgba(0, 240, 255, 0.2));
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3), inset 0 0 10px rgba(208, 0, 255, 0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 5rem 8% 4rem 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, rgba(208, 0, 255, 0.05) 50%, transparent 100%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.hero-badge {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
    animation: pulseBadge 2s infinite alternate;
}

@keyframes pulseBadge {
    0% { box-shadow: 0 0 5px rgba(0, 240, 255, 0.1); }
    100% { box-shadow: 0 0 12px rgba(0, 240, 255, 0.3); border-color: rgba(0, 240, 255, 0.5); }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 60%, #00f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 900px;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.btn-lg {
    padding: 0.8rem 1.8rem;
    font-size: 0.88rem;
}

/* Orbit Ticker */
.orbit-ticker-wrapper {
    width: 100%;
    max-width: 1100px;
    background: rgba(13, 17, 33, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(0, 240, 255, 0.02);
}

.ticker-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.ticker-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
}

.ticker-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.ticker-item .lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.ticker-item .val {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

/* Comparison Section */
.comparison-section {
    padding: 5rem 6%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

.matrix-container {
    overflow-x: auto;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
    background: rgba(7, 9, 19, 0.6);
    backdrop-filter: blur(10px);
}

.comparison-table th, .comparison-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.comparison-table th {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(13, 17, 33, 0.85);
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pop-header-col {
    color: var(--neon-cyan) !important;
    background: rgba(0, 240, 255, 0.06) !important;
    border-bottom: 2px solid var(--neon-cyan) !important;
}

.metric-name {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 220px;
}

.metric-name i {
    width: 16px;
    text-align: center;
    color: var(--text-muted);
}

.pop-highlight {
    background: rgba(0, 240, 255, 0.02);
    border-left: 1px solid rgba(0, 240, 255, 0.08);
    border-right: 1px solid rgba(0, 240, 255, 0.08);
    color: #fff;
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.comparison-table tr:hover td.pop-highlight {
    background: rgba(0, 240, 255, 0.04);
}

/* Utility Lab */
.utility-lab-section {
    padding: 5rem 6%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(3, 6, 15, 0.4);
}

.utility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.utility-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.utility-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.08);
}

.u-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.u-card-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.u-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.u-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.input-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.input-row label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
}

.input-row select {
    background: rgba(13, 17, 33, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 0.4rem;
    font-size: 0.72rem;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.input-row input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

.input-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon-cyan);
    cursor: pointer;
    box-shadow: 0 0 6px var(--neon-cyan);
}

.u-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0.6rem;
}

/* Utility logs */
.utility-logs-wrapper {
    background: rgba(13, 17, 33, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.u-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 0.5rem;
}

.u-log-header h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.u-log-header .lbl {
    font-size: 0.62rem;
}

#lab-tx-logs {
    height: 120px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.72rem;
    color: var(--neon-green);
    line-height: 1.5;
}

#lab-tx-logs .tx-row {
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.01);
}

#lab-tx-logs .tx-row.success { color: var(--neon-green); }
#lab-tx-logs .tx-row.error { color: var(--neon-pink); }
#lab-tx-logs .tx-row.info { color: var(--neon-cyan); }
#lab-tx-logs .tx-row.system { color: var(--text-muted); }

/* Math Proof Section */
.math-proof-section {
    padding: 5rem 6%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.math-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.math-card {
    padding: 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.math-step {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

.math-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.formula-box {
    background: rgba(208, 0, 255, 0.04);
    border: 1px solid rgba(208, 0, 255, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    color: var(--neon-purple);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.2rem;
    box-shadow: 0 0 10px rgba(208, 0, 255, 0.03);
}

.math-explain {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    /* Header Stack for Mobile */
    .main-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem 4%;
        gap: 0.8rem;
        width: 100%;
        box-sizing: border-box;
    }
    .logo-area {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0.6rem;
        width: 100%;
    }
    .logo-icon-wrapper svg {
        width: 32px;
        height: 32px;
    }
    .logo-text {
        text-align: left;
    }
    .logo-text h1 {
        font-size: 1.25rem;
        letter-spacing: 1px;
        margin-bottom: 0.1rem;
    }
    .logo-text .subtitle {
        font-size: 0.58rem;
        margin: 0;
    }
    .system-time-sync {
        margin-top: 0.1rem;
        font-size: 0.68rem;
        justify-content: center;
        width: 100%;
    }

    /* Fixed 3-Column Grid for Header Navigation on Smartphones */
    .header-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        max-width: 600px;
        margin: 0.5rem 0;
        gap: 0.35rem 0.2rem;
        box-sizing: border-box;
    }
    .tab-button {
        font-size: 0.62rem;
        padding: 0.45rem 0.15rem;
        border-radius: 8px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        text-align: center;
        white-space: normal;
        line-height: 1.15;
        letter-spacing: 0.1px;
    }

    /* Hero Text Adjustments */
    .hero-section {
        padding: 2.5rem 5% 2rem 5%;
    }
    .hero-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.75rem;
    }
    .hero-title {
        font-size: 1.85rem;
        line-height: 1.2;
    }
    .hero-desc {
        font-size: 0.82rem;
        line-height: 1.55;
        margin-bottom: 1.5rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 260px;
        gap: 0.5rem;
    }
    .btn-lg {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
        width: 100%;
        justify-content: center;
    }

    /* Live Ticker Mobile Grid */
    .ticker-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .ticker-item {
        align-items: center;
        text-align: center;
        background: rgba(0, 0, 0, 0.2);
        padding: 0.6rem;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.02);
    }
    .ticker-item::after {
        display: none !important;
    }
    .ticker-item .val {
        font-size: 0.88rem;
    }
    .ticker-item .lbl {
        font-size: 0.58rem;
    }

    /* Horizontal Table Scroll for mobile swipe */
    .matrix-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        border-radius: 8px;
    }
    .comparison-table {
        min-width: 660px; /* Forces scroll instead of column collision */
    }
    .comparison-table th, .comparison-table td {
        padding: 0.7rem 0.8rem;
        font-size: 0.72rem;
    }

    /* Utility Cards Form Stack */
    .utility-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .utility-card {
        padding: 1rem !important;
        border-radius: 12px !important;
    }

    /* Dashboard Grid Panels Stack */
    .dashboard-body {
        flex-direction: column;
        padding: 0.6rem 3% !important;
        gap: 1rem;
    }
    .dashboard-panel {
        width: 100% !important;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .panel-card, .glass-card {
        padding: 1rem !important;
        border-radius: 12px !important;
    }
    .card-header {
        padding-bottom: 0.5rem !important;
        margin-bottom: 0.6rem !important;
    }
    .card-header h2 {
        font-size: 0.8rem !important;
    }

    /* Canvas wrappers height constraints */
    .canvas-wrapper {
        height: 180px !important;
    }

    /* Devnet HUD Cards 2-Column Grid */
    .metrics-sections-container {
        padding: 0.6rem 3% 0 3%;
        gap: 0.6rem;
    }
    .metrics-subgrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem;
    }
    .metric-card {
        padding: 0.5rem;
        border-radius: 8px;
    }
    .metric-card .metric-value {
        font-size: 0.85rem !important;
    }
    .metric-card .metric-label {
        font-size: 0.5rem !important;
    }
    .metric-icon {
        font-size: 0.8rem;
    }

    /* Constellation Validator mobile cards grid */
    .validators-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
    }
    .validator-card {
        padding: 0.45rem !important;
        border-radius: 8px !important;
    }
    .validator-card h4 {
        font-size: 0.62rem !important;
    }
    .validator-card .v-metrics {
        font-size: 0.54rem !important;
        gap: 0.12rem !important;
    }
    .validator-card .stake-box {
        font-size: 0.54rem !important;
        padding: 0.2rem !important;
    }

    /* Quorum consensus layout stacking vertically */
    .finality-layout {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        text-align: center;
    }
    .finality-details {
        width: 100% !important;
    }
    .finality-details .detail-row {
        font-size: 0.68rem;
        padding: 0.2rem 0;
    }

    /* Attack Controller Grid */
    .attack-buttons-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
    }
    .btn-attack {
        font-size: 0.55rem !important;
        padding: 0.4rem !important;
        border-radius: 6px !important;
    }
    .run-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .run-controls .btn {
        width: 100%;
        justify-content: center;
    }
    .speed-toggle {
        justify-content: space-between;
        width: 100%;
        font-size: 0.7rem;
    }
    .ai-tuning-deck {
        padding: 0.6rem;
        border-radius: 8px;
    }
    .ai-tuning-deck label {
        font-size: 0.65rem;
    }

    /* Footers */
    .main-footer {
        padding: 1.2rem 1rem;
        font-size: 0.58rem;
        line-height: 1.4;
        text-align: center;
    }
}

/* AI Safety Theme styles */
.badge-pink {
    background: rgba(255, 0, 127, 0.1);
    color: var(--neon-pink);
    border: 1px solid rgba(255, 0, 127, 0.2);
}
.text-pink {
    color: var(--neon-pink) !important;
}
.utility-logs-wrapper.ai-warning {
    border-color: rgba(255, 0, 127, 0.25) !important;
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.1) !important;
}
.utility-logs-wrapper.ai-success {
    border-color: rgba(57, 255, 20, 0.25) !important;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.1) !important;
}
#ai-override-passcode:focus {
    border-color: var(--neon-pink) !important;
    box-shadow: 0 0 8px rgba(255, 0, 127, 0.3) !important;
    outline: none;
}

/* Biometric Pulse Miner Styles */
@keyframes drawEcg {
    to {
        stroke-dashoffset: 0;
    }
}
@keyframes beatPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.15); }
    45% { transform: scale(1.05); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.is-beating {
    animation: beatPulse 0.8s infinite;
    color: var(--neon-pink) !important;
}
.mining-active-dot {
    background-color: var(--neon-green) !important;
    box-shadow: 0 0 8px var(--neon-green) !important;
    animation: pulseGlow 1.2s infinite;
}
.ecg-svg path#ecg-active-line.scanning {
    animation: drawEcg 2.5s linear infinite;
}

/* Space Agency DSN & DART Hub Styles */
.badge-yellow {
    background: rgba(255, 223, 0, 0.1);
    color: var(--neon-yellow);
    border: 1px solid rgba(255, 223, 0, 0.25);
}
.text-yellow {
    color: var(--neon-yellow) !important;
}

@keyframes alertWarningFlash {
    0% { background-color: rgba(13, 17, 33, 0.65); border-color: rgba(255, 223, 0, 0.12); }
    50% { background-color: rgba(255, 0, 127, 0.12); border-color: rgba(255, 0, 127, 0.6); box-shadow: 0 0 15px rgba(255, 0, 127, 0.2); }
    100% { background-color: rgba(13, 17, 33, 0.65); border-color: rgba(255, 223, 0, 0.12); }
}

.conjunction-warning-flash {
    animation: alertWarningFlash 1.5s infinite !important;
}

.hidden {
    display: none !important;
}

.master-container {
    display: block;
}


/* Header alignment adjustments for laptop/medium screen width overflow */
@media (max-width: 1850px) and (min-width: 769px) {
    .main-header {
        flex-direction: column !important;
        gap: 1.2rem !important;
        padding: 1rem 3% !important;
        align-items: center !important;
    }
    .header-tabs {
        margin: 0.5rem 0 !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 0.5rem !important;
    }
    .tab-button {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    .system-time-sync {
        width: auto !important;
        justify-content: center !important;
    }
}

/* Phase 1 Genesis Onboarding Manuals Styles */
.manual-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--text-muted);
    padding: 0.6rem 0.8rem;
    font-size: 0.72rem;
    font-family: 'Orbitron', sans-serif;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}
.manual-menu-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}
.manual-menu-btn.active {
    background: rgba(168, 85, 247, 0.12) !important;
    border-color: var(--neon-purple) !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.25) !important;
    text-shadow: 0 0 5px #fff;
}
.manual-secure-container, .manual-secure-container * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}
.manual-section {
    margin-bottom: 1.2rem;
}
.manual-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 0.4rem;
}
.manual-section p {
    font-size: 0.78rem;
    color: #cbd5e1;
    margin: 0;
}
.manual-section ul, .manual-section ol {
    margin: 0.3rem 0;
    padding-left: 1.2rem;
}
.manual-section li {
    font-size: 0.78rem;
    color: #cbd5e1;
    margin-bottom: 0.3rem;
}

/* Sub-Footer Layout & Policy Links */
.dashboard-subfooter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(3, 6, 12, 0.4);
    margin-top: 2rem;
    margin-bottom: 0;
    box-sizing: border-box;
}
.dashboard-subfooter a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.5px;
}
.dashboard-subfooter a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* =========================================================================
   Cockpit Left Sidebar Layout & Three.js 3D globe Styling System
   ========================================================================= */

.sidebar-nav-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: rgba(7, 9, 19, 0.96);
    border-right: 1px solid rgba(0, 240, 255, 0.12);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0.8rem;
    z-index: 100;
    backdrop-filter: blur(25px);
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.2rem;
    padding-left: 0.5rem;
}

.sidebar-logo h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #d000ff, #00f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.sidebar-logo .logo-ver {
    font-size: 0.52rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-muted);
    display: block;
    margin-top: 0.15rem;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow-y: auto;
    flex: 1;
    padding-right: 0.2rem;
}

.sidebar-links::-webkit-scrollbar {
    width: 4px;
}

.sidebar-links::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.15);
    border-radius: 2px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 0.9rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.76rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    outline: none;
    box-sizing: border-box;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(0, 240, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.08);
    transform: translateX(3px);
}

.sidebar-link.active {
    color: #fff;
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
    font-weight: bold;
}

/* Main Content Area */
.main-content-area {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    width: calc(100% - 260px);
}

.main-content-area .main-header {
    padding: 1.2rem 3%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    font-size: 1.3rem;
    cursor: pointer;
    outline: none;
}

/* Hero 3D Flex Layout */
.hero-layout-wrapper {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.hero-content-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.hero-content-left .hero-title {
    text-align: left;
}
.hero-content-left .hero-desc {
    text-align: left;
}

.hero-3d-right {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    width: 100%;
    box-sizing: border-box;
}

.globe-3d-hologram-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 440px;
    position: relative;
}

#globe-3d-container {
    width: 100%;
    height: 400px;
    background: transparent;
    position: relative;
    cursor: grab;
}

#globe-3d-container:active {
    cursor: grabbing;
}

#globe-3d-container canvas {
    display: block;
    outline: none;
    margin: 0 auto;
}

/* High-tech corner accents for Cards */
.glass-card {
    position: relative;
}

.glass-card::before, .glass-card::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: rgba(0, 240, 255, 0.4);
    border-style: solid;
    pointer-events: none;
    z-index: 2;
}

.glass-card::before {
    top: 0;
    left: 0;
    border-width: 1px 0 0 1px;
}

.glass-card::after {
    bottom: 0;
    right: 0;
    border-width: 0 1px 1px 0;
}

/* Legacy audit helpers */
.sidebar-panel {
    display: none !important;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .sidebar-nav-container {
        transform: translateX(-100%);
    }
    
    .sidebar-nav-container.open {
        transform: translateX(0);
    }
    
    .main-content-area {
        margin-left: 0;
        width: 100%;
    }
    
    #mobile-menu-toggle {
        display: block;
    }
    
    .hero-layout-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-3d-right {
        order: -1;
    }
    
    #globe-3d-container {
        height: 340px;
    }
}

@media (max-width: 768px) {
    .main-content-area {
        width: 100%;
    }
}
    

    

    






/* =========================================================================
   COSMIC PULSE ASTRO APP STYLES (INTEGRATED SECTION)
   ========================================================================= */

/* =========================================================================
   Cosmic Pulse - Premium Web Styling (Vanilla CSS)
   ========================================================================= */

:root {
--bg-void: #070514;
    --bg-card: rgba(13, 11, 31, 0.55);
    --border-glow: rgba(139, 92, 246, 0.25);
    --border-hover: rgba(167, 139, 250, 0.5);
    
    /* Neon Colors */
    --neon-pulse: #3b82f6;      /* Cyan/Blue (PULSE Gas) */
    --neon-wsn: #8b5cf6;        /* Violet/Purple (WSN Space telemetry) */
    --neon-bmx: #f59e0b;        /* Amber/Orange (Bit Matrix) */
    --neon-success: #10b981;    /* Emerald Green */
    --neon-warning: #ef4444;    /* Crimson Red */
    
    /* Gradients */
    --grad-cosmic: linear-gradient(135deg, #1d1b4c 0%, #0d0b26 100%);
    --grad-nebula: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    --grad-card-glow: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
}

/* =========================================================================
   Background & Cosmic Environment
   ========================================================================= */
.space-background {
position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 120px 300px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 250px 150px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 300px 380px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 500px 220px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2.5px 2.5px at 700px 450px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 900px 120px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 1200px 350px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 1400px 250px, #ddd, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 1500px 1500px;
    opacity: 0.35;
    animation: starsRotate 240s linear infinite;
}

@keyframes starsRotate {
0% { transform: rotate(0deg);
}

100% {
transform: rotate(360deg);
}

}

/* =========================================================================
   Typography & Core Elements
   ========================================================================= */
h1, h2, h3, .number {
font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

.card-desc {
font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    font-weight: 300;
}

/* =========================================================================
   Header Layout
   ========================================================================= */
.main-header {
display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background: rgba(11, 9, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Ticker Bar */
.live-ticker {
display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    max-width: 60%;
    overflow-x: auto;
}

/* =========================================================================
   App Shell Layout
   ========================================================================= */
.app-layout {
display: flex;
    min-height: calc(100vh - 80px);
}

/* Sidebar */
.sidebar-nav {
width: 250px;
    background: rgba(7, 5, 20, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-btn.active {
background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #c084fc;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

/* Space Weather Widget */
.space-weather-widget {
background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    padding: 1rem;
}

.weather-effect-desc {
font-size: 0.75rem;
    color: #64748b;
    line-height: 1.35;
}

/* Main Content Panel */
.main-content {
flex: 1;
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}

/* =========================================================================
   Glassmorphic Components
   ========================================================================= */
.glass-card {
background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* =========================================================================
   Tabs System
   ========================================================================= */
.tab-panel {
display: none;
}

.tab-panel.active {
display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px);
}

to {
opacity: 1; transform: translateY(0);
}

}

/* =========================================================================
   OBSERVATORY TAB LAYOUT
   ========================================================================= */
.observatory-grid {
display: grid;
    grid-template-columns: 280px 1fr 310px;
    gap: 1.5rem;
    align-items: stretch;
}

/* Keplerian alignment left column */
.grid-alignment {
display: flex;
    flex-direction: column;
}

.planet-list {
display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
    overflow-y: auto;
    max-height: 480px;
}

.planet-row {
display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s ease;
}

.planet-row:hover {
background: rgba(255,255,255,0.04);
}

.planet-symbol {
width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 700;
}

.planet-info {
flex: 1;
    display: flex;
    flex-direction: column;
}

.planet-name {
font-size: 0.85rem;
    font-weight: 600;
    color: #f8fafc;
}

.planet-deg {
font-size: 0.75rem;
    color: #64748b;
}

.planet-sign-badge {
font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

/* Planet element themes */
.element-fire {
background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5;
}

.element-earth {
background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: #fde047;
}

.element-air {
background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #93c5fd;
}

.element-water {
background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: #6ee7b7;
}

/* Satellite canvas center column */
.grid-canvas {
display: flex;
    flex-direction: column;
}

.canvas-header {
display: flex;
    justify-content: space-between;
    align-items: center;
}

#weather-alert-badge {
background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--neon-success);
}

#weather-alert-badge.storm-active {
background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: var(--neon-warning);
    animation: flash 1s infinite alternate;
}

@keyframes flash {
0% { opacity: 0.6;
}

100% {
opacity: 1; box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

}

.canvas-container {
background: radial-gradient(circle at 50% 50%, #100f2e 0%, #060514 100%);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    position: relative;
    flex: 1;
    min-height: 380px;
    overflow: hidden;
}

#public-orbit-canvas {
position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.canvas-controls {
display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Node Metrics right column */
.grid-node-stats {
display: flex;
    flex-direction: column;
}

.stats-list {
display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.stat-row {
display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 400;
}

.stat-val {
font-size: 0.95rem;
    color: #ffffff;
    font-weight: 600;
}

.stat-divider {
border: 0;
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 0.25rem 0;
}

/* =========================================================================
   KUNDLI TAB LAYOUT
   ========================================================================= */
.kundli-grid {
display: grid;
    grid-template-columns: 350px 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.grid-form {
grid-column: 1;
}

.grid-chart {
grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-table {
grid-column: 1 / 3;
}

.grid-dosha {
grid-column: 1 / 3;
}

/* North Indian Kundli chart styling */
.kundli-chart-wrapper {
width: 100%;
    max-width: 440px;
    height: 440px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kundli-svg {
width: 100%;
    height: 100%;
}

.kundli-line {
stroke: rgba(139, 92, 246, 0.4);
    stroke-width: 1.5;
}

.kundli-border {
stroke: rgba(139, 92, 246, 0.6);
    stroke-width: 2.5;
}

.kundli-house-label {
fill: #64748b;
    font-size: 11px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.kundli-planets-text {
fill: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.kundli-center-circle {
fill: rgba(11, 9, 26, 0.8);
    stroke: rgba(139, 92, 246, 0.5);
    stroke-width: 1.5;
}

/* Astro Table */
.table-container {
width: 100%;
    overflow-x: auto;
}

.astro-table {
width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.astro-table th, .astro-table td {
padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.astro-table th {
font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
}

.astro-table tbody tr:hover {
background: rgba(255,255,255,0.01);
}

/* Dosha grids */
.dosha-cards {
display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.dosha-card {
background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.dosha-title {
font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
}

.dosha-status {
font-size: 0.75rem;
    color: #64748b;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.badge-active {
background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5;
}

.badge-safe {
background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: #6ee7b7;
}

.badge-warning {
background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: #fde047;
}

.badge-inactive {
background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #64748b;
}

.attunement-card {
border-color: rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.03);
}

.attunement-val {
font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    color: #c084fc;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.attunement-bar {
width: 100%;
    height: 5px;
    background: #1e293b;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.attunement-progress {
height: 100%;
    background: linear-gradient(to right, var(--neon-pulse), var(--neon-wsn));
    box-shadow: 0 0 8px var(--neon-wsn);
    transition: width 0.3s ease;
}

/* =========================================================================
   PANCHANG TAB LAYOUT
   ========================================================================= */
.panchang-layout {
display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
}

.panchang-grid {
display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.panchang-item {
background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.panchang-item .title {
font-size: 0.65rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.panchang-item .val {
font-size: 1.2rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.panchang-item .sub {
font-size: 0.75rem;
    color: #64748b;
}

.muhurta-sections {
display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.muhurta-box {
border-radius: 12px;
    padding: 1rem 1.25rem;
}

.muhurta-box .head {
display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.muhurta-box .title {
font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
}

.muhurta-box .time-range {
font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
}

.muhurta-box .desc {
font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.35rem;
}

.muhurta-box.alarm {
background: rgba(239, 68, 68, 0.04); border: 1px solid rgba(239, 68, 68, 0.15);
}

.muhurta-box.safe {
background: rgba(16, 185, 129, 0.04); border: 1px solid rgba(16, 185, 129, 0.15);
}

.muhurta-box.warning {
background: rgba(245, 158, 11, 0.04); border: 1px solid rgba(245, 158, 11, 0.15);
}

/* =========================================================================
   AI CONSULTATION TAB LAYOUT
   ========================================================================= */
.ai-consult-layout {
display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
}

.chat-card {
display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-header {
display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ai-avatar {
width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--neon-pulse), var(--neon-wsn));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.chat-header h2 {
font-size: 1.15rem;
}

.online-indicator {
font-size: 0.75rem;
    color: var(--neon-success);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.online-indicator::before {
content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--neon-success);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--neon-success);
}

.chat-messages {
flex: 1;
    overflow-y: auto;
    padding: 1.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.msg {
display: flex;
    flex-direction: column;
    max-width: 80%;
}

.msg.received {
align-self: flex-start;
}

.msg.sent {
align-self: flex-end;
}

.msg-content {
padding: 0.85rem 1.15rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.msg.received .msg-content {
background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    color: #e2e8f0;
    border-top-left-radius: 4px;
}

.msg.sent .msg-content {
background: rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #ffffff;
    border-top-right-radius: 4px;
}

.msg-meta {
font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.25rem;
    padding: 0 0.5rem;
}

/* Suggestion Chips */
.chat-suggestions {
display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.75rem 0;
}

.suggestion-chip {
background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    color: #94a3b8;
    padding: 0.45rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-chip:hover {
background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
    color: #c084fc;
}

.chat-input-area {
display: flex;
    gap: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1rem;
}

.chat-input-area input {
flex: 1;
}

.context-card {
display: flex;
    flex-direction: column;
}

.context-list {
display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.context-item {
display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.context-item .label {
color: #64748b;
}

.context-item .val {
color: #ffffff; font-weight: 500;
}

.context-notes {
font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* =========================================================================
   MATCHMAKER TAB LAYOUT
   ========================================================================= */
.matchmaker-layout {
display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.matchmaker-input-card {
width: 100%;
}

.divider-left {
border-left: 1px solid rgba(255,255,255,0.05);
    padding-left: 1.5rem;
}

.match-score-header {
display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.circle-score {
display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.05);
    border: 2px solid var(--neon-wsn);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.circle-score .score-number {
font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
}

.circle-score .score-label {
font-size: 0.65rem;
    color: #a78bfa;
    text-transform: uppercase;
    font-weight: 700;
}

/* =========================================================================
   REMEDIES STORE TAB LAYOUT
   ========================================================================= */
.remedies-layout {
display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
}

.remedies-grid {
display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.remedy-card {
background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.remedy-card .item-tag {
font-size: 0.65rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.remedy-card h3 {
font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.remedy-card .desc {
font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    flex: 1;
}

.price-section {
display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.price-section .price-usd {
font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.price-section .price-crypto {
font-size: 0.85rem;
    font-family: 'Orbitron', sans-serif;
    color: #64748b;
}

/* Color thematic glows for remedies */
.remedy-card.ruby .item-tag {
color: var(--neon-warning);
}

.remedy-card.ruby:hover {
border-color: rgba(239, 68, 68, 0.3); box-shadow: 0 10px 30px rgba(239, 68, 68, 0.1);
}

.remedy-card.emerald .item-tag {
color: var(--neon-success);
}

.remedy-card.emerald:hover {
border-color: rgba(16, 185, 129, 0.3); box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.remedy-card.sapphire .item-tag {
color: var(--neon-wsn);
}

.remedy-card.sapphire:hover {
border-color: rgba(139, 92, 246, 0.3); box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.remedy-card.rahu-puja .item-tag {
color: var(--neon-bmx);
}

.remedy-card.rahu-puja:hover {
border-color: rgba(245, 158, 11, 0.3); box-shadow: 0 10px 30px rgba(245, 158, 11, 0.1);
}

/* Extrinsic Receipt Styling */
.receipt-card {
display: flex;
    flex-direction: column;
}

.receipt-details {
display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.5rem;
    flex: 1;
}

.receipt-row {
display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.receipt-row .label {
color: #64748b;
}

.receipt-row .val {
color: #ffffff; font-weight: 500;
}

.receipt-row .val.hash {
font-family: monospace; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.receipt-divider {
border: 0;
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 0.25rem 0;
}

.receipt-row.highlight .val {
color: var(--neon-wsn);
    font-weight: 700;
}

.receipt-row.highlight-burn .val {
color: var(--neon-warning);
    font-weight: 700;
}

.receipt-status {
border-radius: 10px;
    padding: 0.65rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
}

.receipt-status.success {
background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--neon-success);
}

.payment-settings {
margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 1rem;
}

/* =========================================================================
   WALLET & STAKING TAB LAYOUT
   ========================================================================= */
.wallet-layout {
display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
}

.wallet-left {
display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.balances-grid {
display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.balance-box {
border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.balance-box .label {
font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.balance-box .amount {
font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
}

.balance-box .usd-value {
font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Staking wallet themes */
.balance-box.pulse {
background: rgba(59, 130, 246, 0.04); border: 1px solid rgba(59, 130, 246, 0.15);
}

.balance-box.pulse .label {
color: var(--neon-pulse);
}

.balance-box.wsn {
background: rgba(139, 92, 246, 0.04); border: 1px solid rgba(139, 92, 246, 0.15);
}

.balance-box.wsn .label {
color: var(--neon-wsn);
}

.balance-box.bmx {
background: rgba(245, 158, 11, 0.04); border: 1px solid rgba(245, 158, 11, 0.15);
}

.balance-box.bmx .label {
color: var(--neon-bmx);
}

.staking-grid {
display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.staking-box {
background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.staking-box .title {
font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.staking-box .amount {
font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.staking-actions {
display: flex;
    gap: 0.5rem;
}

.yield-accumulator-box {
display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(139, 92, 246, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    padding: 1.25rem;
}

.accumulator-info {
display: flex;
    flex-direction: column;
}

.accumulator-info .title {
font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
}

.accumulator-info .rewards-amount {
font-size: 1.3rem;
    font-weight: 800;
    color: var(--neon-wsn);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.history-list {
display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 480px;
    overflow-y: auto;
}

.tx-record {
background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 0.85rem;
}

.tx-record-head {
display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.tx-record-details {
font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.tx-record-time {
font-size: 0.65rem;
    color: #475569;
    margin-top: 0.35rem;
}

/* =========================================================================
   Buttons & Form Controls
   ========================================================================= */
.btn {
display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-sm {
padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-block {
display: block;
    width: 100%;
}

.btn-primary {
background: linear-gradient(135deg, var(--neon-pulse) 0%, var(--neon-wsn) 100%);
    color: #ffffff;
}

.btn-primary:hover {
transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-glow {
box-shadow: 0 0 10px rgba(139, 92, 246, 0.25);
}

.btn-secondary {
background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.08);
    color: #e2e8f0;
}

.btn-secondary:hover {
background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.15);
}

.form-group {
display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.form-row {
display: flex;
    gap: 1rem;
}

.form-row .col {
flex: 1;
}

label {
font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

input[type="text"], input[type="number"], input[type="date"], input[type="time"], select {
width: 100%;
    box-sizing: border-box;
    background: rgba(7, 5, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus {
border-color: var(--neon-wsn);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.25);
}

/* =========================================================================
   Modals
   ========================================================================= */
.modal {
position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
width: 100%;
    max-width: 400px;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
from { transform: translateY(20px); opacity: 0;
}

to {
transform: translateY(0); opacity: 1;
}

}

.modal-buttons {
display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hidden {
display: none !important;
}

.placeholder-text {
font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    padding: 2rem;
    font-style: italic;
    width: 100%;
}

.text-center {
text-align: center;
}

/* Loading indicator */
.loading-spinner {
width: 25px;
    height: 25px;
    border: 2px solid rgba(139, 92, 246, 0.1);
    border-top-color: var(--neon-wsn);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
0% { transform: rotate(0deg);
}

100% {
transform: rotate(360deg);
}

}

@keyframes pulseGlow {
0% { transform: scale(1); opacity: 0.8;
}

50% {
transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 8px var(--neon-wsn));
}

100% {
transform: scale(1); opacity: 0.8;
}

}

/* =========================================================================
   Vedic Sages Core Styles
   ========================================================================= */

.charts-flex-container {
display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
}

.chart-box {
flex: 1;
    min-width: 300px;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-box h3 {
font-size: 0.9rem;
    color: #a78bfa;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.vedic-grid {
display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-karakas {
grid-column: 1;
}

.grid-yogas {
grid-column: 2;
}

.grid-bhrigu {
grid-column: 1 / 3;
}

.grid-dasha-timeline {
grid-column: 1 / 3;
}

.bhrigu-timeline-header {
display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bhrigu-age-selector {
display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bhrigu-age-selector label {
font-size: 0.75rem;
    color: #64748b;
}

.bhrigu-age-selector input {
width: 80px;
    padding: 0.35rem 0.5rem;
}

.activated-house-status {
font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--neon-wsn);
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.bhrigu-houses-grid {
display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.65rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
.bhrigu-houses-grid {
        grid-template-columns: repeat(3, 1fr);
}

.vedic-grid {
grid-template-columns: 1fr;
}

.grid-karakas, .grid-yogas {
grid-column: 1;
}

}

.bhrigu-house-card {
background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.bhrigu-house-card .h-num {
font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
}

.bhrigu-house-card .h-sign {
font-size: 0.7rem;
    color: #475569;
}

.bhrigu-house-card.active {
background: rgba(139, 92, 246, 0.15);
    border-color: var(--neon-wsn);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.bhrigu-house-card.active .h-num {
color: #ffffff;
}

.bhrigu-house-card.active .h-sign {
color: #a78bfa;
}

.bhrigu-prediction-box {
background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.yogas-list {
display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 280px;
    overflow-y: auto;
}

.yoga-item {
background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 0.85rem;
}

.yoga-title {
font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.yoga-desc {
font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
}

.dasha-calendar-wrapper {
display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dasha-search-bar {
display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
}

.dasha-search-bar input {
width: 100px;
    padding: 0.35rem 0.5rem;
}

.dasha-search-result {
font-size: 0.85rem;
    font-weight: 600;
    color: #c084fc;
}

.dasha-list {
display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.dasha-period-card {
background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.dasha-period-card:hover {
background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.dasha-period-card.active {
background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.05);
}

.dasha-lord-info {
display: flex;
    flex-direction: column;
}

.dasha-lord-info .d-lord {
font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.dasha-lord-info .d-type {
font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
}

.dasha-dates-info {
text-align: right;
}

.dasha-dates-info .d-range {
font-size: 0.85rem;
    font-weight: 500;
    color: #e2e8f0;
}

.dasha-dates-info .d-duration {
font-size: 0.7rem;
    color: #64748b;
}

/* Hide number input spinners for cleaner alignment */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
-moz-appearance: textfield;
}

/* Adjust coordinate inputs to prevent text truncation in narrow layouts */
#natal-lat, #natal-lng {
padding-left: 0.5rem;
    padding-right: 0.5rem;
    text-overflow: ellipsis;
}

/* =========================================================================
   Phase 3 Blackout Resilient Cockpit Custom Styles
   ========================================================================= */

.text-yellow {
    color: #fbbf24 !important;
}

.badge-warning {
    background: rgba(251, 191, 36, 0.1) !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
    color: #fbbf24 !important;
}

/* Global blackout mode toggle effects */
body.blackout-mode-active {
    background-color: #0d0a0a !important; /* warm dim charcoal */
    transition: background-color 0.8s ease;
}

body.blackout-mode-active .stars-overlay {
    opacity: 0.12 !important;
}

body.blackout-mode-active .glow-orb.blue {
    background: rgba(251, 191, 36, 0.05) !important;
}

body.blackout-mode-active .glow-orb.purple {
    background: rgba(220, 38, 38, 0.05) !important;
}

body.blackout-mode-active .glow-orb.magenta {
    background: rgba(217, 119, 6, 0.03) !important;
}

/* Dim non-blackout cards to represent power loss */
body.blackout-mode-active .tab-content:not(#blackout-tab) .glass-card,
body.blackout-mode-active .tab-content:not(#blackout-tab) .utility-card,
body.blackout-mode-active .tab-content:not(#blackout-tab) .metric-card {
    opacity: 0.15 !important;
    filter: grayscale(0.8) blur(0.5px);
    pointer-events: none;
    transition: all 0.8s ease;
}

body.blackout-mode-active aside.sidebar-nav-container {
    border-right: 1px solid rgba(251, 191, 36, 0.15) !important;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.03);
}

body.blackout-mode-active .sidebar-logo svg path {
    stroke: #fbbf24 !important;
}

body.blackout-mode-active .sidebar-logo .logo-text h2 {
    color: #fbbf24 !important;
    text-shadow: 0 0 5px rgba(251, 191, 36, 0.2);
}

body.blackout-mode-active .main-header {
    border-bottom: 1px solid rgba(251, 191, 36, 0.15) !important;
    background: rgba(13, 10, 10, 0.85) !important;
}

body.blackout-mode-active .main-header h1 {
    color: #fbbf24 !important;
    text-shadow: 0 0 5px rgba(251, 191, 36, 0.25);
}

body.blackout-mode-active #devnet-status {
    background: rgba(251, 191, 36, 0.08) !important;
    border: 1px solid rgba(251, 191, 36, 0.25) !important;
    color: #fbbf24 !important;
    text-shadow: 0 0 4px rgba(251, 191, 36, 0.2);
}

body.blackout-mode-active .pulse-dot {
    background: #fbbf24 !important;
    box-shadow: 0 0 8px #fbbf24 !important;
}

/* SNN Spike Train animations */
@keyframes pulse-spike {
    0% { background-color: rgba(251, 191, 36, 0.1); }
    50% { background-color: rgba(251, 191, 36, 0.7); box-shadow: 0 0 8px rgba(251, 191, 36, 0.8); }
    100% { background-color: rgba(251, 191, 36, 0.1); }
}

.spike-train-row span.active-spike {
    color: #fbbf24;
    font-weight: bold;
    text-shadow: 0 0 4px #fbbf24;
}

.spike-train-row span.inactive-spike {
    color: rgba(255, 255, 255, 0.15);
}

/* Flicker aesthetic for E-ink screen emulation */
@keyframes ink-refresh {
    0% { filter: invert(0); }
    10% { filter: invert(0.9); }
    20% { filter: invert(0); }
    100% { filter: invert(0); }
}

.eink-active-transition {
    animation: ink-refresh 0.6s ease-in-out;
}
