:root {
  --ref-brand: var(--brand-color, #16A34A);
  --ref-brand-hover: var(--brand-hover, #15803d);
  --ref-bg: var(--app-bg, #ffffff);
  --ref-surface: var(--app-bg, #ffffff);
  --ref-surface-2: var(--input-bg, #f4f5f7);
  --ref-border: var(--input-border, transparent);
  --ref-line: rgba(0,0,0,0.08);
  --ref-border-mid: rgba(0,0,0,0.08);
  --ref-text: var(--app-text, #111827);
  --ref-text-2: #3b5e46;
  --ref-text-3: var(--app-text-dim, #6b7280);
  --ref-brand-dim: var(--success-bg, #f0fdf4);
  --ref-radius-sm: 10px;
  --ref-radius: 16px;
  --ref-radius-lg: 22px;
  --ref-font: 'DM Sans', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ref-brand: var(--brand-color, #25d366);
    --ref-brand-hover: var(--brand-hover, #1fad54);
    --ref-bg: var(--app-bg, #111b21);
    --ref-surface: var(--app-bg, #111b21);
    --ref-surface-2: var(--input-bg, #1f2c34);
    --ref-border: var(--input-border, #2a3942);
    --ref-line: rgba(255,255,255,0.08);
    --ref-border-mid: rgba(255,255,255,0.08);
    --ref-text: var(--app-text, #e9edef);
    --ref-text-2: #c0c4ce;
    --ref-text-3: var(--app-text-dim, #8696a0);
    --ref-brand-dim: var(--success-bg, rgba(37,211,102,0.12));
  }
}

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

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

body {
  font-family: var(--ref-font);
  background: var(--ref-bg);
  color: var(--ref-text);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--ref-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9100;
  transition: opacity 0.4s, visibility 0.4s;
}

.page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--ref-line);
  border-top-color: var(--ref-brand);
  border-radius: 50%;
  animation: ref-spin 0.8s linear infinite;
}

@keyframes ref-spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ref-text);
  color: var(--ref-bg);
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 0.83rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 9050;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  font-family: var(--ref-font);
}

.toast i {
  color: var(--ref-brand);
  font-size: 0.9rem;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  display: flex;
  align-items: flex-end;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background: var(--ref-surface);
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 24px 24px 0 0;
  padding: 14px 20px 16px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.08);
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (prefers-color-scheme: dark) {
  .modal-sheet {
    box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
  }
}

.modal-backdrop.open .modal-sheet {
  transform: translateY(0);
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--ref-line);
  border-radius: 2px;
  margin: 0 auto 14px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ref-text);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ref-surface-2);
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  color: var(--ref-text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.modal-close:hover {
  background: var(--ref-line);
}

.modal-balance-hint {
  font-size: 0.85rem;
  color: var(--ref-text-2);
  margin-bottom: 18px;
  background: var(--ref-brand-dim);
  border-radius: var(--ref-radius-sm);
  padding: 10px 14px;
  border: 1px solid rgba(22,163,74,0.15);
}

.modal-balance-hint strong {
  color: var(--ref-brand);
  font-weight: 700;
}

.input-group {
  margin-bottom: 14px;
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ref-text-2);
  margin-bottom: 8px;
}

.input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--ref-line);
  border-radius: var(--ref-radius-sm);
  overflow: hidden;
  transition: border-color 0.15s;
}

.input-wrap:focus-within {
  border-color: var(--ref-brand);
}

.input-prefix {
  padding: 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ref-text-2);
  background: var(--ref-surface-2);
  height: 50px;
  display: flex;
  align-items: center;
  border-right: 1.5px solid var(--ref-line);
}

.input-wrap input {
  flex: 1;
  padding: 0 14px;
  height: 50px;
  border: none;
  outline: none;
  font-family: var(--ref-font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ref-text);
  background: var(--ref-surface);
}

.input-wrap input::placeholder {
  color: var(--ref-text-3);
}

.input-hint {
  font-size: 0.74rem;
  color: var(--ref-text-3);
  margin-top: 6px;
}

.bank-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ref-brand-dim);
  border: 1px solid rgba(22,163,74,0.2);
  border-radius: var(--ref-radius-sm);
  padding: 13px 16px;
  margin-bottom: 20px;
}

.bank-preview .bank-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(22,163,74,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bank-preview i {
  color: var(--ref-brand);
}

.bank-preview div {
  display: flex;
  flex-direction: column;
}

.bank-preview span:first-child {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ref-text);
}

.bank-preview span:last-child {
  font-size: 0.78rem;
  color: var(--ref-text-2);
}

.no-bank-warn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--error-bg, #fef2f2);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--ref-radius-sm);
  padding: 13px 16px;
  margin-bottom: 20px;
  font-size: 0.83rem;
  color: var(--error, #ef4444);
}

.no-bank-warn a {
  color: var(--ref-brand);
  font-weight: 700;
  text-decoration: none;
}

.btn-withdraw-confirm {
  width: 100%;
  padding: 15px;
  background: var(--ref-brand);
  color: #ffffff;
  border: none;
  border-radius: 100px;
  font-family: var(--ref-font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(22,163,74,0.2);
  transition: transform 0.1s ease, background-color 0.2s;
}

.btn-withdraw-confirm:active {
  transform: scale(0.96);
  background-color: var(--ref-brand-hover);
}

.share-subtitle {
  font-size: 0.86rem;
  color: var(--ref-text-2);
  margin-bottom: 18px;
  line-height: 1.6;
}

.link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ref-surface-2);
  border: 1.5px solid var(--ref-line);
  border-radius: var(--ref-radius-sm);
  padding: 11px 14px;
  margin-bottom: 20px;
}

.link-box span {
  flex: 1;
  font-size: 0.8rem;
  color: var(--ref-text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  background: var(--ref-text);
  color: var(--ref-bg);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.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(--ref-radius-sm);
  border: 1.5px solid var(--ref-line);
  background: var(--ref-surface);
  font-family: var(--ref-font);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ref-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.share-card:active {
  background: var(--ref-brand-dim);
}

.share-card.whatsapp i { color: #25d366; }
.share-card.facebook i { color: #1877f2; }
.share-card.telegram i { color: #229ed9; }
.share-card.native i { color: var(--ref-brand); }

.page {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: var(--ref-bg);
  font-family: var(--ref-font);
  min-height: 100%;
  padding-bottom: 32px;
}

.topnav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
  background: var(--ref-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 40;
  border-bottom: 1px solid var(--ref-line);
}

.back-btn, .history-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--ref-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ref-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.back-btn:hover, .history-btn:hover {
  background: var(--ref-line);
}

.nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ref-text);
  letter-spacing: -0.3px;
  margin: 0;
}

.hero-section {
  padding: 0;
}

.wallet-card {
  background: var(--ref-surface);
  padding: 24px 16px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--ref-line);
}

.wallet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.wallet-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ref-text-2);
  text-transform: uppercase;
}

.icon-box {
  width: 26px;
  height: 26px;
  background: var(--ref-brand-dim);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box i {
  color: var(--ref-brand);
  font-size: 0.7rem;
}

.escrow-trust-badge {
  background: var(--ref-brand-dim);
  color: var(--ref-brand);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wallet-amount {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 6px;
}

.currency-sym {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ref-brand);
  margin-top: 4px;
}

.amount-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--ref-text);
  letter-spacing: -0.03em;
}

.wallet-lifetime {
  font-size: 0.8rem;
  color: var(--ref-text-2);
  margin-bottom: 24px;
}

.wallet-lifetime strong {
  color: var(--ref-brand);
  font-weight: 700;
}

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

.btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  background: var(--ref-brand);
  color: #ffffff;
  border: none;
  border-radius: 100px;
  font-family: var(--ref-font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease, background-color 0.2s;
}

.btn-primary:active {
  transform: scale(0.96);
  background-color: var(--ref-brand-hover);
}

.btn-primary.sm {
  padding: 10px 16px;
  font-size: 0.8rem;
  flex: none;
  border-radius: 100px;
}

.btn-secondary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  background: var(--ref-brand-dim);
  color: var(--ref-brand);
  border: none;
  border-radius: 100px;
  font-family: var(--ref-font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.stats-section {
  padding: 16px 16px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-card {
  background: var(--ref-surface-2);
  border-radius: var(--ref-radius-sm);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ref-line);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:nth-child(2) { transition-delay: 0.05s; }
.stat-card:nth-child(3) { transition-delay: 0.1s; }

.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.stat-icon.green {
  background: var(--ref-surface);
  color: var(--ref-brand);
  border: 1px solid var(--ref-line);
}

.stat-body {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ref-text);
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ref-text-2);
  white-space: nowrap;
}

.section {
  padding: 28px 16px 0;
  border-bottom: none;
}

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

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ref-text);
}

