.vdm-os-bell-root {
    --vdm-os-bell-bg: #111827;
    --vdm-os-bell-color: #fff;
    --vdm-os-bell-size: 58px;
    position: fixed;
    top: var(--vdm-os-top, auto);
    right: var(--vdm-os-right, 22px);
    bottom: var(--vdm-os-bottom, 22px);
    left: var(--vdm-os-left, auto);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-sizing: border-box;
}

.vdm-os-bell-root *,
.vdm-os-bell-root *::before,
.vdm-os-bell-root *::after {
    box-sizing: border-box;
}

.vdm-os-launcher-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vdm-os-anchor-right .vdm-os-launcher-row { justify-content: flex-end; }
.vdm-os-anchor-left .vdm-os-launcher-row { flex-direction: row-reverse; justify-content: flex-end; }

.vdm-os-label {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .94);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.vdm-os-bell-button {
    appearance: none;
    -webkit-appearance: none;
    width: var(--vdm-os-bell-size);
    height: var(--vdm-os-bell-size);
    min-width: var(--vdm-os-bell-size);
    min-height: var(--vdm-os-bell-size);
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--vdm-os-bell-bg);
    color: var(--vdm-os-bell-color);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: transform .18s ease, box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
}

.vdm-os-bell-button:hover,
.vdm-os-bell-button:focus-visible {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
    outline: none;
}

.vdm-os-bell-button svg {
    width: 48%;
    height: 48%;
    display: block;
    fill: currentColor;
}

.vdm-os-intro {
    position: absolute;
    width: min(330px, calc(100vw - 34px));
    padding: 15px 42px 15px 16px;
    border-radius: 15px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.98);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    pointer-events: none;
}

.vdm-os-anchor-bottom .vdm-os-intro { bottom: calc(var(--vdm-os-bell-size) + 14px); }
.vdm-os-anchor-top .vdm-os-intro { top: calc(var(--vdm-os-bell-size) + 14px); }
.vdm-os-anchor-right .vdm-os-intro { right: 0; }
.vdm-os-anchor-left .vdm-os-intro { left: 0; }

.vdm-os-intro.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.vdm-os-intro::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
}

.vdm-os-anchor-bottom .vdm-os-intro::after { bottom: -8px; }
.vdm-os-anchor-top .vdm-os-intro::after { top: -8px; }
.vdm-os-anchor-right .vdm-os-intro::after { right: 22px; }
.vdm-os-anchor-left .vdm-os-intro::after { left: 22px; }

.vdm-os-intro-text,
.vdm-os-dialog-message {
    font-size: 15px;
    line-height: 1.55;
}

.vdm-os-intro-text p,
.vdm-os-dialog-message p {
    margin: 0 0 10px;
}

.vdm-os-intro-text p:last-child,
.vdm-os-dialog-message p:last-child {
    margin-bottom: 0;
}

.vdm-os-intro-close,
.vdm-os-dialog-close {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.vdm-os-intro-close {
    position: absolute;
    top: 10px;
    right: 11px;
    font-size: 24px;
}

.vdm-os-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.vdm-os-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.vdm-os-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.vdm-os-dialog {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    max-height: min(680px, calc(100vh - 40px));
    overflow: auto;
    border-radius: 22px;
    background: #fff;
    color: #111827;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
    padding: 30px 26px 26px;
    transform: translateY(12px) scale(.98);
    transition: transform .2s ease;
    -webkit-overflow-scrolling: touch;
}

.vdm-os-modal.is-open .vdm-os-dialog {
    transform: translateY(0) scale(1);
}

.vdm-os-dialog-close {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 29px;
}

.vdm-os-dialog-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vdm-os-bell-bg);
    color: var(--vdm-os-bell-color);
}

.vdm-os-dialog-icon svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
}

.vdm-os-dialog-title {
    margin: 0 0 10px;
    text-align: center;
    font-size: 23px;
    line-height: 1.2;
    color: #111827;
}

.vdm-os-dialog-message {
    text-align: center;
    color: #4b5563;
    margin-bottom: 20px;
}

.vdm-os-customlink-wrap {
    margin-top: 18px;
    min-height: 38px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

body.vdm-os-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .vdm-os-label {
        font-size: 12px;
        padding: 7px 11px;
    }

    .vdm-os-dialog {
        border-radius: 18px;
        padding: 28px 20px 22px;
    }

    .vdm-os-dialog-title {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vdm-os-bell-button,
    .vdm-os-intro,
    .vdm-os-modal,
    .vdm-os-dialog {
        transition: none !important;
    }
}
