.khl-notice {
    position: fixed;
    inset: 0;
    z-index: 100500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.khl-notice.is-open {
    display: flex;
}

.khl-notice-lock {
    overflow: hidden;
}

.khl-notice__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(3px);
}

.khl-notice__dialog {
    position: relative;
    width: min(390px, 100%);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    color: #0f172a;
    transform: translateY(8px) scale(0.98);
    animation: khlNoticeIn 0.18s ease forwards;
}

@keyframes khlNoticeIn {
    to {
        transform: translateY(0) scale(1);
    }
}

.khl-notice__x {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.khl-notice.is-loading .khl-notice__x {
    display: none;
}

.khl-notice__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 900;
    background: #e0f2fe;
    color: #0369a1;
}

.khl-notice.is-success .khl-notice__icon {
    background: #dcfce7;
    color: #15803d;
}

.khl-notice.is-error .khl-notice__icon {
    background: #ffe4e6;
    color: #e11d48;
}

.khl-notice.is-warning .khl-notice__icon {
    background: #fef3c7;
    color: #b45309;
}

.khl-notice.is-loading .khl-notice__icon {
    color: #2563eb;
    animation: khlNoticePulse 0.9s ease-in-out infinite alternate;
}

@keyframes khlNoticePulse {
    from { transform: scale(0.96); opacity: 0.7; }
    to { transform: scale(1.04); opacity: 1; }
}

.khl-notice__title {
    margin: 0 32px 8px 0;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 850;
    color: #0f172a;
}

.khl-notice__message {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-line;
}

.khl-notice__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.khl-notice__btn {
    min-height: 44px;
    border-radius: 8px;
    padding: 0 16px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
}

.khl-notice__btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}

.khl-notice__btn--ghost {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}

.khl-notice__btn--primary {
    background: #2563eb;
    color: #ffffff;
}

.khl-notice.is-success .khl-notice__btn--primary {
    background: #16a34a;
}

.khl-notice.is-error .khl-notice__btn--primary {
    background: #e11d48;
}

.khl-notice.is-warning .khl-notice__btn--primary {
    background: #e99a00;
}

.khl-notice__btn:disabled {
    cursor: wait;
    opacity: 0.68;
}

@media (max-width: 480px) {
    .khl-notice {
        align-items: flex-end;
        padding: 12px;
    }

    .khl-notice__dialog {
        padding: 22px;
        border-radius: 12px;
    }

    .khl-notice__actions {
        flex-direction: column-reverse;
    }

    .khl-notice__btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .khl-notice__dialog,
    .khl-notice.is-loading .khl-notice__icon {
        animation: none;
    }
}
