* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: radial-gradient(circle at top right, #1a1a1a, #000000);
            color: #fff;
            font-family: 'Inter', sans-serif;
            min-height: 100vh;
            overflow-x: hidden;
        }

        .perspective-1000 { perspective: 1000px; }

        .ops-stub {
            border: 2px dashed rgba(255,255,255,0.03);
            border-radius: 2.5rem;
            padding: 3rem 1rem;
            text-align: center;
        }

        #order-modal, #success-modal, #tariffs-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.75);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
        }

        .modal-content {
            background: #0a0a0a;
            border: 1px solid #1f1f1f;
            width: 90%;
            max-width: 450px;
            padding: 2rem 1.8rem;
            border-radius: 2rem;
            box-shadow: 0 30px 50px rgba(0,0,0,0.6);
        }

        input, select, textarea {
            background: #111 !important;
            border: 1px solid #2a2a2a !important;
            color: #ffffff !important;
            width: 100%;
            padding: 12px 16px !important;
            border-radius: 1.2rem;
            font-family: 'Inter', sans-serif;
            outline: none;
            transition: all 0.2s;
        }

        input:focus, select:focus, textarea:focus {
            border-color: #ffffff30 !important;
            background: #161616 !important;
        }

        #card-box {
            width: 100%;
            max-width: 320px;
            margin: 0 auto;
            perspective: 1000px;
            cursor: pointer;
        }

        .k-card {
            width: 100%;
            aspect-ratio: 1.58 / 1;
            perspective: 1000px;
        }

        .k-card-inner {
            position: relative;
            width: 100%;
            height: 100%;
            text-align: center;
            transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
            transform-style: preserve-3d;
            border-radius: 22px;
        }

        #card-box:hover .k-card-inner {
            transform: rotateY(180deg);
        }

        .k-card-front, .k-card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 24px;
            background: rgba(20, 20, 30, 0.65);
            backdrop-filter: blur(18px);
            border: 1px solid rgba(255,255,255,0.12);
            box-shadow: 0 20px 35px -12px rgba(0,0,0,0.5);
        }

        .k-card-front {
            background: linear-gradient(135deg, rgba(30,30,40,0.9), rgba(10,10,15,0.95));
        }

        .k-card-back {
            transform: rotateY(180deg);
            background: linear-gradient(135deg, #0e0e12, #030303);
        }

        textarea { resize: none; }
        input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.2) !important; }

        select {
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.6)' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E") !important;
            background-repeat: no-repeat !important;
            background-position: right 16px center !important;
            padding-right: 40px !important;
        }

        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
        input[type=number] { -moz-appearance: textfield; }

        .status-pulse { animation: pulse 2s infinite; }
        @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
        .hidden { display: none !important; }

        #profile-menu {
            box-shadow: 0 20px 35px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
            animation: fadeIn 0.2s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        button:active { transform: scale(0.97); transition: 0.05s; }
        .transition-fast { transition: all 0.2s ease; }

.card-switch-container {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .card-switch-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        grid-template-columns: none; 
    }
    #card-box {
        order: -1;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .card-arrow, #new-card-btn {
        flex: 0 1 auto;
        min-width: 50px;
    }
}

.card-arrow {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    color: white;
    backdrop-filter: blur(4px);
}

.card-arrow:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.05);
}

.card-arrow:active {
    transform: scale(0.95);
}
.salary-card .k-card-front {
    background: linear-gradient(135deg, #ffffff, #f0f0f0) !important;
    border-color: #cccccc !important;
}
.salary-card .k-card-front .card-content p,
.salary-card .k-card-front .card-content i,
.salary-card .k-card-front .text-white\/80,
.salary-card .k-card-front .text-white\/20,
.salary-card .k-card-front .opacity-40 {
    color: #1a1a1a !important;
}
.salary-card .k-card-back {
    background: #e6e6e6 !important;
    border-color: #bbb !important;
}
.salary-card .k-card-back .bg-white\/90 {
    background: #333 !important;
    color: white !important;
}
.salary-card .k-card-back #card-cvc {
    background: #333 !important;
    color: white !important;
}

.currency-card .k-card-front {
    background: linear-gradient(135deg, #1e3c72, #2b4c7c) !important;
    border-color: #ffd966 !important;
}
.currency-card .k-card-front .text-white\/80,
.currency-card .k-card-front .text-white\/20,
.currency-card .k-card-front .opacity-40 {
    color: #ffe6b3 !important;
}
.currency-card .k-card-back {
    background: #0f2b4f !important;
}

#card-box {
    transition: transform 0.2s ease-out;
}

@keyframes cardSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px) rotate(2deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0);
    }
}

@keyframes cardSlideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px) rotate(-2deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0);
    }
}

.card-animate-left {
    animation: cardSlideInLeft 0.3s ease-out forwards;
}

.card-animate-right {
    animation: cardSlideInRight 0.3s ease-out forwards;
}

#new-card-btn {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

#new-card-btn:hover {
    background: rgba(34, 197, 94, 0.3);
    transform: scale(1.05);
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}
#new-card-btn.visible {
    animation: pulse-green 1.5s infinite;
}

/* Модалка верифікації */
#verification-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
}

.verification-content {
    background: linear-gradient(135deg, #0a0a0a, #0f0f1a);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 2rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: pulse-gold 1.5s infinite;
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
}

.verification-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.verification-icon i {
    font-size: 2rem;
    color: #ffd700;
}

.btn-verify {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    font-weight: 900;
    padding: 14px 28px;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    transition: all 0.2s;
}

.btn-verify:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.card-verification-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffd700;
    color: #000;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 10;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
#credit-value, #pending-label, .grid-cols-2, .ops-stub, #prev-card, #next-card, #card-box {
    transition: opacity 0.3s ease, display 0.3s ease;
}

#no-cards-message {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#new-card-btn {
    transition: all 0.2s ease;
}

#qr-code-container {
    background: white;
    border-radius: 20px;
    padding: 8px;
    display: inline-flex;
    margin: 0 auto;
}

#qr-canvas, #qr-image {
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#qr-spinner {
    background: white;
    border-radius: 16px;
}
