/* ==========================================
   NORRIS-DESIGN // TITAN — GLOBAL STYLES
   ========================================== */

/* --- CSS Custom Properties --- */
:root {
    --red: #ff3333;
    --red-dark: #cc0000;
    --red-glow: rgba(255, 51, 51, 0.3);
    --accent-orange: #ff8800;
    --accent-purple: #a855f7;
    --accent-cyan: #00ffcc;
    --bg-base: #050505;
    --bg-card: rgba(15, 15, 15, 0.75);
    --bg-elevated: rgba(20, 20, 20, 0.7);
    --border-subtle: #220000;
    --border-default: #330000;
    --border-hover: #440000;
    --text-primary: #e0e0e0;
    --text-secondary: #888;
    --text-dim: #555;
    --font-body: 'Inter', 'Courier New', system-ui, -apple-system, sans-serif;
}

/* --- Base & Layout --- */
* { box-sizing: border-box; }
body {
    background: var(--bg-base);
    font-family: var(--font-body);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.main-content { flex-grow: 1; }

/* --- Matrix Canvas --- */
#matrix-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.12;
}

/* --- Grid Overlay (servers page) --- */
#grid-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 50, 50, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 50, 50, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* --- Cyber Line (bottom accent) --- */
.cyber-line {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), var(--accent-orange), var(--accent-purple), var(--accent-cyan), transparent);
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

/* --- Typography & Colors --- */
.text-neon { color: var(--red); text-shadow: 0 0 10px var(--red-glow); }
.gradient-text {
    background: linear-gradient(135deg, var(--red), var(--accent-orange), var(--red));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease infinite;
}
.pulse-text { animation: pulse-red 2.5s infinite; font-weight: bold; }
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--red), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.section-subtitle {
    color: var(--text-dim);
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 300;
    margin-top: 0;
}

/* --- Animations --- */
@keyframes pulse-red {
    0% { text-shadow: 0 0 5px var(--red); color: var(--red); }
    50% { text-shadow: 0 0 20px var(--red), 0 0 30px var(--red-dark); color: #fff; }
    100% { text-shadow: 0 0 5px var(--red); color: var(--red); }
}
@keyframes shimmer {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes borderGlow {
    0%, 100% { border-color: #ff2a2a; box-shadow: 0 0 25px rgba(255, 42, 42, 0.15), inset 0 0 30px rgba(255, 42, 42, 0.03); }
    25% { border-color: var(--accent-orange); box-shadow: 0 0 25px rgba(255, 136, 0, 0.15), inset 0 0 30px rgba(255, 136, 0, 0.03); }
    50% { border-color: var(--accent-purple); box-shadow: 0 0 25px rgba(168, 85, 247, 0.15), inset 0 0 30px rgba(168, 85, 247, 0.03); }
    75% { border-color: var(--accent-cyan); box-shadow: 0 0 25px rgba(0, 255, 204, 0.15), inset 0 0 30px rgba(0, 255, 204, 0.03); }
}
@keyframes barFill { from { width: 0%; } }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* ==========================================
   NAVIGATION (header.php)
   ========================================== */
.navbar {
    border-color: var(--border-default) !important;
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10;
}
.navbar-brand { letter-spacing: 3px; }
.navbar .nav-link {
    transition: color 0.3s;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
}
.navbar .nav-link.active {
    color: var(--red) !important;
    text-shadow: 0 0 10px var(--red-glow);
}
.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--red);
    border-radius: 1px;
    animation: glowPulse 2s ease infinite;
}
.navbar .nav-link:not(.active) { color: var(--text-secondary) !important; }
.navbar .nav-link:not(.active):hover { color: var(--red) !important; }
.navbar-toggler { border-color: var(--border-default); }
.navbar-toggler-icon { filter: invert(0.3); }

/* ==========================================
   BUTTONS
   ========================================== */
.btn-neon {
    background-color: rgba(20, 0, 0, 0.6);
    color: var(--red);
    border: 1px solid var(--red);
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.btn-neon:hover {
    background-color: var(--red);
    color: #000;
    box-shadow: 0 0 25px var(--red);
    transform: translateY(-2px);
}
.btn-outline-dark-neon {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
    transition: all 0.3s;
}
.btn-outline-dark-neon:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ==========================================
   FORMS
   ========================================== */
.form-control {
    background-color: rgba(20, 20, 20, 0.8);
    color: var(--red);
    border: 1px solid var(--border-hover);
}
.form-control:focus {
    background-color: rgba(20, 20, 20, 0.9);
    color: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    border-color: var(--border-default) !important;
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10;
}
.site-footer p {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #880000;
    letter-spacing: 3px;
    margin-bottom: 0;
}
.footer-brand {
    color: var(--text-primary);
    font-weight: bold;
}

/* ==========================================
   COMMAND CENTER DASHBOARD
   ========================================== */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--border-hover);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}
