/* ============================================================
   AB Token Wallet — Premium Dark Theme
   Glassmorphism, Gold Accents, Web3 Aesthetic
   ============================================================ */

/* #region Wallet Card in Profile */
/* ============================================================================ */
.wallet-preview-card {
  position: relative;
  border-radius: 20px;
  padding: 22px 20px;
  margin: 0 20px 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(255, 138, 0, 0.06) 50%, rgba(21, 28, 36, 0.85) 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(212, 175, 55, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: walletCardEntry 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wallet-preview-card:active {
  transform: scale(0.98);
}

.wallet-preview-card .wallet-watermark {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 140px;
  height: 140px;
  opacity: 0.06;
  pointer-events: none;
  filter: blur(1px);
}

.wallet-preview-card .wallet-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wallet-preview-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.wallet-preview-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
}

.wallet-preview-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallet-preview-info {
  flex: 1;
  min-width: 0;
}

.wallet-preview-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-preview-title .tier-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d4af37, #f5d060);
  color: #0B0F14;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.wallet-preview-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.wallet-preview-balance {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.wallet-preview-balance .balance-label {
  font-size: 11px;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.wallet-preview-balance .balance-value {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #f5d060, #d4af37, #f5d060);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.wallet-preview-balance .balance-value .balance-ticker {
  font-size: 16px;
  font-weight: 600;
  -webkit-text-fill-color: rgba(212, 175, 55, 0.7);
}

.wallet-preview-progress {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

.wallet-preview-progress .progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.wallet-preview-progress .progress-info span {
  font-size: 11px;
  color: var(--text-dim);
}

.wallet-preview-progress .progress-info .progress-pct {
  font-weight: 600;
  color: #d4af37;
}

.wallet-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.wallet-progress-bar .wallet-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #f5d060);
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.wallet-open-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 11px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.03));
  color: #f5d060;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wallet-open-btn:active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
  transform: scale(0.98);
}

.wallet-open-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.wallet-open-btn:active svg {
  transform: translateX(3px);
}

/* Skeleton for wallet card */
.wallet-preview-card.skeleton-loading .balance-value,
.wallet-preview-card.skeleton-loading .wallet-preview-title,
.wallet-preview-card.skeleton-loading .wallet-preview-subtitle,
.wallet-preview-card.skeleton-loading .progress-info span {
  color: transparent !important;
  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: skeleton-shimmer 1.2s ease-in-out infinite;
  border-radius: 6px;
}

.wallet-preview-card.skeleton-loading .balance-value {
  width: 160px;
  height: 34px;
}
.wallet-preview-card.skeleton-loading .wallet-preview-title {
  width: 120px;
  height: 18px;
}
.wallet-preview-card.skeleton-loading .wallet-preview-subtitle {
  width: 100px;
  height: 14px;
  margin-top: 6px;
}
.wallet-preview-card.skeleton-loading .wallet-open-btn {
  opacity: 0.3;
  pointer-events: none;
}

