.ah-notify-stack{
    position: fixed;
    top: 22px;
    left: 22px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(380px, calc(100vw - 28px));
    pointer-events: none;
}

.ah-notify{
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 42px 1fr 28px;
    gap: 4px 10px;
    align-items: start;
    padding: 14px 12px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow:
        0 18px 40px rgba(15,23,42,.14),
        0 2px 8px rgba(15,23,42,.06);
    backdrop-filter: blur(10px);
    transform: translateY(-12px) scale(.98);
    opacity: 0;
    transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .28s ease;
}

.ah-notify.is-show{
    transform: translateY(0) scale(1);
    opacity: 1;
}

.ah-notify.is-hide{
    transform: translateY(-8px) scale(.98);
    opacity: 0;
}

.ah-notify-icon{
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.ah-notify-body{
    min-width: 0;
    padding-top: 2px;
}

.ah-notify-title{
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.ah-notify-message{
    font-size: 13px;
    line-height: 1.7;
    color: #475569;
    word-break: break-word;
}

.ah-notify-close{
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ah-notify-close:hover{
    background: #f1f5f9;
    color: #334155;
}

.ah-notify-progress{
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(15,23,42,.06);
    overflow: hidden;
}

.ah-notify-progress > span{
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: right center;
    animation-name: ah-notify-progress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.ah-notify[data-type="success"] .ah-notify-icon{
    background: #ecfdf5;
    color: #059669;
}

.ah-notify[data-type="success"] .ah-notify-progress > span{
    background: linear-gradient(90deg,#34d399,#059669);
}

.ah-notify[data-type="error"] .ah-notify-icon{
    background: #fef2f2;
    color: #dc2626;
}

.ah-notify[data-type="error"] .ah-notify-progress > span{
    background: linear-gradient(90deg,#fb7185,#dc2626);
}

.ah-notify[data-type="info"] .ah-notify-icon{
    background: #eff6ff;
    color: #2563eb;
}

.ah-notify[data-type="info"] .ah-notify-progress > span{
    background: linear-gradient(90deg,#60a5fa,#2563eb);
}

.ah-notify[data-type="warning"] .ah-notify-icon{
    background: #fffbeb;
    color: #d97706;
}

.ah-notify[data-type="warning"] .ah-notify-progress > span{
    background: linear-gradient(90deg,#fbbf24,#d97706);
}

@keyframes ah-notify-progress{
    from{ transform: scaleX(1); }
    to{ transform: scaleX(0); }
}

@media (max-width: 640px){
    .ah-notify-stack{
        top: 12px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100vw - 24px);
    }
}
