/* ===================================================
   JAESWIFT.XYZ — Sci-Fi Dashboard Theme
   Palette: #0a0a0a (bg), #d0d0d0 (grey), #8b0000 (mil-red), #00cc33 (status-green), #c9a227 (amber), #161616 (panels) — SPEC OPS — BLACK OPS THEME
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-panel: #161616;
    --bg-panel-hover: #1e1e1e;
    --accent: #d0d0d0;
    --accent-dim: #d0d0d030;
    --accent-glow: #ffffff20;
    --accent-subtle: #ffffff06;
    --status-green: #00cc33;
    --status-green-dim: #00cc3340;
    --status-green-glow: #00cc3360;
    --mil-red: #8b0000;
    --mil-red-dim: #8b000040;
    --link-color: #6688aa;
    --text-primary: #d8d8d8;
    --text-secondary: #999999;
    --text-muted: #666666;
    --border: #2a2a2a;
    --border-accent: #ffffff10;
    --danger: #ff2d2d;
    --warning: #c9a227;
    --font-mono: 'JetBrains Mono', 'Share Tech Mono', 'Courier New', monospace;
    --font-display: 'Orbitron', sans-serif;
    --nav-height: 60px;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #333 var(--bg-primary);
}

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: var(--bg-primary); }
html::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
html::-webkit-scrollbar-thumb:hover { background: #555; }

body {
    font-family: var(--font-mono);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link-color); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: #fff; text-shadow: none; }

.accent { color: var(--accent); }

/* --- Scanline Overlay --- */
.scanline-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.003) 2px,
        rgba(255, 255, 255, 0.003) 4px
    );
}

/* --- Grid Background --- */
.grid-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: -2;
    background-image:
        linear-gradient(var(--accent-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent-subtle) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
}