@keyframes walletCardEntry {
  0% { opacity: 0; transform: translateY(16px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* #endregion */

/* #region Wallet Full Page */
/* ============================================================================ */
.wallet-full-page {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-primary);
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}

.wallet-full-page.open {
  transform: translateY(0);
}

.wallet-page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.wallet-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.wallet-back-btn:active {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(0.95);
}

.wallet-back-btn svg {
  width: 20px;
  height: 20px;
}

.wallet-page-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.wallet-page-header-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.wallet-page-header-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallet-page-header-text h2 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.wallet-page-header-text span {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

.wallet-page-header-text .tier-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4af37;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
}

/* #endregion */

/* #region Hero Balance Card */
/* ============================================================================ */
.wallet-hero-card {
  position: relative;
  margin: 16px 20px 20px;
  border-radius: 22px;
  padding: 28px 22px 24px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1608 0%, #1c1a0e 25%, #1f1a0c 50%, #181510 75%, #141210 100%);
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(212, 175, 55, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: heroCardGlow 4s ease-in-out infinite alternate;
}

.wallet-hero-card .hero-watermark {
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  opacity: 0.04;
  pointer-events: none;
}

.wallet-hero-card .hero-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes heroCardGlow {
  0% { box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 60px rgba(212,175,55,0.04), inset 0 1px 0 rgba(255,255,255,0.04); }
  100% { box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 80px rgba(212,175,55,0.08), inset 0 1px 0 rgba(255,255,255,0.06); }
}

.wallet-hero-balance-label {
  font-size: 12px;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.wallet-hero-balance-value {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, #f5d060 0%, #d4af37 40%, #f5d060 80%, #e8c84a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.wallet-hero-balance-value .hero-ticker {
  font-size: 20px;
  font-weight: 600;
  -webkit-text-fill-color: rgba(212, 175, 55, 0.6);
}

.wallet-hero-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.wallet-hero-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.wallet-hero-detail-item .detail-label {
  font-size: 11px;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.wallet-hero-detail-item .detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wallet-hero-detail-item .detail-value .mini-tier-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
  background: linear-gradient(135deg, #d4af37, #f5d060);
  color: #0B0F14;
}

.wallet-hero-tier-progress {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.wallet-hero-tier-progress .tier-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.wallet-hero-tier-progress .tier-progress-header span {
  font-size: 11px;
  color: var(--text-dim);
}

.wallet-hero-tier-progress .tier-progress-header .tier-remaining {
  color: #d4af37;
  font-weight: 600;
}

.wallet-hero-tier-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.wallet-hero-tier-bar .tier-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #f5d060);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

/* #endregion */

/* #region Smart Banner */
/* ============================================================================ */
.wallet-smart-banner {
  margin: 0 20px 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(255, 138, 0, 0.04));
  border: 1px solid rgba(212, 175, 55, 0.12);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: bannerSlideIn 0.5s ease 0.2s both;
  overflow: hidden;
  position: relative;
}

.wallet-smart-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.04), transparent);
  animation: bannerShimmer 3s ease-in-out infinite;
}

@keyframes bannerSlideIn {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes bannerShimmer {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(50%); }
}

.wallet-smart-banner svg {
  flex-shrink: 0;
  color: #d4af37;
  width: 20px;
  height: 20px;
}

.wallet-smart-banner p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.wallet-smart-banner p strong {
  color: #f5d060;
}

/* #endregion */

/* #region Quick Actions */
/* ============================================================================ */
.wallet-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 20px 20px;
}

.wallet-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s ease;
  animation: actionFadeIn 0.4s ease both;
}

.wallet-action-btn:nth-child(1) { animation-delay: 0.1s; }
.wallet-action-btn:nth-child(2) { animation-delay: 0.15s; }
.wallet-action-btn:nth-child(3) { animation-delay: 0.2s; }
.wallet-action-btn:nth-child(4) { animation-delay: 0.25s; }

@keyframes actionFadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.wallet-action-btn:active {
  background: rgba(255, 255, 255, 0.06);
  transform: scale(0.95);
}

.wallet-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.wallet-action-icon.earn-icon {
  background: linear-gradient(135deg, rgba(0, 200, 150, 0.15), rgba(0, 200, 150, 0.05));
  color: #00c896;
  border: 1px solid rgba(0, 200, 150, 0.15);
}
.wallet-action-icon.referral-icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.15);
}
.wallet-action-icon.rewards-icon {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  color: #f5d060;
  border: 1px solid rgba(212, 175, 55, 0.15);
}
.wallet-action-icon.history-icon {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.15);
}

.wallet-action-btn span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* #endregion */

/* #region Wallet Sections */
/* ============================================================================ */
.wallet-section {
  margin: 0 20px 20px;
}

.wallet-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.wallet-section-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.wallet-section-header .section-action {
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}

.wallet-section-header .section-action:active {
  background: rgba(255, 255, 255, 0.08);
}

/* #endregion */

/* #region Earn Section */
/* ============================================================================ */
.wallet-earn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wallet-earn-card {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.25s ease;
  animation: earnCardFadeIn 0.4s ease both;
}

