/* ══════════════════════════════════════════════════════════════════
   referral.css — Salmart Referral Page
   Aesthetic: Premium Nigerian Fintech (Piggyvest/Cowrywise-tier)
   Brand: #00c566 | Font: Plus Jakarta Sans
   ══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #00c566;
  --green-dark:   #009e52;
  --green-deeper: #007a3d;
  --green-light:  #edfff6;
  --green-mid:    rgba(0,197,102,.12);
  --gold:         #f59e0b;
  --teal:         #0ea5e9;
  --bg:           #f5f7fa;
  --surface:      #ffffff;
  --border:       #eaeef3;
  --border-mid:   #d8dee8;
  --text:         #0d1b2a;
  --text-2:       #4b5a6a;
  --text-3:       #9aaab8;
  --radius:       18px;
  --radius-sm:    12px;
  --radius-xs:    8px;
  --shadow:       0 1px 8px rgba(13,27,42,.06);
  --shadow-md:    0 6px 28px rgba(13,27,42,.10);
  --shadow-card:  0 2px 16px rgba(13,27,42,.08);
  --font:         'Plus Jakarta Sans', sans-serif;
}

html { font-size: 16px; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── PAGE LOADER ────────────────────────────────────────────────── */
.page-loader {
  position: fixed; inset: 0;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity .4s, visibility .4s;
}
.page-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
  animation: spin 1s linear infinite;
  transform-origin: 20px 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST ──────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #0d1b2a;
  color: #fff;
  padding: 11px 22px;
  border-radius: 50px;
  font-size: .83rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none;
  transition: all .28s cubic-bezier(.34,1.56,.64,1);
  z-index: 9000;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.toast i { color: var(--green); font-size: .9rem; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── MODAL ──────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(13,27,42,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 800;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  display: flex; align-items: flex-end;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal-sheet {
  background: var(--surface);
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 28px 28px 0 0;
  padding: 14px 24px 44px;
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.32,1,.4,1);
  box-shadow: 0 -4px 40px rgba(0,0,0,.12);
}
.modal-backdrop.open .modal-sheet { transform: translateY(0); }

.modal-handle {
  width: 36px; height: 4px;
  background: var(--border-mid);
  border-radius: 4px;
  margin: 0 auto 22px;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.modal-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: none; cursor: pointer;
  font-size: .85rem; color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: var(--border); }

.modal-balance-hint {
  font-size: .85rem; color: var(--text-2);
  margin-bottom: 18px;
  background: var(--green-light);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  border: 1px solid rgba(0,197,102,.15);
}
.modal-balance-hint strong { color: var(--green); font-weight: 800; }

.input-group { margin-bottom: 14px; }
.input-group label {
  display: block;
  font-size: .8rem; font-weight: 700;
  color: var(--text-2); margin-bottom: 8px;
  letter-spacing: .01em;
}
.input-wrap {
  display: flex; align-items: center;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.input-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,197,102,.1);
}
.input-prefix {
  padding: 0 14px;
  font-size: 1rem; font-weight: 800;
  color: var(--text-2);
  background: var(--bg);
  height: 50px; display: flex; align-items: center;
  border-right: 1.5px solid var(--border-mid);
}
.input-wrap input {
  flex: 1; padding: 0 14px;
  height: 50px; border: none; outline: none;
  font-family: var(--font); font-size: 1rem;
  font-weight: 700; color: var(--text);
  background: transparent;
}
.input-hint { font-size: .74rem; color: var(--text-3); margin-top: 6px; }