/* --- Particle Canvas --- */
#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* === NAVIGATION === */
.nav-main {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-main.scrolled {
    background: rgba(10, 10, 10, 0.98);
    border-bottom-color: #222;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: clamp(1200px, 90vw, 2400px);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-decoration: none;
}

.nav-logo:hover { color: var(--text-primary); text-shadow: none; }
.logo-bracket { color: #e0e0e0; font-weight: 300; }
.logo-accent { color: #e0e0e0; }
.logo-status {
    font-size: 0.75rem;
    color: var(--status-green);
    margin-left: 0.75rem;
    animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0 1.25rem;
    height: var(--nav-height);
    line-height: var(--nav-height);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
    box-shadow: none;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    text-shadow: none;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(14, 14, 14, 0.98);
    border: 1px solid var(--border);
    border-top: 2px solid var(--mil-red);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-item:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.dropdown li:last-child a { border-bottom: none; }

.dropdown li a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    padding-left: 1.5rem;
    text-shadow: none;
}

.dropdown li a::before {
    content: '> ';
    opacity: 0;
    transition: opacity 0.2s ease;
}


.dropdown li a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

/* Dropdown Arrow */
.dropdown-arrow {
    font-size: 0.75rem;
    margin-left: 0.35rem;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

.nav-item:hover > .nav-link .dropdown-arrow,
.nav-item.dropdown-open > .nav-link .dropdown-arrow {
    opacity: 1;
    transform: rotate(180deg);
}

.dropdown-desc {
    display: block;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
    margin-top: 0.15rem;
    text-transform: none;
    font-weight: 300;
    transition: color 0.2s;
}
.dropdown li a:hover .dropdown-desc {
    color: rgba(255, 255, 255, 0.5);
}

.dropdown li a:hover::before { opacity: 1; }

/* Nav Status */
.nav-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.nav-time {
    font-family: var(--font-mono);
    color: #999;
    letter-spacing: 2px;
}

.nav-signal {
    color: var(--status-green);
    letter-spacing: 1px;
    font-size: 0.75rem;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #d0d0d0;
    transition: all 0.3s ease;
}


/* === NAV SOL + WALLET GROUP === */
.nav-sol-wallet-group {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* === NAV SOL PRICE TICKER === */
.nav-sol-price {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #9945FF;
    background: rgba(153, 69, 255, 0.08);
    border: 1px solid rgba(153, 69, 255, 0.25);
    border-radius: 4px;
    margin-right: 0;
    white-space: nowrap;
    cursor: default;
    transition: all 0.3s ease;
}

.nav-sol-price:hover {
    background: rgba(153, 69, 255, 0.15);
    border-color: rgba(153, 69, 255, 0.4);
}

.sol-price-icon {
    font-size: 0.75rem;
    color: #9945FF;
}

.sol-price-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6rem;
    letter-spacing: 2px;
}

.sol-price-value {
    color: #e0e0e0;
    font-weight: 700;
}

.sol-price-change {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sol-price-change.up {
    color: #14F195;
}

.sol-price-change.down {
    color: #ff4444;
}


.nav-wallet-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 0;
    margin-right: 0;
}

.nav-wallet-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--warning);
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-wallet-btn:hover {
    background: rgba(201, 162, 39, 0.15);
    border-color: rgba(201, 162, 39, 0.5);
    color: #e0c040;
}

.nav-wallet-btn.connected {
    color: #14F195;
    background: rgba(20, 241, 149, 0.06);
    border-color: rgba(20, 241, 149, 0.25);
}

.nav-wallet-btn.connected:hover {
    background: rgba(20, 241, 149, 0.12);
    border-color: rgba(20, 241, 149, 0.4);
}

.nav-wallet-icon {
    font-size: 0.65rem;
}

.nav-wallet-dot {
    color: #14F195;
    font-size: 0.55rem;
    text-shadow: 0 0 6px rgba(20, 241, 149, 0.6);
}

.nav-wallet-label {
    font-family: var(--font-mono);
}

/* Wallet Dropdown */
.nav-wallet-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    max-width: 340px;
    background: rgba(14, 14, 14, 0.98);
    border: 1px solid var(--border);
    border-top: 2px solid #14F195;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 1100;
    padding: 0.5rem 0;
    animation: nwDropIn 0.2s ease;
}

.nav-wallet-dropdown.hidden {
    display: none;
}

@keyframes nwDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Dropdown labels */
.nw-dd-label {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding: 0.5rem 0.85rem 0.35rem;
}

.nw-dd-label-dim {
    color: #444;
}

/* Connected section */
.nw-dd-section {
    padding: 0.5rem 0.85rem;
}

.nw-dd-addr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    margin: 0.35rem 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.nw-dd-addr:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(20, 241, 149, 0.3);
}

.nw-dd-addr-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-primary);
    word-break: break-all;
    line-height: 1.4;
}

