.compute-power-viz-section {
    max-width: 1200px;
    margin: 0 auto 8px;
    padding: 0 30px;
}

.compute-power-viz {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    min-height: 300px;
}

.cpv-sci {
    background: #020617;
    border: 1px solid rgba(34, 211, 238, 0.35);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.15) inset,
        0 0 40px rgba(34, 211, 238, 0.12),
        0 20px 60px rgba(0, 0, 0, 0.45);
}

.cpv-sci.cpv-idle {
    animation: none;
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.15) inset,
        0 0 24px rgba(34, 211, 238, 0.06),
        0 20px 60px rgba(0, 0, 0, 0.45);
}

.cpv-sci.cpv-idle .cpv-aurora {
    animation: none;
    opacity: 0.6;
}

.cpv-sci.cpv-idle .cpv-scanlines::after {
    animation-play-state: paused;
    opacity: 0;
}

.cpv-sci.cpv-idle .cpv-badge-live {
    animation: none;
    background: linear-gradient(90deg, #475569, #64748b);
    box-shadow: none;
    color: #e2e8f0;
}

.cpv-sci.cpv-idle .cpv-live-dot {
    background: #64748b;
    box-shadow: none;
    animation: none;
}

.cpv-sci.cpv-idle .cpv-power-card.total .cpv-power-value {
    animation: none;
    text-shadow: 0 0 12px rgba(129, 140, 248, 0.35);
}

.cpv-sci.cpv-idle .cpv-util-fill {
    animation: none;
    box-shadow: none;
}

.cpv-sci.cpv-idle .cpv-stat-dot {
    animation: none;
}

.cpv-sci.cpv-active {
    animation: cpv-border-glow 4s ease-in-out infinite;
}

.cpv-sci.cpv-active .cpv-badge-live.cpv-badge-compute {
    background: linear-gradient(90deg, #f97316, #22d3ee);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.55);
    animation: cpv-badge-blink 1.2s ease-in-out infinite;
}

.cpv-sci.cpv-active .cpv-live-dot {
    background: #22d3ee;
    animation: cpv-pulse 1.5s infinite;
}

.cpv-sci.cpv-active .cpv-power-card.running {
    box-shadow: 0 0 28px rgba(251, 191, 36, 0.22);
}

@keyframes cpv-border-glow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2) inset, 0 0 30px rgba(34, 211, 238, 0.1), 0 20px 60px rgba(0, 0, 0, 0.45); }
    50% { box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.35) inset, 0 0 50px rgba(168, 85, 247, 0.18), 0 20px 60px rgba(0, 0, 0, 0.45); }
}

.cpv-aurora {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(34, 211, 238, 0.15), transparent 55%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(168, 85, 247, 0.12), transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(99, 102, 241, 0.08), transparent 60%);
    pointer-events: none;
    animation: cpv-aurora-shift 8s ease-in-out infinite alternate;
}

@keyframes cpv-aurora-shift {
    from { opacity: 0.85; transform: scale(1); }
    to { opacity: 1; transform: scale(1.03); }
}

.cpv-scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.12) 2px,
        rgba(0, 0, 0, 0.12) 4px
    );
    opacity: 0.35;
}

.cpv-scanlines::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.06), transparent);
    animation: cpv-scan-sweep 5s linear infinite;
}

@keyframes cpv-scan-sweep {
    0% { top: -120px; }
    100% { top: 100%; }
}

.cpv-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 20%, transparent 75%);
}

.cpv-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    z-index: 4;
    pointer-events: none;
}

.cpv-corner-tl { top: 8px; left: 8px; border-top: 2px solid #22d3ee; border-left: 2px solid #22d3ee; }
.cpv-corner-tr { top: 8px; right: 8px; border-top: 2px solid #a855f7; border-right: 2px solid #a855f7; }
.cpv-corner-bl { bottom: 8px; left: 8px; border-bottom: 2px solid #22d3ee; border-left: 2px solid #22d3ee; }
.cpv-corner-br { bottom: 8px; right: 8px; border-bottom: 2px solid #a855f7; border-right: 2px solid #a855f7; }

.cpv-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
    color: #e2e8f0;
}

.cpv-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cpv-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cpv-title-main {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #22d3ee;
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
    font-family: 'Consolas', 'SF Mono', 'Monaco', monospace;
}

.cpv-title-sub {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    letter-spacing: 0.04em;
}

.cpv-badge-live {
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #020617;
    background: linear-gradient(90deg, #22d3ee, #34d399);
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.5);
    animation: cpv-badge-blink 2s ease-in-out infinite;
}

@keyframes cpv-badge-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.cpv-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 12px #22d3ee;
    animation: cpv-pulse 2s infinite;
}

@keyframes cpv-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.cpv-refresh {
    font-size: 11px;
    font-weight: 400;
    color: #64748b;
    font-family: 'Consolas', 'SF Mono', monospace;
}

.cpv-canvas-wrap {
    position: relative;
    z-index: 2;
    height: 280px;
    margin: 0 12px;
    border: 1px solid rgba(34, 211, 238, 0.15);
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.9) 0%, rgba(2, 6, 23, 0.95) 100%);
    overflow: hidden;
}

