/* MS-SHELL-V2 skin-90-dialogs — dialogs, warnings, notices. Draft by CERT (Mac-HANDOFF), REDESIGN-20, 15.11.2026.
   Loaded only with cookie msv2=dev. Only looks change: no display:none, no content:, no text changes.
   One anatomy for every family below: light surface, 1px border, radius-lg; title bar = surface + navy title
   (was a dark gradient bar); close = 44px hit area; primary = flat orange; secondary/back = white with border;
   destructive = red. Overlays (rgba backdrops) are left as they are - already one consistent tone.
   Families: scDialog (.scud-*: every alert() on the site + converted confirms), Keysend #sk-action-modal,
   Bundles .br-modal, Dashboard .be-modal/.emp-modal, Packages .pkg-modal, password reset .password-reset-modal,
   Home #sc-vd (practical video missing), #scRospaPop, Bootstrap .modal (frame only), #fcZoomOverlay (close only). */

/* ---------- 1. scDialog: shared alert/confirm (Header.php SC-UI-DIALOG-040) ---------- */
html.msv2 .scud-ov .scud-box{
  background:var(--ms-surface);border:1px solid var(--ms-border);border-radius:var(--ms-radius-lg);
  box-shadow:0 18px 48px rgba(15,36,71,.22);
}
html.msv2 .scud-ov .scud-h{
  background:var(--ms-surface);background-image:none;color:var(--ms-ink);
  border-bottom:1px solid var(--ms-border);padding:14px 12px 14px 20px;
}
html.msv2 .scud-ov .scud-h b{color:var(--ms-ink);font-size:17px;font-weight:700;line-height:1.3}
html.msv2 .scud-ov .scud-x{
  color:var(--ms-muted);min-width:44px;min-height:44px;border-radius:var(--ms-radius);font-size:24px;
}
html.msv2 .scud-ov .scud-x:hover{background:var(--ms-soft);color:var(--ms-ink)}
html.msv2 .scud-ov .scud-b{color:var(--ms-ink);font-size:15px;line-height:1.55}
html.msv2 .scud-ov .scud-f{
  display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;
  padding:14px 20px 18px;border-top:1px solid var(--ms-border);background:var(--ms-surface);
}
html.msv2 .scud-ov .scud-btn{
  min-height:44px;padding:10px 18px;border-radius:var(--ms-radius);font-size:15px;font-weight:700;
}
html.msv2 .scud-ov .scud-yes{background:var(--ms-orange);background-image:none;color:var(--ms-surface);border:1px solid var(--ms-orange)}
html.msv2 .scud-ov .scud-yes:hover{background:var(--ms-orange-ink);border-color:var(--ms-orange-ink)}
html.msv2 .scud-ov .scud-yes.scud-danger{background:var(--ms-red);background-image:none;border-color:var(--ms-red)}
html.msv2 .scud-ov .scud-no{background:var(--ms-surface);color:var(--ms-ink);border:1px solid var(--ms-border)}
html.msv2 .scud-ov .scud-no:hover{background:var(--ms-soft)}
html.msv2 .scud-ov .scud-btn:focus-visible,
html.msv2 .scud-ov .scud-x:focus-visible{outline:2px solid var(--ms-navy);outline-offset:2px}

/* ---------- 2. Keysend confirm #sk-action-modal (inline styles -> !important needed) ---------- */
html.msv2 #sk-action-modal [role="dialog"]{
  background:var(--ms-surface)!important;border:1px solid var(--ms-border)!important;
  border-radius:var(--ms-radius-lg)!important;box-shadow:0 18px 48px rgba(15,36,71,.22)!important;
}
html.msv2 #sk-action-modal [role="dialog"] > div:first-child{
  background:var(--ms-surface)!important;color:var(--ms-ink)!important;border-bottom:1px solid var(--ms-border);
}
html.msv2 #sk-action-modal #sk-action-title{color:var(--ms-ink)!important;font-weight:700}
html.msv2 #sk-action-modal [role="dialog"] > div:first-child button{
  color:var(--ms-muted)!important;min-width:44px;min-height:44px;border-radius:var(--ms-radius);
}
html.msv2 #sk-action-modal [data-sk-cancel]{
  background:var(--ms-surface)!important;color:var(--ms-ink)!important;border:1px solid var(--ms-border)!important;
  border-radius:var(--ms-radius)!important;min-height:44px;font-weight:700;
}
html.msv2 #sk-action-modal #sk-action-confirm{
  background:var(--ms-orange)!important;background-image:none!important;color:var(--ms-surface)!important;
  border-radius:var(--ms-radius)!important;min-height:44px;font-weight:700;
}
html.msv2 #sk-action-modal #sk-action-confirm:hover{background:var(--ms-orange-ink)!important}