.nw-dd-copy-icon {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.nw-dd-via {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Dropdown actions */
.nw-dd-actions {
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
}

.nw-dd-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.nw-dd-action:last-child {
    border-bottom: none;
}

.nw-dd-action:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    padding-left: 1rem;
}

.nw-dd-disconnect:hover {
    color: var(--danger);
}

/* Wallet picker items */
.nw-dd-wallet {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.nw-dd-wallet:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.nw-dd-wallet:last-child {
    border-bottom: none;
}

.nw-dd-wallet-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 1.4rem;
    text-align: center;
}

.nw-dd-wallet-name {
    flex: 1;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.nw-dd-wallet-tag {
    font-size: 0.5rem;
    letter-spacing: 1px;
    color: #14F195;
    flex-shrink: 0;
}

.nw-dd-wallet-install .nw-dd-wallet-tag {
    color: var(--text-muted);
}

.nw-dd-wallet-install .nw-dd-wallet-name {
    color: var(--text-muted);
}

.nw-dd-error {
    color: var(--danger) !important;
}

.nw-dd-divider {
    height: 1px;
    background: var(--border);
    margin: 0.35rem 0;
}

.nw-dd-empty {
    padding: 1rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 1px;
    line-height: 1.6;
}

.nw-dd-empty-hint {
    font-size: 0.55rem;
    color: #14F195;
}

/* === HERO SECTION === */
/* ============================
   HERO HUD GRID LAYOUT
   ============================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 40px + 2rem) 1rem 2rem;
    position: relative;
}

.hero-hud-grid {
    width: 100%;
    max-width: 96vw;
    display: grid;
    grid-template-columns: 400px 1fr 420px;
    grid-template-rows: auto;
    gap: 1.5rem;
    align-items: start;
    animation: fadeIn 1s ease both;
}

.hud-col-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.hud-col-center {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-height: 400px;
    min-width: 0;
}

.hud-col-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

/* ============================
   PANELS (shared)
   ============================ */
.panel {
    border: 1px solid var(--border);
    background: rgba(16, 16, 16, 0.6);
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 20px; height: 20px;
    border-top: 2px solid var(--mil-red);
    border-left: 2px solid var(--mil-red);
    pointer-events: none;
}

.panel::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 20px; height: 20px;
    border-bottom: 2px solid var(--mil-red);
    border-right: 2px solid var(--mil-red);
    pointer-events: none;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: rgba(139, 0, 0, 0.03);
}

.panel-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.panel-icon {
    color: #666;
    font-size: 0.8rem;
}

.panel-pct {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--status-green);
    text-shadow: 0 0 10px var(--status-green-glow);
}

.panel-status-dot {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.status-green { color: var(--status-green); }

.panel-content {
    padding: 1rem;
}

/* ============================
   MAP PANEL
   ============================ */
.map-panel {
    flex: 1;
    min-height: 320px;
}

.map-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.uk-map-svg {
    width: 100%;
    max-width: 220px;
    height: auto;
}

/* Pulse rings */
.pulse-ring {
    animation: pulseRing 3s ease-out infinite;
    transform-origin: center;
}

.pulse-ring-1 { animation-delay: 0s; }
.pulse-ring-2 { animation-delay: 1s; }
.pulse-ring-3 { animation-delay: 2s; }

@keyframes pulseRing {
    0% { opacity: 0.8; r: 8; }
    100% { opacity: 0; r: 35; }
}

/* Map scan line */
.map-scan-line {
    animation: mapScan 4s linear infinite;
}

@keyframes mapScan {
    0% { transform: translateY(0); opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { transform: translateY(400px); opacity: 0.2; }
}

.map-data-overlay {
    position: absolute;
    bottom: 0.5rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
}

.map-coord-block {
    text-align: center;
}

.coord-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.coord-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #b8b8b8;
    text-shadow: none;
}

/* ============================
   IDENTITY BLOCK
   ============================ */
.hud-identity {
    text-align: center;
    padding: 1.5rem;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 1rem;
}

.glitch {
    position: relative;
    color: #ffffff;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
}

.glitch::before {
    color: #ffffff;
    animation: glitch-1 4s infinite linear;
}

.glitch::after {
    color: var(--danger);
    animation: glitch-2 4s infinite linear;
}

@keyframes glitch-1 {
    0%, 90%, 100% { opacity: 0; transform: none; }
    91% { opacity: 0.8; transform: translate(-2px, -1px); clip-path: inset(20% 0 60% 0); }
    93% { opacity: 0.8; transform: translate(2px, 1px); clip-path: inset(50% 0 10% 0); }
    95% { opacity: 0; }
}

@keyframes glitch-2 {
    0%, 92%, 100% { opacity: 0; transform: none; }
    95% { opacity: 0.6; transform: translate(-1px, -2px); clip-path: inset(40% 0 20% 0); }
    97% { opacity: 0; }
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #b8b8b8;
}

.typing-prefix { color: var(--text-secondary); }
.typing-cursor {
    animation: blink-cursor 0.8s step-end infinite;
    color: #b8b8b8;
}

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

/* ============================
   SERVER METRICS PANEL
   ============================ */
.metric-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.metric-bar {
    height: 6px;
    background: rgba(0, 204, 51, 0.06);
    border: 1px solid rgba(0, 204, 51, 0.12);
    position: relative;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--status-green), rgba(0, 204, 51, 0.4));
    box-shadow: 0 0 8px var(--status-green-glow);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.metric-fill::after {
    content: '';
    position: absolute;
    right: 0; top: 0;
    width: 2px; height: 100%;
    background: #fff;
    box-shadow: 0 0 6px var(--status-green);
}

