:root{--starby-dialog-bg:#0d0719;--starby-dialog-bg2:#160d2d;--starby-dialog-border:rgba(188,145,255,.34);--starby-dialog-purple:#9b5cff;--starby-dialog-purple2:#6d35c7;--starby-dialog-text:#f7f2ff;--starby-dialog-muted:#c9b9df}
.starby-ui-layer{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(3,1,10,.78);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.starby-ui-layer.open{display:flex;animation:starbyLayerIn .18s ease-out}
.starby-ui-card{position:relative;width:min(470px,calc(100vw - 28px));overflow:hidden;border:1px solid var(--starby-dialog-border);border-radius:24px;background:radial-gradient(circle at 85% 0,rgba(155,92,255,.22),transparent 38%),linear-gradient(155deg,var(--starby-dialog-bg2),var(--starby-dialog-bg) 70%);box-shadow:0 32px 100px rgba(0,0,0,.72),0 0 55px rgba(127,65,220,.16);color:var(--starby-dialog-text);padding:28px;animation:starbyCardIn .22s cubic-bezier(.2,.8,.2,1)}
.starby-ui-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,transparent,#b989ff,#7040d8,transparent)}
.starby-ui-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 17px;border:1px solid rgba(196,158,255,.35);border-radius:18px;background:linear-gradient(145deg,rgba(168,104,255,.26),rgba(74,31,140,.22));box-shadow:0 12px 35px rgba(95,42,177,.3);font-size:27px;font-weight:900;color:#d9c1ff}
.starby-ui-card[data-kind="success"] .starby-ui-icon{color:#8ff0c8;background:rgba(40,184,128,.13);border-color:rgba(95,230,174,.28)}
.starby-ui-card[data-kind="danger"] .starby-ui-icon,.starby-ui-card[data-kind="warning"] .starby-ui-icon{color:#ffb8c0;background:rgba(236,70,93,.12);border-color:rgba(255,123,143,.28)}
.starby-ui-title{margin:0;text-align:center;font:800 22px/1.2 Inter,system-ui,sans-serif;letter-spacing:-.02em}
.starby-ui-message{margin:12px 0 0;text-align:center;white-space:pre-line;color:var(--starby-dialog-muted);font:500 14px/1.62 Inter,system-ui,sans-serif}
.starby-ui-actions{display:flex;gap:11px;justify-content:flex-end;margin-top:24px}
.starby-ui-btn{min-height:44px;padding:0 19px;border-radius:13px;border:1px solid rgba(190,155,245,.24);font:800 13px Inter,system-ui,sans-serif;cursor:pointer;transition:.18s ease}
.starby-ui-btn:hover{filter:brightness(1.08)}
.starby-ui-btn.secondary{background:rgba(255,255,255,.055);color:#ddd0ef}
.starby-ui-btn.primary{background:linear-gradient(135deg,var(--starby-dialog-purple),var(--starby-dialog-purple2));color:#fff;box-shadow:0 10px 28px rgba(116,55,205,.35)}
.starby-ui-btn.danger{background:linear-gradient(135deg,#ef4764,#b82145);color:#fff;box-shadow:0 10px 28px rgba(207,39,76,.28)}
.starby-ui-input{width:100%;box-sizing:border-box;margin-top:18px;padding:13px 14px;border:1px solid rgba(185,145,248,.28);border-radius:13px;background:rgba(5,3,12,.72);color:#fff;outline:none;font:600 14px Inter,system-ui,sans-serif}
.starby-ui-input:focus{border-color:#a86cff;box-shadow:0 0 0 3px rgba(155,92,255,.16)}
/* Padronização visual para modais já existentes */
body [role="dialog"],body dialog,body .modal-content,body .admin-modal-content,body [class*="-modal-content"],body [class*="-modal-panel"],body [class*="-modal-card"]{border-color:var(--starby-dialog-border)!important;box-shadow:0 30px 95px rgba(0,0,0,.65),0 0 50px rgba(112,53,205,.12)!important}
body dialog,body .modal-content,body .admin-modal-content{background:radial-gradient(circle at 92% 0,rgba(155,92,255,.14),transparent 34%),linear-gradient(155deg,#160e2c,#090611 72%)!important;color:var(--starby-dialog-text)!important}
body .modal-overlay,body .admin-modal,body [class$="-modal"].open,body [class$="-modal"].active{backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
@keyframes starbyLayerIn{from{opacity:0}to{opacity:1}}@keyframes starbyCardIn{from{opacity:0;transform:translateY(12px) scale(.975)}to{opacity:1;transform:none}}
@media(max-width:560px){.starby-ui-layer{padding:14px}.starby-ui-card{padding:24px 19px;border-radius:20px}.starby-ui-actions{flex-direction:column-reverse}.starby-ui-btn{width:100%}}


/* Compatibilidade com a confirmação antiga do Admin: nunca ocupa o rodapé. */
#starbyConfirmLayer[hidden],#starbyConfirmLayer:not(.open){display:none!important}
#starbyConfirmLayer.open:not([hidden]){
 position:fixed!important;inset:0!important;z-index:2147483000!important;
 display:flex!important;align-items:center;justify-content:center;padding:20px;
 background:rgba(7,3,17,.76);backdrop-filter:blur(6px);box-sizing:border-box;
}
#starbyConfirmLayer .starby-confirm-card{
 width:min(100%,420px);max-height:calc(100dvh - 40px);overflow:auto;
 box-sizing:border-box;padding:26px;border:1px solid #69448e;border-radius:18px;
 background:linear-gradient(145deg,#251535,#171020);color:#eee9ff;
 box-shadow:0 24px 70px #0007;font-family:Inter,system-ui,sans-serif;
}
#starbyConfirmLayer .starby-confirm-icon{color:#d3a9f5;font-size:25px;margin-bottom:12px}
#starbyConfirmLayer h3{font-size:19px;margin:0 0 12px}
#starbyConfirmLayer p{font-size:13px;line-height:1.7;color:#c4afd4;white-space:pre-wrap;overflow-wrap:anywhere}
#starbyConfirmLayer .starby-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
#starbyConfirmLayer button{padding:10px 15px;border:1px solid #80579f;border-radius:9px;background:#332142;color:#eee1fa;cursor:pointer}
#starbyConfirmLayer #starbyConfirmOk{background:#7445a5;color:#fff}
#starbyConfirmLayer button:focus-visible{outline:2px solid #d6afff;outline-offset:3px}
