@keyframes nm-notify-in {
    from {
        opacity: 0;
        transform: translateX(-18px) translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
}

@keyframes nm-notify-out {
    from {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(-14px) translateY(6px) scale(0.98);
    }
}

@keyframes nm-notify-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

.notyf {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 10020;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    width: min(382px, calc(100vw - 36px));
    pointer-events: none;
    box-sizing: border-box;
}

.notyf__toast {
    --nm-accent: #4c7dff;
    --nm-accent-soft: rgba(76, 125, 255, 0.14);
    --nm-accent-line: rgba(76, 125, 255, 0.34);
    position: relative;
    width: 100%;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(25, 25, 30, 0.98), rgba(18, 18, 22, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
    overflow: hidden;
    pointer-events: auto;
    animation: nm-notify-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.notyf__toast.is-closing {
    animation: nm-notify-out 0.18s ease forwards;
}

.notyf__toast::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), transparent 34%);
}

.notyf__toast--success {
    --nm-accent: #38d996;
    --nm-accent-soft: rgba(56, 217, 150, 0.14);
    --nm-accent-line: rgba(56, 217, 150, 0.34);
}

.notyf__toast--error {
    --nm-accent: #ff667d;
    --nm-accent-soft: rgba(255, 102, 125, 0.14);
    --nm-accent-line: rgba(255, 102, 125, 0.34);
}

.notyf__toast--warning,
.notyf__toast--warn {
    --nm-accent: #f7c44c;
    --nm-accent-soft: rgba(247, 196, 76, 0.14);
    --nm-accent-line: rgba(247, 196, 76, 0.34);
}

.notyf__toast--info {
    --nm-accent: #57c7ff;
    --nm-accent-soft: rgba(87, 199, 255, 0.14);
    --nm-accent-line: rgba(87, 199, 255, 0.34);
}

.notyf__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 14px 11px;
}

.notyf__icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--nm-accent-soft);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--nm-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.notyf__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.notyf__content {
    min-width: 0;
}

.notyf__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notyf__title {
    flex: 1;
    min-width: 0;
    color: #f5f7fb;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding-top: 1px;
}

.notyf__tools {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.notyf__tool {
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: #8d929e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.notyf__tool:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f5f7fb;
}

.notyf__tool svg {
    width: 14px;
    height: 14px;
    display: block;
}

.notyf__message {
    margin-top: 6px;
    color: #c0c4cf;
    font-size: 13px;
    line-height: 1.52;
}

.notyf__message[hidden] {
    display: none !important;
}

.notyf__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.notyf__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: #f5f7fb;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.notyf__action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}

.notyf__meta {
    margin-top: 10px;
    color: #858a96;
    font-size: 11px;
    line-height: 1.35;
}

.notyf__meta strong {
    color: #d9dde7;
    font-weight: 500;
}

.notyf__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.04);
}

.notyf__progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--nm-accent) 0%, color-mix(in srgb, var(--nm-accent) 72%, white 28%) 100%);
    transform-origin: left center;
    animation: nm-notify-progress var(--nm-duration, 5000ms) linear forwards;
}

.notyf__toast.is-paused .notyf__progress-bar {
    animation-play-state: paused;
}

@media only screen and (max-width: 640px) {
    .notyf {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        align-items: stretch;
    }
}
