.snackbar {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 40px));
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: min(92vw, 440px);
    width: max-content;
    min-width: 280px;
    padding: 16px 20px 18px;
    border-radius: 16px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.45;
    color: #1a3a3a;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 16px 48px rgba(26, 58, 58, 0.14),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    opacity: 0;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
    pointer-events: none;
    overflow: hidden;
}

.snackbar.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.snackbar-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.snackbar-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.25;
}

.snackbar-message {
    flex: 1;
    text-align: left;
    letter-spacing: -0.01em;
}

.snackbar-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(1);
    border-radius: 0 0 16px 16px;
}

.snackbar.show .snackbar-progress {
    animation: snackbar-progress 3s linear forwards;
}

@keyframes snackbar-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* Success */
.snackbar-success .snackbar-icon {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    color: #0f7490;
}

.snackbar-success .snackbar-progress {
    background: linear-gradient(90deg, #0f7490, #1a9ab5);
}

/* Error */
.snackbar-error .snackbar-icon {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

.snackbar-error .snackbar-progress {
    background: linear-gradient(90deg, #c62828, #e53935);
}

@media (max-width: 480px) {
    .snackbar {
        min-width: unset;
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        bottom: 20px;
        padding: 14px 16px 16px;
        border-radius: 14px;
    }

    .snackbar-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .snackbar-icon svg {
        width: 18px;
        height: 18px;
    }

    .snackbar-message {
        font-size: 0.88rem;
    }
}