.dash-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--red), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dash-subtitle {
    color: var(--text-secondary);
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0;
}
.norlink-badge {
    display: inline-block;
    background: rgba(255, 50, 50, 0.12);
    border: 1px solid rgba(255, 50, 50, 0.25);
    color: #ff6666;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-left: 10px;
    vertical-align: middle;
    text-transform: uppercase;
}

/* --- Error / Offline Messages --- */
.sensor-offline {
    background: rgba(255, 50, 50, 0.05);
    border: 1px solid rgba(255, 50, 50, 0.2);
    color: #ff6666;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.hub-title {
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 8px;
}
.hub-subtitle {
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.terminal-box {
    text-align: left;
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 6px;
    background-color: rgba(0,0,0,0.6);
    border: 1px solid var(--border-default);
    min-height: 80px;
}
.terminal-output {
    color: var(--text-secondary);
    line-height: 1.6;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
}
.terminal-line {
    margin-bottom: 4px;
}
.terminal-alert {
    background-color: rgba(40, 0, 0, 0.8);
    color: #ff6666;
    font-size: 0.9rem;
    border-color: var(--border-default);
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

/* ==========================================
   GATEWAY CARD (titan login)
   ========================================== */
.gateway-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    box-shadow: inset 0 0 30px rgba(255, 0, 0, 0.05), 0 0 20px rgba(0, 0, 0, 0.8);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.gateway-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}
.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2rem;
    background-color: var(--red);
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 5px;
}

/* ==========================================
   INDEX PAGE — Hero & About
   ========================================== */
.hero-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    box-shadow: inset 0 0 30px rgba(255, 0, 0, 0.05), 0 0 20px rgba(0, 0, 0, 0.8);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.hero-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}
.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 6px;
    margin-bottom: 8px;
}
.hero-tagline {
    color: var(--text-secondary);
    letter-spacing: 3px;
    font-size: 1.1rem;
    margin-bottom: 24px;
}
.hero-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}
.section-label {
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.about-text {
    line-height: 1.8;
    margin-bottom: 0;
}
.about-section {
    background-color: rgba(15, 15, 15, 0.6);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    border-left: 3px solid transparent;
    background-clip: padding-box;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
}
.about-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--red), var(--accent-orange));
    border-radius: 3px 0 0 3px;
    opacity: 0.5;
}
.about-section:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.divider { border-color: var(--border-default) !important; opacity: 0.3; }

/* ==========================================
   TITAN PAGE — Server Panel Dashboard
   ========================================== */

