/* BrandBaba-style membership payment overlay */
#paymentPage.hidden { display:none !important; }
#paymentPage { position:fixed; inset:0; z-index:80; }
@keyframes mcspin { to { transform:rotate(360deg); } }
@keyframes mcscan { 0% { top:0; } 100% { top:100%; } }
@keyframes mcin { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }

.mc-overlay {
    position:fixed; inset:0; z-index:50;
    background:rgba(0,0,0,.5); backdrop-filter:blur(4px);
    display:flex; align-items:center; justify-content:center;
    padding:0; animation:mcin .35s ease;
}
.mc-sheet {
    position:relative; width:100%; max-width:100%;
    background:#f8fafc; overflow:hidden;
    display:flex; flex-direction:column;
    min-height:100%; max-height:100%;
}
.mc-close-desk {
    display:none; position:absolute; right:-40px; top:16px;
    width:32px; height:32px; border-radius:50%; border:0;
    background:rgba(17,23,29,.6); color:#fff; cursor:pointer;
    place-items:center;
}
.mc-left {
    width:100%; background:#eae4f4; border-radius:12px;
    padding:8px; display:flex; flex-direction:column;
    min-height:200px;
}
.mc-left-inner {
    position:relative; display:flex; flex-direction:column; align-items:center;
    text-align:center; padding:20px; border-radius:12px; background:#6930ca; color:#fff;
}
.mc-back-m {
    position:absolute; left:8px; top:12px; border:0; background:transparent; color:#fff;
    padding:8px; border-radius:999px; cursor:pointer;
}
.mc-logo-box {
    width:56px; height:56px; background:#fff; border-radius:14px; padding:3px;
    display:grid; place-items:center; box-shadow:0 8px 20px rgba(0,0,0,.18);
    margin-bottom:4px; overflow:hidden;
}
.mc-logo-box img { width:100%; height:100%; object-fit:cover; border-radius:11px; }
.mc-logo-fallback {
    font-weight:900; font-size:1.05rem; color:#6930ca; letter-spacing:-.02em;
}
.mc-brand-title {
    font-size:1.25rem; font-weight:900; margin:0; color:#fff;
    max-width:100%; padding:0 8px; line-height:1.2;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.mc-verified {
    display:inline-flex; align-items:center; gap:6px; margin-top:6px;
    background:rgba(255,255,255,.1); border:1px solid rgba(34,197,94,.35);
    border-radius:999px; padding:3px 10px; color:#fff; font-size:10px; font-weight:800;
    letter-spacing:.06em; text-transform:uppercase;
}
.mc-verified-dot {
    width:16px; height:16px; border-radius:50%; background:#fff;
    display:grid; place-items:center;
}
.mc-verified-dot svg { width:10px; height:10px; color:#16a34a; }
.mc-amount-box {
    width:100%; margin-top:16px; background:rgba(255,255,255,.1);
    border-radius:16px; padding:12px 16px; backdrop-filter:blur(4px);
}
.mc-amount-box p { margin:0; font-size:1.75rem; font-weight:600; color:#fff; letter-spacing:-.02em; }
.mc-trust-desk { display:none; }
.mc-secured-desk { display:none; }
.mc-right {
    flex:1; overflow:auto; padding:16px; background:#fff;
    border-top:1px solid #efefef; display:flex; flex-direction:column;
}
.mc-pay-for {
    color:#2B2D42; font-size:.875rem; font-weight:500; margin:0 0 12px;
    padding-bottom:12px; border-bottom:1px solid #e5e7eb;
}
.mc-pay-for strong { font-weight:700; }
.mc-desktop-qr { display:none; }
.mc-upi-list { display:flex; flex-direction:column; gap:8px; width:100%; }
.mc-upi-row {
    width:100%; display:flex; align-items:center; justify-content:space-between;
    gap:12px; padding:12px; border-radius:16px; border:2px solid #f3f4f6;
    background:#fff; cursor:pointer; font:inherit; transition:.15s ease;
    -webkit-tap-highlight-color:transparent;
}
.mc-upi-row:hover { border-color:#5935C9; box-shadow:0 4px 14px rgba(89,53,201,.12); }
.mc-upi-row:active { transform:scale(.98); }
.mc-upi-row:disabled { opacity:.7; cursor:wait; }
.mc-upi-row-left { display:flex; align-items:center; gap:16px; min-width:0; }
.mc-upi-row-ico {
    width:40px; height:40px; display:grid; place-items:center; overflow:hidden; flex-shrink:0;
}
.mc-upi-row-ico img { width:100%; height:100%; object-fit:contain; }
.mc-upi-row-name { font-weight:700; color:#1f2937; font-size:17px; }
.mc-upi-paynow {
    background:rgba(89,53,201,.1); color:#5935C9;
    padding:6px 12px; border-radius:8px; font-size:.875rem; font-weight:700;
    transition:background .15s ease, color .15s ease; white-space:nowrap;
}
.mc-upi-row:hover .mc-upi-paynow { background:#5935C9; color:#fff; }
.mc-qr-btn {
    width:100%; margin-top:12px; padding:12px; border-radius:16px;
    border:2px dashed #e5e7eb; background:#f9fafb; cursor:pointer; font:inherit;
    display:flex; align-items:center; justify-content:center; gap:8px;
    font-weight:700; color:#1f2937; font-size:15px; transition:.15s ease;
}
.mc-qr-btn:hover { border-color:#5935C9; background:rgba(89,53,201,.05); }
.mc-qr-btn svg { width:20px; height:20px; color:#5935C9; }
.mc-trust-mobile {
    display:flex; flex-direction:column; gap:16px; padding:16px; margin-top:24px;
    align-items:center; text-align:center;
}
.mc-trust-item {
    display:flex; align-items:center; gap:8px; justify-content:center; max-width:280px;
}
.mc-trust-ico {
    width:32px; height:32px; border-radius:50%; background:rgba(89,53,201,.2);
    display:grid; place-items:center; flex-shrink:0; color:#4f2fb1;
}
.mc-trust-ico svg { width:16px; height:16px; }
.mc-trust-item p { margin:0; font-weight:700; color:#4928ae; font-size:.875rem; }
.mc-trust-item span { display:block; font-size:12px; color:#4928ae; font-weight:500; }
.mc-npci {
    margin-top:auto; padding-top:16px;
    display:flex; align-items:center; justify-content:center; gap:8px;
}
.mc-npci-lock {
    background:#e5e7eb; border-radius:50%; padding:6px;
    display:grid; place-items:center;
}
.mc-npci-lock svg { width:20px; height:20px; color:#4b5563; }
.mc-npci span { color:#6b7280; font-weight:500; font-size:.875rem; }

.mc-qr-popup {
    position:fixed; inset:0; z-index:60; background:rgba(0,0,0,.5); backdrop-filter:blur(4px);
    display:none; align-items:center; justify-content:center; padding:16px;
}
.mc-qr-popup.open { display:flex; }
.mc-qr-popup-card {
    background:#fff; border-radius:16px; width:100%; max-width:24rem;
    overflow:hidden; box-shadow:0 20px 40px rgba(0,0,0,.2);
    max-height:90vh; display:flex; flex-direction:column;
}
.mc-qr-popup-head {
    padding:16px; border-bottom:1px solid #e5e7eb;
    display:flex; justify-content:space-between; align-items:center;
}
.mc-qr-popup-head h3 { margin:0; font-size:1.1rem; font-weight:800; color:#1f2937; }
.mc-qr-popup-head button {
    border:0; background:transparent; padding:8px; border-radius:999px; cursor:pointer; color:#6b7280;
}
.mc-qr-popup-body { padding:16px; display:flex; flex-direction:column; align-items:center; overflow:auto; }
.mc-qr-box {
    width:208px; height:208px; background:#fff; padding:12px; border-radius:16px;
    border:1px solid #e5e7eb; box-shadow:0 5px 25px rgba(0,0,0,.08);
    margin-bottom:12px; position:relative;
}
.mc-qr-box-inner {
    width:100%; height:100%; display:grid; place-items:center; background:#f9fafb; border-radius:12px;
    overflow:hidden;
}
.mc-qr-box-inner canvas,
.mc-qr-box-inner img,
.mc-qr-box img,
.mc-qr-box canvas {
    width:100% !important; height:100% !important; object-fit:contain; border-radius:8px;
    max-width:100%; max-height:100%;
}
.mc-qr-scan {
    position:absolute; top:0; left:0; width:100%; height:2px; background:#5935C9;
    border-radius:16px 16px 0 0; opacity:.7; animation:mcscan 2s linear infinite;
}
.mc-spinner {
    width:40px; height:40px; border-radius:50%;
    border:4px solid #5935C9; border-top-color:transparent;
    animation:mcspin .8s linear infinite;
}
.mc-spinner.sm { width:22px; height:22px; border-width:3px; }
.mc-session-pill {
    background:#fff7ed; width:max-content; margin:0 auto;
    padding:6px 20px; border-radius:999px; border:1px solid #ffedd5;
    display:flex; align-items:center; justify-content:center; gap:8px;
}
.mc-session-pill svg { width:16px; height:16px; color:#ea580c; }
.mc-session-pill span { color:#374151; font-size:.875rem; font-weight:500; }
.mc-session-pill strong { color:#ea580c; font-weight:800; font-variant-numeric:tabular-nums; font-size:1rem; }
.mc-mini-apps { display:flex; gap:12px; margin:8px 0 12px; }
.mc-mini-apps div {
    width:32px; height:32px; border-radius:50%; border:1px solid #e5e7eb;
    display:grid; place-items:center; padding:4px; background:#fff;
}
.mc-mini-apps img { width:100%; height:100%; object-fit:contain; border-radius:50%; }

.mc-toast-wrap {
    position:fixed; top:20px; left:50%; transform:translateX(-50%);
    z-index:100; display:flex; flex-direction:column; gap:8px; width:min(92vw,360px);
}
.mc-toast {
    background:#fff; color:#111; border-radius:14px; padding:14px 16px;
    box-shadow:0 20px 40px rgba(0,0,0,.18); border-left:4px solid #10b981; font-size:.88rem;
}
.mc-toast .mc-toast-title { font-weight:800; margin-bottom:2px; }
.mc-toast .mc-toast-msg { color:#4b5563; font-size:.82rem; }
.mc-toast.error { border-left-color:#ef4444; }
.mc-toast.warning { border-left-color:#f59e0b; }
.mc-toast.hiding { opacity:0; transition:opacity .25s ease; }

@media (min-width:640px) {
    .mc-overlay { padding:16px; }
    .mc-sheet {
        max-width:56rem; border-radius:16px; flex-direction:row;
        min-height:0; max-height:90vh;
    }
    .mc-close-desk { display:grid; }
    .mc-left { width:45%; border-radius:12px; }
    .mc-back-m { display:none; }
    .mc-brand-title { font-size:1.5rem; }
    .mc-amount-box p { font-size:1.9rem; }
    .mc-trust-desk {
        display:flex; flex-direction:column; gap:16px; padding:24px 12px;
    }
    .mc-trust-desk .mc-trust-item { align-items:flex-start; text-align:left; max-width:none; justify-content:flex-start; }
    .mc-trust-desk .mc-trust-item span { font-size:14px; }
    .mc-secured-desk {
        display:flex; justify-content:center; align-items:center; gap:4px;
        color:#504e4f; font-size:12px; margin-top:auto;
    }
    .mc-secured-desk img { height:12px; }
    .mc-upi-wordmark {
        font-weight:800; font-size:11px; letter-spacing:.04em;
        color:#097939; background:#e8f5e9; border-radius:4px; padding:1px 6px;
    }
    .mc-right { border-top:0; border-left:1px solid #efefef; padding:24px; max-height:90vh; }
    .mc-upi-list, .mc-qr-btn, .mc-trust-mobile { display:none; }
    .mc-desktop-qr {
        display:flex; flex-direction:column; align-items:center; width:100%; margin-bottom:16px;
    }
    .mc-desktop-qr h3 { margin:0 0 8px; font-size:1.25rem; font-weight:800; color:#1f2937; }
    .mc-desktop-qr > p { margin:0 0 4px; color:#4b5563; font-weight:500; font-size:.875rem; }
    .mc-qr-box { width:224px; height:224px; }
}
