/* 仅收到 WS 数据后由 JS 加 .is-active */
.withdraw-toast {
    position: fixed;
    left: 16px;
    bottom: 20px;
    z-index: 9999;
    max-width: min(380px, calc(100vw - 32px));
    pointer-events: none;
    display: none;
    visibility: hidden;
}

.withdraw-toast.is-active {
    display: block;
    visibility: visible;
}

.withdraw-toast__bubble {
    display: none;
    align-items: flex-start;
    gap: 12px;
    min-width: 280px;
    max-width: min(380px, calc(100vw - 32px));
    padding: 14px 16px 14px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #10b981;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.06),
        0 12px 32px rgba(15, 23, 42, 0.14);
    color: #0f172a;
    font-size: 14px;
    line-height: 1.4;
    pointer-events: auto;
}

.withdraw-toast__bubble.is-active {
    display: flex;
    animation: withdraw-toast-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.withdraw-toast__bubble.is-active.withdraw-toast__bubble--out {
    animation: withdraw-toast-out 0.28s ease-in forwards;
}

.withdraw-toast__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #34d399 0%, #10b981 100%);
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.withdraw-toast__content {
    flex: 1;
    min-width: 0;
}

.withdraw-toast__headline {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.45;
    color: #334155;
}

.withdraw-toast__name {
    font-weight: 700;
    color: #0f172a;
}

.withdraw-toast__action {
    font-weight: 500;
    color: #64748b;
}

.withdraw-toast__amount {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #059669;
    font-variant-numeric: tabular-nums;
}

.withdraw-toast__usd {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

@keyframes withdraw-toast-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes withdraw-toast-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
}

@media (max-width: 575.98px) {
    .withdraw-toast {
        left: 12px;
        bottom: 14px;
        max-width: calc(100vw - 24px);
    }

    .withdraw-toast__bubble {
        min-width: 0;
        width: calc(100vw - 24px);
    }

    .withdraw-toast__amount {
        font-size: 18px;
    }
}