/* ---------- 3. Bundles rules .br-modal ---------- */
html.msv2 .br-modal .br-box{
  background:var(--ms-surface);border:1px solid var(--ms-border);border-radius:var(--ms-radius-lg);
  box-shadow:0 18px 48px rgba(15,36,71,.22);
}
html.msv2 .br-modal .br-head{
  background:var(--ms-surface);background-image:none;color:var(--ms-ink);border-bottom:1px solid var(--ms-border);
  font-weight:700;padding:12px 10px 12px 20px;
}
html.msv2 .br-modal .br-head .fa{color:var(--ms-navy)}
html.msv2 .br-modal .br-x{color:var(--ms-muted);min-width:44px;min-height:44px;border-radius:var(--ms-radius)}
html.msv2 .br-modal .br-x:hover{background:var(--ms-soft);color:var(--ms-ink)}
html.msv2 .br-modal .br-body{color:var(--ms-ink)}
html.msv2 .br-modal .br-body h3{color:var(--ms-ink)}
html.msv2 .br-modal .br-actions{flex-wrap:wrap}
html.msv2 .br-modal .br-actions button{min-height:44px;border-radius:var(--ms-radius);font-weight:700}
html.msv2 .br-modal .br-actions .br-go{background:var(--ms-orange);background-image:none;color:var(--ms-surface);border:1px solid var(--ms-orange)}
html.msv2 .br-modal .br-actions .br-go:hover{background:var(--ms-orange-ink)}
html.msv2 .br-modal .br-actions .br-cancel{background:var(--ms-surface);color:var(--ms-ink);border:1px solid var(--ms-border)}

/* ---------- 4. Dashboard .be-modal / .emp-modal ---------- */
html.msv2 .be-modal .be-modal-box,
html.msv2 .emp-modal .emp-modal-box{
  border:1px solid var(--ms-border);border-radius:var(--ms-radius-lg);box-shadow:0 18px 48px rgba(15,36,71,.22);
}
html.msv2 .be-modal .be-modal-bar{
  background:var(--ms-surface);background-image:none;color:var(--ms-ink);border-bottom:1px solid var(--ms-border);
}
html.msv2 .be-modal .be-modal-bar b,
html.msv2 .emp-modal .emp-modal-bar b{color:var(--ms-ink)}
html.msv2 .be-modal .be-modal-bar .emp-modal-close,
html.msv2 .emp-modal .emp-modal-close{
  background:var(--ms-soft);color:var(--ms-ink);min-width:44px;min-height:44px;border-radius:var(--ms-radius);
}
html.msv2 .be-modal .be-modal-bar .emp-modal-close:hover,
html.msv2 .emp-modal .emp-modal-close:hover{background:var(--ms-border)}

/* ---------- 5. Packages .pkg-modal ---------- */
html.msv2 .pkg-modal .pkg-modal-box{border:1px solid var(--ms-border);border-radius:var(--ms-radius-lg)}
html.msv2 .pkg-modal .pkg-modal-head{
  background:var(--ms-surface);color:var(--ms-ink);border-bottom:1px solid var(--ms-border);font-weight:700;
}
html.msv2 .pkg-modal .pkg-modal-head i{color:var(--ms-navy)}
html.msv2 .pkg-modal .pkg-modal-x{
  background:var(--ms-soft);color:var(--ms-ink);width:44px;height:44px;border-radius:var(--ms-radius);
}
html.msv2 .pkg-modal .pkg-modal-x:hover{background:var(--ms-border)}

/* ---------- 6. Password reset sent .password-reset-modal ---------- */
html.msv2 .password-reset-modal .password-reset-card{
  border:1px solid var(--ms-border);border-radius:var(--ms-radius-lg);box-shadow:0 18px 48px rgba(15,36,71,.22);
}
html.msv2 .password-reset-modal .password-reset-card::before{background:var(--ms-navy);background-image:none;border-radius:var(--ms-radius-lg) var(--ms-radius-lg) 0 0}
html.msv2 .password-reset-modal .password-reset-icon{background:var(--ms-orange-soft);background-image:none;color:var(--ms-orange)}
html.msv2 .password-reset-modal .password-reset-check{background:var(--ms-green)}
html.msv2 .password-reset-modal .password-reset-close{width:44px;height:44px;line-height:44px;top:8px;right:8px;background:var(--ms-soft);color:var(--ms-muted)}
html.msv2 .password-reset-modal .password-reset-content h2{color:var(--ms-ink)}
html.msv2 .password-reset-modal .password-reset-content p{color:var(--ms-muted)}
html.msv2 .password-reset-modal .password-reset-button{
  background:var(--ms-orange);background-image:none;border-radius:var(--ms-radius);min-height:44px;
  letter-spacing:.02em;box-shadow:none;transform:none;
}
html.msv2 .password-reset-modal .password-reset-button:hover{background:var(--ms-orange-ink);background-image:none;box-shadow:none;transform:none}
html.msv2 .password-reset-modal .password-reset-note{color:var(--ms-muted)}