.cpv-canvas-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(168, 85, 247, 0.12);
    pointer-events: none;
    z-index: 1;
}

#computePowerCanvas {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
}

.cpv-hud-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cpv-hud-line {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(34, 211, 238, 0.75);
    font-family: 'Consolas', 'SF Mono', monospace;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

.cpv-hud-right {
    align-self: flex-end;
    color: rgba(168, 85, 247, 0.8);
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.cpv-power-metrics {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px 16px 8px;
}

.cpv-power-card {
    position: relative;
    text-align: center;
    padding: 16px 10px 14px;
    border-radius: 2px;
    background: rgba(2, 6, 23, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cpv-power-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.cpv-power-card.total::before { background: linear-gradient(90deg, transparent, #818cf8, #22d3ee, transparent); }
.cpv-power-card.running::before { background: linear-gradient(90deg, transparent, #fbbf24, #f97316, transparent); }
.cpv-power-card.available::before { background: linear-gradient(90deg, transparent, #34d399, #22d3ee, transparent); }

.cpv-power-card.total {
    border-color: rgba(129, 140, 248, 0.4);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.15);
}

.cpv-power-card.running {
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.1);
}

.cpv-power-card.available {
    border-color: rgba(52, 211, 153, 0.35);
    box-shadow: 0 0 24px rgba(52, 211, 153, 0.1);
}

.cpv-power-card:hover {
    transform: translateY(-2px);
}

.cpv-power-value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-family: 'Consolas', 'SF Mono', 'Segoe UI', sans-serif;
    transition: color 0.3s ease;
}

.cpv-power-card.total .cpv-power-value {
    color: #e0e7ff;
    text-shadow: 0 0 24px rgba(129, 140, 248, 0.8), 0 0 48px rgba(34, 211, 238, 0.3);
    animation: cpv-num-glow 3s ease-in-out infinite;
}

.cpv-power-card.running .cpv-power-value {
    color: #fde68a;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
}

.cpv-power-card.available .cpv-power-value {
    color: #6ee7b7;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.6);
}

@keyframes cpv-num-glow {
    0%, 100% { text-shadow: 0 0 24px rgba(129, 140, 248, 0.8), 0 0 48px rgba(34, 211, 238, 0.3); }
    50% { text-shadow: 0 0 32px rgba(34, 211, 238, 0.9), 0 0 60px rgba(168, 85, 247, 0.35); }
}

.cpv-power-unit {
    font-size: 10px;
    color: #64748b;
    margin-top: 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cpv-precision {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 2px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: #22d3ee;
    font-size: 9px;
    font-weight: 700;
}

.cpv-power-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.cpv-power-sub {
    margin-top: 6px;
    font-size: 10px;
    color: #475569;
    line-height: 1.4;
}

.cpv-formula-bar {
    position: relative;
    z-index: 5;
    margin: 0 16px 8px;
    padding: 8px 14px;
    border-radius: 2px;
    border: 1px solid rgba(34, 211, 238, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #64748b;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
    font-family: 'Consolas', 'SF Mono', monospace;
    letter-spacing: 0.02em;
}

.cpv-util-bar {
    position: relative;
    z-index: 5;
    height: 3px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 16px;
    overflow: hidden;
}

.cpv-util-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22d3ee, #a855f7, #fbbf24);
    background-size: 200% 100%;
    animation: cpv-util-flow 2s linear infinite;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}

@keyframes cpv-util-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.cpv-stats-bar {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 14px 16px 18px;
}

.cpv-stat-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 2px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.cpv-stat-pill:hover {
    border-color: rgba(34, 211, 238, 0.25);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.08);
}

.cpv-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 1px;
    flex-shrink: 0;
    animation: cpv-dot-pulse 2s ease-in-out infinite;
}

@keyframes cpv-dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.cpv-stat-dot.home { background: #22c55e; box-shadow: 0 0 10px rgba(34, 197, 94, 0.8); }
.cpv-stat-dot.cafe { background: #3b82f6; box-shadow: 0 0 10px rgba(59, 130, 246, 0.8); }
.cpv-stat-dot.datacenter { background: #f97316; box-shadow: 0 0 10px rgba(249, 115, 22, 0.8); }
.cpv-stat-dot.remote { background: #a855f7; box-shadow: 0 0 10px rgba(168, 85, 247, 0.8); }

.cpv-stat-body { min-width: 0; }

.cpv-stat-value {
    font-size: 17px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.1;
    font-family: 'Consolas', 'SF Mono', monospace;
}

.cpv-stat-label {
    font-size: 10px;
    color: #64748b;
    margin-top: 2px;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .compute-power-viz-section { padding: 0 16px; }
    .cpv-power-metrics { grid-template-columns: 1fr; gap: 8px; }
    .cpv-stats-bar { grid-template-columns: repeat(2, 1fr); }
    .cpv-canvas-wrap { height: 220px; margin: 0 8px; }
    .cpv-power-value { font-size: 28px; }
    .cpv-title-sub { display: none; }
}
