/* =============================================================
   Wallet page — transaction history
   ============================================================= */

.wallet-shell {
  /* Use the same two-column 1fr + 340px shell as home; sidebar reuses styles. */
}

.wallet-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 40px;
}

.wallet-head {
  background: var(--paper);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-card);
  padding: 22px 24px;
}
.wallet-title {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  font-variation-settings: 'wdth' 82;
  letter-spacing: -1.2px;
  margin: 0 0 14px;
}
.wallet-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.wallet-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wallet-stat .lbl {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}
.wallet-stat .val {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}
.wallet-stat .val small {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 1px;
}

/* Filter pills */
.wallet-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
  transition: all .15s;
}
.wallet-pill:hover { border-color: var(--ink-3); color: var(--ink); }
.wallet-pill.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.wallet-pill .c {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.7;
}
.wallet-pill.active .c { opacity: 1; }

/* Table */
.wallet-table {
  background: var(--paper);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-card);
  overflow: hidden;
}
.wallet-empty {
  margin: 0;
  padding: 36px 24px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}
.wallet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hair);
}
.wallet-row:last-child { border-bottom: 0; }
.wallet-row-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.wallet-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  flex-shrink: 0;
}
.wallet-kind {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink-2);
  align-self: flex-start;
}
.wallet-kind-signup-bonus,
.wallet-kind-daily-bonus,
.wallet-kind-bet-payout,
.wallet-kind-sub-perk { background: var(--green-veil); color: var(--green); }
.wallet-kind-bet-stake { background: var(--paper-3); color: var(--ink-2); }
.wallet-kind-refund { background: var(--pink-veil); color: var(--pink-2); }
.wallet-kind-admin-adjust { background: #fff7e0; color: #8a5a00; }
.wallet-kind-season-reset { background: var(--paper-3); color: var(--ink-3); }
.wallet-note {
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.wallet-amount {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 800;
}
.wallet-amount.pos { color: var(--green); }
.wallet-amount.neg { color: var(--ink-2); }
.wallet-ts {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

/* Pager */
.wallet-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--hair);
  background: var(--paper-2);
}
.wallet-pager-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.wallet-pager-link:hover { background: var(--paper); }
.wallet-pager-link.disabled {
  color: var(--ink-3);
  pointer-events: none;
  opacity: 0.5;
}
.wallet-pager-info {
  font-size: 12px;
  color: var(--ink-3);
}

.wallet-back {
  margin: 4px 4px 0;
}
.wallet-back a {
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  font-weight: 700;
}
.wallet-back a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .wallet-title { font-size: 26px; }
  .wallet-stats { gap: 18px; }
  .wallet-stat .val { font-size: 20px; }
  .wallet-row { padding: 12px 14px; }
  .wallet-pager { padding: 12px 14px; }
}

@media (max-width: 540px) {
  .wallet-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .wallet-row-right { align-items: flex-start; flex-direction: row; gap: 10px; }
}