.metric-val {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--status-green);
    text-align: right;
    text-shadow: 0 0 6px var(--status-green-glow);
}

/* ============================
   POWER + CONTAINERS ROW
   ============================ */
.hud-row-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    border: none;
    background: none;
}

.hud-row-panels::before,
.hud-row-panels::after { display: none; }

.hud-mini-panel {
    border: 1px solid var(--border);
    background: rgba(16, 16, 16, 0.6);
    position: relative;
}

.hud-mini-panel:first-child { margin-right: -0.5px; }
.hud-mini-panel:last-child { margin-left: -0.5px; }

.hud-mini-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 12px; height: 12px;
    border-top: 2px solid var(--mil-red);
    border-left: 2px solid var(--mil-red);
    pointer-events: none;
}

.hud-mini-panel::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 12px; height: 12px;
    border-bottom: 2px solid var(--mil-red);
    border-right: 2px solid var(--mil-red);
    pointer-events: none;
}

.power-display {
    text-align: center;
    padding: 0.75rem;
}

.power-big {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.power-unit {
    font-size: 1rem;
    opacity: 0.6;
}

.containers-display {
    text-align: center;
    padding: 0.5rem;
}

.container-count {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.container-count span {
    color: var(--status-green);
}

.container-total {
    color: var(--text-secondary) !important;
}

.container-bar {
    height: 4px;
    background: rgba(0, 204, 51, 0.06);
    border: 1px solid rgba(0, 204, 51, 0.08);
    margin-bottom: 0.4rem;
}

.container-fill {
    height: 100%;
    width: 100%;
    background: var(--status-green);
    box-shadow: 0 0 6px var(--status-green-glow);
}

.container-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #808080;
    opacity: 0.7;
}

/* ============================
   NETWORK GRAPH PANEL
   ============================ */
.graph-container {
    padding: 0.75rem;
}

#networkGraph {
    width: 100%;
    height: 100px;
    display: block;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.graph-stats {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.graph-stat {
    text-align: center;
    flex: 1;
}

.graph-stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.graph-stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #d0d0d0;
    text-shadow: none;
}

/* ============================
   BOTTOM STATUS BAR
   ============================ */
.hud-bottom-bar {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: rgba(16, 16, 16, 0.95);
    backdrop-filter: blur(10px);
    gap: 1rem;
}

.hud-bottom-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hud-id {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.hud-dot-online {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--status-green);
    letter-spacing: 1px;
}

.hud-bottom-stats {
    display: flex;
    gap: 2rem;
}

.hud-bstat {
    text-align: center;
}

.hud-bstat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.45rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
}

.hud-bstat-value {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.hud-online { color: var(--status-green); }

.hud-bottom-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hud-scan-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    animation: scanPulse 2s ease infinite;
}

@keyframes scanPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hud-scan-bar {
    width: 60px;
    height: 4px;
    background: rgba(0, 204, 51, 0.06);
    border: 1px solid rgba(0, 204, 51, 0.12);
    overflow: hidden;
}

.hud-scan-fill {
    height: 100%;
    width: 0%;
    background: var(--status-green);
    box-shadow: 0 0 6px var(--status-green-glow);
    transition: width 0.3s linear;
}

.hud-scan-pct {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--status-green);
    min-width: 28px;
}

/* Scan Line Animation */
.scan-line {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--status-green), transparent);
    opacity: 0.25;
    animation: scan 4s linear infinite;
}


