.lgp-payment-card {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(230px, .75fr);
    overflow: hidden;
    margin: 18px 0;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    color: #0f172a;
    text-align: left;
}

.lgp-payment-main { padding: 26px 28px; }
.lgp-payment-badge { display: inline-flex; border-radius: 999px; background: #dcfce7; color: #15803d; padding: 6px 10px; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.lgp-payment-main h3 { margin: 13px 0 7px; color: #0f172a; font-size: 24px; line-height: 1.2; }
.lgp-payment-main p { margin: 0; color: #64748b; line-height: 1.55; }
.lgp-payment-benefits { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.lgp-payment-benefits li { display: flex; align-items: center; gap: 9px; color: #334155; }
.lgp-payment-benefits li span { display: inline-grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 50%; background: #dcfce7; color: #15803d; font-weight: 800; }

.lgp-payment-total { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #dbe4f0; background: linear-gradient(145deg, #f8fafc, #eff6ff); padding: 25px; }
.lgp-payment-total small { color: #64748b; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.lgp-payment-total strong { margin: 5px 0 16px; color: #0f172a; font-size: 27px; line-height: 1.2; white-space: nowrap; }
.lgp-payment-button { display: block; border-radius: 8px; background: #16a34a; color: #fff !important; padding: 13px 18px; font-weight: 800; text-align: center; text-decoration: none !important; transition: transform .15s ease, background .15s ease; }
.lgp-payment-button:hover { background: #15803d; transform: translateY(-1px); }
.lgp-payment-total > span { margin-top: 9px; color: #64748b; font-size: 12px; text-align: center; }

.lgp-payment-unavailable, .lgp-payment-success { margin: 16px 0; border: 1px solid #dbe4f0; border-radius: 10px; background: #f8fafc; padding: 16px 18px; text-align: center; }
.lgp-payment-unavailable span { color: #64748b; }
.lgp-payment-success { display: flex; align-items: center; justify-content: center; gap: 12px; border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.lgp-payment-success > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #22c55e; color: #fff; font-weight: 800; }

.lgp-modal[hidden] { display: none !important; }
.lgp-modal { position: fixed; z-index: 999999; inset: 0; display: grid; place-items: center; padding: 20px; }
.lgp-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .65); backdrop-filter: blur(3px); }
.lgp-modal-dialog { position: relative; width: min(560px, 100%); height: min(820px, calc(100vh - 40px)); overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 25px 70px rgba(0, 0, 0, .35); }
.lgp-modal-head { display: flex; height: 54px; align-items: center; justify-content: space-between; border-bottom: 1px solid #e2e8f0; padding: 0 16px; }
.lgp-modal-head button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f5f9; color: #334155; font-size: 24px; line-height: 1; cursor: pointer; }
.lgp-modal-dialog iframe { width: 100%; height: calc(100% - 54px); border: 0; background: #f8fafc; }
body.lgp-modal-open { overflow: hidden; }

@media (max-width: 700px) {
    .regwrap.midform .tabmenu {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        overflow: visible;
        gap: 4px;
    }
    .regwrap.midform .tabmenu .tablinks {
        width: 100%;
        min-width: 0;
        padding: 10px 8px;
        line-height: 1.35;
        white-space: normal;
    }
    .lgp-payment-card { grid-template-columns: 1fr; }
    .lgp-payment-main { padding: 22px 20px; }
    .lgp-payment-total { border-top: 1px solid #dbe4f0; border-left: 0; padding: 20px; }
    .lgp-modal { padding: 0; }
    .lgp-modal-dialog { width: 100%; height: 100%; border-radius: 0; }
}