/* ---------- 7. Home #sc-vd «practical video is still missing» (inline styles) ---------- */
html.msv2 #sc-vd > div{
  border:1px solid var(--ms-border)!important;border-radius:var(--ms-radius-lg)!important;
  box-shadow:0 18px 48px rgba(15,36,71,.22)!important;
}
html.msv2 #sc-vd > div > div:first-child{background:var(--ms-orange)!important}
html.msv2 #sc-vd > div > div:nth-child(2) > div:first-child{color:var(--ms-ink)!important}
html.msv2 #sc-vd > div > div:nth-child(2) p{color:var(--ms-muted)!important}
html.msv2 #sc-vd > div > div:nth-child(2) a{
  background:var(--ms-orange)!important;border-radius:var(--ms-radius)!important;min-height:44px;
  display:flex!important;align-items:center;justify-content:center;
}
html.msv2 #sc-vd > div > div:nth-child(2) a:hover{background:var(--ms-orange-ink)!important}
/* «Remind me later» = secondary/back action: white button with border instead of an underlined grey link */
html.msv2 #sc-vd > div > div:last-child > button{
  background:var(--ms-surface)!important;border:1px solid var(--ms-border)!important;border-radius:var(--ms-radius)!important;
  color:var(--ms-ink)!important;text-decoration:none!important;min-height:44px;padding:10px 18px!important;width:100%;
}
html.msv2 #sc-vd > div > div:last-child > button:hover{background:var(--ms-soft)!important}

/* ---------- 8. #scRospaPop (inline styles): dark bar -> surface ---------- */
html.msv2 #scRospaPop{border:1px solid var(--ms-border)!important;border-radius:var(--ms-radius-lg)!important}
html.msv2 #scRospaPop > div:first-child{background:var(--ms-surface)!important;border-bottom:1px solid var(--ms-border)}
html.msv2 #scRospaPop [data-rp-close]{
  background:var(--ms-soft)!important;color:var(--ms-ink)!important;width:44px!important;height:44px!important;
}

/* ---------- 9. Bootstrap .modal — frame only (header colours stay: Stripe modal = CHECKOUT zone paints its own) ---------- */
html.msv2 .modal .modal-content{
  border:1px solid var(--ms-border);border-radius:var(--ms-radius-lg);box-shadow:0 18px 48px rgba(15,36,71,.22);overflow:hidden;
}
html.msv2 .modal .modal-footer{border-top:1px solid var(--ms-border);display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
html.msv2 .modal .modal-footer > *{margin:0}
html.msv2 .modal .modal-footer .btn{min-height:44px}
html.msv2 .modal .modal-header .close{min-width:44px;min-height:44px;opacity:.7}

/* ---------- 10. #fcZoomOverlay (image zoom) — close target only ---------- */
html.msv2 #fcZoomOverlay .fc-zoom-close{width:44px;height:44px;line-height:42px}

/* ---------- phones: stack actions full width, primary first visually last in DOM order kept ---------- */
@media (max-width:480px){
  html.msv2 .scud-ov{padding:12px}
  html.msv2 .scud-ov .scud-box{width:100%}
  html.msv2 .scud-ov .scud-f{flex-direction:column-reverse}
  html.msv2 .scud-ov .scud-f .scud-btn{width:100%}
  html.msv2 .br-modal .br-actions{flex-direction:column-reverse}
  html.msv2 .br-modal .br-actions button{width:100%}
  html.msv2 #sk-action-modal [role="dialog"] > div:last-child > div:last-child{flex-direction:column-reverse}
  html.msv2 #sk-action-modal [data-sk-cancel],
  html.msv2 #sk-action-modal #sk-action-confirm{width:100%}
  html.msv2 .modal .modal-footer{flex-direction:column-reverse}
  html.msv2 .modal .modal-footer .btn{width:100%}
}
