/* ── Toast global unificado ───────────────────────────────── */
.app-toast-stack {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    pointer-events: none;
    width: max-content;
    max-width: calc(100vw - 2rem);
}

.app-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
    background: #3c3a3a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    max-width: 100%;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.app-toast.is-leaving {
    opacity: 0;
    transform: translateY(8px);
}

.app-toast__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.app-toast__msg {
    flex: 1;
    min-width: 0;
}

.app-toast__action {
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}
.app-toast__action:hover { background: rgba(255, 255, 255, 0.12); }

/* Variantes */
.app-toast--success { background: #16a34a; }
.app-toast--error   { background: #dc2626; }
.app-toast--warning { background: #d97706; }
.app-toast--info    { background: #3c3a3a; }

/* Mobile: subir um pouco para não colidir com sticky-cta bar */
@media (max-width: 1023px) {
    .app-toast-stack {
        bottom: 6rem; /* sticky CTA tem ~72-80px de altura */
        max-width: calc(100vw - 1.5rem);
    }
    .app-toast {
        font-size: 0.9rem;
        padding: 0.55rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-toast {
        transition: opacity 0.15s;
        transform: none;
    }
    .app-toast.is-visible,
    .app-toast.is-leaving {
        transform: none;
    }
}
