/* ============================================================
   AdEarn Pro – Premium Stylesheet
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overscroll-behavior: none; background: #f3f4f6; }
body { font-family: 'Hind Silguri', sans-serif; -webkit-tap-highlight-color: transparent; color: #111827; }

/* ---- Mobile Frame ---- */
.mobile-frame {
  max-width: 450px; height: 100vh; height: 100dvh;
  margin: 0 auto; background: #f8fafc;
  display: flex; flex-direction: column; overflow: hidden;
  position: relative;
}

/* ---- Header ---- */
.app-header {
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.header-title { font-size: 1.15rem; font-weight: 700; color: #1e293b; }
.dark-toggle-btn { background: none; border: none; font-size: 1.3rem; cursor: pointer; padding: 4px; border-radius: 50%; transition: background 0.2s; }
.dark-toggle-btn:hover { background: #f1f5f9; }

/* ---- Content Area ---- */
.content-area {
  flex: 1; overflow-y: auto; padding-bottom: 80px; scroll-behavior: smooth;
}
.content-area::-webkit-scrollbar { display: none; }

/* ---- Bottom Nav ---- */
.bottom-nav {
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,0.06);
  position: fixed; bottom: 0; left: 0; right: 0; max-width: 450px; margin: 0 auto;
  height: 64px; display: flex; justify-content: space-around; align-items: center; z-index: 50;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #94a3b8; background: none; border: none; cursor: pointer;
  width: 20%; padding: 6px 0; transition: all 0.25s ease; position: relative;
}
.nav-item span { font-size: 0.65rem; margin-top: 2px; font-weight: 500; transition: all 0.25s; }
.nav-item.active { color: #3b82f6; }
.nav-item.active span { font-weight: 700; }
.nav-item.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: #3b82f6;
}

/* ---- Pages ---- */
.page-content { display: none; }
.page-content.active { display: block; animation: pageIn 0.35s ease; }
.page-enter { animation: pageIn 0.35s ease; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Cards ---- */
.card {
  background: white; border-radius: 16px; padding: 16px;
  border: 1px solid rgba(0,0,0,0.04); box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 12px; transition: transform 0.2s;
}
.card-title { font-weight: 700; font-size: 0.95rem; color: #1e293b; }
.section-title { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin-bottom: 12px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 12px; font-weight: 700; font-size: 0.9rem;
  border: none; cursor: pointer; transition: all 0.2s ease; position: relative; overflow: hidden;
}
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; box-shadow: 0 4px 12px rgba(59,130,246,0.3); }
.btn-blue:hover { box-shadow: 0 6px 20px rgba(59,130,246,0.4); }
.btn-green { background: linear-gradient(135deg, #10b981, #059669); color: white; box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.btn-yellow { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; box-shadow: 0 4px 12px rgba(245,158,11,0.3); }
.btn-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; box-shadow: 0 4px 12px rgba(139,92,246,0.3); }
.btn-red { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.btn-gray { background: #e5e7eb; color: #374151; }

/* ---- Ripple ---- */
.ripple {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,0.3);
  transform: scale(0); animation: rippleAnim 0.6s ease-out; pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ---- Balance Card ---- */
.balance-card {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #6366f1 100%);
  border-radius: 20px; padding: 24px 20px 16px; color: white;
  box-shadow: 0 8px 32px rgba(99,102,241,0.35); margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.balance-card::before {
  content: ''; position: absolute; top: -30%; right: -20%; width: 120px; height: 120px;
  background: rgba(255,255,255,0.08); border-radius: 50%;
}
.balance-card::after {
  content: ''; position: absolute; bottom: -40%; left: -15%; width: 160px; height: 160px;
  background: rgba(255,255,255,0.05); border-radius: 50%;
}
.balance-card-inner { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.balance-label { font-size: 0.8rem; opacity: 0.8; }
.balance-amount { font-size: 2.2rem; font-weight: 800; margin-top: 4px; text-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.balance-sub { font-size: 0.7rem; opacity: 0.65; margin-top: 4px; }
.level-label { font-size: 0.85rem; opacity: 0.85; text-align: right; }
.level-label span { font-size: 1.4rem; font-weight: 800; }
.xp-text { font-size: 0.7rem; opacity: 0.65; text-align: right; margin-top: 2px; }

/* ---- Level Progress ---- */
.level-progress { height: 6px; background: rgba(255,255,255,0.25); border-radius: 3px; overflow: hidden; margin-top: 12px; position: relative; z-index: 1; }
.level-progress-bar { height: 100%; background: linear-gradient(90deg, #fbbf24, #f59e0b); border-radius: 3px; transition: width 0.6s ease; }

/* ---- Streak ---- */
.streak-card { display: flex; align-items: center; justify-content: space-between; }
.streak-title { font-weight: 700; font-size: 0.95rem; }
.streak-sub { font-size: 0.8rem; color: #6b7280; margin-top: 2px; }

/* ---- Badge ---- */
.badge {
  background: #f1f5f9; color: #475569; padding: 4px 12px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600;
}
.badge-sm {
  background: #f1f5f9; color: #475569; padding: 2px 10px; border-radius: 16px;
  font-size: 0.7rem; font-weight: 600;
}

/* ---- Spin Wheel ---- */
.spin-wheel-container {
  position: relative; width: 220px; height: 220px; margin: 0 auto;
}
.spin-wheel {
  width: 100%; height: 100%; border-radius: 50%;
  border: 8px solid #1e293b;
  background: conic-gradient(#ef4444 0% 16.67%, #f59e0b 16.67% 33.34%, #10b981 33.34% 50%, #3b82f6 50% 66.67%, #8b5cf6 66.67% 83.34%, #ec4899 83.34% 100%);
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.spin-pointer {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 16px solid transparent; border-right: 16px solid transparent;
  border-top: 28px solid #1e293b; z-index: 10; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* ---- Toast ---- */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1e293b; color: white; padding: 12px 24px; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25); z-index: 999;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0; font-size: 0.85rem; font-weight: 600;
  max-width: 320px; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-success { background: #059669; }
.toast-error { background: #dc2626; }

/* ---- Confetti ---- */
.confetti-piece {
  position: fixed; pointer-events: none; z-index: 1000;
  animation: confettiFall 2s ease-out forwards;
}
@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translateY(-300px) rotate(720deg) scale(0.3); }
}

/* ---- Coin Shower ---- */
.coin-shower-piece {
  position: fixed; top: -20px; font-size: 1.5rem; z-index: 1000;
  pointer-events: none; animation: coinDrop 1.5s ease-in forwards;
}
@keyframes coinDrop {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(100vh) rotate(360deg); }
}

/* ---- Reward Popup ---- */
.reward-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 2000;
  animation: fadeIn 0.3s ease;
}
.reward-popup {
  background: white; border-radius: 24px; padding: 32px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 280px; width: 80%;
}
.reward-popup-icon { font-size: 3rem; margin-bottom: 8px; animation: bounce 0.6s ease infinite alternate; }
.reward-popup-label { font-size: 0.85rem; color: #6b7280; margin-bottom: 4px; }
.reward-popup-amount { font-size: 2rem; font-weight: 800; color: #059669; margin-bottom: 16px; }
.reward-popup-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb); color: white;
  border: none; padding: 10px 32px; border-radius: 12px; font-weight: 700;
  font-size: 0.9rem; cursor: pointer;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-6px); } }

/* ---- Lucky Box ---- */
.lucky-card { background: linear-gradient(135deg, #fef3c7, #fde68a); border: 1px solid #f59e0b; }
.lucky-box-area { display: flex; justify-content: center; padding: 12px 0; }
.lucky-box-btn {
  width: 120px; height: 120px; border-radius: 20px; border: 3px solid #d97706;
  background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(245,158,11,0.4);
}
.lucky-box-btn:hover { transform: scale(1.05); }
.lucky-box-btn:active { transform: scale(0.95); }
.lucky-box-btn.shake { animation: boxShake 0.5s ease; }
.lucky-box-icon { font-size: 2.5rem; margin-bottom: 4px; }
@keyframes boxShake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-10deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(5deg); }
}

/* ---- Gift Calendar ---- */
.gift-card { background: linear-gradient(135deg, #fdf2f8, #fce7f3); border: 1px solid #f9a8d4; }
.gift-calendar {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
}
.gift-day {
  aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 0.6rem;
  background: white; border: 1px solid #e5e7eb; transition: all 0.2s;
}
.gift-day-num { font-weight: 700; color: #6b7280; }
.gift-day-val { font-size: 0.5rem; color: #9ca3af; margin-top: 1px; }
.gift-claimed { background: #d1fae5; border-color: #6ee7b7; }
.gift-claimed .gift-day-num { color: #059669; }
.gift-available { background: #fef3c7; border-color: #fbbf24; animation: giftPulse 1.5s ease infinite; }
.gift-locked { opacity: 0.5; }
.gift-milestone { border-width: 2px; border-color: #f59e0b; }
@keyframes giftPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ---- Chest Timer ---- */
.chest-card { background: linear-gradient(135deg, #ede9fe, #ddd6fe); border: 1px solid #c4b5fd; }

/* ---- Treasure Hunt ---- */
.treasure-card { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border: 1px solid #6ee7b7; }
.treasure-grid { display: flex; gap: 12px; justify-content: center; padding: 8px 0; flex-wrap: wrap; }
.treasure-spot {
  width: 72px; height: 72px; border-radius: 16px; border: 2px dashed #10b981;
  background: white; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s; font-size: 1.5rem;
}
.treasure-spot:hover { transform: scale(1.08); border-style: solid; }
.treasure-spot:active { transform: scale(0.95); }
.treasure-spot.treasure-found {
  border-style: solid; border-color: #f59e0b; background: #fef3c7;
  animation: treasureReveal 0.5s ease;
}
.treasure-spot.treasure-opening { animation: boxShake 0.6s ease; }
@keyframes treasureReveal { from { transform: scale(0.8) rotate(-10deg); } to { transform: scale(1) rotate(0); } }

/* ---- Leaderboard ---- */
.lb-period-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.lb-tab {
  flex: 1; padding: 10px; border-radius: 12px; border: 1px solid #e5e7eb;
  background: white; font-weight: 600; font-size: 0.85rem; cursor: pointer;
  text-align: center; transition: all 0.2s;
}
.lb-tab.active { background: #3b82f6; color: white; border-color: #3b82f6; }
.lb-my-stats {
  display: flex; gap: 12px; margin-bottom: 12px;
}
.lb-stat {
  flex: 1; background: white; border-radius: 12px; padding: 12px;
  text-align: center; border: 1px solid rgba(0,0,0,0.04);
}
.lb-stat-label { display: block; font-size: 0.7rem; color: #6b7280; }
.lb-stat-value { display: block; font-size: 1.3rem; font-weight: 800; color: #1e293b; }
.lb-entries { display: flex; flex-direction: column; gap: 6px; }
.lb-entry {
  display: flex; align-items: center; gap: 10px; background: white;
  border-radius: 12px; padding: 10px 14px; border: 1px solid rgba(0,0,0,0.04);
}
.lb-entry-me { background: #eff6ff; border-color: #3b82f6; }
.lb-rank { font-size: 1.1rem; font-weight: 800; min-width: 36px; text-align: center; }
.lb-avatar { font-size: 1.4rem; }
.lb-info { flex: 1; }
.lb-name { font-weight: 600; font-size: 0.85rem; display: block; }
.lb-level { font-size: 0.7rem; color: #9ca3af; }
.lb-score { font-weight: 700; color: #059669; font-size: 0.9rem; }

/* ---- Missions ---- */
.mission-card {
  display: flex; align-items: center; gap: 12px; background: white;
  border-radius: 14px; padding: 14px; border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03); transition: all 0.2s;
}
.mission-card.mission-done { opacity: 0.7; }
.mission-icon { font-size: 1.5rem; }
.mission-info { flex: 1; }
.mission-desc { font-weight: 600; font-size: 0.85rem; }
.mission-progress-bar { height: 5px; background: #e5e7eb; border-radius: 3px; margin-top: 6px; overflow: hidden; }
.mission-progress-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #8b5cf6); border-radius: 3px; transition: width 0.5s ease; }
.mission-count { font-size: 0.7rem; color: #9ca3af; margin-top: 3px; }
.mission-reward-val { font-weight: 700; color: #059669; font-size: 0.85rem; }

/* ---- Referral ---- */
.referral-code-box {
  display: flex; justify-content: space-between; align-items: center;
  margin: 16px 0; padding: 12px 16px; background: #f8fafc; border: 2px dashed #d1d5db;
  border-radius: 12px;
}
.referral-code-text { font-family: monospace; font-size: 1.2rem; font-weight: 800; color: #1e293b; }
.copy-btn { background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px; color: #6b7280; transition: background 0.2s; }
.copy-btn:hover { background: #e5e7eb; }
.referral-input { display: flex; gap: 8px; margin-top: 10px; }
.referral-item {
  display: flex; justify-content: space-between; align-items: center;
  background: white; border-radius: 12px; padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.04);
}
.referral-item .referral-bonus { font-weight: 700; color: #059669; }

/* ---- Input ---- */
.input-field {
  width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 10px;
  font-size: 0.9rem; outline: none; transition: border 0.2s;
}
.input-field:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

/* ---- Profile ---- */
.profile-info { margin-top: 12px; }
.profile-avatar-wrap {
  width: 64px; height: 64px; border-radius: 50%; background: #f1f5f9;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.profile-avatar { font-size: 2rem; }
.avatar-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.avatar-option {
  width: 44px; height: 44px; border-radius: 12px; border: 2px solid #e5e7eb;
  background: white; font-size: 1.3rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all 0.2s;
}
.avatar-option.selected { border-color: #3b82f6; background: #eff6ff; transform: scale(1.1); }

/* ---- Achievement ---- */
.achievement-badge {
  width: 100%; aspect-ratio: 1; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #f8fafc; border: 2px solid #e5e7eb; transition: all 0.3s;
  font-size: 1.4rem; gap: 2px; padding: 4px;
}
.achievement-badge.unlocked {
  border-color: #f59e0b; background: #fef3c7;
  box-shadow: 0 2px 8px rgba(245,158,11,0.2);
}
.achievement-icon { font-size: 1.3rem; }
.achievement-label { font-size: 0.45rem; color: #6b7280; text-align: center; line-height: 1.1; }
.achievement-badge.unlocked .achievement-label { color: #92400e; }

/* ---- Transactions ---- */
.tx-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
}
.tx-item:last-child { border-bottom: none; }
.tx-icon { font-size: 1.2rem; }
.tx-info { flex: 1; }
.tx-desc { font-weight: 600; font-size: 0.8rem; }
.tx-time { font-size: 0.65rem; color: #9ca3af; }
.tx-positive { color: #059669; font-weight: 700; }
.tx-negative { color: #dc2626; font-weight: 700; }

/* ---- Shop ---- */
.shop-item { transition: transform 0.2s; }
.shop-item:active { transform: scale(0.97); }

/* ---- Lottery ---- */
.lottery-card { background: linear-gradient(135deg, #fefce8, #fef9c3); border: 1px solid #fde047; }
.lottery-info { display: flex; gap: 16px; margin-bottom: 8px; }
.lottery-jackpot, .lottery-my { flex: 1; text-align: center; }
.lottery-history-item {
  display: flex; justify-content: space-between; padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 0.8rem;
}
.lottery-winner { font-weight: 600; }
.lottery-prize { color: #059669; font-weight: 700; }

/* ---- Empty State ---- */
.empty-state {
  text-align: center; padding: 24px; color: #9ca3af; font-size: 0.85rem;
}

/* ---- Dark Mode ---- */
.dark-body { background: #0f172a !important; color: #e2e8f0 !important; }
.dark-frame { background: #1e293b !important; box-shadow: 0 0 40px rgba(0,0,0,0.4); }
.dark-frame .app-header { background: rgba(30,41,59,0.92); border-color: rgba(255,255,255,0.06); }
.dark-frame .header-title { color: #f1f5f9; }
.dark-frame .bottom-nav { background: rgba(30,41,59,0.95); border-color: rgba(255,255,255,0.06); }
.dark-frame .card { background: #334155; border-color: rgba(255,255,255,0.06); }
.dark-frame .card-title { color: #f1f5f9; }
.dark-frame .section-title { color: #f1f5f9; }
.dark-frame .mission-card { background: #334155; }
.dark-frame .lb-entry { background: #334155; }
.dark-frame .lb-entry-me { background: #1e3a5f; }
.dark-frame .input-field { background: #475569; border-color: #64748b; color: #e2e8f0; }
.dark-frame .achievement-badge { background: #334155; border-color: #475569; }
.dark-frame .toast { background: #f1f5f9; color: #1e293b; }
.dark-frame .referral-code-box { background: #334155; border-color: #475569; }
.dark-frame .referral-item { background: #334155; }
.dark-frame .tx-item { border-color: #475569; }
.dark-frame .badge, .dark-frame .badge-sm { background: #475569; color: #e2e8f0; }
.dark-frame .gift-day { background: #334155; border-color: #475569; }
.dark-frame .empty-state { color: #64748b; }
.dark-frame .dark-toggle-btn:hover { background: #475569; }
.dark-frame .nav-item { color: #64748b; }
.dark-frame .nav-item.active { color: #60a5fa; }

button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Wallet Section ---- */
.wallet-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px;
}
.wallet-stat-card {
  background: white; border-radius: 14px; padding: 14px; text-align: center;
  border: 1px solid rgba(0,0,0,0.04); box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.wallet-stat-balance {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #10b981, #059669); color: white;
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}
.wallet-stat-balance .wallet-stat-label { color: rgba(255,255,255,0.8); }
.wallet-stat-label { font-size: 0.7rem; color: #6b7280; margin-bottom: 2px; }
.wallet-stat-value { font-size: 2rem; font-weight: 800; }
.wallet-stat-sub { font-size: 0.7rem; color: rgba(255,255,255,0.6); }
.wallet-stat-value-sm { font-size: 1.2rem; font-weight: 700; color: #1e293b; }

.wallet-tabs {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.wallet-tab {
  flex: 1; padding: 10px; border-radius: 12px; border: 1px solid #e5e7eb;
  background: white; font-weight: 600; font-size: 0.85rem; cursor: pointer;
  text-align: center; transition: all 0.2s;
}
.wallet-tab.active { background: #10b981; color: white; border-color: #10b981; }

.wallet-form-area {}
.wallet-label { display: block; font-size: 0.8rem; font-weight: 600; color: #475569; margin-bottom: 4px; }
.wallet-form-group { margin-bottom: 12px; }
.wallet-quick-amounts {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.quick-amount-btn {
  flex: 1; padding: 8px; border-radius: 10px; border: 1px solid #d1d5db;
  background: white; font-weight: 600; font-size: 0.8rem; cursor: pointer;
  transition: all 0.2s;
}
.quick-amount-btn:hover { border-color: #10b981; background: #ecfdf5; }
.quick-amount-btn:active { transform: scale(0.96); }

.wallet-preview {
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px;
  padding: 12px; margin-bottom: 8px;
}
.wallet-preview-row {
  display: flex; justify-content: space-between; padding: 4px 0;
  font-size: 0.85rem;
}

/* ---- Withdrawal History ---- */
.withdrawal-list {}
.withdrawal-item {
  display: flex; justify-content: space-between; align-items: center;
  background: white; border-radius: 12px; padding: 14px; margin-bottom: 8px;
  border: 1px solid rgba(0,0,0,0.04); box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.withdrawal-amount { font-weight: 800; font-size: 1.1rem; color: #1e293b; }
.withdrawal-number { font-size: 0.75rem; color: #6b7280; font-family: monospace; margin-top: 2px; }
.withdrawal-date { font-size: 0.65rem; color: #9ca3af; margin-top: 2px; }
.withdrawal-note { font-size: 0.7rem; color: #dc2626; margin-top: 2px; font-style: italic; }
.withdrawal-status {
  padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 600;
  white-space: nowrap;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-completed { background: #dbeafe; color: #1e40af; }

/* ---- Leaderboard (Home compact) ---- */
.lb-tab-sm {
  padding: 4px 12px; border-radius: 16px; border: 1px solid #e5e7eb;
  background: white; font-weight: 600; font-size: 0.7rem; cursor: pointer;
  transition: all 0.2s;
}
.lb-tab-sm.active { background: #3b82f6; color: white; border-color: #3b82f6; }
.lb-my-stats-sm {
  display: flex; gap: 16px; margin-bottom: 8px; padding: 0 4px;
}
.lb-entries-sm {
  display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow-y: auto;
}
.lb-entries-sm::-webkit-scrollbar { display: none; }

/* ---- Dark mode additions ---- */
.dark-frame .wallet-stat-card { background: #334155; border-color: rgba(255,255,255,0.06); }
.dark-frame .wallet-stat-value-sm { color: #e2e8f0; }
.dark-frame .wallet-tab { background: #334155; border-color: #475569; color: #e2e8f0; }
.dark-frame .withdrawal-item { background: #334155; }
.dark-frame .withdrawal-amount { color: #f1f5f9; }
.dark-frame .wallet-preview { background: #1e3a5f; border-color: #2563eb; }
.dark-frame .quick-amount-btn { background: #334155; border-color: #475569; color: #e2e8f0; }
.dark-frame .lb-tab-sm { background: #334155; border-color: #475569; color: #e2e8f0; }
