/* Transaction toast notifications — bottom-right stack */

.tx-notify-stack {
    position: fixed;
    right: var(--space-4);
    bottom: var(--space-4);
    z-index: 1200;
    display: flex;
    flex-direction: column-reverse;
    gap: var(--space-3);
    width: min(22rem, calc(100vw - 2rem));
    pointer-events: none;
}

.tx-notify {
    position: relative;
    pointer-events: auto;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    animation: tx-notify-in 0.28s ease-out;
}

.tx-notify--in {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(34, 197, 94, 0.12);
}

.tx-notify--out {
    border-color: rgba(96, 165, 250, 0.35);
}

.tx-notify__close {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.tx-notify__close:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.tx-notify__head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    padding-right: var(--space-6);
}

.tx-notify__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.tx-notify__symbol {
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

.tx-notify__direction {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tx-notify__direction--in {
    color: var(--success);
}

.tx-notify__direction--out {
    color: var(--info);
}

.tx-notify__address {
    margin: 0 0 var(--space-2);
    font-size: var(--text-sm);
    line-height: 1.4;
}

.tx-notify__label {
    display: block;
    font-weight: 500;
}

.tx-notify__addr {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    margin-top: 0.15rem;
    overflow-wrap: anywhere;
    word-break: break-all;
    white-space: normal;
}

.tx-notify__amount {
    margin: 0;
    font-size: var(--text-base);
    line-height: 1.35;
}

.tx-notify__amount strong {
    font-weight: 600;
}

.tx-notify__fiat {
    font-size: var(--text-sm);
}

@keyframes tx-notify-in {
    from {
        opacity: 0;
        transform: translateY(0.75rem) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .tx-notify-stack {
        right: var(--space-3);
        bottom: var(--space-3);
        width: calc(100vw - 1.5rem);
    }
}