.bank-preview {
  display: flex; align-items: center; gap: 12px;
  background: var(--green-light);
  border: 1px solid rgba(0,197,102,.2);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin-bottom: 20px;
}
.bank-preview .bank-icon-wrap {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(0,197,102,.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bank-preview i { color: var(--green); font-size: 1rem; }
.bank-preview div { display: flex; flex-direction: column; gap: 2px; }
.bank-preview span:first-child { font-weight: 800; font-size: .88rem; color: var(--text); }
.bank-preview span:last-child { font-size: .78rem; color: var(--text-2); }

.no-bank-warn {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff8f0;
  border: 1px solid #fde8ca;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin-bottom: 20px;
  font-size: .83rem; color: #854d0e;
  line-height: 1.5;
}
.no-bank-warn a { color: var(--green); font-weight: 700; text-decoration: none; }
.no-bank-warn i { color: #f59e0b; margin-top: 1px; flex-shrink: 0; }

.btn-withdraw-confirm {
  width: 100%; padding: 15px;
  background: var(--green);
  color: #fff; border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .95rem; font-weight: 800;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .1s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,197,102,.3);
  letter-spacing: .01em;
}
.btn-withdraw-confirm:active { transform: scale(.98); }
.btn-withdraw-confirm:hover { background: var(--green-dark); box-shadow: 0 6px 20px rgba(0,197,102,.35); }
.btn-withdraw-confirm:disabled {
  background: var(--border); color: var(--text-3);
  cursor: not-allowed; box-shadow: none;
}

/* Share modal */
.share-subtitle {
  font-size: .86rem; color: var(--text-2); margin-bottom: 18px; line-height: 1.6;
}
.link-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin-bottom: 20px;
}
.link-box span {
  flex: 1; font-size: .8rem; color: var(--text-2); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.copy-btn {
  background: var(--green); color: #fff;
  border: none; border-radius: var(--radius-xs);
  width: 36px; height: 36px; cursor: pointer;
  font-size: .88rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .1s;
  flex-shrink: 0;
}
.copy-btn:active { transform: scale(.88); }
.copy-btn:hover { background: var(--green-dark); }

.share-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.share-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-family: var(--font); font-size: .76rem; font-weight: 700;
  color: var(--text);
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
.share-card:active { transform: scale(.93); }
.share-card:hover { border-color: var(--border-mid); box-shadow: var(--shadow-card); }
.share-card i { font-size: 1.35rem; }
.share-card.whatsapp  i { color: #25d366; }
.share-card.facebook  i { color: #1877f2; }
.share-card.twitter   i { color: #000; }
.share-card.telegram  i { color: #229ed9; }
.share-card.native    i { color: var(--green); }
.share-card.copy-all  i { color: var(--text-2); }

/* ── TOP NAV ────────────────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.back-btn, .history-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none; background: var(--bg); cursor: pointer;
  font-size: .88rem; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .1s;
}
.back-btn:active, .history-btn:active { transform: scale(.92); }
.back-btn:hover, .history-btn:hover { background: var(--border); }
.nav-title { font-size: .97rem; font-weight: 800; color: var(--text); letter-spacing: -.01em; }

/* ── MAIN PAGE ──────────────────────────────────────────────────── */
.page { max-width: 520px; margin: 0 auto; }

/* ── HERO WALLET CARD ───────────────────────────────────────────── */
.hero-section { padding: 20px 16px 0; }

.wallet-card {
  position: relative;
  background: #28a745;
  border-radius: 8px;
  padding: 20px 18px 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,158,82,.38), 0 4px 12px rgba(0,0,0,.08);
  animation: cardIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Subtle mesh pattern */
.wallet-card-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.12) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(0,0,0,.08) 0%, transparent 45%);
  pointer-events: none;
}
.orb {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}
.orb-1 { width: 160px; height: 160px; top: -50px; right: -40px; }
.orb-2 { width: 90px;  height: 90px;  bottom: -24px; left: 16px; }
.orb-3 { width: 55px;  height: 55px;  top: 50%; right: 70px; }

/* Chip decoration */
.wallet-chip {
  position: absolute;
  bottom: 22px; right: 24px;
  opacity: .22;
  pointer-events: none;
}

.wallet-card-content { position: relative; z-index: 1; }

.wallet-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.wallet-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,.75);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wallet-label i { font-size: 11px; opacity: .9; }

/* Escrow trust badge replaces commission badge */
.escrow-trust-badge {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.95);
  display: flex; align-items: center; gap: 5px;
}
.escrow-trust-badge i { font-size: .7rem; color: #b8ffd5; }

.wallet-amount {
  display: flex; align-items: flex-start; gap: 4px;
  margin-bottom: 6px;
}
.currency-sym {
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85);
  margin-top: 8px; line-height: 1;
}
.amount-num {
  font-size: 2.9rem; font-weight: 800; color: #fff;
  line-height: 1; letter-spacing: -.03em;
  font-feature-settings: "tnum";
}

.wallet-lifetime {
  font-size: 10px; color: rgba(255,255,255,.7);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 6px;
}
.wallet-lifetime strong { color: rgba(255,255,255,.95); font-weight: 700; }
.wallet-lifetime-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,.4);
}

