/* --- SCANNER STYLES --- */
:root {
    --bg-color: transparent;
    --card-bg: #0A0F21;
    --card-border: rgba(0, 212, 255, 0.12);
    --neon-green: #00E5A0;
    --neon-red: #FF5C6C;
    --neon-blue: #00D4FF;
    --grid-color: rgba(0, 212, 255, 0.03);
    --font-mono: 'JetBrains Mono', monospace;
    --font-main: 'Inter', sans-serif;
    --font-outfit: 'Outfit', sans-serif;
}

/* --- WINDOW ZONE --- */
.product-showcase {
    width: 100%;
    position: relative;
    background: transparent;
    margin: 0;
    height: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    overflow: hidden;
}

/* --- BACKGROUND DECOR --- */
.grid-floor {
    display: none;
}

/* --- SCAN STATION --- */
.scan-station {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: transparent;
    z-index: 20;
    pointer-events: none;
}


.scan-line-v {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(59, 130, 246, 0.4) 30%, 
        rgba(59, 130, 246, 0.4) 70%, 
        transparent 100%);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    opacity: 0;
}

.scan-station.active .scan-line-v {
    opacity: 1;
}

/* Scanner States */
.scan-station.success .scan-line-v {
    background: linear-gradient(to bottom, transparent, rgba(0, 192, 118, 0.4), transparent);
    box-shadow: 0 0 15px rgba(0, 192, 118, 0.2);
}
.scan-station.error .scan-line-v {
    background: linear-gradient(to bottom, transparent, rgba(255, 59, 105, 0.4), transparent);
    box-shadow: 0 0 15px rgba(255, 59, 105, 0.2);
}

/* --- ACCOUNT CARDS --- */
#pipeline-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
}

.account-card {
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -120px;
    width: 400px;
    height: 240px;
    will-change: transform;
    z-index: 10;
}

@media (max-width: 639px) {
    .account-card {
        width: 240px;
        height: 140px;
        margin-top: -70px;
    }
    .card-body {
        padding: 12px;
        gap: 8px;
    }
    .card-title {
        font-size: 10px;
        margin-bottom: 0px;
    }
    .wallet-id {
        font-size: 8px;
    }
    .technical-timestamp {
        font-size: 5px;
    }
    .stat-label {
        font-size: 7px;
    }
    .stat-value {
        font-size: 10px;
    }
    .card-main-value {
        font-size: 18px;
    }
    .card-badge {
        font-size: 6px;
        padding: 2px 4px;
    }
    .sparkline {
        width: 50px;
        height: 20px;
    }
    .stat-group-bottom {
        padding-top: 6px;
    }
}

.card-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(165deg, #0A0F21 0%, #06080F 100%);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(0, 212, 255, 0.04);
    position: relative;
    overflow: hidden;
}

/* Technical Grain & micro-grid Texture */
.card-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.12'/%3E%3C/svg%3E"),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: auto, 6px 6px, 6px 6px;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

.internal-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.account-card.scanning .internal-scanner {
    opacity: 1;
    animation: scanAcross 1.5s ease-in-out infinite;
}

@keyframes scanAcross {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --- CARD CONTENT HIERARCHY --- */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    font-family: var(--font-outfit);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.wallet-id {
    font-size: 11px;
    color: rgba(0, 212, 255, 0.35);
    font-family: var(--font-main);
}

.technical-timestamp {
    font-size: 7px;
    color: rgba(0, 212, 255, 0.15);
    font-family: var(--font-main);
}

.card-badge {
    font-size: 8px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    background: rgba(0, 212, 255, 0.05);
    color: rgba(0, 212, 255, 0.45);
    border: 1px solid rgba(0, 212, 255, 0.12);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--font-main);
}

.card-stats-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.stat-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-group-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 212, 255, 0.07);
    padding-top: 10px;
}

.stat-label {
    font-size: 9px;
    color: rgba(0, 212, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 800;
    font-family: var(--font-main);
    margin-bottom: 2px;
}

.stat-value {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-family: var(--font-main);
}

.highlight-blue {
    color: var(--neon-blue);
    opacity: 0.9;
}

.visual-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.indicator-label {
    font-size: 6px;
    color: rgba(0, 212, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-main);
}

.card-main-value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    font-family: var(--font-outfit);
    line-height: 1;
}

.sparkline {
    width: 100px;
    height: 40px;
    opacity: 0.5;
}

.sparkline path {
    fill: none;
    stroke: rgba(0, 212, 255, 0.3);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s;
}

/* --- CARD STATES --- */
.account-card.scanning .card-body {
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.12);
}

.account-card.scanning .card-badge {
    color: var(--neon-blue);
    border-color: rgba(0, 212, 255, 0.3);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.account-card.funded .card-body {
    border-color: rgba(0, 229, 160, 0.3);
}

.account-card.funded .card-badge {
    color: var(--neon-green);
    border-color: rgba(0, 229, 160, 0.3);
    text-shadow: 0 0 8px rgba(0, 229, 160, 0.5);
}

.account-card.funded .card-main-value {
    color: var(--neon-green);
}

.account-card.rejected .card-body {
    border-color: rgba(255, 92, 108, 0.3);
    animation: shake 0.4s ease-in-out;
}

.account-card.rejected .card-badge {
    color: var(--neon-red);
    border-color: rgba(255, 92, 108, 0.3);
    text-shadow: 0 0 8px rgba(255, 92, 108, 0.5);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* --- COMPARISON SECTION --- */
.comparison-section h2 {
    font-family: var(--font-main);
}

.comparison-row-label {
    padding: 20px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-outfit);
    color: #fff;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    position: relative;
    letter-spacing: -0.01em;
}

.comparison-column-divider:first-child .comparison-row-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15));
    pointer-events: none;
}

.comparison-column-divider:nth-child(2) .comparison-cell::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.comparison-grid > div:last-child .comparison-cell-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.15));
    pointer-events: none;
}

.comparison-cell {
    padding: 20px 32px;
    font-size: 14px;
    font-family: var(--font-main);
    color: rgba(255, 255, 255, 0.4);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    letter-spacing: -0.01em;
}

.comparison-cell-highlight {
    padding: 20px 32px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-main);
    color: rgba(255, 255, 255, 0.9);
    height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    letter-spacing: -0.01em;
}

.comparison-column-divider {
    position: relative;
}

.comparison-column-divider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15) 10%, rgba(255, 255, 255, 0.15) 90%, transparent);
    pointer-events: none;
}

.comparison-header-divider {
    position: relative;
}

.comparison-column-divider:first-child .comparison-header-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2));
    pointer-events: none;
}

.comparison-column-divider:nth-child(2) .comparison-header-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.comparison-grid > div:last-child .comparison-header-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.2));
    pointer-events: none;
}

.comparison-cell-highlight svg {
    flex-shrink: 0;
}