body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.credit-card-box {
    perspective: 1000px;
    width: 350px;
    height: 220px;
    margin: 0 auto 30px auto;
    position: relative;
    z-index: 1;
}

.col-lg-7 {
    position: relative;
    z-index: 5;
}

.credit-card {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-front,
.card-back {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    padding: 20px;
    color: white;
    background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-front::before,
.card-back::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(30deg);
}

.card-back {
    transform: rotateY(180deg);
    padding: 0;
}

.card-stripe {
    background: #111;
    width: 100%;
    height: 40px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.card-cvv-box {
    background: #fff;
    color: #333;
    padding: 10px;
    margin: 20px;
    border-radius: 5px;
    text-align: right;
    font-size: 14px;
    font-weight: bold;
    font-style: italic;
    position: relative;
    z-index: 2;
}

.card-cvv-label {
    text-align: right;
    font-size: 10px;
    padding-right: 20px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.credit-card.flipped {
    transform: rotateY(180deg);
}

.card-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    max-height: 40px;
    max-width: 65px;
    object-fit: contain;
    z-index: 2;
}

.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #d4af37 0%, #ffdf73 100%);
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
}

.card-number-display {
    font-size: 22px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    height: 30px;
}

.card-details {
    display: flex;
    justify-content: space-between;
}

.card-detail-label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.8;
}

.card-detail-value {
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    min-height: 20px;
}

.form-floating>label {
    padding-left: 1.25rem;
}

.btn-pay {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 12px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-pay:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(17, 153, 142, 0.3);
    color: white;
}

.btn-pay:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.footer-logos img {
    height: 30px;
    margin: 0 10px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.footer-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .credit-card-box {
        width: 100%;
        height: 200px;
    }
}