.wallet-actions { display: flex; gap: 10px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: #fff; color: var(--green-dark);
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .88rem; font-weight: 800;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  letter-spacing: .01em;
}
.btn-primary:active { transform: scale(.96); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(0,0,0,.16); }
.btn-primary.sm {
  padding: 10px 18px; font-size: .84rem;
  background: var(--green); color: #fff;
  box-shadow: 0 4px 14px rgba(0,197,102,.3);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.32);
  color: #fff; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .88rem; font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s;
  letter-spacing: .01em;
}
.btn-secondary:active { transform: scale(.96); }
.btn-secondary:hover { background: rgba(255,255,255,.22); }

/* ── STATS ──────────────────────────────────────────────────────── */
.stats-section { padding: 16px 16px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(18px);
  transition: opacity .4s, transform .4s;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity .3s;
}
.stat-card:nth-child(1)::before { background: var(--green); }
.stat-card:nth-child(2)::before { background: var(--teal); }
.stat-card:nth-child(3)::before { background: var(--gold); }
.stat-card.visible { opacity: 1; transform: translateY(0); }
.stat-card.visible::before { opacity: 1; }
.stat-card:nth-child(2) { transition-delay: .08s; }
.stat-card:nth-child(3) { transition-delay: .16s; }

.stat-icon {
  width: 42px; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
}
.stat-icon.green  { background: var(--green-light); color: var(--green); }
.stat-icon.teal   { background: #e0f6ff; color: var(--teal); }
.stat-icon.gold   { background: #fffbeb; color: var(--gold); }

.stat-body { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.45rem; font-weight: 800; color: var(--text);
  line-height: 1; margin-bottom: 5px;
  letter-spacing: -.02em;
}
.stat-label { font-size: .7rem; font-weight: 600; color: var(--text-3); letter-spacing: .01em; }

/* ── SECTIONS ───────────────────────────────────────────────────── */
.section { padding: 20px 16px 0; }
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.section-title { font-size: .97rem; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.section-sub { font-size: .76rem; color: var(--text-3); font-weight: 500; }
.see-all-btn {
  font-size: .79rem; font-weight: 700; color: var(--green);
  background: none; border: none; cursor: pointer; padding: 4px 0;
  transition: opacity .2s;
}
.see-all-btn:hover { opacity: .75; }

/* ── LINK SECTION ───────────────────────────────────────────────── */
.link-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}
.link-card-inner {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.link-display {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  overflow: hidden;
  border: 1.5px solid var(--border);
}
.link-icon { color: var(--green); font-size: .88rem; flex-shrink: 0; }
.link-text {
  font-size: .77rem; font-weight: 600; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.copy-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  background: var(--green-light);
  color: var(--green);
  border: 1.5px solid rgba(0,197,102,.25);
  border-radius: var(--radius-xs);
  font-family: var(--font); font-size: .8rem; font-weight: 800;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .1s;
  letter-spacing: .01em;
}
.copy-pill:active { transform: scale(.95); }
.copy-pill:hover { background: rgba(0,197,102,.18); }

.share-pills {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.pill-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 50px; border: 1.5px solid var(--border-mid);
  background: var(--surface);
  font-family: var(--font); font-size: .77rem; font-weight: 700;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s;
}
.pill-btn:active { transform: scale(.93); }
.pill-btn:hover { box-shadow: var(--shadow-card); }
.whatsapp-pill  { border-color: #25d366; color: #1a9e4f; }
.facebook-pill  { border-color: #1877f2; color: #1877f2; }
.x-pill         { border-color: #cbd5e1; color: #0d1b2a; }
.more-pill      { border-color: var(--green); color: var(--green); }

/* ── HOW IT WORKS ───────────────────────────────────────────────── */
.how-it-works {
  display: flex; align-items: flex-start; gap: 6px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.how-it-works::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--teal));
  border-radius: 3px 3px 0 0;
}
.hiw-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.hiw-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-size: .78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,197,102,.3);
}
.hiw-text strong { display: block; font-size: .77rem; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.hiw-text span   { font-size: .7rem; color: var(--text-3); line-height: 1.45; }
.hiw-arrow { color: var(--text-3); font-size: .72rem; margin-top: 13px; flex-shrink: 0; }

/* ── CHART ──────────────────────────────────────────────────────── */
.chart-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 16px 16px;
  box-shadow: var(--shadow-card);
}
.chart-wrap { min-height: 130px; display: flex; align-items: flex-end; }
.chart-empty {
  width: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  min-height: 130px; color: var(--text-3);
}
.chart-empty i { font-size: 1.8rem; }
.chart-empty p { font-size: .83rem; font-weight: 600; }

.chart-bars {
  display: flex; align-items: flex-end; gap: 8px;
  width: 100%; height: 130px;
}
.chart-bar-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}
.chart-bar {
  width: 100%; background: var(--green-mid);
  border-radius: 7px 7px 0 0;
  position: relative; min-height: 4px;
  transition: height .65s cubic-bezier(.34,1.56,.64,1);
}
.chart-bar.active {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  box-shadow: 0 4px 14px rgba(0,197,102,.25);
}
.chart-bar-label {
  font-size: .67rem; font-weight: 700; color: var(--text-3);
  text-align: center; white-space: nowrap; letter-spacing: .02em;
}
.chart-bar-val {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: .64rem; font-weight: 800; color: var(--green);
  white-space: nowrap; opacity: 0;
  transition: opacity .3s;
  background: var(--green-light);
  padding: 2px 5px; border-radius: 4px;
}
.chart-bar.active .chart-bar-val { opacity: 1; }

/* ── EARNINGS LIST ──────────────────────────────────────────────── */
.earnings-list { display: flex; flex-direction: column; gap: 8px; }
.earning-skeleton {
  height: 72px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(90deg, #f0f3f7 25%, #f8fafc 50%, #f0f3f7 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.earning-item {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
  animation: fadeUp .32s both;
  transition: box-shadow .2s, border-color .2s;
}
.earning-item:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--border-mid);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.earning-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-light);
  border: 2px solid rgba(0,197,102,.15);
  object-fit: cover; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: var(--green);
  overflow: hidden;
}
.earning-avatar img { width: 100%; height: 100%; object-fit: cover; }

