/* =====================================
payment.css
Modern Payment Modal UI
===================================== */

/**************************************
 PAYMENT CONTAINER
**************************************/
.payWrap{
    width:100%;
    max-width:560px;
    margin:auto;

    background:#ffffff;
    border-radius:28px;
    padding:28px;

    border:1px solid #ececf3;

    box-shadow:
        0 24px 60px rgba(15,23,42,.10),
        0 8px 20px rgba(15,23,42,.05);

    animation:pop .25s ease;
}

/**************************************
 HEADER
**************************************/
.payHead{
    text-align:center;
    margin-bottom:26px;
}

.payHead h2{
    margin:0;
    font-size:32px;
    font-weight:900;
    color:#111827;
}

.paySub{
    margin-top:8px;
    color:#64748b;
    font-size:14px;
    font-weight:500;
}

/**************************************
 EVENT SUMMARY
**************************************/
.paySummary{
    background:linear-gradient(135deg,#faf5ff,#f5f3ff);
    border:1px solid #ddd6fe;

    border-radius:22px;
    padding:20px;

    margin-bottom:22px;
}

.sumRow{
    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:12px;
    padding:14px 0;

    border-bottom:1px solid rgba(0,0,0,.06);
}

.sumRow:last-child{
    border-bottom:none;
}

.sumRow span{
    font-size:14px;
    font-weight:600;
    color:#64748b;
}

.sumRow b{
    font-size:15px;
    font-weight:800;
    color:#111827;
    text-align:right;
}

.sumRow .amt{
    font-size:34px;
    font-weight:900;
    color:#6d28d9;
    letter-spacing:-1px;
}

/**************************************
 BANK CARD
**************************************/
.bankCard{
    background:#f8fafc;
    border:1px solid #e2e8f0;

    border-radius:20px;
    padding:18px;

    margin-bottom:22px;
}

.bankTitle{
    font-size:15px;
    font-weight:800;
    color:#111827;
    margin-bottom:14px;
}

.bankRow{
    display:flex;
    justify-content:space-between;

    gap:12px;
    padding:10px 0;

    border-bottom:1px solid #e5e7eb;
}

.bankRow:last-child{
    border-bottom:none;
}

.bankRow span{
    color:#64748b;
    font-size:13px;
    font-weight:600;
}

.bankRow b{
    color:#111827;
    font-size:14px;
    font-weight:800;
    text-align:right;
}

/**************************************
 PAYMENT METHODS
**************************************/
.payMethods{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;

    margin-bottom:24px;
}

.methodBtn{
    background:#ffffff;
    border:2px solid #e5e7eb;

    border-radius:16px;
    min-height:64px;

    font-size:15px;
    font-weight:800;

    cursor:pointer;
    transition:.25s ease;
}

.methodBtn:hover{
    border-color:#8b5cf6;
    transform:translateY(-2px);
}

.methodBtn.active{
    background:#f5f3ff;
    color:#6d28d9;

    border-color:#7c3aed;

    box-shadow:0 0 0 4px rgba(124,58,237,.10);
}

/**************************************
 ACTIONS
**************************************/
.regActions{
    display:flex;
    gap:12px;
    margin-top:8px;
}

.regBtn{
    flex:1;
    min-height:52px;

    border:none;
    border-radius:16px;

    font-size:15px;
    font-weight:800;

    cursor:pointer;
    transition:.25s ease;
}

.regBtn.primary{
    background:linear-gradient(135deg,#6d28d9,#8b5cf6);
    color:#ffffff;

    box-shadow:0 12px 24px rgba(109,40,217,.25);
}

.regBtn.primary:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 30px rgba(109,40,217,.35);
}

.regBtn.light{
    background:#f8fafc;
    border:1px solid #e5e7eb;

    color:#111827;
}

.regBtn.light:hover{
    background:#f1f5f9;
}




/* =====================================
   PAY RESULT CENTER
===================================== */

#payResult{
    width:100%;
    min-height:220px;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;
}

