/* ==========================================
   TOAST - Success style
   Clean, recognizably "success" green look
========================================== */

.toast {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: min(380px, calc(100vw - 2rem));
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.18);
    z-index: 9999;
    animation: toast-slide-in 0.28s cubic-bezier(.2,.9,.2,1);
    transition: opacity 0.25s ease, transform 0.25s ease;
    position: fixed;
}

.toast--success {
    border-left: 6px solid rgba(255,255,255,0.12);
}

/* make room for absolute close */
.toast {
    position: fixed;
}

/* Icon */

/* Content */
.toast__content {
    flex: 1;
    padding: 0.1rem 0.25rem 0.1rem 0.25rem;
}

.toast__content h4 {
    margin: 0 0 2px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
}

.toast__content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
    color: rgba(255,255,255,0.95);
}

/* Close Button */

/* Premium surface tweak */
.toast {
    background: linear-gradient(180deg, rgba(16,185,129,0.98), rgba(5,150,105,0.96));
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
}

/* subtle text refinement */
.toast__content h4 { letter-spacing: 0.2px; }


/* Hide State */
.toast--hide { opacity: 0; transform: translateX(28px); }

/* Animation */
@keyframes toast-slide-in {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Mobile */
@media (max-width: 576px) {
    .toast { top: 0.75rem; right: 0.75rem; left: 0.75rem; width: auto; }
    .toast__content { padding-right: 3rem; }
}
