/* ===== Wallet Connect — DailyTrader =====
   Styles for wallet connection button, modal, and dashboard panel.
   Used on ecosystem pages (Hyperliquid, Solana, Base). */

/* ── Connect Wallet Button (in hero) ── */
.wallet-connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: var(--gradient-btn-teal);
  color: #fff;
  font-family: inherit;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(0, 212, 170, 0.25);
  white-space: nowrap;
}
.wallet-connect-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4);
}
.wallet-connect-btn .wallet-icon {
  font-size: 13px;
}
.wallet-connect-btn.connected {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text);
  box-shadow: none;
  padding: 6px 12px;
  font-size: 0.75rem;
}
.wallet-connect-btn.connected:hover {
  border-color: var(--purple-glow);
  transform: none;
  box-shadow: 0 0 12px rgba(124,58,237,0.15);
}
.wallet-connect-btn.connected .wallet-addr {
  color: var(--teal);
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
}
.wallet-connect-btn.connected .wallet-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00D4AA;
  display: inline-block;
  box-shadow: 0 0 6px rgba(0,212,170,0.6);
}

/* ── Wallet Selector Modal ── */
.wallet-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.wallet-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.wallet-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  width: 380px;
  max-width: 92vw;
  padding: 0;
  transform: translateY(12px) scale(0.97);
  transition: all 0.3s ease;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  overflow: hidden;
}
.wallet-modal-overlay.open .wallet-modal {
  transform: translateY(0) scale(1);
}
.wallet-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.wallet-modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.wallet-modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.wallet-modal-close:hover {
  color: var(--text);
}
.wallet-modal-body {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wallet-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  font-family: inherit;
  text-align: left;
}
.wallet-option:hover {
  background: var(--bg-hover);
  border-color: var(--purple-glow);
}
.wallet-option.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.wallet-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.wallet-option-icon.metamask { background: rgba(245,158,11,0.12); }
.wallet-option-icon.phantom { background: rgba(153,69,255,0.12); }
.wallet-option-icon.coinbase { background: rgba(0,82,255,0.12); }
.wallet-option-icon.walletconnect { background: rgba(0,212,170,0.12); }
/* Rabby Wallet — exact brand blue (#5f76fe) bg.
   The PNG rabbit is drawn in that same blue on a transparent bg.
   brightness(10) blows it to white → white rabbit on blue = identical to the official icon. */
.wallet-option-icon.rabby {
  background: #5f76fe;
  padding: 5px;
  overflow: hidden;
  border-radius: 10px;
  box-sizing: border-box;
}
.wallet-option-icon.rabby .wallet-logo-img {
  filter: brightness(10);
  border-radius: 0;
}
.wallet-option-icon.rabby svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: brightness(10);
}

/* <img> logos for MetaMask, Coinbase, Phantom, Solflare inside icon spans */
.wallet-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.wallet-option-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
}
.wallet-option-info p {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: 0;
  font-weight: 500;
}
.wallet-option-tag {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0,212,170,0.1);
  color: var(--teal);
  flex-shrink: 0;
}
/* Install variant — blue instead of teal */
.wallet-option-tag.install {
  background: rgba(59,130,246,0.12);
  color: #3B82F6;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Hardware chip (shown inside wallet name) ── */
.wallet-hw-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(59,130,246,0.12);
  color: #3B82F6;
  vertical-align: middle;
  margin-left: 6px;
  line-height: 1.4;
}

/* ── Not-installed wallet option (clickable install link) ── */
.wallet-option.not-installed {
  opacity: 0.6;
  cursor: pointer;
}
.wallet-option.not-installed:hover {
  opacity: 1;
  border-color: rgba(59,130,246,0.5);
  background: rgba(59,130,246,0.04);
}
.wallet-option.not-installed .wallet-option-info h4 {
  color: var(--text-dim);
}

/* ── Wallet logo inside the topnav connected button ── */
.wallet-nav-logo {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 3px;
  display: inline-block;
  vertical-align: middle;
}
/* Rabby navbar logo — exact brand blue + brightness filter for white rabbit */
.wallet-nav-logo--rabby {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #5f76fe;
  padding: 2px;
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 3px;
  vertical-align: middle;
}
.wallet-nav-logo--rabby img {
  filter: brightness(10);
}

