.blockchain-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    perspective: 1500px;
    overflow: hidden;
    background: linear-gradient(135deg, #0C0019 0%, #1a1a2e 100%);
}

.blockchain-container {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    left: 0;
    top: 0;
}

.blockchain-grid {
    transform-style: preserve-3d;
    animation: rotate 120s linear infinite;
}

.blockchain-row {
    position: absolute;
    display: flex;
    align-items: center;
    transform-style: preserve-3d;
}

.block {
    width: 60px;
    height: 60px;
    margin: 20px;
    position: relative;
    transform-style: preserve-3d;
    animation: pulse 3s ease-in-out infinite;
    animation-delay: calc(var(--pulse) * -3s);
}

.block-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backface-visibility: visible;
    transition: all 0.3s ease;
}

.block-face-front { transform: translateZ(30px); }
.block-face-back { transform: translateZ(-30px) rotateY(180deg); }
.block-face-left { transform: translateX(-30px) rotateY(-90deg); }
.block-face-right { transform: translateX(30px) rotateY(90deg); }
.block-face-top { transform: translateY(-30px) rotateX(90deg); }
.block-face-bottom { transform: translateY(30px) rotateX(-90deg); }

.block.income {
    animation: pulse-income 3s ease-in-out infinite;
    animation-delay: calc(var(--pulse) * -3s);
}

.block.income .block-face {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
}

.connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.1) 100%);
    transform-origin: left center;
    animation: flow 3s linear infinite;
    animation-delay: calc(var(--flow) * -3s);
}

.connection.income {
    background: linear-gradient(90deg, rgba(220,53,69,0.1) 0%, rgba(220,53,69,0.3) 50%, rgba(220,53,69,0.1) 100%);
}

@keyframes rotate {
    0% { transform: rotateX(20deg) rotateY(0); }
    100% { transform: rotateX(20deg) rotateY(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale3d(1, 1, 1); opacity: 0.5; }
    50% { transform: scale3d(1.05, 1.05, 1.05); opacity: 0.8; }
}

@keyframes pulse-income {
    0%, 100% { transform: scale3d(1, 1, 1); opacity: 0.6; }
    50% { transform: scale3d(1.1, 1.1, 1.1); opacity: 1; }
}

@keyframes flow {
    0% { transform: scaleX(0); opacity: 0; }
    50% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 0; }
}