.wallet-earn-card:nth-child(1) { animation-delay: 0.05s; }
.wallet-earn-card:nth-child(2) { animation-delay: 0.1s; }
.wallet-earn-card:nth-child(3) { animation-delay: 0.15s; }
.wallet-earn-card:nth-child(4) { animation-delay: 0.2s; }
.wallet-earn-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes earnCardFadeIn {
  0% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}

.wallet-earn-card:active {
  background: rgba(255, 255, 255, 0.04);
  transform: scale(0.97);
}

.wallet-earn-card .earn-reward {
  font-size: 20px;
  font-weight: 800;
  color: #00c896;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.wallet-earn-card .earn-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}

.wallet-earn-card .earn-desc {
  font-size: 11px;
  color: var(--text-sub);
}

.wallet-earn-card .earn-claimed-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 200, 150, 0.12);
  color: #00c896;
  border: 1px solid rgba(0, 200, 150, 0.2);
}

.wallet-earn-card.daily-checkin {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.wallet-earn-card.daily-checkin .checkin-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 200, 150, 0.15), rgba(0, 200, 150, 0.05));
  border: 1px solid rgba(0, 200, 150, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #00c896;
}

.wallet-earn-card.daily-checkin .checkin-info {
  flex: 1;
}

.wallet-earn-card.daily-checkin .checkin-info .checkin-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.wallet-earn-card.daily-checkin .checkin-info .checkin-reward {
  font-size: 13px;
  font-weight: 700;
  color: #00c896;
}

.wallet-earn-card.daily-checkin .checkin-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #00c896, #00a87a);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.wallet-earn-card.daily-checkin .checkin-btn:active {
  transform: scale(0.95);
  opacity: 0.9;
}

.wallet-earn-card.daily-checkin .checkin-btn:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-sub);
  cursor: not-allowed;
}

/* #endregion */

/* #region Wallet Referral Section */
/* ============================================================================ */
.wallet-referral-box {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
}

.wallet-ref-link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.wallet-ref-link-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-size: 12px;
  outline: none;
  min-width: 0;
}

.wallet-ref-link-row .ref-copy-btn,
.wallet-ref-link-row .ref-share-btn-sm {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-ref-link-row .ref-copy-btn:active,
.wallet-ref-link-row .ref-share-btn-sm:active {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(0.95);
}

.wallet-ref-link-row .ref-copy-btn svg,
.wallet-ref-link-row .ref-share-btn-sm svg {
  width: 16px;
  height: 16px;
}

.wallet-ref-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.wallet-ref-stat {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
  text-align: center;
}

.wallet-ref-stat .stat-label {
  font-size: 10px;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.wallet-ref-stat .stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

/* #endregion */

/* #region Rewards Marketplace */
/* ============================================================================ */
.wallet-marketplace-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.wallet-marketplace-scroll::-webkit-scrollbar {
  height: 3px;
}

.wallet-marketplace-scroll::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 2px;
}

.wallet-marketplace-card {
  min-width: 200px;
  max-width: 200px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  scroll-snap-align: start;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.wallet-marketplace-card:active {
  background: rgba(255, 255, 255, 0.04);
}

.wallet-marketplace-card .reward-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 20px;
}

.wallet-marketplace-card .reward-icon.icon-analysis {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.15);
}
.wallet-marketplace-card .reward-icon.icon-vip {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.15);
}
.wallet-marketplace-card .reward-icon.icon-report {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
  border: 1px solid rgba(236, 72, 153, 0.15);
}
.wallet-marketplace-card .reward-icon.icon-future {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.wallet-marketplace-card .reward-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.wallet-marketplace-card .reward-desc {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wallet-marketplace-card .reward-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wallet-marketplace-card .reward-cost {
  font-size: 13px;
  font-weight: 700;
  color: #d4af37;
}

.wallet-marketplace-card .reward-status {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}

.wallet-marketplace-card .reward-status.status-available {
  background: rgba(0, 200, 150, 0.1);
  color: #00c896;
  border: 1px solid rgba(0, 200, 150, 0.15);
}

.wallet-marketplace-card .reward-status.status-locked {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-sub);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-marketplace-card .reward-status.status-coming {
  background: rgba(212, 175, 55, 0.08);
  color: #d4af37;
  border: 1px solid rgba(212, 175, 55, 0.12);
}

/* #endregion */

/* #region Transaction History */
/* ============================================================================ */
.wallet-tx-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-tx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.015);
  transition: background 0.2s ease;
  animation: txFadeIn 0.3s ease both;
}

