/* ============ Wallet Premium Card ============ */
.wallet-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }

.wallet-card-premium {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 12px 30px -8px rgba(99,102,241,0.5);
    display: flex; flex-direction: column; gap: 0.75rem;
    position: relative; overflow: hidden;
}
.wallet-card-premium::after {
    content: ''; position: absolute; right: -40px; top: -40px;
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.wallet-card-top { display: flex; justify-content: space-between; align-items: center; }
.wallet-card-label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.btn-eye-light { background: rgba(255,255,255,0.18); border: none; color: white; padding: 0.25rem 0.55rem; border-radius: 6px; cursor: pointer; }
.wallet-card-balance { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.5rem 0; }
.wallet-currency { font-size: 1rem; opacity: 0.9; }
.wallet-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; }
.wallet-card-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.btn-light { background: #fff; color: #4f46e5; font-weight: 700; padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none; font-size: 0.9rem; }
.btn-ghost-light { background: rgba(255,255,255,0.18); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none; font-size: 0.9rem; border: 1px solid rgba(255,255,255,0.35); }

.wallet-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mini-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mini-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; }
.mini-value { font-size: 1.25rem; font-weight: 800; }

.wallet-chart-wrap { background: var(--bg); border-radius: var(--radius); padding: 1rem; }

/* ============ Deposit layout ============ */
.deposit-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; }
.deposit-form .account-section { margin-bottom: 1.25rem; }
.input-group { display: flex; gap: 0.5rem; margin-top: 0.35rem; }
.input-group input { flex: 1; padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 1.1rem; font-weight: 700; }
.input-group select { padding: 0.85rem 0.9rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-weight: 600; }

.gateway-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; }
.gateway-option { cursor: pointer; }
.gateway-option input { position: absolute; opacity: 0; }
.gateway-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.25rem; transition: all 0.2s; background: var(--bg); }
.gateway-option input:checked + .gateway-card { border-color: var(--primary); background: rgba(99,102,241,0.07); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }
.gateway-card strong { font-size: 1rem; }
.gateway-card span { font-size: 0.82rem; color: var(--text-muted); }
.gateway-cur { font-size: 0.72rem; color: var(--primary); font-weight: 700; letter-spacing: 0.05em; margin-top: 0.25rem; }

.tips-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.tips-list li::before { content: '✓ '; color: #10b981; font-weight: 800; }

.deposit-mini-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.deposit-mini-list a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: var(--text); padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }

.deposit-status-header { display: flex; justify-content: space-between; align-items: center; }

/* ============ Filters bar ============ */
.filters-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; align-items: center; }
.filters-bar select, .filters-bar input { padding: 0.5rem 0.7rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 0.88rem; }

/* ============ Transaction rows ============ */
.table-scroll { overflow-x: auto; }
.tx-row td { vertical-align: middle; }
.tx-type-icon { display: inline-flex; width: 26px; height: 26px; border-radius: 8px; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 0.78rem; margin-right: 0.5rem; }
.tx-deposit  { background: #10b981; }
.tx-purchase { background: #ef4444; }
.tx-refund   { background: #0ea5e9; }
.tx-credit   { background: #8b5cf6; }
.tx-debit    { background: #f59e0b; }
.tx-conversion { background: #6366f1; }
.tx-bonus    { background: #ec4899; }
.tx-reversal { background: #64748b; }
.tx-amount { font-weight: 700; white-space: nowrap; }
.tx-credit { color: #059669; }
.tx-debit  { color: #dc2626; }
.tx-currency { color: var(--text-muted); font-weight: 500; font-size: 0.8rem; }
.tx-desc { max-width: 240px; color: var(--text-muted); font-size: 0.88rem; }
.tx-date { white-space: nowrap; color: var(--text-muted); font-size: 0.85rem; }
.tx-ref code { background: var(--bg); padding: 0.15rem 0.45rem; border-radius: 5px; font-size: 0.75rem; }

/* ============ Converter ============ */
.converter { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 0.5rem; }
.converter input, .converter select { padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 0.95rem; }
.arrow { color: var(--text-muted); }
.convert-result { margin-top: 1rem; padding: 1rem; background: var(--bg); border-radius: var(--radius); font-size: 1.1rem; }

/* ============ Pill colors ============ */
.pill-successful { background: rgba(16,185,129,0.15); color: #059669; }
.pill-reversed, .pill-refunded { background: rgba(100,116,139,0.15); color: #475569; }

@media (max-width: 900px) {
    .wallet-hero-grid, .deposit-layout { grid-template-columns: 1fr; }
    .wallet-stats-grid { grid-template-columns: 1fr 1fr; }
}
.embed-header { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; background: var(--bg); border-bottom: 1px solid var(--border); font-size: 0.9rem; font-weight: 600; }
.gateway-iframe { width: 100%; height: 620px; display: block; background: #fff; }