/* Connecting state */
.wallet-option.connecting {
  border-color: var(--purple-glow);
  background: rgba(124,58,237,0.06);
}

/* ── Wallet Dashboard Panel ── */
.wallet-dashboard {
  margin: 24px auto 0;
  max-width: 1080px;
  padding: 0 20px;
  display: none;
}
.wallet-dashboard.visible {
  display: block;
  animation: walletFadeIn 0.4s ease;
}
@keyframes walletFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dashboard header */
.wd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.wd-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wd-header-left h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.wd-chain-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(124,58,237,0.1);
  color: var(--purple-light);
}
.wd-disconnect-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.wd-disconnect-btn:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
}

/* Row 1: Stats cards */
.wd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.wd-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 0.2s;
}
.wd-stat-card:hover {
  border-color: var(--border-light);
}
.wd-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.wd-stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.wd-stat-value.positive { color: var(--teal); }
.wd-stat-value.negative { color: var(--red); }
.wd-stat-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
  font-weight: 500;
}

/* Row 2: Token Holdings + NFTs */
.wd-content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.wd-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  overflow: hidden;
}
.wd-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.wd-panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.wd-panel-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Token list */
.wd-token-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 340px;
  overflow-y: auto;
}
.wd-token-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.15s;
}
.wd-token-item:hover {
  background: var(--bg-hover);
}
.wd-token-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  overflow: hidden;
}
.wd-token-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.wd-token-info {
  flex: 1;
  min-width: 0;
}
.wd-token-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.wd-token-symbol {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 500;
}
.wd-token-balance {
  text-align: right;
}
.wd-token-amount {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.wd-token-usd {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* NFT grid */
.wd-nft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
}
.wd-nft-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
}
.wd-nft-card:hover {
  border-color: var(--purple-glow);
  transform: translateY(-2px);
}
.wd-nft-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: rgba(255,255,255,0.03);
}
.wd-nft-name {
  padding: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Row 3: Transactions */
.wd-tx-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 300px;
  overflow-y: auto;
}
.wd-tx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.15s;
}
.wd-tx-item:hover {
  background: var(--bg-hover);
}
.wd-tx-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.wd-tx-icon.send { background: rgba(239,68,68,0.1); color: var(--red); }
.wd-tx-icon.receive { background: rgba(0,212,170,0.1); color: var(--teal); }
.wd-tx-icon.swap { background: rgba(124,58,237,0.1); color: var(--purple-light); }
.wd-tx-icon.contract { background: rgba(245,158,11,0.1); color: var(--orange); }