/* --- Status Bar --- */
.status-bar {
    background: linear-gradient(135deg, rgba(15,15,15,0.9), rgba(10,10,10,0.95));
    border: 1px solid rgba(255, 50, 50, 0.1);
    border-radius: 12px;
    padding: 14px 22px;
    position: relative;
    overflow: hidden;
}
.status-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.12) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}
.status-bar-inner {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.status-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}
.status-item.active {
    background: rgba(255, 255, 255, 0.04);
}
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.status-item-ok .status-dot { background: #00ff88; box-shadow: 0 0 8px rgba(0, 255, 136, 0.5); }
.status-item-ok.active { color: #00ff88; }
.status-item-warn .status-dot { background: #444; }
.status-item-warn.active .status-dot { background: #ffaa00; box-shadow: 0 0 8px rgba(255, 170, 0, 0.5); }
.status-item-warn.active { color: #ffaa00; background: rgba(255, 170, 0, 0.08); }
.status-item-fail .status-dot { background: #444; }
.status-item-fail.active .status-dot { background: #ff3333; box-shadow: 0 0 8px rgba(255, 51, 51, 0.5); }
.status-item-fail.active { color: #ff3333; background: rgba(255, 51, 51, 0.08); }
.status-item-total { color: var(--text-secondary); margin-left: auto; }
.status-item-total .status-dot { background: var(--text-dim); }

/* --- Sensor Panel (Grouped Sections) — Server Card Style --- */
.sensor-panel {
    background: linear-gradient(135deg, rgba(15,15,15,0.95), rgba(10,10,10,0.98));
    border: 1px solid rgba(255, 50, 50, 0.12);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: panelFadeIn 0.5s ease-out both;
}
.sensor-panel:nth-child(2) { animation-delay: 0.05s; }
.sensor-panel:nth-child(3) { animation-delay: 0.1s; }
.sensor-panel:nth-child(4) { animation-delay: 0.15s; }
.sensor-panel:nth-child(5) { animation-delay: 0.2s; }
@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.sensor-panel::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: 16px;
    background: conic-gradient(from 0deg, transparent, rgba(255, 42, 42, 0.1), transparent, rgba(255, 136, 0, 0.1), transparent, rgba(168, 85, 247, 0.1), transparent, rgba(0, 255, 204, 0.1), transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    z-index: 0;
    animation: borderRotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.sensor-panel:hover::before { opacity: 1; }
.sensor-panel::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 0;
    border-radius: 16px;
}
.sensor-panel:hover {
    transform: translateY(-4px);
    animation: borderGlow 3s ease infinite;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.sensor-panel > * { position: relative; z-index: 1; }

/* Panel Blobs */
.panel-blob {
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    transition: all 0.8s;
}
.sensor-panel:hover .panel-blob { opacity: 0.12; transform: scale(1.2); }
.panel-blob-1 { top: -100px; right: -100px; background: var(--red); }
.panel-blob-2 { bottom: -100px; left: -100px; background: var(--accent-cyan); }

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(255, 50, 50, 0.08);
    cursor: default;
}
.panel-icon {
    font-size: 1.1rem;
    line-height: 1;
    filter: grayscale(0.3);
}
.panel-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff5555, #ffaa44);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.panel-count {
    margin-left: auto;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2px 10px;
    border-radius: 10px;
    letter-spacing: 1px;
}
.panel-body {
    padding: 18px 22px 22px;
}

/* --- Server Sensor Card — Compact Premium --- */
.server-sensor-card {
    display: flex;
    background: linear-gradient(135deg, rgba(15,15,15,0.9), rgba(10,10,10,0.95));
    border: 1px solid rgba(255, 50, 50, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    min-height: 72px;
}
.server-sensor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.sensor-card-bar {
    width: 4px;
    flex-shrink: 0;
    transition: all 0.3s;
}
.server-sensor-card.status-ok .sensor-card-bar {
    background: #00ff88;
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.3);
}
.server-sensor-card.status-warning .sensor-card-bar {
    background: #ffaa00;
    box-shadow: 0 0 8px rgba(255, 170, 0, 0.4);
}
.server-sensor-card.status-fail .sensor-card-bar {
    background: #ff3333;
    box-shadow: 0 0 8px rgba(255, 51, 51, 0.4);
}
.sensor-card-body {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.sensor-card-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sensor-card-value {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.sensor-card-value.status-ok { color: #00ff88; text-shadow: 0 0 10px rgba(0, 255, 136, 0.2); }
.sensor-card-value.status-warning { color: #ffaa00; text-shadow: 0 0 10px rgba(255, 170, 0, 0.2); }
.sensor-card-value.status-fail { color: #ff3333; text-shadow: 0 0 10px rgba(255, 51, 51, 0.2); }
.sensor-card-unit {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-left: 3px;
}

/* --- Hover glow by status --- */
.server-sensor-card.status-ok:hover {
    border-color: rgba(0, 255, 136, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(0, 255, 136, 0.05);
}
.server-sensor-card.status-warning:hover {
    border-color: rgba(255, 170, 0, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 170, 0, 0.05);
}
.server-sensor-card.status-fail:hover {
    border-color: rgba(255, 51, 51, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 51, 51, 0.07);
}
.server-sensor-card.status-fail {
    animation: failPulse 2s ease infinite;
}
@keyframes failPulse {
    0%, 100% { border-color: rgba(255, 51, 51, 0.12); box-shadow: 0 0 0 rgba(255, 51, 51, 0); }
    50% { border-color: rgba(255, 51, 51, 0.35); box-shadow: 0 0 14px rgba(255, 51, 51, 0.06); }
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .status-bar-inner { gap: 12px; }
    .status-item { font-size: 0.7rem; padding: 3px 8px; }
    .sensor-card-value { font-size: 1.1rem; }
    .panel-body { padding: 12px 14px 16px; }
    .panel-header { padding: 10px 14px; }
}

/* ==========================================
   SERVERS PAGE — Cards & Specs
   ========================================== */
.server-card-wrapper {
    animation: fadeUp 0.6s ease-out both;
}
.server-card-wrapper:nth-child(1) { animation-delay: 0.05s; }
.server-card-wrapper:nth-child(2) { animation-delay: 0.1s; }
.server-card-wrapper:nth-child(3) { animation-delay: 0.15s; }
.server-card-wrapper:nth-child(4) { animation-delay: 0.2s; }
.server-card-wrapper:nth-child(5) { animation-delay: 0.25s; }
.server-card-wrapper:nth-child(6) { animation-delay: 0.3s; }
.server-card {
    background: linear-gradient(135deg, rgba(15,15,15,0.95), rgba(10,10,10,0.98));
    border: 1px solid rgba(255, 50, 50, 0.12);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.server-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: 16px;
    background: conic-gradient(from 0deg, transparent, rgba(255, 42, 42, 0.1), transparent, rgba(255, 136, 0, 0.1), transparent, rgba(168, 85, 247, 0.1), transparent, rgba(0, 255, 204, 0.1), transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    z-index: 0;
    animation: borderRotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.server-card:hover::before { opacity: 1; }
.server-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 0;
    border-radius: 16px;
}
.server-card:hover {
    transform: translateY(-8px) scale(1.002);
    animation: borderGlow 3s ease infinite;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.server-card > * { position: relative; z-index: 1; }
.card-blob {
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    transition: all 0.8s;
}
.server-card:hover .card-blob { opacity: 0.12; transform: scale(1.2); }
.card-blob-1 { top: -100px; right: -100px; background: var(--red); }
.card-blob-2 { bottom: -100px; left: -100px; background: var(--accent-cyan); }

/* Server Card Header */
.server-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.server-name {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ff5555, #ffaa44);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s;
}
.server-card:hover .server-name {
    background: linear-gradient(135deg, #ff7777, #ffcc66, #ff5555);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s ease infinite;
}
.server-stat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.stat-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #aaa;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
    white-space: nowrap;
}
.stat-pill:hover {
    background: rgba(255, 50, 50, 0.1);
    border-color: rgba(255, 50, 50, 0.3);
    color: #ff5555;
    transform: translateY(-1px);
}
.stat-pill .num { color: #fff; font-weight: 700; }

/* Card Divider */
.card-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 50, 50, 0.15), rgba(255, 136, 0, 0.1), transparent);
    margin: 0 0 20px 0;
}

/* --- Benchmark Section --- */
.benchmark-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
    position: relative;
}
.benchmark-row::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 50, 50, 0.2), transparent);
    pointer-events: none;
}
.benchmark-main {
    flex: 1;
    min-width: 160px;
}
.benchmark-label {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.benchmark-score {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff5555, #ffaa44);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.benchmark-score.estimated {
    background: none;
    -webkit-text-fill-color: #666;
    color: #666;
}
.benchmark-unit {
    font-size: 0.9rem;
    color: #999;
    font-weight: 400;
}
.benchmark-st {
    font-size: 0.75rem;
    color: #999;
    margin-top: 4px;
}
.badge-verified {
    display: inline-block;
    background: rgba(255, 50, 50, 0.15);
    border: 1px solid rgba(255, 50, 50, 0.3);
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ff5555;
    text-transform: uppercase;
    margin-top: 6px;
}
.badge-estimated {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #777;
    text-transform: uppercase;
    margin-top: 6px;
}
.benchmark-bar-section {
    flex: 2;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.benchmark-bar-label {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 6px;
}
.benchmark-bar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    position: relative;
}
.benchmark-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--red), var(--accent-orange));
    animation: barFill 1.5s ease-out forwards;
    position: relative;
}
.benchmark-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 6px; height: 100%;
    background: #fff;
    border-radius: 3px;
    opacity: 0.4;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}
.benchmark-bar-fill.estimated {
    background: linear-gradient(90deg, #444, #666);
}
.benchmark-bar-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #777;
}
.benchmark-meta {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}
.benchmark-cpu-icon {
    height: 28px;
    width: 28px;
    object-fit: contain;
    border-radius: 3px;
    margin-bottom: 4px;
}
.benchmark-cpu-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #aaa;
    text-align: right;
    letter-spacing: 0.5px;
}
.benchmark-cpu-name.dim {
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Specs Grid --- */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.spec-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}
.spec-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--red), var(--accent-orange));
    opacity: 0.4;
    transition: opacity 0.3s;
}
.spec-section:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 50, 50, 0.15);
}
.spec-section:hover::before { opacity: 1; }
.spec-section-header {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
    transition: color 0.3s;
}
.spec-section:hover .spec-section-header { color: #ff5555; }
.spec-entry {
    color: #bbb;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.5;
    padding: 3px 0;
}
.spec-entry:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 3px;
}