.section-sub {
  font-size: 0.72rem;
  color: var(--ref-text-3);
  font-weight: 600;
}

.see-all-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ref-brand);
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.link-card {
  background: transparent;
  padding: 0;
  border: none;
}

.link-card-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.link-display {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ref-surface-2);
  border-radius: var(--ref-radius-sm);
  padding: 11px 14px;
  border: 1px solid var(--ref-line);
  overflow: hidden;
}

.link-icon {
  color: var(--ref-brand);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.link-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ref-text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 11px 16px;
  background: var(--ref-text);
  color: var(--ref-bg);
  border: none;
  border-radius: 100px;
  font-family: var(--ref-font);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease;
}

.copy-pill:active {
  transform: scale(0.96);
}

.share-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 0 !important;
  -webkit-overflow-scrolling: touch;
}

.share-pills::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--ref-line);
  background: var(--ref-surface-2);
  font-family: var(--ref-font);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.pill-btn:active {
  background: var(--ref-brand-dim);
}

.whatsapp-pill {
  border-color: rgba(37,211,102,0.3);
  color: #1a9e4f;
}

.facebook-pill {
  border-color: rgba(24,119,242,0.3);
  color: #1877f2;
}

.x-pill {
  border-color: var(--ref-line);
  color: var(--ref-text);
}

