
/* SLASH HORROR — GLOBAL DIALOG */

#sh-global-dialog {
    box-sizing: border-box;
    width: min(430px, calc(100vw - 32px));
    max-height: 85vh;
    margin: auto;
    padding: 0;
    overflow: hidden;

    background: #1d2027;
    color: #edf0f3;
    border: 1px solid #46414b;
    border-radius: 12px;

    box-shadow: 0 24px 75px rgba(0,0,0,.75);
    font-family: 'Poppins', sans-serif;
}

#sh-global-dialog::backdrop {
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(3px);
}

#sh-global-dialog[open] {
    animation: sh-dialog-enter .22s ease-out;
}

#sh-global-dialog .shd-panel {
    padding: 22px;
}

#sh-global-dialog .shd-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #353943;
}

#sh-global-dialog .shd-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #e15b70;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

#sh-global-dialog .shd-brand i {
    font-size: 17px;
}

#sh-global-dialog .shd-x {
    background: transparent;
    border: 0;
    color: #a5aab4;
    font-size: 23px;
    cursor: pointer;
}

#sh-global-dialog h2 {
    margin: 20px 0 9px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}

#sh-global-dialog p {
    margin: 0;
    color: #afb5c0;
    font-size: 13px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

#sh-global-dialog .shd-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

#sh-global-dialog .shd-actions button {
    padding: 10px 17px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

#sh-global-dialog .shd-cancel {
    background: #30343c;
    border: 1px solid #454a55;
    color: #e2e5ea;
}

#sh-global-dialog .shd-accept {
    background: #84263a;
    border: 1px solid #a43b51;
    color: #fff;
}

#sh-global-dialog .shd-accept:hover {
    background: #a2354d;
}

#sh-global-dialog button[hidden] {
    display: none !important;
}

#sh-global-dialog button:focus-visible {
    outline: 2px solid #e9667d;
    outline-offset: 3px;
}

@keyframes sh-dialog-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



/* GLOBAL SUCCESS / ERROR ANIMATIONS */

#sh-global-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    z-index: 2147483000;

    display: flex;
    align-items: center;
    gap: 10px;

    box-sizing: border-box;
    max-width: calc(100vw - 32px);
    padding: 12px 18px;

    background: #193626;
    color: #d8f4df;
    border: 1px solid #477d58;
    border-radius: 9px;

    box-shadow: 0 10px 35px rgba(0,0,0,.5);
    font: 600 12px 'Poppins', sans-serif;

    pointer-events: none;
    transform: translateX(-50%);
}

#sh-global-toast[hidden] {
    display: none !important;
}

#sh-global-toast[data-type="error"] {
    background: #391d27;
    color: #ffbecb;
    border-color: #994258;
}

#sh-global-toast[data-type="info"] {
    background: #252c38;
    color: #d4e0f5;
    border-color: #52627d;
}

#sh-global-toast .sh-toast-symbol {
    font-size: 17px;
}

#sh-global-toast.is-visible {
    animation: sh-global-toast-pop .3s ease-out both;
}

@keyframes sh-global-toast-pop {
    from {
        opacity: 0;
        transform: translate(-50%, 14px) scale(.94);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    #sh-global-dialog[open],
    #sh-global-toast.is-visible {
        animation: none;
    }
}
