#mp-dialog{padding:0;border:1px solid rgba(92,159,255,.28);background:linear-gradient(180deg,#0b1626,#0a1422);color:#edf4ff;border-radius:24px;width:min(620px,calc(100% - 24px));max-height:min(92dvh,860px);overflow:auto;font:inherit;box-shadow:0 24px 90px rgba(0,0,0,.52)}
#mp-dialog::backdrop{background:rgba(5,10,18,.76);backdrop-filter:blur(6px)}
#mp-dialog::-webkit-scrollbar{width:10px}
#mp-dialog::-webkit-scrollbar-track{background:#0a1320;border-radius:999px}
#mp-dialog::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#234867,#3d78b7);border-radius:999px;border:2px solid #0a1320}
#mp-dialog{scrollbar-width:thin;scrollbar-color:#3d78b7 #0a1320}
.mp-shell{padding:26px;display:grid;gap:18px}
.mp-top,.mp-row,.mp-price,.mp-step{display:flex;align-items:center;justify-content:space-between;gap:14px}
.mp-top{color:#94abc5;font-size:12px;letter-spacing:1px}
.mp-top-label{font-weight:700}
#mp-close{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:linear-gradient(180deg,#13243a,#0f1c2e);border:1px solid #335173;color:#dcecff;padding:0}
#mp-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round}
#mp-close:hover{background:linear-gradient(180deg,#17304d,#132740);border-color:#4e79aa}
.mp-hero{text-align:center;display:grid;gap:10px;justify-items:center;padding:4px 10px 2px}
.mp-pill{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:999px;background:rgba(66,118,185,.16);border:1px solid rgba(115,181,255,.26);color:#7fc6ff;font-size:11px;font-weight:800;letter-spacing:.12em}
.mp-hero h2{margin:0;font-size:34px;line-height:1.1;color:#f5f8ff;letter-spacing:-.03em}
.mp-hero p{margin:0;max-width:430px;color:#a7bdd5;font-size:13px;line-height:1.65}
#mp-discount{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 14px;border-radius:999px;background:rgba(23,124,97,.14);border:1px solid rgba(97,201,167,.25);color:#71d8b8;font-size:13px;font-weight:800}
.mp-panel{padding:18px;border:1px solid #2b4360;border-radius:18px;background:linear-gradient(180deg,#0f1c2f,#0d192a)}
.mp-row{font-size:14px}
.mp-row-center{justify-content:center;flex-direction:column;text-align:center;gap:6px}
.mp-row-center label{font-size:13px;color:#9db4cc}
.mp-row-center b{font-size:24px;color:#f5f9ff;line-height:1.15}
.mp-shell input[type=range]{width:100%;accent-color:#5c9fff;margin:14px 0 10px;cursor:pointer}
.mp-marks,.mp-quick{display:flex;justify-content:space-between;gap:8px;color:#9bb2ca;font-size:11px}
.mp-quick{margin-top:12px}
.mp-shell button{font:inherit;color:#dcecff;background:#172b43;border:1px solid #36516c;border-radius:12px;padding:10px 14px;cursor:pointer;transition:transform .15s ease,background .2s ease,border-color .2s ease,box-shadow .2s ease}
.mp-shell button:hover{background:#1c3552;border-color:#4a6f95;transform:translateY(-1px)}
.mp-shell button:focus-visible{outline:2px solid #79b5ff;outline-offset:2px}
.mp-quick button{flex:1;font-size:11px;min-height:42px}
.mp-step{gap:12px;align-items:center}
.mp-step-btn{width:46px;height:46px;min-width:46px;border-radius:14px;font-size:28px;line-height:1;padding:0;background:linear-gradient(180deg,#17304d,#12253b);border-color:#446688;box-shadow:0 10px 24px rgba(0,0,0,.18)}
.mp-step input{flex:1;margin:0}
#mp-extra{display:block;margin-top:10px;text-align:center;color:#91aacc;font-size:12px}
.mp-price{border:1px solid #2b4360;border-radius:18px;padding:18px;background:linear-gradient(180deg,#0e1a2d,#0c1728);justify-content:center;flex-direction:column;text-align:center;gap:8px}
.mp-price-main{display:grid;gap:5px;justify-items:center}
.mp-price strong{display:block;font-size:40px;line-height:1.1;letter-spacing:-.03em}
.mp-price del{color:#8b9db2;font-size:15px;min-height:1em}
.mp-price b{color:#61c9a7;font-size:16px}
#mp-monthly{color:#a0b6cd;font-size:13px}
.mp-email-label{text-align:center;font-size:13px;color:#a6bbd2}
.mp-shell input[type=email]{background:#102033;color:#dcecff;border:1px solid #36516c;padding:13px 14px;border-radius:12px;width:100%;box-sizing:border-box;font:inherit}
.mp-pay{background:linear-gradient(135deg,#4d9fff,#2c6ccf)!important;border-color:#6bb2ff!important;padding:15px 18px!important;font-weight:800;min-height:52px;opacity:.68;cursor:not-allowed}
.mp-center-note{text-align:center;color:#91a7c0;font-size:12px;line-height:1.6}
@media(max-width:520px){.mp-shell{padding:18px;gap:14px}.mp-hero h2{font-size:28px}.mp-row-center b{font-size:20px}.mp-price strong{font-size:31px}.mp-step-btn{width:42px;height:42px;min-width:42px}.mp-quick{flex-direction:column}.mp-quick button{width:100%}}

/* V3: scoped purchase trigger and clipped internal scrollbar */
.plan-card button[data-mostero-purchase]{appearance:none;-webkit-appearance:none;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:44px;padding:12px 18px;margin-top:16px;border:1px solid #477fae;border-radius:10px;background:#215b94;color:#eaf5ff;font:inherit;font-size:13px;font-weight:700;line-height:1.4;cursor:pointer;transition:background .18s,border-color .18s;}
.plan-card button[data-mostero-purchase]:hover{background:#2c70af;border-color:#76b9ed;}
.plan-card button[data-mostero-purchase]:focus-visible{outline:2px solid #82c5ff;outline-offset:3px;}
#mp-dialog{box-sizing:border-box;margin:auto;overflow:hidden;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);color-scheme:dark;}
#mp-dialog .mp-shell{box-sizing:border-box;min-width:0;max-height:calc(100vh - 34px);max-height:calc(100dvh - 34px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#365b82 #0d1928;border-radius:inherit;}
#mp-dialog .mp-shell::-webkit-scrollbar{width:7px;}
#mp-dialog .mp-shell::-webkit-scrollbar-track{background:#0d1928;margin:14px 0;border-radius:9px;}
#mp-dialog .mp-shell::-webkit-scrollbar-thumb{background:#365b82;border:1px solid #0d1928;border-radius:9px;}
#mp-dialog .mp-shell::-webkit-scrollbar-thumb:hover{background:#4b79aa;}
#mp-dialog .mp-hero{padding:0 10px 4px;gap:8px;}
#mp-dialog .mp-step input{min-width:0;}

/* MOSTERO checkout final polish */
#mp-dialog .mp-shell{padding-top:0;gap:14px;scroll-padding-top:72px}
#mp-dialog .mp-top{position:sticky;top:0;z-index:5;min-height:64px;background:#0d1928;margin:0 -8px;padding:8px;justify-content:flex-end;border-bottom:1px solid #253a50}
#mp-dialog #mp-close{flex:none;margin-left:auto}
#mp-dialog #mp-save:empty,#mp-dialog #mp-extra:empty,#mp-dialog #mp-old:empty,#mp-dialog p[role=status]:empty{display:none}
#mp-dialog .mp-pay:not(:disabled){opacity:1;cursor:pointer}
#mp-dialog .mp-pay:disabled{opacity:.55;cursor:not-allowed}
#mp-dialog .mp-shell input[type=range]{accent-color:#69aaff}


/* MOSTERO ui hotfix */
#mp-dialog .mp-shell{padding-top:0!important;gap:14px!important;scroll-padding-top:24px}
#mp-dialog .mp-top{position:sticky;top:0;z-index:4;min-height:auto!important;background:transparent!important;margin:0!important;padding:8px 0 0!important;justify-content:flex-end!important;border-bottom:none!important;box-shadow:none!important}
#mp-dialog .mp-shell::before,#mp-dialog .mp-top::before,#mp-dialog .mp-top::after{display:none!important;content:none!important}
#mp-dialog .mp-shell{outline:none!important;box-shadow:none!important}
#mp-dialog .mp-hero{padding-top:0!important}
#mp-dialog .mp-hero > p{max-width:560px;margin:0 auto!important}
#mp-dialog .mp-email-label{display:none!important}
#mp-dialog #mp-email + .mp-center-note{display:none!important}
#mp-dialog #mp-email{margin-top:2px!important}
#mp-dialog .mp-live-controls{display:grid;gap:12px;margin-top:2px}
#mp-dialog .mp-secondary-action{width:100%;font:inherit;padding:13px 16px;border-radius:12px;border:1px solid #406182;background:#132843;color:#e8f3ff;cursor:pointer;font-weight:650}
#mp-dialog .mp-secondary-action:hover{filter:brightness(1.06)}
#mp-dialog .mp-select-wrap{position:relative}
#mp-dialog .mp-select{width:100%;appearance:none;-webkit-appearance:none;font:inherit;padding:13px 48px 13px 16px;border:1px solid #36516c;border-radius:12px;background-color:#102033;color:#dcecff;background-image:linear-gradient(45deg,transparent 50%,#8fc0ff 50%),linear-gradient(135deg,#8fc0ff 50%,transparent 50%),linear-gradient(to right,rgba(143,192,255,.25),rgba(143,192,255,.25));background-position:calc(100% - 21px) calc(50% - 3px),calc(100% - 15px) calc(50% - 3px),calc(100% - 40px) 50%;background-size:6px 6px,6px 6px,1px 22px;background-repeat:no-repeat}
#mp-dialog .mp-select:focus,#mp-dialog #mp-code:focus,#mp-dialog #mp-inn:focus,#mp-dialog #mp-email:focus{outline:none;border-color:#71afff!important;box-shadow:0 0 0 2px rgba(113,175,255,.18)!important}
#mp-dialog .mp-check{display:flex;align-items:flex-start;gap:10px;color:#dcecff;font-size:14px;line-height:1.35;cursor:pointer}
#mp-dialog .mp-check input{position:absolute;opacity:0;pointer-events:none}
#mp-dialog .mp-check-box{width:18px;height:18px;border-radius:5px;border:1px solid #597a9c;background:#0f1e31;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.04);margin-top:1px}
#mp-dialog .mp-check input:checked + .mp-check-box{background:linear-gradient(180deg,#6aaeff,#4f8fe7);border-color:#78b6ff}
#mp-dialog .mp-check input:checked + .mp-check-box::after{content:'✓';font-size:12px;color:#fff;font-weight:800}
#mp-dialog .mp-check-copy a{color:#8ec6ff;text-decoration:none}
#mp-dialog .mp-check-copy a:hover{text-decoration:underline}
#mp-dialog .mp-inline-status{min-height:22px;margin-top:8px;text-align:center;font-size:14px;color:#9fb4cb}
#mp-dialog .mp-inline-status.is-visible{display:block}
#mp-dialog .mp-inline-status.is-error{color:#ff7b7b;font-weight:600}
#mp-dialog .mp-inline-status.is-success{color:#62d7a1}
#mp-dialog #mp-help-link{display:block;text-align:center;color:#8bc5ff;font-size:13px;text-decoration:none;margin-top:6px}
#mp-dialog #mp-help-link:hover{text-decoration:underline}
#mp-toast-stack{position:fixed;right:18px;bottom:18px;display:grid;gap:10px;z-index:99999;pointer-events:none}
#mp-toast-stack .mp-toast{min-width:280px;max-width:min(92vw,380px);padding:14px 16px;border-radius:14px;border:1px solid #2c4663;background:rgba(12,27,43,.96);color:#edf5ff;box-shadow:0 16px 36px rgba(0,0,0,.34);transform:translateY(10px);opacity:0;transition:.22s ease}
#mp-toast-stack .mp-toast.show{opacity:1;transform:translateY(0)}
#mp-toast-stack .mp-toast-info{border-color:#2d5277}
#mp-toast-stack .mp-toast-success{border-color:rgba(90,209,155,.45);color:#d8ffec}
#mp-toast-stack .mp-toast-error{border-color:rgba(255,107,107,.45);color:#ffd3d3}

/* MOSTERO FORM BLUE V4 */

#mp-dialog #mp-code,
#mp-dialog #mp-inn {
    appearance: none;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    background: #112033;
    border: 1px solid #304963;
    border-radius: 12px;
    padding: 13px 15px;
    color: #eaf3ff;
    font: inherit;
    font-size: 13px;
    transition: border-color .2s, box-shadow .2s;
}

#mp-dialog #mp-code::placeholder,
#mp-dialog #mp-inn::placeholder {
    color: #8195ad;
}

#mp-dialog #mp-code:focus,
#mp-dialog #mp-inn:focus {
    outline: none;
    border-color: #589cff;
    box-shadow: 0 0 0 2px #589cff20 !important;
}

#mp-dialog .mp-select-wrap {
    position: relative;
}

#mp-dialog .mp-select {
    appearance: none !important;
    background-image: none !important;
    background-color: #112033 !important;
    border: 1px solid #304963;
    border-radius: 12px;
    min-height: 48px;
    padding: 13px 44px 13px 15px;
    color: #dceaff;
    color-scheme: dark;
    cursor: pointer;
}

#mp-dialog .mp-select-wrap::after {
    content: "";
    position: absolute;
    right: 19px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #83b9ff;
    border-bottom: 2px solid #83b9ff;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

#mp-dialog .mp-select option {
    background: #112033;
    color: #eaf3ff;
}

#mp-dialog .mp-select:focus {
    outline: none !important;
    border-color: #589cff !important;
    box-shadow: 0 0 0 2px #589cff20 !important;
}

#mp-dialog input[type="range"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    height: 7px !important;
    min-width: 0;
    padding: 0 !important;
    border: none !important;
    border-radius: 20px;
    background: #254a78 !important;
    outline: none;
    cursor: pointer;
    accent-color: #559fff;
}

#mp-dialog input[type="range"]::-webkit-slider-runnable-track {
    height: 7px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(90deg, #326bb0, #254a78);
}

#mp-dialog input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    margin-top: -5px;
    border: 2px solid #9ac8ff;
    border-radius: 50%;
    background: #559fff;
    box-shadow: 0 2px 8px #0004;
}

#mp-dialog input[type="range"]::-moz-range-track {
    height: 7px;
    border: none;
    border-radius: 20px;
    background: #254a78;
}

#mp-dialog input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border: 2px solid #9ac8ff;
    border-radius: 50%;
    background: #559fff;
}

#mp-dialog input[type="range"]:focus-visible {
    outline: 2px solid #80b8ff;
    outline-offset: 5px;
}

#mp-dialog:focus {
    outline: none !important;
}

#mp-dialog [hidden] {
    display: none !important;
}

/* MOSTERO TOAST FIX V5 */

#mp-dialog #mp-toast-stack {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    top: auto !important;
    left: auto !important;
    z-index: 2147483647 !important;
    pointer-events: none;
    filter: none !important;
    backdrop-filter: none !important;
    display: grid;
    gap: 12px;
    width: min(360px, calc(100vw - 48px));
}

#mp-dialog #mp-toast-stack .mp-toast {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    background: #142338 !important;
    backdrop-filter: none !important;
    filter: none !important;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid #36516d;
    border-left: 4px solid #589fff;
    box-shadow: 0 12px 35px #0006;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

#mp-dialog #mp-toast-stack .mp-toast-error {
    border-left-color: #ef6269 !important;
    color: #ffb1b5 !important;
}

#mp-dialog #mp-toast-stack .mp-toast-success {
    border-left-color: #43c99a !important;
    color: #a4f0d2 !important;
}

#mp-dialog .mp-inline-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
}


/* MOSTERO NO CODE CHECKOUT */

#mp-dialog #mp-email-repeat {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    background: #112033;
    border: 1px solid #304963;
    border-radius: 12px;
    padding: 13px 15px;
    color: #eaf3ff;
    font: inherit;
    font-size: 13px;
    transition: border-color .2s, box-shadow .2s;
}

#mp-dialog #mp-email-repeat::placeholder {
    color: #8195ad;
}

#mp-dialog #mp-email-repeat:focus {
    outline: none;
    border-color: #589cff;
    box-shadow: 0 0 0 2px #589cff20;
}