/* --- CPU Section (TPU-style) --- */
.cpu-section {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px 20px;
}
.cpu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.cpu-icon {
    width: 50px;
    height: auto;
    border-radius: 4px;
    align-self: flex-start;
    flex-shrink: 0;
}
.cpu-model {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ff4444;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.cpu-count-badge {
    display: inline-block;
    background: var(--border-default);
    color: #ff6666;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.cpu-specs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cpu-spec-tile {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 10px 20px;
    text-align: center;
    min-width: 90px;
    flex: 1 0 auto;
    transition: background 0.3s, transform 0.3s;
}
.cpu-spec-tile:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}
.cpu-spec-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1.3;
}
.cpu-spec-unit {
    font-size: 0.65rem;
    font-weight: 500;
    color: #888;
    margin-left: 2px;
}
.cpu-spec-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    color: #777;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}
.cpu-cache-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cpu-cache-label {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-dim);
    text-transform: uppercase;
    flex-shrink: 0;
}
.cpu-cache-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}
.cpu-cache-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cpu-cache-val {
    font-size: 0.78rem;
    font-weight: 600;
    color: #ddd;
}
.cpu-cache-name {
    font-size: 0.55rem;
    font-weight: 700;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================
   ADMIN PAGE
   ========================================== */
.admin-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 2rem;
}
.table { color: var(--text-primary); }
.table th {
    color: #880000;
    border-color: var(--border-default);
    font-size: 0.75rem;
    letter-spacing: 1px;
}
.table td {
    border-color: var(--border-subtle);
    vertical-align: middle;
    font-size: 0.85rem;
}
.table tbody tr {
    transition: background 0.2s;
}
.table tbody tr:hover {
    background: rgba(255, 50, 50, 0.03);
}
.modal-content { background-color: #111; border: 1px solid var(--border-default); }
.modal-header { border-bottom-color: var(--border-default); }
.modal-footer { border-top-color: var(--border-default); }
.spec-cat-box {
    background-color: rgba(20, 20, 20, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 0.75rem;
}
.entry-row .form-control { font-size: 0.8rem; }

/* --- Admin Edit Modal --- */
.admin-modal-content {
    background-color: #0d0d0d;
    border: 1px solid var(--border-hover);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.08);
}
.admin-modal-content .modal-header {
    border-bottom-color: var(--border-default);
    background: rgba(255, 0, 0, 0.02);
}
.admin-modal-content .modal-footer {
    border-top-color: var(--border-default);
}
.admin-modal-content .btn-close {
    filter: brightness(0.5) sepia(1) hue-rotate(310deg);
}
.modal-backdrop.show {
    opacity: 0.6;
}

/* --- Delete Confirm Modal --- */
.admin-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.admin-modal-panel {
    background: #111;
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.15);
    animation: fadeUp 0.3s ease-out;
}
.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--red);
    text-transform: uppercase;
}
.btn-close-modal {
    background: none;
    border: none;
    color: #666;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}
.btn-close-modal:hover {
    color: var(--red);
    background: rgba(255, 50, 50, 0.1);
}
.admin-modal-text {
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}
.admin-modal-text strong {
    color: #ff6666;
}
.admin-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #550000; }
@supports (scrollbar-color: auto) {
    * { scrollbar-color: var(--border-default) #111; scrollbar-width: thin; }
}

/* ==========================================
   RAW POWER PANEL
   ========================================== */
.power-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.power-metric {
    flex: 1;
    min-width: 160px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 16px;
    text-align: center;
    transition: background 0.3s, transform 0.3s;
}
.power-metric:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}
.power-label {
    display: block;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.power-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff5555, #ffaa44);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.power-unit {
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    -webkit-text-fill-color: #999;
}
.power-arrow {
    font-size: 1rem;
    font-weight: 300;
    color: #ff8800;
    -webkit-text-fill-color: #ff8800;
    margin: 0 4px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .power-metric { min-width: 120px; }
    .power-value { font-size: 1.2rem; }
}

/* ==========================================
   SERVER TYPE BADGE
   ========================================== */
.server-type {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 8px;
    flex-shrink: 0;
    position: relative;
}
.server-type.server {
    background: rgba(255, 50, 50, 0.12);
    border: 1px solid rgba(255, 50, 50, 0.25);
    color: #ff6666;
}
.server-type.workstation {
    background: rgba(0, 200, 255, 0.1);
    border: 1px solid rgba(0, 200, 255, 0.2);
    color: #66ccff;
}
.server-type.storage {
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.2);
    color: #ffcc44;
}
.server-type.desktop {
    background: rgba(0, 255, 100, 0.1);
    border: 1px solid rgba(0, 255, 100, 0.2);
    color: #44dd66;
}
.server-type.virtual {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #bb77ff;
}
[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #ccc;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #333;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    text-transform: none;
    font-family: 'Inter', sans-serif;
}
.form-select {
    background-color: rgba(20, 20, 20, 0.8) !important;
    color: var(--red) !important;
    border: 1px solid var(--border-hover) !important;
}
.form-select:focus {
    border-color: var(--red) !important;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3) !important;
}

