.wallet-topbar, .invite-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--s4);
}
.wallet-title, .invite-title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }

.wallet-tabs {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 var(--s4);
  padding: 6px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 0.5px solid var(--divider);
}
.wtab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  position: relative;
  z-index: 1;
  border-radius: 9px;
  transition: color 200ms ease;
}
.wtab.active { color: #1a1200; }
.wtab-bar {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc((100% - 10px) / 3);
  height: calc(100% - 10px);
  border-radius: 9px;
  background: var(--gold-gradient);
  box-shadow: var(--gold-shadow);
  transition: transform 260ms cubic-bezier(0.22,1,0.36,1);
  z-index: 0;
}
.wallet-body { padding: 20px var(--s4) 0; }

.w-panel { display: none; animation: panelFade 280ms ease; }
.w-panel.active { display: block; }
@keyframes panelFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.coin-swiper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.coin-card {
  padding: 20px;
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  border: 0.5px solid var(--gold-border);
  background: var(--bg-card);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
}
.coin-card.cc-usdt { background: linear-gradient(135deg, #1a472a 0%, #0c0f12 100%); border-color: rgba(38,166,154,0.3); }
.coin-card.cc-btc  { background: linear-gradient(135deg, #4a2a11 0%, #0f0c08 100%); border-color: rgba(247,147,26,0.3); }
.coin-card.cc-eth  { background: linear-gradient(135deg, #2c2a4a 0%, #0c0b15 100%); border-color: rgba(103,97,219,0.3); }
.coin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.coin-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.coin-logo {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  font-weight: 700;
  color: #fff;
}
.coin-n { font-size: 16px; font-weight: 700; }
.coin-cn { font-size: 12px; color: rgba(255,255,255,0.5); }
.coin-bal-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.coin-bal {
  font-family: "SF Mono", monospace;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.coin-earn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--success);
  margin-bottom: 16px;
}
.coin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.coin-btn {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
  font-weight: 600;
  transition: background 140ms ease;
}
.coin-btn:active { background: rgba(255,255,255,0.16); }
.coin-btn.gold {
  background: var(--gold-gradient);
  border: none;
  color: #1a1200;
}

.wallet-tips { margin-top: 4px; }
.tip-card {
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: rgba(245,197,66,0.06);
  border: 0.5px solid rgba(245,197,66,0.2);
}
.tip-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.tip-sub { font-size: 12px; color: var(--text-2); line-height: 1.5; }

.wd-chain { margin-bottom: 20px; }
.wd-chain-label {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 10px;
  font-weight: 500;
}
.wd-chain-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chain-item {
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 0.5px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 180ms ease;
  position: relative;
}
.chain-item.active {
  border-color: var(--gold);
  background: rgba(245,197,66,0.06);
  box-shadow: 0 0 0 3px rgba(245,197,66,0.1);
}
.chain-item.active::after {
  content: "✓";
  position: absolute;
  right: 14px;
  color: var(--gold);
  font-weight: 700;
}
.chain-name { font-size: 14px; font-weight: 600; }
.chain-fee  { font-size: 12px; color: var(--text-3); margin-top: 3px; }

.wd-info-card {
  margin: 20px 0;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 0.5px solid var(--gold-border);
}
.wd-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}
.wd-info-row + .wd-info-row { border-top: 0.5px solid var(--divider); margin-top: 6px; padding-top: 12px; }
.wd-info-row span { color: var(--text-3); }
.wd-info-row b { font-weight: 600; }

.record-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rec-row {
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 0.5px solid var(--gold-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.rec-ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
}
.rec-ico.in { background: rgba(48,209,88,0.12); }
.rec-ico.out { background: rgba(255,69,58,0.12); }
.rec-main { flex: 1; min-width: 0; }
.rec-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.rec-sub { font-size: 12px; color: var(--text-3); font-family: "SF Mono", monospace; }
.rec-right { text-align: right; flex-shrink: 0; }
.rec-amt {
  font-family: "SF Mono", monospace;
  font-size: 15px;
  font-weight: 700;
}
.rec-amt.in { color: var(--success); }
.rec-amt.out { color: var(--danger); }
.rec-st { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.rec-st.done { color: var(--success); }
.rec-st.pending { color: var(--gold); }