/* =====================================
   LOADING STATE
===================================== */

.loadingText{
    font-weight:700;
    text-align:center;
}

.msg.loading{
    width:100%;
    min-height:220px;

    display:flex;
    flex-direction:column;

    justify-content:center;
    align-items:center;

    text-align:center;
    gap:14px;

    padding:20px;
    margin:0 auto;
}

/* =====================================
   SPINNER
===================================== */

.spin{
    width:48px;
    height:48px;

    display:block;

    border:4px solid #e5e7eb;
    border-top:4px solid #7c3aed;

    border-radius:50%;

    margin:15px auto 0;

    animation:spinAnim .8s linear infinite;

    flex-shrink:0;
}

.spin.large{
    width:58px;
    height:58px;
    border-width:5px;
}

/* =====================================
   LOADING TEXT
===================================== */

.msg.loading div{
    text-align:center;
}

/* =====================================
   PAYMENT SUCCESS
===================================== */

.paymentSuccess{
    width:100%;
    max-width:420px;

    margin:auto;

    padding:24px;

    background:linear-gradient(135deg,#ecfdf5,#dcfce7);
    border:1px solid #bbf7d0;

    border-radius:18px;

    text-align:center;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    gap:10px;
}

.paymentSuccess .icon{
    font-size:42px;
    line-height:1;
}

.paymentSuccess .title{
    font-size:18px;
    font-weight:800;
    color:#166534;
}

/* =====================================
   SPINNER ANIMATION
===================================== */

@keyframes spinAnim{
    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }
}


/**************************************
 SUCCESS STATES
**************************************/
.msg.success{
    background:linear-gradient(135deg,#ecfdf5,#dcfce7);
    border:1px solid #bbf7d0;

    color:#166534;
    padding:18px;

    border-radius:16px;
    text-align:center;

    font-weight:800;
}

.paymentSuccess{
    margin:18px 0;
    padding:18px;

    background:linear-gradient(135deg,#ecfdf5,#dcfce7);
    border:1px solid #bbf7d0;

    border-radius:16px;
    text-align:center;
}

.paymentSuccess .icon{
    font-size:38px;
    font-weight:900;
    color:#16a34a;

    margin-bottom:8px;
}

.paymentSuccess .title{
    font-size:16px;
    font-weight:800;
    color:#166534;
}

/**************************************
 RECEIPT
**************************************/
.receiptModal{
    position:fixed;
    inset:0;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:20px;

    background:rgba(15,23,42,.65);
    backdrop-filter:blur(8px);

    z-index:99999;
}

.receiptCard{
    width:min(500px,100%);

    background:#fff;
    border-radius:24px;

    padding:24px;
    text-align:center;

    animation:pop .25s ease;

    box-shadow:0 25px 60px rgba(15,23,42,.18);
}

.successIcon{
    width:72px;
    height:72px;

    margin:0 auto 16px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:linear-gradient(135deg,#22c55e,#16a34a);

    color:#fff;
    font-size:34px;
    font-weight:900;

    box-shadow:0 10px 24px rgba(34,197,94,.25);
}

.successTitle{
    font-size:24px;
    font-weight:800;
    color:#111827;
    margin-bottom:6px;
}

.successSub{
    font-size:14px;
    color:#6b7280;
}

/**************************************
 POP ANIMATION
**************************************/
@keyframes pop{
    from{opacity:0; transform:scale(.95);}
    to{opacity:1; transform:scale(1);}
}

/**************************************
 MOBILE
**************************************/
@media(max-width:600px){

    .payWrap{
        padding:18px;
    }

    .payMethods{
        grid-template-columns:1fr;
    }

    .regActions{
        flex-direction:column;
    }

    .receiptCard{
        padding:18px;
        border-radius:20px;
    }

    .successIcon{
        width:64px;
        height:64px;
        font-size:30px;
    }
}