/* Payment page layout + AI-ish background */
.payment-body {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background:
        radial-gradient(circle at 0% 100%, rgba(244, 128, 5, 0.12), transparent 60%),
        radial-gradient(circle at 100% 0%, rgba(51, 144, 248, 0.12), transparent 55%),
        radial-gradient(circle at 20% 0%, rgba(111, 237, 252, 0.10), transparent 55%);
    background-color: #ffffff;
    background-attachment: fixed;
}

.payment-wrapper {
    padding: 1.25rem;
}

.payment-card {
    max-width: 480px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.96);
}

/* Logo (image inside) */
.payment-logo {
    width: 200px;
    height: 200px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-2));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.payment-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Bank grid: always 3 per row */
.bank-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

/* Bank cards */
.bank-card {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.55rem 0.7rem;
    transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease,
        background-color 0.15s ease;
    width: 100%;
}

.bank-card .extra-small {
    font-size: 0.7rem;
}

body.theme-dark .bank-card {
    background: rgba(20, 20, 20, 0.92);
    border-color: rgba(255, 255, 255, 0.06);
    color: #f4f4f4;
}

.bank-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.bank-card.active {
    border-color: var(--color-accent-2);
    box-shadow: 0 0 0 1px rgba(51, 144, 248, 0.4);
    background: rgba(111, 237, 252, 0.06);
}

/* Bank icon as SVG image */
.bank-icon-img {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(111, 237, 252, 0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Copy toast */
.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: rgba(17, 17, 17, 0.9);
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Attention label for explanation checkbox */
.attention-label {
    color: #d35400;
    font-weight: 600;
    position: relative;
    padding-left: 2px;
}

.attention-label::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #f48005, #f6b708);
    opacity: 0.7;
    border-radius: 999px;
    animation: attentionPulse 1.6s ease-in-out infinite;
}

@keyframes attentionPulse {

    0%,
    100% {
        transform: scaleX(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* Small fix for mobile spacing */
@media (max-width: 575.98px) {
    .payment-card {
        max-width: 100%;
        padding: 1rem 0.9rem !important;
    }

    .payment-wrapper {
        padding: 0.75rem;
    }
}

/* Payment page layout */
.payment-body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Main card */
.payment-card {
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    background: #fff;
    padding: 2rem 1.5rem;
    margin-top: 2rem;

    /* soft AI-style shadow */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

/* Hover effect for desktop (subtle) */
@media (min-width: 768px) {
    .payment-card:hover {
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
        transform: translateY(-3px);
    }
}

/* Desktop responsiveness: add extra breathing space */
@media (min-width: 768px) {
    .payment-wrapper {
        padding-top: 3rem;
    }

    .payment-card {
        padding: 2.5rem 2rem;
        max-width: 520px;
        /* slightly wider */
    }
}

/* Very large screens */
@media (min-width: 1200px) {
    .payment-card {
        max-width: 560px;
        margin-top: 3rem;
    }
}

/* Logo */
.payment-logo {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #fff;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.1);
}

/* Bank cards (same as before) */
.bank-card {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.55rem 0.7rem;
    transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

/* Bank cards now vertical */
.bank-card {
    text-align: center;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: 0.2s ease;
    height: 120px; /* consistent height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bank-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

.bank-card.active {
    border-color: var(--color-accent-2);
    box-shadow: 0 0 0 2px rgba(51, 144, 248, 0.4);
    background: rgba(111, 237, 252, 0.12);
}

/* Logo container */
.bank-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(111, 237, 252, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Bank name text */
.bank-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.35rem;
    color: #222;
}