/* Scan Line Animation */
.scan-line {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--status-green), transparent);
    opacity: 0.25;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { top: 100%; opacity: 0; }
}

/* === SECTIONS === */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.section-container {
    max-width: clamp(1000px, 88vw, 2200px);
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-tag {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: #808080;
    letter-spacing: 2px;
    padding: 0.3rem 0.6rem;
    border: 1px solid #333;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-primary);
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-accent), transparent);
}

/* === PANELS === */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.panel:hover { border-color: #333; }
.panel:hover::before { opacity: 1; }

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(139, 0, 0, 0.03);
}

.panel-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.panel-icon {
    color: #666;
    font-size: 0.8rem;
}

.panel-content {
    padding: 1.5rem 1.25rem;
}

.panel-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Panel Data Rows */
.panel-data { margin-top: 1.5rem; }

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.7rem;
}

.data-key { color: var(--text-secondary); letter-spacing: 2px; }
.data-val { color: #d0d0d0; font-weight: 500; }

/* === ABOUT: Panels Grid === */
.panels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* === SKILL BARS === */
.skill-bar {
    display: grid;
    grid-template-columns: 140px 1fr 40px;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skill-name {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.bar-track {
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--status-green), var(--status-green-dim));
    border-radius: 2px;
    transition: width 1.5s ease;
    position: relative;
    box-shadow: 0 0 10px var(--status-green-glow);
}

.bar-fill.animated { width: var(--target-width); }

.skill-pct {
    font-size: 0.85rem;
    color: #d0d0d0;
    text-align: right;
}

/* === BLOG GRID === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.blog-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--mil-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.blog-card:hover {
    border-color: #333;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

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

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.blog-tag {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #808080;
    padding: 0.2rem 0.5rem;
    border: 1px solid #333;
}

.blog-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.blog-read-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-link {
    font-size: 0.85rem;
    font-family: var(--font-display);
    letter-spacing: 2px;
    color: #d0d0d0;
}

.blog-link:hover {
    color: #ffffff;
    text-shadow: none;
}

/* === DEVELOPMENT GRID === */
.dev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.dev-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 1.75rem;
    transition: all 0.4s ease;
    position: relative;
}

.dev-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 0;
    background: var(--mil-red);
    transition: height 0.4s ease;
}

.dev-card:hover {
    border-color: #333;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.dev-card:hover::before { height: 100%; }

.dev-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.dev-icon {
    font-size: 1.5rem;
    color: #808080;
}

.dev-status {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--status-green);
}

.status-dev { color: var(--warning); }

.dev-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.dev-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.dev-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.tech-tag {
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.dev-card:hover .tech-tag {
    border-color: #444;
    color: #d0d0d0;
}

.dev-link {
    font-size: 0.85rem;
    font-family: var(--font-display);
    letter-spacing: 2px;
}

/* === LINKS GRID === */
.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    text-decoration: none;
}

.link-card:hover {
    border-color: #333;
    background: var(--bg-panel-hover);
    transform: translateX(8px);
    text-shadow: none;
}

.link-icon {
    font-size: 1.5rem;
    color: #808080;
    width: 40px;
    text-align: center;
}

.link-info { flex: 1; }