.wd-tx-info { flex: 1; min-width: 0; }
.wd-tx-type {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.wd-tx-time {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 500;
}
.wd-tx-value {
  text-align: right;
}
.wd-tx-amount {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.wd-tx-hash {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 500;
  font-family: 'SF Mono', monospace;
}

/* Wallet Score gauge */
.wd-score-ring {
  width: 56px;
  height: 56px;
  position: relative;
}
.wd-score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.wd-score-ring circle {
  fill: none;
  stroke-width: 4;
}
.wd-score-ring .bg { stroke: rgba(255,255,255,0.06); }
.wd-score-ring .fg { stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.wd-score-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
}

/* Loading skeleton */
.wd-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty state */
.wd-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
}
.wd-empty-icon {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Risk flags */
.wd-risk-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.wd-risk-flag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.wd-risk-flag.safe {
  background: rgba(0,212,170,0.1);
  color: var(--teal);
}
.wd-risk-flag.warning {
  background: rgba(245,158,11,0.1);
  color: var(--orange);
}
.wd-risk-flag.danger {
  background: rgba(239,68,68,0.1);
  color: var(--red);
}

/* ══════════════════════════════════════════
   Wallet Connected Dropdown
   ══════════════════════════════════════════ */
.wallet-dropdown {
  position: fixed;
  width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 9997;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  overflow: hidden;
}
.wallet-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ── Header: wallet icon + address + chain pill ── */
.wd-drop-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.wd-drop-wallet-logo {
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.wd-drop-wallet-logo--rabby {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #5f76fe;
  padding: 3px;
  box-sizing: border-box;
  border-radius: 8px;
  flex-shrink: 0;
}
.wd-drop-wallet-logo--rabby img {
  filter: brightness(10);
}
.wd-drop-wallet-logo--default {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
  border-radius: 8px;
  font-size: 16px;
  flex-shrink: 0;
}
.wd-drop-addr-block {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.wd-drop-addr-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'SF Mono', 'Fira Code', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wd-drop-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  padding: 4px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
  line-height: 0;
}
.wd-drop-copy-btn:hover {
  color: var(--teal);
  background: rgba(0,212,170,0.1);
}
.wd-drop-chain-pill {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Balance card ── */
.wd-drop-balance-card {
  margin: 12px 12px 4px;
  padding: 14px 16px 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.wd-drop-balance-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.wd-drop-balance-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.wd-drop-balance-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.71rem;
  color: var(--text-dim);
  font-weight: 500;
}
.wd-drop-sep {
  opacity: 0.35;
}

/* ── Menu items ── */
.wd-drop-menu {
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.wd-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.15s;
  width: 100%;
  text-align: left;
  line-height: 1;
}
.wd-drop-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.wd-drop-item svg {
  flex-shrink: 0;
  opacity: 0.55;
}
.wd-drop-disconnect {
  color: var(--red) !important;
}
.wd-drop-disconnect svg {
  opacity: 0.85;
  stroke: var(--red);
}
.wd-drop-disconnect:hover {
  background: rgba(239,68,68,0.08) !important;
}

/* ── Token holdings section in dropdown ── */
.wd-drop-tok-section {
  border-top: 1px solid var(--border);
  padding: 0;
}
.wd-drop-tok-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
}
.wd-drop-tok-more {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
}
.wd-drop-tok-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 0 8px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.wd-drop-tok-list::-webkit-scrollbar {
  width: 4px;
}
.wd-drop-tok-list::-webkit-scrollbar-track {
  background: transparent;
}
.wd-drop-tok-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}
.wd-drop-tok-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  transition: background 0.12s;
}
.wd-drop-tok-row:hover {
  background: var(--bg-hover);
}
.wd-drop-tok-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  flex-shrink: 0;
  overflow: hidden;
}
.wd-drop-tok-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.wd-drop-tok-sym {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wd-drop-tok-chain {
  font-size: 0.62rem;
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
}
.wd-drop-tok-val {
  text-align: right;
  flex-shrink: 0;
}
.wd-drop-tok-bal {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.wd-drop-tok-usd {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
}
.wd-drop-tok-scanning {
  text-align: center;
  padding: 14px 16px;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Animated loading dot in portfolio label */
.wd-drop-loading-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  vertical-align: middle;
  margin-left: 4px;
  animation: wdDotPulse 1.2s ease-in-out infinite;
}
@keyframes wdDotPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ── Light theme overrides ── */
:root[data-theme="light"] .wallet-dropdown {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 20px 60px rgba(0,0,0,0.14);
}
:root[data-theme="light"] .wd-drop-balance-card {
  background: rgba(0,0,0,0.03);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .wd-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .wd-content-row {
    grid-template-columns: 1fr;
  }
  .wallet-modal {
    width: 95vw;
  }
  .wd-nft-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .wd-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .wd-stat-card {
    padding: 12px 14px;
  }
  .wd-stat-value {
    font-size: 1.1rem;
  }
}

/* ── Light theme adjustments ── */
:root[data-theme="light"] .wallet-modal {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
}
:root[data-theme="light"] .wallet-option:hover {
  background: rgba(0,0,0,0.03);
}
:root[data-theme="light"] .wd-panel {
  background: rgba(255,255,255,0.9);
}
:root[data-theme="light"] .wd-stat-card {
  background: rgba(255,255,255,0.9);
}
:root[data-theme="light"] .wd-skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
}

/* ── Fun theme adjustments ── */
:root[data-theme="fun"] .wallet-connect-btn {
  background: linear-gradient(135deg, #FF00FF, #00FF88);
}
:root[data-theme="fun"] .wallet-modal {
  background: rgba(40,10,80,0.95);
  border-color: rgba(255,0,255,0.2);
}