/* ==========================================
   CPU RACE PANEL
   ========================================== */
.race-panel {
    display: none;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 50, 50, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}
.race-panel.visible {
    display: block;
    animation: fadeUp 0.4s ease-out;
}
.race-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
}
.race-lane {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.race-lane:last-child { border-bottom: none; }
.race-lane-label {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.race-icon {
    height: 22px;
    width: auto;
    border-radius: 2px;
}
.race-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.race-score {
    font-size: 0.6rem;
    color: #777;
    margin-left: auto;
    white-space: nowrap;
}
.race-track {
    flex: 1;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.race-progress {
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--red), var(--accent-orange));
    transition: width 0.1s linear;
    position: relative;
}
.race-progress::after {
    content: '';
    position: absolute;
    right: 0; top: 0;
    width: 4px; height: 100%;
    background: #fff;
    border-radius: 2px;
    opacity: 0.5;
    box-shadow: 0 0 6px rgba(255,255,255,0.5);
}
.race-tasks {
    width: 90px;
    text-align: right;
    font-size: 0.7rem;
    font-weight: 600;
    color: #999;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.race-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}
.race-hint {
    font-size: 0.6rem;
    color: #555;
    letter-spacing: 0.5px;
}

/* ==========================================
   CRUNCH MODE
   ========================================== */
.header-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: center;
}
.header-actions .btn {
    min-width: 140px;
    text-align: center;
}
.crunch-counter {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 255, 100, 0.04);
    border: 1px solid rgba(0, 255, 100, 0.1);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.75rem;
    transition: all 0.3s;
}
.crunch-counter.active {
    display: flex;
    animation: fadeUp 0.3s ease-out;
}
.crunch-icon {
    font-size: 0.9rem;
    animation: blink 0.8s infinite;
}
.crunch-label {
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #44cc66;
    font-size: 0.55rem;
}
.crunch-value {
    font-weight: 800;
    color: #fff;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    margin-left: auto;
}
.crunch-unit {
    color: #888;
    font-size: 0.65rem;
    font-weight: 500;
}