.more-pill {
  border-color: rgba(22,163,74,0.3);
  color: var(--ref-brand);
}

.how-it-works {
  display: flex;
  flex-direction: column;
  background: var(--ref-surface-2);
  border-radius: var(--ref-radius-sm);
  border: 1px solid var(--ref-line);
  padding: 16px;
  margin-top: 16px;
}

.hiw-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hiw-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ref-surface);
  border: 1px solid var(--ref-line);
  color: var(--ref-brand);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hiw-text strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ref-text);
}

.hiw-text span {
  font-size: 0.72rem;
  color: var(--ref-text-2);
}

.hiw-arrow {
  color: var(--ref-text-3);
  font-size: 0.8rem;
  margin: 4px 0 4px 8px;
}

.chart-card {
  background: var(--ref-surface-2);
  border-radius: var(--ref-radius-sm);
  border: 1px solid var(--ref-line);
  padding: 16px 12px 12px;
}

.chart-wrap {
  min-height: 110px;
}

.chart-empty {
  min-height: 110px;
  color: var(--ref-text-3);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-bars {
  height: 110px;
  gap: 6px;
  display: flex;
  align-items: flex-end;
}

.chart-bar {
  border-radius: 4px 4px 0 0;
  background: var(--ref-brand);
}

.chart-bar-label {
  font-size: 0.63rem;
  color: var(--ref-text-2);
}

.chart-bar-val {
  top: -20px;
  font-size: 0.6rem;
  color: var(--ref-text-3);
}

.earnings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.earning-skeleton {
  height: 64px;
  border-radius: var(--ref-radius-sm);
  border: 1px solid var(--ref-line);
  background: var(--ref-surface-2);
  animation: ref-pulse 1.5s ease-in-out infinite;
}

@keyframes ref-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.earning-item {
  background: var(--ref-surface);
  border-radius: var(--ref-radius-sm);
  border: 1px solid var(--ref-line);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.earning-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 0.95rem;
  border: 1px solid var(--ref-line);
  background: var(--ref-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.earning-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ref-text);
}

.earning-meta {
  font-size: 0.72rem;
  color: var(--ref-text-2);
}

.earning-credit {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ref-brand);
}

.empty-state {
  padding: 32px 16px;
  background: var(--ref-surface-2);
  border-radius: var(--ref-radius-sm);
  border: 1px solid var(--ref-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.empty-icon {
  width: 52px;
  height: 52px;
  font-size: 1.25rem;
  background: var(--ref-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ref-text-3);
}

.empty-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ref-text);
}

.empty-sub {
  font-size: 0.78rem;
  max-width: 240px;
  color: var(--ref-text-2);
}

.withdrawals-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.withdrawal-item {
  padding: 12px;
  border-radius: var(--ref-radius-sm);
  background: var(--ref-surface);
  border: 1px solid var(--ref-line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.w-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.85rem;
  background: var(--ref-brand-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ref-brand);
}

.w-amount {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ref-text);
}

.w-meta {
  font-size: 0.7rem;
  color: var(--ref-text-2);
}

.w-badge {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--ref-brand-dim);
  color: var(--ref-brand);
  font-weight: 700;
}

.page-bottom-space {
  height: 40px;
}

@media (min-width: 520px) {
  .page {
    max-width: 500px;
    margin: 24px auto;
    background: var(--ref-surface);
    border-radius: var(--ref-radius-lg);
    border: 1px solid var(--ref-line);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    overflow: hidden;
  }
  
  .topnav {
    border-bottom: none;
    padding: 20px 24px;
  }
  
  .hero-section {
    padding: 0 24px;
  }
  
  .wallet-card {
    border: 1px solid rgba(22,163,74,0.15);
    border-radius: var(--ref-radius);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }
  
  .stats-section {
    padding: 20px 24px 0;
  }
  
  .stats-grid {
    gap: 12px;
  }
  
  .section {
    padding: 32px 24px 0;
  }
  
  .link-card {
    background: var(--ref-surface);
    border-radius: var(--ref-radius);
    border: 1px solid var(--ref-line);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  }
  
  .how-it-works, .chart-card, .empty-state {
    background: var(--ref-surface);
  }
  
  .modal-sheet {
    max-width: 460px;
    border-radius: var(--ref-radius-lg);
    margin: auto;
    margin-bottom: 24px;
  }
}

@media (prefers-color-scheme: dark) {
  .modal-backdrop {
    background: rgba(0,0,0,0.7);
  }
  
  @media (min-width: 520px) {
    .page {
      box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    }
    
    .wallet-card {
      box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    }
  }
}