.blockchain-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.7;
    background: 
        linear-gradient(45deg, 
            rgba(30, 64, 175, 0.05) 25%, 
            transparent 25%,
            transparent 75%, 
            rgba(30, 64, 175, 0.05) 75%
        ),
        linear-gradient(45deg, 
            rgba(30, 64, 175, 0.05) 25%, 
            transparent 25%,
            transparent 75%, 
            rgba(30, 64, 175, 0.05) 75%
        );
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

.app-shell {
    position: relative;
    z-index: 1;
}

.block {
    position: absolute;
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, 
        rgba(30, 64, 175, 0.9),
        rgba(59, 130, 246, 0.9)
    );
    border: 3px solid rgba(147, 196, 253, 0.3);
    border-radius: 8px;
    padding: 10px;
    font-family: 'Courier New', monospace;
    color: #dbeafe;
    font-size: 10px;
    transform-style: preserve-3d;
    animation: blockFloat 15s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    opacity: 0.32;
}

.block-header {
    font-weight: bold;
    color: #bfdbfe;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(147, 197, 253, 0.3);
    padding-bottom: 2px;
}

.block-hash {
    font-size: 8px;
    color: #93c5fd;
    word-break: break-all;
    margin-top: 5px;
}

.chain-link {
    position: absolute;
    width: 30px;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.4),
        rgba(147, 197, 253, 0.4)
    );
    animation: chainPulse 3s infinite alternate;
}

.mining-activity {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #f59e0b;
    border-radius: 50%;
    box-shadow: 0 0 10px #f59e0b;
    animation: miningPulse 1s infinite;
}

.transaction {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #10b981, #047857);
    border-radius: 50%;
    animation: transactionMove 5s linear infinite;
    filter: drop-shadow(0 0 5px #10b981);
}

.validator-node {
    position: absolute;
    width: 15px;
    height: 15px;
    background: conic-gradient(
        from 0deg,
        #8a5cf675,
        #a78bfa65,
        #8a5cf646
    );
    border-radius: 50%;
    animation: nodeSpin 4s linear infinite;
    box-shadow: 0 0 15px #8b5cf6;
}

@keyframes blockFloat {
    0%, 100% {
        transform: translate(0, 0) rotateX(0deg) rotateY(0deg);
    }
    33% {
        transform: translate(20px, -15px) rotateX(10deg) rotateY(10deg);
    }
    66% {
        transform: translate(-15px, 20px) rotateX(-10deg) rotateY(-10deg);
    }
}

@keyframes chainPulse {
    0% {
        opacity: 0.3;
        transform: scaleX(1);
    }
    100% {
        opacity: 1;
        transform: scaleX(1.2);
    }
}

@keyframes miningPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes transactionMove {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(100px, 50px);
    }
}

@keyframes nodeSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.stat-value {
    color: #f59e0b;
    animation: statUpdate 10s infinite;
}

@keyframes statUpdate {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .block,
    .chain-link,
    .mining-activity,
    .transaction,
    .validator-node {
        animation: none;
    }
}