/* ==========================================
   CRUNCH RESULTS MODAL
   ========================================== */
.crunch-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.crunch-modal-panel {
    background: #111;
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.15);
    animation: fadeUp 0.3s ease-out;
}
.crunch-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--red);
}
.crunch-modal-sub {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 16px;
}
.crunch-table {
    width: 100%;
    border-collapse: collapse;
}
.crunch-table th {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #555;
    text-transform: uppercase;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
}
.crunch-table td {
    padding: 10px 8px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}
.crunch-rank {
    font-size: 1.2rem;
    width: 36px;
    text-align: center;
}
.crunch-rname {
    font-weight: 700;
    color: #ddd;
}
.crunch-rmt {
    color: #888;
    font-size: 0.75rem;
}
.crunch-relapsed {
    font-weight: 800;
    color: #ffaa44;
    font-variant-numeric: tabular-nums;
}
.crunch-rbar {
    width: 80px;
}
.crunch-bar-fill {
    height: 6px;
    background: linear-gradient(90deg, var(--accent-orange), var(--red));
    border-radius: 3px;
    transition: width 0.5s;
}

@media (max-width: 768px) {
    .race-lane { flex-wrap: wrap; }
    .race-lane-label { width: 100%; }
    .race-tasks { width: auto; }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    #matrix-bg { display: none; }
}

/* ==========================================
   PRINTOUT
   ========================================== */
@media print {
    #matrix-bg, #grid-overlay, .cyber-line, .navbar, .site-footer,
    .card-blob, .server-card::before, .server-card::after {
        display: none !important;
    }
    .server-card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        transform: none !important;
        break-inside: avoid;
    }
    .server-card:hover {
        transform: none !important;
    }
    body { background: #fff; color: #000; }
}
