.notify-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}

.notify-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.notify-modal {
    background: linear-gradient(145deg, #1e1250 0%, #140c30 100%);
    border-radius: 16px;
    border: 1px solid rgba(247, 158, 11, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(247, 158, 11, 0.08);
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.notify-overlay.is-visible .notify-modal {
    transform: scale(1) translateY(0);
}

.notify-accent-bar {
    height: 4px;
    width: 100%;
}

.notify-type-success .notify-accent-bar { background: linear-gradient(90deg, #22c55e, #16a34a); }
.notify-type-error .notify-accent-bar   { background: linear-gradient(90deg, #ef4444, #dc2626); }
.notify-type-warning .notify-accent-bar { background: linear-gradient(90deg, #f79e0b, #ea580c); }
.notify-type-info .notify-accent-bar    { background: linear-gradient(90deg, #3b82f6, #6366f1); }

.notify-body {
    padding: 28px 28px 24px;
    text-align: center;
}

.notify-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
    position: relative;
}

.notify-type-success .notify-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.notify-type-error .notify-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.notify-type-warning .notify-icon {
    background: rgba(247, 158, 11, 0.15);
    color: #f79e0b;
    box-shadow: 0 0 20px rgba(247, 158, 11, 0.2);
}

.notify-type-info .notify-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.notify-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: notify-pulse 1.2s ease-out 0.3s;
}

@keyframes notify-pulse {
    0%   { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; }
}

.notify-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

.notify-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 22px;
    word-break: break-word;
}

.notify-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 32px;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    min-width: 120px;
}

.notify-type-success .notify-btn { background: #22c55e; }
.notify-type-error .notify-btn   { background: #ef4444; }
.notify-type-warning .notify-btn { background: #f79e0b; color: #000; }
.notify-type-info .notify-btn    { background: #3b82f6; }

.notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

.notify-btn:active {
    transform: translateY(0);
}

.notify-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 16px 16px;
    transition: width linear;
}

.notify-type-success .notify-progress { background: #22c55e; }
.notify-type-error .notify-progress   { background: #ef4444; }
.notify-type-warning .notify-progress { background: #f79e0b; }
.notify-type-info .notify-progress    { background: #3b82f6; }

.notify-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    z-index: 2;
}

.notify-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

@media (max-width: 480px) {
    .notify-modal {
        max-width: calc(100vw - 32px);
        border-radius: 12px;
    }

    .notify-body {
        padding: 22px 20px 20px;
    }

    .notify-icon {
        width: 54px;
        height: 54px;
        font-size: 24px;
        margin-bottom: 14px;
    }

    .notify-title {
        font-size: 1.1rem;
    }

    .notify-message {
        font-size: 0.9rem;
    }

    .notify-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

.confirm-modal {
    max-width: 440px;
}

.confirm-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    background: rgba(247, 158, 11, 0.12);
    color: #f79e0b;
    box-shadow: 0 0 24px rgba(247, 158, 11, 0.15);
    position: relative;
}

.confirm-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(247, 158, 11, 0.35);
    opacity: 0;
    animation: notify-pulse 1.2s ease-out 0.3s;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-btn-cancel,
.confirm-btn-ok {
    padding: 10px 28px;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.confirm-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.confirm-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transform: translateY(-1px);
}

.confirm-btn-ok {
    background: linear-gradient(135deg, #f79e0b, #ea580c);
    color: #fff;
    box-shadow: 0 4px 14px rgba(247, 158, 11, 0.3);
}

.confirm-btn-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 158, 11, 0.4);
    filter: brightness(1.1);
}

.confirm-btn-ok:active {
    transform: translateY(0);
}

.confirm-btn-ok.is-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.confirm-btn-ok.is-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.confirm-btn-ok:focus {
    outline: 2px solid rgba(247, 158, 11, 0.5);
    outline-offset: 2px;
}

.confirm-btn-ok.is-danger:focus {
    outline-color: rgba(239, 68, 68, 0.5);
}

@media (max-width: 480px) {
    .confirm-modal {
        max-width: calc(100vw - 32px);
    }

    .confirm-buttons {
        flex-direction: column-reverse;
    }

    .confirm-btn-cancel,
    .confirm-btn-ok {
        width: 100%;
        padding: 12px 20px;
    }

    .confirm-icon-wrap {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
}
