        .modal-card {
            display: none;
            position: fixed;
            z-index: 999;
            inset: 0;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            justify-content: center;
            align-items: center;
        }

        .modal-card.active {
            display: flex;
        }

        .modal-card-wrap {
            width: 320px;
            height: 200px;
            position: relative;
        }

        .atm-card {
            perspective: 1200px;
            width: 100%;
            height: 100%;
            cursor: pointer;
        }

        .card-inner {
            position: relative;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
        }

        .atm-card.flipped .card-inner {
            transform: rotateY(180deg);
        }

        .card-front,
        .card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 14px;
            backface-visibility: hidden;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .card-front {
            background: linear-gradient(135deg, #028d0a 0%, #03ac0e 55%, #00c853 100%);
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 18px;
            box-sizing: border-box;
        }

        .card-back {
            background: linear-gradient(135deg, #03ac0e 0%, #028d0a 100%);
            transform: rotateY(180deg);
            padding: 18px;
            box-sizing: border-box;
            color: white;
        }

        .atm-top {
            display: flex;
            justify-content: space-between;
        }

        .bank-name {
            font-size: 24px;
            font-weight: bold;
        
        }

        .chip {
            width: 40px;
            height: 28px;
            background: gold;
            border-radius: 4px;
            margin-top: 7px;
        }

        .bank-logo {
            display: flex;
            gap: 4px;
            align-items: center;
        }

        .logo-dot {
            width: 10px;
            height: 10px;
            background: white;
            border-radius: 50%;
        }

        .logo-square {
            width: 14px;
            height: 14px;
            background: white;
        }

        .card-number {
            font-size: 16px;
            letter-spacing: 2px;
            margin-top: 15px;
        }

        .card-meta {
            display: flex;
            justify-content: space-between;
            margin-top: 8px;
        }

        .cardholder {
            margin-top: 6px;
            font-size: 12px;
            letter-spacing: 1px;
        }

        .card-wave {
            width: 100%;
            height: 50px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            transform: translateY(20px);
        }

        .magstripe {
            position: relative;
            left: -18px;
            width: calc(100% + 36px);
            background: black;
            height: 40px;
            margin-top: 10px;
            border-radius: 0;
        }

        .signature-strip {
            background: white;
            height: 30px;
            margin-top: 20px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding-right: 10px;
            border-radius: 4px;
        }

        .cvv {
            background: #eee;
            padding: 2px 6px;
            font-size: 12px;
            font-weight: bold;
            border-radius: 3px;
            color: black;
        }

        .back-text {
            font-size: 4px;
            margin-top: 20px;
            line-height: 1.4;
        }

     
        .close-btn {
            position: absolute;
            top: -30px;
            right: 0;
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            font-size: 24px;
            line-height: 1;
            z-index: 1000;
        }
 

.sr-only {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
input:checked + .block {
    background-color: #10B981;
}
input:checked + .block + .dot {
    transform: translateX(100%);
}