.tx-container {
    max-width: 480px;
    margin: 40px auto;
    font-family: Inter, system-ui, sans-serif;
}

.tx-container h2 {
    margin-bottom: 16px;
    font-size: 1.4rem;
    color: #111;
}

/* Transaction Card */
.tx-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff;
    margin-bottom: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

/* Left side */
.tx-left {
    display: flex;
    flex-direction: column;
}

.tx-title {
    font-weight: 600;
    color: #111;
    font-size: .95rem;
}

.tx-date {
    font-size: .8rem;
    color: #777;
    margin-top: 4px;
}

/* Right side */
.tx-right {
    text-align: right;
}

.tx-amount {
    font-weight: 600;
    font-size: .95rem;
    display: block;
}

.tx-status {
    font-size: .75rem;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 6px;
    display: inline-block;
}

/* Status colors */
.success .tx-status {
    background: #e6f7ee;
    color: #1e9e62;
}

.pending .tx-status {
    background: #fff4e5;
    color: #f29200;
}

.failed .tx-status {
    background: #fdecec;
    color: #e53935;
}
.tx-card:hover {
    transform: translateY(-2px);
    transition: .2s ease;
}
/* Ensure card allows bottom row */
.tx-card {
    flex-wrap: wrap;
}

/* Bottom row fix */
.tx-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed rgba(0,0,0,.12);
    font-size: 0.75rem;
    color: #777;
}

/* Prevent squeezing */
.tx-left,
.tx-right {
    flex: 1;
}

/* Optional: align right cleanly */
.tx-right {
    text-align: right;
}