@keyframes txFadeIn {
  0% { opacity: 0; transform: translateX(-8px); }
  100% { opacity: 1; transform: translateX(0); }
}

.wallet-tx-item:nth-child(1) { animation-delay: 0.05s; }
.wallet-tx-item:nth-child(2) { animation-delay: 0.1s; }
.wallet-tx-item:nth-child(3) { animation-delay: 0.15s; }
.wallet-tx-item:nth-child(4) { animation-delay: 0.2s; }
.wallet-tx-item:nth-child(5) { animation-delay: 0.25s; }

.wallet-tx-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.wallet-tx-icon.tx-claim {
  background: linear-gradient(135deg, rgba(0, 200, 150, 0.15), rgba(0, 200, 150, 0.05));
  color: #00c896;
  border: 1px solid rgba(0, 200, 150, 0.15);
}
.wallet-tx-icon.tx-referral {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.15);
}
.wallet-tx-icon.tx-purchase {
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.15), rgba(255, 77, 77, 0.05));
  color: #ff4d4d;
  border: 1px solid rgba(255, 77, 77, 0.15);
}
.wallet-tx-icon.tx-redeem {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.15);
}
.wallet-tx-icon.tx-other {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.15), rgba(100, 116, 139, 0.05));
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.15);
}

.wallet-tx-info {
  flex: 1;
  min-width: 0;
}

.wallet-tx-info .tx-type {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.wallet-tx-info .tx-desc {
  font-size: 11px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-tx-right {
  text-align: right;
  flex-shrink: 0;
}

.wallet-tx-right .tx-amount {
  font-size: 14px;
  font-weight: 700;
}

.wallet-tx-right .tx-amount.positive {
  color: #00c896;
}

.wallet-tx-right .tx-amount.negative {
  color: #ff4d4d;
}

.wallet-tx-right .tx-time {
  font-size: 10px;
  color: var(--text-sub);
  margin-top: 2px;
}

/* Empty state */
.wallet-empty-state {
  text-align: center;
  padding: 40px 20px;
}

.wallet-empty-state .empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: rgba(212, 175, 55, 0.4);
}

.wallet-empty-state .empty-icon img {
  width: 36px;
  height: 36px;
  opacity: 0.5;
}

.wallet-empty-state h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.wallet-empty-state p {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
  max-width: 260px;
  margin: 0 auto;
}

/* Skeleton loader for wallet page */
.wallet-skeleton {
  margin: 0 20px 20px;
}

.wallet-skeleton-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 18px;
  margin-bottom: 12px;
}

.wallet-skeleton-line {
  height: 14px;
  border-radius: 6px;
  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: skeleton-shimmer 1.2s ease-in-out infinite;
  margin-bottom: 10px;
}

.wallet-skeleton-line:last-child {
  margin-bottom: 0;
}

.wallet-skeleton-line.w-60 { width: 60%; }
.wallet-skeleton-line.w-80 { width: 80%; }
.wallet-skeleton-line.w-40 { width: 40%; }
.wallet-skeleton-line.h-lg { height: 32px; }
.wallet-skeleton-line.h-sm { height: 10px; margin-bottom: 8px; }

/* Claim success animation */
@keyframes claimPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.wallet-claim-success {
  animation: claimPulse 0.4s ease;
}

/* Tier badges colors */
.tier-bronze { color: #cd7f32; }
.tier-silver { color: #c0c0c0; }
.tier-gold { color: #d4af37; }
.tier-diamond { color: #b9f2ff; }