.earning-info { flex: 1; min-width: 0; }
.earning-name {
  font-size: .87rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.earning-meta {
  font-size: .74rem; color: var(--text-3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.earning-amount {
  text-align: right; flex-shrink: 0;
}
.earning-credit {
  display: block;
  font-size: .93rem; font-weight: 800; color: var(--green);
}
/* .earning-order intentionally removed */

/* ── EMPTY STATE ────────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 40px 20px; text-align: center;
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.empty-icon {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--green);
  box-shadow: 0 4px 18px rgba(0,197,102,.15);
}
.empty-title { font-size: .98rem; font-weight: 800; color: var(--text); }
.empty-sub { font-size: .82rem; color: var(--text-3); line-height: 1.55; max-width: 260px; }

/* ── WITHDRAWAL HISTORY ─────────────────────────────────────────── */
.withdrawals-list { display: flex; flex-direction: column; gap: 10px; }
.withdrawal-item {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.withdrawal-item:hover { box-shadow: var(--shadow-card); }
.w-icon {
  width: 42px; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: .92rem; flex-shrink: 0;
}
.w-icon.pending  { background: #fef9ec; color: #d97706; }
.w-icon.approved { background: var(--green-light); color: var(--green); }
.w-icon.rejected { background: #fff0f0; color: #dc2626; }
.w-icon.failed   { background: #fff0f0; color: #dc2626; }

.w-info { flex: 1; }
.w-amount { font-size: .93rem; font-weight: 800; color: var(--text); }
.w-meta { font-size: .73rem; color: var(--text-3); margin-top: 2px; }
.w-badge {
  font-size: .7rem; font-weight: 800; padding: 4px 11px;
  border-radius: 50px; flex-shrink: 0; letter-spacing: .02em;
}
.w-badge.pending  { background: #fef9ec; color: #b45309; }
.w-badge.approved { background: var(--green-light); color: var(--green-dark); }
.w-badge.rejected { background: #fff0f0; color: #dc2626; }
.w-badge.failed   { background: #fff0f0; color: #dc2626; }

/* ── MISC ───────────────────────────────────────────────────────── */
.page-bottom-space { height: 48px; }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (min-width: 520px) {
  .page { padding-bottom: 24px; }
  .modal-sheet { border-radius: 24px; margin: auto; margin-bottom: 20px; }
}
