/* ===============================
   WRAPPING UI
=============================== */
.ui-wrap-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    z-index: 8000;
    display: none;
}

.ui-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 360px;
    background: #0D0A12;
    color: #fff;
    border-radius: 16px;
    padding: 18px 16px 56px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    z-index: 8100;
}

.ui-wrap-body {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

    .ui-wrap-body::-webkit-scrollbar {
        width: 6px;
    }

    .ui-wrap-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .ui-wrap-body::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 999px;
    }

        .ui-wrap-body::-webkit-scrollbar-thumb:hover {
            background: var(--accent-hover);
        }

.ui-wrap-close {
    position: absolute;
    right: 16px;
    bottom: 14px;
    background: var(--action-btn-solid, #523369);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--action-btn-shadow, 0 10px 22px rgba(82, 51, 105, 0.34));
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
}
