.golden-toast-region {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(24rem, calc(100vw - 2rem));
    pointer-events: none;
}

.golden-toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 0.85rem;
    padding: 1rem 1rem 0.95rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--accent, var(--primary, #111827));
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-primary, #0f172a);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.golden-toast.is-hiding {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
}

.golden-toast--success {
    border-left-color: #16a34a;
}

.golden-toast--error {
    border-left-color: #dc2626;
}

.golden-toast--info {
    border-left-color: var(--accent, var(--primary, #2563eb));
}

.golden-toast__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.golden-toast--success .golden-toast__icon {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.golden-toast--error .golden-toast__icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.golden-toast--info .golden-toast__icon {
    background: linear-gradient(
        135deg,
        var(--accent, #2563eb),
        var(--primary, #1d4ed8)
    );
}

.golden-toast__title {
    font-size: 0.97rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.18rem;
}

.golden-toast__message {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary, #475569);
}

.golden-toast__close {
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: rgba(15, 23, 42, 0.55);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.golden-toast__close:hover,
.golden-toast__close:focus-visible {
    background: rgba(15, 23, 42, 0.08);
    color: rgba(15, 23, 42, 0.82);
    outline: none;
}

button[aria-busy="true"] {
    cursor: wait;
    opacity: 0.92;
}

@media (max-width: 640px) {
    .golden-toast-region {
        left: 1rem;
        right: 1rem;
        width: auto;
    }
}
