.vault-scanner-section {
    position: relative;
    background: #000000;
    min-height: 400px;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

.vault-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1d1729; 
}

.vault-card-stream {
    position: absolute;
    width: 100vw;
    height: 180px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.vault-card-line {
    display: flex;
    align-items: center;
    gap: 60px;
    white-space: nowrap;
    cursor: grab;
    user-select: none;
    will-change: transform;
}

.vault-card-line:active,
.vault-card-line.dragging {
    cursor: grabbing;
}

.vault-card-wrapper {
    position: relative;
    width: 400px;
    height: 250px;
    flex-shrink: 0;
}

.vault-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
}

.vault-card-normal {
    background: transparent;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    color: white;
    z-index: 2;
    position: relative;
    overflow: hidden;
    clip-path: inset(0 0 0 var(--clip-right, 0%));
}

.vault-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.vault-card-ascii {
    background: transparent;
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    clip-path: inset(0 calc(100% - var(--clip-left, 0%)) 0 0);
}

.vault-ascii-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 13px;
    overflow: hidden;
    white-space: pre;
    animation: vaultGlitch 0.1s infinite linear alternate-reverse;
    margin: 0;
    padding: 0;
    text-align: left;
    vertical-align: top;
    box-sizing: border-box;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.4) 80%, rgba(0,0,0,0.2) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.4) 80%, rgba(0,0,0,0.2) 100%);
}

@keyframes vaultGlitch {
    0% { opacity: 1; }
    15% { opacity: 0.9; }
    16% { opacity: 1; }
    49% { opacity: 0.8; }
    50% { opacity: 1; }
    99% { opacity: 0.9; }
    100% { opacity: 1; }
}

.vault-scan-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
    animation: vaultScanEffect 0.6s ease-out;
    pointer-events: none;
    z-index: 15;
}

@media only screen and (max-width: 576px) {
    .vault-scanner-section,
    .vault-container {
        min-height: 300px;
        height: 300px;
    }
    
    .vault-card-wrapper,
    .vault-card,
    .vault-card-normal,
    .vault-card-ascii {
        width: 300px;
        height: 188px;
    }
    .vault-card-line {
        gap: 20px;
    }
}

@keyframes vaultScanEffect {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

#vaultParticleCanvas {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100vw;
    height: 250px;
    z-index: 0;
    pointer-events: none;
}

#vaultScannerCanvas {
    position: absolute;
    top: 50%;
    left: -3px;
    transform: translateY(-50%);
    width: 100vw;
    height: 300px;
    z-index: 15;
    pointer-events: none;
}