.link-name {
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.link-url {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.link-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.link-card:hover .link-arrow {
    color: #d0d0d0;
    transform: translateX(4px);
}

/* === CONTACT === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form */
.contact-form {
    padding: 1.5rem 1.25rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #555;
    box-shadow: 0 0 0 1px #55555540, 0 0 20px rgba(0, 0, 0, 0.2);
}

.form-input::placeholder { color: var(--text-muted); }

.form-textarea { resize: vertical; min-height: 120px; }

.form-submit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 2rem;
    background: transparent;
    border: 1px solid #555;
    color: #d0d0d0;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: #333;
    transition: left 0.3s ease;
    z-index: -1;
}

.form-submit:hover {
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.form-submit:hover::before { left: 0; }

.submit-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.form-submit:hover .submit-icon { transform: translateX(4px); }

/* Info Blocks */
.info-block {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.info-block:last-child { border-bottom: none; }

.info-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.info-value {
    font-size: 0.8rem;
    color: #d0d0d0;
}

/* Terminal */
.terminal-panel {
    flex: 1;
}

.terminal-content {
    padding: 1rem 1.25rem;
    font-size: 0.7rem;
    line-height: 1.8;
}

.term-line { white-space: nowrap; }
.term-prompt { color: #808080; }
.term-cmd { color: var(--text-primary); }
.term-output { color: var(--text-secondary); padding-left: 0; }
.term-cursor { animation: blink-cursor 0.8s step-end infinite; color: #b8b8b8; }

/* === FOOTER === */
.footer {
    padding: 2rem;
    border-top: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.8);
}

.footer-container {
    max-width: clamp(1000px, 88vw, 2200px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.footer-coords {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.footer-signal {
    font-size: 0.8rem;
    color: var(--status-green);
    letter-spacing: 1px;
}

.footer-bar {
    margin-top: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2a2a2a, transparent);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-hud-grid { grid-template-columns: 340px 1fr 360px; gap: 1rem; max-width: 96vw; }
    .blog-grid, .dev-grid { grid-template-columns: repeat(2, 1fr); }
    .panels-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-status { display: none; }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        height: auto;
        line-height: 1;
        padding: 1rem 2rem;
    }

    .nav-link::after { display: none; }

    .dropdown {
        position: static;
        border: none;
        border-top: none;
        background: rgba(20, 20, 20, 0.95);
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.4s ease;
        box-shadow: none;
        backdrop-filter: none;
    }

    .nav-item.dropdown-open > .dropdown {
        max-height: 500px;
    }

    .dropdown li a {
        padding-left: 3rem;
        font-size: 0.85rem;
    }

    .dropdown li a::before {
        content: '── ';
        opacity: 0.3;
        color: #555;
    }

    .dropdown li a:hover::before {
        opacity: 1;
    }

    /* SOL price ticker mobile */
    .nav-sol-price {
        width: calc(100% - 4rem);
        justify-content: center;
        padding: 0.5rem 1rem;
        margin: 0 2rem;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        margin-bottom: 0;
    }

    /* Wallet button mobile */
    .nav-wallet-wrap {
        position: static;
        width: 100%;
        padding: 0.75rem 2rem;
        border-top: 1px solid var(--border);
        margin: 0;
    }

    .nav-wallet-btn {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .nav-wallet-dropdown {
        position: static;
        min-width: 100%;
        max-width: 100%;
        border: none;
        border-top: 1px solid var(--border);
        box-shadow: none;
        backdrop-filter: none;
        background: rgba(14, 14, 14, 0.95);
        animation: none;
    }



    /* HUD grid stacks on mobile */
    .hero-hud-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .hud-col-center {
        min-height: auto;
        order: -1;
    }

    .hud-row-panels { grid-template-columns: 1fr 1fr; }

    .hero-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }

    .hud-bottom-bar {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .hud-bottom-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hud-bottom-right { justify-content: center; }

    .blog-grid, .dev-grid { grid-template-columns: 1fr; }
    .links-grid { grid-template-columns: 1fr; }
    .skill-bar { grid-template-columns: 1fr; gap: 0.3rem; }
    .skill-name { margin-bottom: 0; }
    .section { padding: 4rem 1rem; }
    .footer-container { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-left, .footer-right { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
    .hero-title { letter-spacing: 4px; font-size: 1.5rem; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .section-line { display: none; }
    .hud-row-panels { grid-template-columns: 1fr; }
    .hud-bottom-stats { gap: 0.5rem; }
    .metric-row { grid-template-columns: 60px 1fr 35px; gap: 0.5rem; }
    .graph-stats { flex-direction: column; gap: 0.5rem; }
}

/* ─── Blog Loading Placeholder ─── */
.blog-loading-placeholder {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #555;
    letter-spacing: 2px;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 204, 51, 0.1);
    border-top-color: var(--status-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.blog-view-all-link:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* ─── Weather Display ─── */
.weather-display {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.weather-main {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}
.weather-temp {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
}
.weather-cond {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #808080;
    letter-spacing: 1px;
}
.weather-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.weather-detail {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: rgba(192, 192, 192, 0.4);
    letter-spacing: 1px;
    padding: 0.2rem 0.5rem;
    border: 1px solid #222;
}

/* ─── Now Playing Display ─── */
.np-display {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.np-track {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.np-artist {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #808080;
    letter-spacing: 1px;
}
.np-album {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: rgba(192, 192, 192, 0.35);
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}
.np-visualiser {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 18px;
    margin-top: 0.3rem;
}
.np-bar {
    width: 4px;
    background: var(--status-green);
    border-radius: 1px;
    animation: npBounce 0.8s ease-in-out infinite alternate;
    box-shadow: 0 0 4px var(--status-green-glow);
}
.np-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.np-bar:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.np-bar:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.np-bar:nth-child(4) { height: 90%; animation-delay: 0.05s; }
.np-bar:nth-child(5) { height: 60%; animation-delay: 0.15s; }
.np-bar:nth-child(6) { height: 80%; animation-delay: 0.25s; }
.np-bar:nth-child(7) { height: 45%; animation-delay: 0.1s; }
.np-bar:nth-child(8) { height: 65%; animation-delay: 0.2s; }
@keyframes npBounce {
    0%   { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

#npStatus {
    color: var(--status-green);
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* === SELECTION HIGHLIGHT === */
::selection {
    background: #3a1a1a;
    color: #d0d0d0;
}
::-moz-selection {
    background: #3a1a1a;
    color: #d0d0d0;
}

/* ============================
   JAE-AI CHAT TERMINAL
   ============================ */
.chat-terminal {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 500px;
    
    
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid var(--border);
    backdrop-filter: blur(4px);
}

.chat-header {
    flex-shrink: 0;
}

.chat-model {
    color: #555;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.chat-status {
    transition: color 0.3s;
}

.status-amber {
    color: var(--amber) !important;
}

.status-red {
    color: var(--mil-red) !important;
}

/* Messages area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(139, 0, 0, 0.3);
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 0, 0, 0.5);
}

/* Welcome screen */
.chat-welcome {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
}

.chat-logo-text {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: 8px;
}

.chat-welcome-sub {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
}

.chat-welcome-hint {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #555;
    margin-top: 0.5rem;
    animation: hintPulse 2.5s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Message bubbles */
.chat-msg {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    animation: msgFadeIn 0.3s ease-out;
}

@keyframes msgFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg-label {
    font-family: var(--font-mono);
    font-size: 0.45rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.chat-msg-user .chat-msg-label {
    color: var(--amber);
}

.chat-msg-assistant .chat-msg-label {
    color: var(--status-green);
}

.chat-msg-body {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.55;
    padding: 0.5rem 0.75rem;
    border-left: 2px solid transparent;
}

.chat-msg-user .chat-msg-body {
    color: #c0c0c0;
    border-left-color: rgba(201, 162, 39, 0.3);
    background: rgba(201, 162, 39, 0.03);
}

.chat-msg-assistant .chat-msg-body {
    color: #b8b8b8;
    border-left-color: rgba(0, 204, 51, 0.3);
    background: rgba(0, 204, 51, 0.03);
}

/* Typing indicator */
.chat-typing-indicator .chat-msg-body {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.6rem 0.75rem;
}

.typing-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--status-green);
    opacity: 0.4;
    animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 60%, 100% { opacity: 0.2; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

/* Input area */
.chat-input-area {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-top: 1px solid var(--border);
    background: rgba(8, 8, 8, 0.8);
}

.chat-prompt-icon {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--status-green);
    text-shadow: 0 0 8px var(--status-green-glow);
    flex-shrink: 0;
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #d0d0d0;
    letter-spacing: 0.5px;
    caret-color: var(--status-green);
}

.chat-input::placeholder {
    color: #3a3a3a;
    letter-spacing: 1px;
}

.chat-send {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(0, 204, 51, 0.2);
    color: var(--status-green);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.chat-send:hover {
    background: rgba(0, 204, 51, 0.1);
    border-color: var(--status-green);
    box-shadow: 0 0 8px var(--status-green-glow);
}

.chat-send:active {
    transform: scale(0.92);
}

/* ============================
   CHAT RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .chat-terminal {
        min-height: 320px;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .chat-terminal {
        min-height: 280px;
        max-height: 360px;
    }

    .chat-logo-text {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }

    .chat-msg-body {
        font-size: 0.68rem;
    }
}

/* ============================
   3D GLOBE PANEL
   ============================ */
.globe-panel {
    min-height: 300px;
}

.globe-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    overflow: hidden;
    min-height: 280px;
}

#globeViz {
    display: flex;
    align-items: center;
    justify-content: center;
}

#globeViz canvas {
    cursor: grab;
}

#globeViz canvas:active {
    cursor: grabbing;
}

.globe-data-overlay {
    position: absolute;
    bottom: 0.5rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
    pointer-events: none;
}

.globe-coord-block {
    text-align: center;
}

.globe-coord-block .coord-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.45rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.globe-coord-block .coord-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--status-green);
    text-shadow: 0 0 6px var(--status-green-glow);
}

/* ============================
   TOP PROCESSES TABLE
   ============================ */
.proc-display {
    padding: 0.5rem !important;
}

.proc-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.proc-table th {
    text-align: left;
    padding: 0.3rem 0.4rem;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-weight: 400;
}

.proc-table td {
    padding: 0.25rem 0.4rem;
    color: #999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.proc-table tr:hover td {
    color: var(--status-green);
    background: rgba(0, 204, 51, 0.02);
}

.proc-table .proc-cpu-high {
    color: var(--mil-red);
    text-shadow: 0 0 4px rgba(139, 0, 0, 0.4);
}

.proc-table .proc-cpu-med {
    color: var(--amber);
}

.proc-table .proc-cpu-low {
    color: var(--status-green);
}

.proc-loading {
    text-align: center;
    color: #555;
    letter-spacing: 2px;
    font-size: 0.7rem;
    padding: 1rem !important;
    animation: hintPulse 2s ease-in-out infinite;
}

/* Globe responsive */
@media (max-width: 1024px) {
    .globe-panel {
        min-height: 240px;
    }
    .globe-container {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .globe-panel {
        min-height: 200px;
    }
    .globe-container {
        min-height: 180px;
    }
    .proc-table {
        font-size: 0.75rem;
    }
}

/* ============================
   CHAT SUB-ROW (Below Chat)
   ============================ */
.chat-sub-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.chat-sub-panel {
    flex: 1;
    min-width: 0;
}

/* ============================
   SERVER CLOCK / UPTIME
   ============================ */
.clock-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem !important;
    gap: 0.25rem;
}

.clock-time {
    font-family: 'Orbitron', var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--status-green);
    text-shadow: 0 0 12px var(--status-green-glow), 0 0 25px rgba(0, 204, 51, 0.15);
    letter-spacing: 3px;
    line-height: 1;
}

.clock-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.clock-uptime-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border);
    width: 100%;
    justify-content: center;
}

.clock-uptime-label {
    font-family: var(--font-mono);
    font-size: 0.45rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.clock-uptime-val {
    font-family: 'Orbitron', var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--status-green);
    text-shadow: 0 0 6px var(--status-green-glow);
}

/* Chat sub-row responsive */
@media (max-width: 768px) {
    .chat-sub-row {
        flex-direction: column;
    }
    .clock-time {
        font-size: 1.2rem;
    }
}
