/**
 * CoinRush Wallet Modals V2 - Ultra Premium Design
 * Psychology-driven UX with fintech best practices
 */

/* ============================================
   PREMIUM FONT IMPORT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;600;700&display=swap');

/* ============================================
   CSS VARIABLES - REFINED PALETTE
   ============================================ */
:root {
  /* Typography */
  --wm-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wm-font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  
  /* Core colors */
  --wm-bg-primary: #0c0c18;
  --wm-bg-card: linear-gradient(165deg, rgba(22, 22, 42, 0.98) 0%, rgba(12, 12, 24, 0.99) 100%);
  --wm-bg-elevated: rgba(255, 255, 255, 0.03);
  
  /* Borders & Lines */
  --wm-border-subtle: rgba(255, 255, 255, 0.06);
  --wm-border-medium: rgba(255, 255, 255, 0.12);
  --wm-border-strong: rgba(255, 255, 255, 0.18);
  
  /* Text hierarchy */
  --wm-text-primary: #ffffff;
  --wm-text-secondary: rgba(255, 255, 255, 0.7);
  --wm-text-tertiary: rgba(255, 255, 255, 0.45);
  --wm-text-disabled: rgba(255, 255, 255, 0.25);
  
  /* Accent colors */
  --wm-accent-deposit: #00e6a0;
  --wm-accent-deposit-dark: #00c488;
  --wm-accent-deposit-glow: rgba(0, 230, 160, 0.35);
  
  --wm-accent-withdraw: #fbbf24;
  --wm-accent-withdraw-dark: #f59e0b;
  --wm-accent-withdraw-glow: rgba(251, 191, 36, 0.35);
  
  --wm-accent-purple: #a855f7;
  --wm-accent-purple-dark: #8b5cf6;
  --wm-accent-purple-glow: rgba(168, 85, 247, 0.3);
  
  --wm-accent-blue: #3b82f6;
  --wm-accent-blue-glow: rgba(59, 130, 246, 0.3);
  
  --wm-error: #ef4444;
  --wm-error-glow: rgba(239, 68, 68, 0.3);
  
  /* Spacing */
  --wm-space-xs: 4px;
  --wm-space-sm: 8px;
  --wm-space-md: 16px;
  --wm-space-lg: 24px;
  --wm-space-xl: 32px;
  --wm-space-2xl: 48px;
  
  /* Border radius */
  --wm-radius-sm: 8px;
  --wm-radius-md: 12px;
  --wm-radius-lg: 16px;
  --wm-radius-xl: 24px;
  --wm-radius-full: 100px;
  
  /* Transitions */
  --wm-transition-fast: 0.15s ease;
  --wm-transition-base: 0.25s ease;
  --wm-transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   BASE TYPOGRAPHY
   ============================================ */
.wallet-modal-overlay,
.wallet-modal,
.wallet-modal * {
  font-family: var(--wm-font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ============================================
   OVERLAY - CINEMATIC BACKDROP
   ============================================ */
.wallet-modal-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.95) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: overlayFadeIn 0.3s ease-out;
  padding: 20px;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   MODAL CONTAINER - PREMIUM CARD
   ============================================ */
.wallet-modal {
  background: var(--wm-bg-card);
  border-radius: var(--wm-radius-xl);
  border: 1px solid var(--wm-border-subtle);
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 50px 100px -20px rgba(0, 0, 0, 0.8),
    0 30px 60px -30px rgba(0, 0, 0, 0.6);
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

/* Ambient glow effect */
.wallet-modal::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--wm-accent-purple-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

.wallet-modal.deposit-mode::before {
  background: radial-gradient(circle, var(--wm-accent-deposit-glow) 0%, transparent 70%);
}

.wallet-modal.withdraw-mode::before {
  background: radial-gradient(circle, var(--wm-accent-withdraw-glow) 0%, transparent 70%);
}

/* Inner content scrollable */
.wallet-modal-scroll {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.wallet-modal-scroll::-webkit-scrollbar {
  width: 5px;
}

.wallet-modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.wallet-modal.centered {
  justify-content: center;
  min-height: 420px;
}

@keyframes modalSlideUp {
  from { 
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================
   CLOSE BUTTON - MINIMAL & ELEGANT
   ============================================ */
.modal-close-btn {
  position: absolute;
  top: var(--wm-space-lg);
  right: var(--wm-space-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wm-bg-elevated);
  border: 1px solid var(--wm-border-subtle);
  border-radius: var(--wm-radius-md);
  color: var(--wm-text-tertiary);
  cursor: pointer;
  transition: all var(--wm-transition-base);
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--wm-border-medium);
  color: var(--wm-text-primary);
  transform: rotate(90deg);
}

/* ============================================
   HEADER - COMPACT HERO SECTION
   ============================================ */
.wallet-modal-header {
  position: relative;
  padding: var(--wm-space-md) var(--wm-space-xl) var(--wm-space-sm);
  text-align: center;
  z-index: 1;
}

/* Compact header variant */
.wallet-modal-header.compact {
  padding: var(--wm-space-sm) var(--wm-space-xl) var(--wm-space-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wm-space-md);
}

.wallet-modal-header.compact .header-icon-container {
  margin-bottom: 0;
}

.wallet-modal-header.compact .header-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.wallet-modal-header.compact .header-icon svg {
  width: 22px;
  height: 22px;
}

.wallet-modal-header.compact h2 {
  font-size: 22px;
  margin: 0;
}

.wallet-modal-header.compact .header-title-group {
  text-align: left;
}

.wallet-modal-header.compact .balance-display {
  padding: 4px 10px;
  font-size: 12px;
}

/* Icon container with animated glow */
.header-icon-container {
  position: relative;
  display: inline-block;
  margin-bottom: var(--wm-space-sm);
}

.header-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: iconBreathe 3s ease-in-out infinite;
}

/* Pulsing glow ring */
.header-icon::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 24px;
  background: inherit;
  filter: blur(15px);
  opacity: 0.4;
  z-index: -1;
  animation: glowPulse 2s ease-in-out infinite;
}

/* Glass shine effect */
.header-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

.header-icon.deposit {
  background: linear-gradient(145deg, #00f5b0 0%, #00c98d 50%, #00a070 100%);
  box-shadow: 
    0 15px 30px -8px var(--wm-accent-deposit-glow),
    inset 0 2px 0 rgba(255,255,255,0.25),
    inset 0 -2px 0 rgba(0,0,0,0.15);
}

.header-icon.withdraw {
  background: linear-gradient(145deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%);
  box-shadow: 
    0 15px 30px -8px var(--wm-accent-withdraw-glow),
    inset 0 2px 0 rgba(255,255,255,0.25),
    inset 0 -2px 0 rgba(0,0,0,0.15);
}

.header-icon svg {
  color: white;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@keyframes iconBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.03); }
}

/* Title */
.wallet-modal-header h2 {
  margin: 0 0 var(--wm-space-sm);
  font-size: 26px;
  font-weight: 800;
  color: var(--wm-text-primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

/* Balance display - pill style */
.balance-display {
  display: inline-flex;
  align-items: center;
  gap: var(--wm-space-sm);
  padding: 6px 14px;
  background: rgba(0, 230, 160, 0.08);
  border: 1px solid rgba(0, 230, 160, 0.2);
  border-radius: var(--wm-radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--wm-text-secondary);
  transition: all var(--wm-transition-base);
}

.balance-display:hover {
  background: rgba(0, 230, 160, 0.12);
}

.balance-display svg {
  width: 14px;
  height: 14px;
  color: var(--wm-accent-deposit);
}

.balance-display .balance-amount {
  font-weight: 700;
  font-family: var(--wm-font-mono);
  color: var(--wm-accent-deposit);
  letter-spacing: -0.5px;
}

/* ============================================
   BODY CONTENT
   ============================================ */
.wallet-modal-body {
  padding: 0 var(--wm-space-xl) var(--wm-space-lg);
  position: relative;
  z-index: 1;
}

/* ============================================
   AMOUNT INPUT - PREMIUM FIELD
   ============================================ */
.amount-section {
  margin-bottom: var(--wm-space-lg);
}

.amount-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--wm-space-sm);
}

.amount-label span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--wm-text-tertiary);
}

.amount-label .bonus-hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--wm-accent-deposit);
  text-transform: none;
  letter-spacing: 0;
  animation: subtlePulse 2s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.amount-input-container {
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--wm-border-subtle);
  border-radius: var(--wm-radius-lg);
  transition: all var(--wm-transition-base);
  overflow: hidden;
}

.amount-input-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--wm-transition-base);
  pointer-events: none;
}

.amount-input-container:focus-within {
  border-color: var(--wm-accent-purple);
  box-shadow: 
    0 0 0 4px var(--wm-accent-purple-glow),
    0 10px 40px -10px var(--wm-accent-purple-glow);
}

.amount-input-container:focus-within::before {
  opacity: 1;
}

.amount-input-container.deposit-focus:focus-within {
  border-color: var(--wm-accent-deposit);
  box-shadow: 
    0 0 0 4px var(--wm-accent-deposit-glow),
    0 10px 40px -10px var(--wm-accent-deposit-glow);
}

.amount-input-container.withdraw-focus:focus-within {
  border-color: var(--wm-accent-withdraw);
  box-shadow: 
    0 0 0 4px var(--wm-accent-withdraw-glow),
    0 10px 40px -10px var(--wm-accent-withdraw-glow);
}

.amount-input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.amount-currency {
  padding-left: var(--wm-space-lg);
  font-size: 36px;
  font-weight: 700;
  font-family: var(--wm-font-mono);
  color: var(--wm-text-tertiary);
  transition: color var(--wm-transition-fast);
  user-select: none;
}

.amount-input-container:focus-within .amount-currency {
  color: var(--wm-text-secondary);
}

.amount-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: var(--wm-space-lg) var(--wm-space-md);
  font-size: 42px;
  font-weight: 700;
  font-family: var(--wm-font-mono);
  color: var(--wm-text-primary);
  outline: none;
  min-width: 0;
  letter-spacing: -1px;
}

.amount-input::placeholder {
  color: var(--wm-text-disabled);
  font-weight: 500;
}

.amount-input.has-value {
  color: var(--wm-text-primary);
}

.max-button {
  position: absolute;
  right: var(--wm-space-md);
  background: linear-gradient(135deg, var(--wm-accent-purple), var(--wm-accent-purple-dark));
  border: none;
  padding: var(--wm-space-sm) var(--wm-space-md);
  border-radius: var(--wm-radius-sm);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--wm-font-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: white;
  cursor: pointer;
  transition: all var(--wm-transition-base);
  box-shadow: 0 4px 12px -2px var(--wm-accent-purple-glow);
}

.max-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px -4px var(--wm-accent-purple-glow);
}

.max-button:active {
  transform: translateY(0) scale(0.98);
}

.amount-limits {
  display: flex;
  justify-content: space-between;
  padding: var(--wm-space-sm) var(--wm-space-md);
  font-size: 12px;
  font-weight: 500;
  color: var(--wm-text-tertiary);
  letter-spacing: 0.2px;
}

/* ============================================
   QUICK AMOUNTS - INTERACTIVE CHIPS
   ============================================ */
.quick-amounts-section {
  margin-bottom: var(--wm-space-lg);
}

.quick-amounts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wm-space-sm);
}

.quick-amount-btn {
  position: relative;
  padding: var(--wm-space-md) var(--wm-space-sm);
  background: var(--wm-bg-elevated);
  border: 1px solid var(--wm-border-subtle);
  border-radius: var(--wm-radius-md);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--wm-font-mono);
  color: var(--wm-text-secondary);
  cursor: pointer;
  transition: all var(--wm-transition-base);
  overflow: hidden;
}

.quick-amount-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--wm-accent-purple), var(--wm-accent-purple-dark));
  opacity: 0;
  transition: opacity var(--wm-transition-base);
}

.quick-amount-btn span {
  position: relative;
  z-index: 1;
}

.quick-amount-btn:hover {
  border-color: var(--wm-border-medium);
  color: var(--wm-text-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -8px rgba(0,0,0,0.4);
}

.quick-amount-btn.selected {
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px var(--wm-accent-purple-glow);
}

.quick-amount-btn.selected::before {
  opacity: 1;
}

/* Bonus badge on amount */
.quick-amount-btn .bonus-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--wm-accent-deposit);
  color: #0c0c18;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--wm-font-primary);
  padding: 2px 6px;
  border-radius: var(--wm-radius-sm);
  z-index: 2;
  letter-spacing: 0.3px;
}

/* ============================================
   BONUS TIER DISPLAY - GAMIFICATION
   ============================================ */
.bonus-tier-section {
  margin-bottom: var(--wm-space-lg);
  padding: var(--wm-space-md);
  background: linear-gradient(135deg, rgba(0, 230, 160, 0.08) 0%, rgba(0, 230, 160, 0.03) 100%);
  border: 1px solid rgba(0, 230, 160, 0.15);
  border-radius: var(--wm-radius-md);
}

.bonus-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--wm-space-sm);
}

.bonus-tier-label {
  display: flex;
  align-items: center;
  gap: var(--wm-space-xs);
  font-size: 13px;
  font-weight: 600;
  color: var(--wm-accent-deposit);
}

.bonus-tier-label svg {
  width: 16px;
  height: 16px;
}

.bonus-tier-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--wm-accent-deposit);
}

.bonus-tier-progress {
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--wm-radius-full);
  overflow: hidden;
}

.bonus-tier-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--wm-accent-deposit), var(--wm-accent-deposit-dark));
  border-radius: var(--wm-radius-full);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bonus-tier-hint {
  margin-top: var(--wm-space-sm);
  font-size: 12px;
  color: var(--wm-text-tertiary);
}

.bonus-tier-hint strong {
  color: var(--wm-accent-deposit);
}

/* ============================================
   2FA SECURITY BADGE
   ============================================ */
.security-badge {
  display: flex;
  align-items: center;
  gap: var(--wm-space-md);
  padding: var(--wm-space-md);
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: var(--wm-radius-md);
  margin-bottom: var(--wm-space-lg);
  transition: all var(--wm-transition-base);
}

.security-badge:hover {
  background: rgba(251, 191, 36, 0.1);
}

.security-badge.enabled {
  background: rgba(0, 230, 160, 0.06);
  border-color: rgba(0, 230, 160, 0.15);
}

.security-badge.enabled:hover {
  background: rgba(0, 230, 160, 0.1);
}

.security-badge-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, 0.15);
  border-radius: var(--wm-radius-sm);
  flex-shrink: 0;
}

.security-badge.enabled .security-badge-icon {
  background: rgba(0, 230, 160, 0.15);
}

.security-badge-icon svg {
  width: 20px;
  height: 20px;
  color: var(--wm-accent-withdraw);
}

.security-badge.enabled .security-badge-icon svg {
  color: var(--wm-accent-deposit);
}

.security-badge-content {
  flex: 1;
}

.security-badge-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--wm-text-primary);
  margin-bottom: 2px;
}

.security-badge-subtitle {
  font-size: 12px;
  color: var(--wm-text-tertiary);
}

/* ============================================
   INFO CARD - TRUST SIGNALS
   ============================================ */
.info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--wm-space-md);
  padding: var(--wm-space-md);
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: var(--wm-radius-md);
}

.info-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--wm-radius-sm);
  flex-shrink: 0;
}

.info-card-icon svg {
  width: 18px;
  height: 18px;
  color: var(--wm-accent-blue);
}

.info-card-content h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
}

.info-card-content p {
  margin: 0;
  font-size: 12px;
  color: var(--wm-text-tertiary);
  line-height: 1.4;
}

/* Error message */
.error-message {
  display: flex;
  align-items: center;
  gap: var(--wm-space-sm);
  padding: var(--wm-space-sm) var(--wm-space-md);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--wm-radius-sm);
  margin-bottom: var(--wm-space-md);
  color: var(--wm-error);
  font-size: 13px;
  font-weight: 500;
  animation: errorShake 0.4s ease;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ============================================
   ACTIONS FOOTER - CTA BUTTONS
   ============================================ */
.wallet-modal-actions {
  display: flex;
  gap: var(--wm-space-md);
  padding: var(--wm-space-lg) var(--wm-space-xl) var(--wm-space-xl);
  border-top: 1px solid var(--wm-border-subtle);
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.action-btn {
  flex: 1;
  position: relative;
  padding: 16px var(--wm-space-lg);
  border-radius: var(--wm-radius-md);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all var(--wm-transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wm-space-sm);
  border: none;
  overflow: hidden;
}

/* Glass shine effect */
.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
  pointer-events: none;
}

.action-btn.secondary {
  background: var(--wm-bg-elevated);
  border: 1px solid var(--wm-border-subtle);
  color: var(--wm-text-secondary);
}

.action-btn.secondary::before {
  display: none;
}

.action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--wm-border-medium);
  color: var(--wm-text-primary);
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--wm-accent-purple), var(--wm-accent-purple-dark));
  color: white;
  box-shadow: 
    0 8px 30px -6px var(--wm-accent-purple-glow),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

.action-btn.primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 
    0 14px 40px -8px var(--wm-accent-purple-glow),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

.action-btn.primary.deposit {
  background: linear-gradient(135deg, var(--wm-accent-deposit), var(--wm-accent-deposit-dark));
  box-shadow: 
    0 8px 30px -6px var(--wm-accent-deposit-glow),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.action-btn.primary.deposit:hover:not(:disabled) {
  box-shadow: 
    0 14px 40px -8px var(--wm-accent-deposit-glow),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.action-btn.primary.withdraw {
  background: linear-gradient(135deg, var(--wm-accent-withdraw), var(--wm-accent-withdraw-dark));
  color: #1a1a2e;
  box-shadow: 
    0 8px 30px -6px var(--wm-accent-withdraw-glow),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

.action-btn.primary.withdraw:hover:not(:disabled) {
  box-shadow: 
    0 14px 40px -8px var(--wm-accent-withdraw-glow),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

.action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.action-btn:active:not(:disabled) {
  transform: translateY(-1px) !important;
}

/* ============================================
   STATE SCREENS - FEEDBACK STATES
   ============================================ */
.wallet-modal-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--wm-space-2xl) var(--wm-space-xl);
  text-align: center;
  min-height: 350px;
}

.state-icon-container {
  position: relative;
  margin-bottom: var(--wm-space-lg);
}

.state-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.state-icon.success {
  background: linear-gradient(145deg, var(--wm-accent-deposit), var(--wm-accent-deposit-dark));
  animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 0 60px -10px var(--wm-accent-deposit-glow),
    0 20px 50px -15px var(--wm-accent-deposit-glow);
}

/* Animated ring */
.state-icon.success::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 3px solid rgba(0, 230, 160, 0.4);
  animation: successRing 0.8s ease-out forwards;
}

.state-icon svg {
  width: 44px;
  height: 44px;
  color: white;
}

@keyframes successPop {
  0% { transform: scale(0) rotate(-45deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes successRing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.state-icon.processing {
  background: var(--wm-bg-elevated);
  border: 2px solid var(--wm-border-medium);
}

.state-icon.error {
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid rgba(239, 68, 68, 0.3);
  font-size: 48px;
  color: var(--wm-error);
}

.wallet-modal-state h3 {
  margin: 0 0 var(--wm-space-sm);
  font-size: 28px;
  font-weight: 800;
  color: var(--wm-text-primary);
  letter-spacing: -0.3px;
}

.wallet-modal-state .success-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--wm-accent-deposit);
  text-shadow: 0 0 40px var(--wm-accent-deposit-glow);
  letter-spacing: -1px;
  margin: var(--wm-space-sm) 0;
  animation: amountReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes amountReveal {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.wallet-modal-state p {
  margin: 0;
  font-size: 15px;
  color: var(--wm-text-secondary);
  line-height: 1.5;
}

.wallet-modal-state p strong {
  color: var(--wm-text-primary);
  font-weight: 600;
}

.wallet-modal-state .action-btn {
  margin-top: var(--wm-space-lg);
  min-width: 180px;
}

/* ============================================
   2FA SETUP FLOW
   ============================================ */
.twofa-setup,
.twofa-verify {
  padding: var(--wm-space-lg);
}

.twofa-header {
  text-align: center;
  margin-bottom: var(--wm-space-md);
}

.twofa-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--wm-space-md);
  position: relative;
  animation: iconBreathe 3s ease-in-out infinite;
}

.twofa-icon.shield {
  background: linear-gradient(145deg, var(--wm-accent-deposit), var(--wm-accent-deposit-dark));
  box-shadow: 
    0 15px 40px -10px var(--wm-accent-deposit-glow),
    inset 0 2px 0 rgba(255,255,255,0.2);
}

.twofa-icon.lock {
  background: linear-gradient(145deg, var(--wm-accent-withdraw), var(--wm-accent-withdraw-dark));
  box-shadow: 
    0 15px 40px -10px var(--wm-accent-withdraw-glow),
    inset 0 2px 0 rgba(255,255,255,0.2);
}

.twofa-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  background: inherit;
  filter: blur(18px);
  opacity: 0.5;
  z-index: -1;
}

.twofa-icon svg {
  width: 26px;
  height: 26px;
  color: white;
}

.twofa-header h2 {
  margin: 0 0 var(--wm-space-xs);
  font-size: 22px;
  font-weight: 800;
  color: var(--wm-text-primary);
}

.twofa-header p {
  margin: 0;
  font-size: 13px;
  color: var(--wm-text-secondary);
}

.verify-amount {
  display: inline-flex;
  align-items: center;
  gap: var(--wm-space-xs);
  padding: var(--wm-space-xs) var(--wm-space-md);
  background: rgba(251, 191, 36, 0.1);
  border-radius: var(--wm-radius-full);
  margin-top: var(--wm-space-sm);
  font-size: 16px;
  color: var(--wm-text-secondary);
}

.verify-amount strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--wm-accent-withdraw);
}

/* Setup steps */
.setup-steps {
  display: flex;
  flex-direction: column;
  gap: var(--wm-space-sm);
  margin-bottom: var(--wm-space-md);
}

.setup-step {
  display: flex;
  align-items: flex-start;
  gap: var(--wm-space-sm);
}

.step-number {
  width: 26px;
  height: 26px;
  background: var(--wm-accent-purple-glow);
  border: 2px solid rgba(168, 85, 247, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--wm-accent-purple);
  flex-shrink: 0;
}

.step-content h4 {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wm-text-primary);
}

.step-content p {
  margin: 0;
  font-size: 11px;
  color: var(--wm-text-tertiary);
}

/* QR Code */
.qr-container {
  display: flex;
  justify-content: center;
  padding: var(--wm-space-sm);
  margin: var(--wm-space-sm) 0 var(--wm-space-md);
}

.qr-image {
  width: 150px;
  height: 150px;
  border-radius: var(--wm-radius-md);
  background: white;
  padding: 10px;
  box-shadow: 
    0 15px 50px -15px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.1);
}

.qr-loading {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wm-bg-elevated);
  border: 2px dashed var(--wm-border-medium);
  border-radius: var(--wm-radius-md);
}

/* Manual key */
.manual-key {
  margin-bottom: var(--wm-space-md);
}

.manual-key summary {
  font-size: 12px;
  color: var(--wm-text-tertiary);
  cursor: pointer;
  text-align: center;
  padding: var(--wm-space-xs);
}

.manual-key summary:hover {
  color: var(--wm-text-secondary);
}

.secret-key {
  display: block;
  margin-top: var(--wm-space-sm);
  padding: var(--wm-space-sm);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--wm-border-subtle);
  border-radius: var(--wm-radius-sm);
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 11px;
  color: var(--wm-accent-purple);
  word-break: break-all;
  text-align: center;
  letter-spacing: 1px;
}

/* Code input */
.code-input-section {
  text-align: center;
  margin-bottom: var(--wm-space-md);
}

.code-input-section p {
  margin: 0 0 var(--wm-space-sm);
  font-size: 13px;
  color: var(--wm-text-secondary);
}

.code-input-group {
  display: flex;
  justify-content: center;
  gap: var(--wm-space-xs);
}

.code-input {
  width: 44px;
  height: 54px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--wm-border-subtle);
  border-radius: var(--wm-radius-md);
  font-size: 28px;
  font-weight: 800;
  color: var(--wm-text-primary);
  text-align: center;
  outline: none;
  transition: all var(--wm-transition-base);
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.code-input:focus {
  border-color: var(--wm-accent-purple);
  box-shadow: 0 0 0 4px var(--wm-accent-purple-glow);
  background: rgba(168, 85, 247, 0.05);
  transform: translateY(-2px);
}

.code-input.error {
  border-color: var(--wm-error);
  animation: inputShake 0.4s ease;
}

.code-input.success {
  border-color: var(--wm-accent-deposit);
  background: rgba(0, 230, 160, 0.08);
  box-shadow: 0 0 12px rgba(0, 230, 160, 0.3);
}

/* Pulse animation for ready button */
.action-btn.pulse-ready {
  animation: pulseReady 1.5s ease-in-out infinite;
}

@keyframes pulseReady {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(168, 85, 247, 0.7), 0 0 40px rgba(168, 85, 247, 0.3);
    transform: scale(1.02);
  }
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* ============================================
   SPINNER
   ============================================ */
.wallet-spinner {
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 520px) {
  .wallet-modal {
    max-width: 100%;
    max-height: 95vh;
    border-radius: var(--wm-radius-xl) var(--wm-radius-xl) 0 0;
    margin-top: auto;
  }

  .wallet-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .wallet-modal-header {
    padding: var(--wm-space-xl) var(--wm-space-lg) var(--wm-space-md);
  }

  .wallet-modal-header h2 {
    font-size: 26px;
  }

  .header-icon {
    width: 72px;
    height: 72px;
  }

  .wallet-modal-body {
    padding: 0 var(--wm-space-lg) var(--wm-space-md);
  }

  .amount-input {
    font-size: 32px;
  }

  .amount-currency {
    font-size: 28px;
  }

  .wallet-modal-actions {
    padding: var(--wm-space-md) var(--wm-space-lg) var(--wm-space-xl);
  }

  .quick-amounts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--wm-space-xs);
  }

  .quick-amount-btn {
    padding: var(--wm-space-sm);
    font-size: 14px;
  }

  .code-input {
    width: 44px;
    height: 54px;
    font-size: 22px;
  }
}

/* Safe area for notched devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 520px) {
    .wallet-modal-actions {
      padding-bottom: calc(var(--wm-space-xl) + env(safe-area-inset-bottom));
    }
  }
}

/* ============================================
   CRYPTOCURRENCY PAYMENT STYLES
   ============================================ */

/* Payment Method Tabs */
.payment-method-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px;
  border-radius: var(--wm-radius-md);
  border: 1px solid var(--wm-border-subtle);
}

.payment-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--wm-text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--wm-transition-base);
  position: relative;
}

.payment-tab:hover {
  color: var(--wm-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.payment-tab.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(59, 130, 246, 0.25) 100%);
  color: var(--wm-text-primary);
  box-shadow: 0 2px 12px rgba(168, 85, 247, 0.25);
}

.payment-tab svg {
  flex-shrink: 0;
}

.tab-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(0, 230, 160, 0.2);
  color: #00e6a0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-badge.popular {
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.25) 0%, rgba(255, 200, 0, 0.25) 100%);
  color: #ffc800;
}

/* ============================================
   INLINE AMOUNT INPUT (for crypto page)
   ============================================ */
.inline-amount-section {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--wm-border-subtle);
  border-radius: var(--wm-radius-md);
}

.inline-amount-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inline-amount-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--wm-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.inline-amount-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.inline-amount-input-wrap .dollar-prefix {
  position: absolute;
  left: 12px;
  font-size: 20px;
  font-weight: 600;
  font-family: var(--wm-font-mono);
  color: var(--wm-text-secondary);
  pointer-events: none;
}

.inline-amount-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--wm-border-medium);
  border-radius: var(--wm-radius-sm);
  padding: 12px 14px 12px 32px;
  font-size: 20px;
  font-weight: 600;
  font-family: var(--wm-font-mono);
  color: var(--wm-text-primary);
  transition: all var(--wm-transition-base);
}

.inline-amount-input:focus {
  outline: none;
  border-color: var(--wm-accent-deposit);
  box-shadow: 0 0 0 3px var(--wm-accent-deposit-glow);
  background: rgba(0, 0, 0, 0.5);
}

.inline-amount-input.withdraw-input:focus {
  border-color: var(--wm-accent-withdraw);
  box-shadow: 0 0 0 3px var(--wm-accent-withdraw-glow);
}

.inline-amount-input::placeholder {
  color: var(--wm-text-disabled);
  font-weight: 400;
}

/* Quick amount chips inline */
.inline-quick-amounts {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.inline-quick-chip {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--wm-border-subtle);
  border-radius: var(--wm-radius-full);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--wm-font-mono);
  color: var(--wm-text-secondary);
  cursor: pointer;
  transition: all var(--wm-transition-fast);
}

.inline-quick-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--wm-border-medium);
  color: var(--wm-text-primary);
  transform: translateY(-1px);
}

.inline-quick-chip.active {
  background: linear-gradient(135deg, rgba(0, 230, 160, 0.15) 0%, rgba(0, 180, 130, 0.15) 100%);
  border-color: var(--wm-accent-deposit);
  color: var(--wm-accent-deposit);
}

.inline-quick-chip.withdraw.active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
  border-color: var(--wm-accent-withdraw);
  color: var(--wm-accent-withdraw);
}

/* Amount validation message inline */
.inline-amount-error {
  margin-top: 8px;
  font-size: 12px;
  color: var(--wm-error);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Crypto Grid */
.crypto-section {
  margin-bottom: 20px;
}

.section-hint {
  color: var(--wm-text-secondary);
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
}

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

.crypto-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--wm-border-subtle);
  border-radius: var(--wm-radius-md);
  cursor: pointer;
  transition: all var(--wm-transition-base);
  position: relative;
  text-align: left;
}

.crypto-option:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--wm-border-medium);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.crypto-option.popular {
  border-color: rgba(247, 147, 26, 0.35);
  background: linear-gradient(165deg, rgba(247, 147, 26, 0.06) 0%, rgba(0, 0, 0, 0) 100%);
}

.crypto-option.popular:hover:not(.disabled) {
  border-color: rgba(247, 147, 26, 0.6);
  box-shadow: 0 8px 24px rgba(247, 147, 26, 0.2);
}

.crypto-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.crypto-option-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crypto-option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.crypto-name {
  color: var(--wm-text-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.crypto-network {
  color: var(--wm-text-tertiary);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.crypto-popular-badge {
  position: absolute;
  top: -8px;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--wm-radius-full);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
}

/* Crypto Benefits */
.crypto-benefits {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--wm-border-subtle);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--wm-text-secondary);
  font-size: 12px;
}

.benefit-icon {
  font-size: 14px;
}

/* Fiat Section */
.fiat-section {
  margin-bottom: 20px;
}

.fiat-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fiat-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--wm-border-subtle);
  border-radius: var(--wm-radius-md);
  cursor: pointer;
  transition: all var(--wm-transition-base);
  text-align: left;
  position: relative;
}

.fiat-option:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--wm-border-medium);
}

.fiat-option.selected {
  border-color: var(--wm-accent-purple);
  background: rgba(168, 85, 247, 0.08);
}

.fiat-option.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.fiat-option svg {
  color: var(--wm-text-secondary);
}

.fiat-option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fiat-name {
  color: var(--wm-text-primary);
  font-size: 14px;
  font-weight: 600;
}

.fiat-fee {
  color: var(--wm-text-tertiary);
  font-size: 12px;
}

.coming-soon-badge {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  font-weight: 600;
}

.fiat-notice {
  color: var(--wm-text-secondary);
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
  padding: 12px;
  background: rgba(251, 191, 36, 0.05);
  border-radius: var(--wm-radius-sm);
  border: 1px dashed rgba(251, 191, 36, 0.2);
}

/* ============================================
   CRYPTO DEPOSIT VIEW
   ============================================ */
.crypto-deposit-view,
.crypto-withdraw-view {
  padding: 20px;
}

.crypto-back-btn {
  background: none;
  border: none;
  color: var(--wm-text-secondary);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--wm-transition-fast);
}

.crypto-back-btn:hover {
  color: var(--wm-text-primary);
}

.crypto-deposit-header {
  text-align: center;
  margin-bottom: 24px;
}

.crypto-icon-large {
  margin-bottom: 12px;
}

.crypto-deposit-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--wm-text-primary);
  margin: 0 0 6px 0;
}

.crypto-subtitle {
  color: var(--wm-text-secondary);
  font-size: 14px;
  margin: 0;
}

/* Network Selector */
.network-selector {
  margin-bottom: 20px;
}

.network-selector label {
  display: block;
  font-size: 13px;
  color: var(--wm-text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.network-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.network-option {
  flex: 1;
  min-width: 80px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--wm-border-subtle);
  border-radius: var(--wm-radius-sm);
  color: var(--wm-text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--wm-transition-base);
  text-align: center;
}

.network-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--wm-border-medium);
}

.network-option.selected {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  border-color: var(--wm-accent-purple);
  color: var(--wm-text-primary);
}

.network-warning {
  font-size: 11px;
  color: #fbbf24;
  margin-top: 8px;
  text-align: center;
}

/* QR Code */
.crypto-qr-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--wm-radius-lg);
  margin-bottom: 20px;
}

.qr-placeholder {
  width: 160px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  border-radius: var(--wm-radius-md);
  color: #666;
  gap: 8px;
}

.qr-placeholder svg {
  stroke: #666;
}

.qr-placeholder span {
  font-size: 12px;
  font-weight: 600;
}

.qr-label {
  color: #333;
  font-size: 12px;
  margin-top: 12px;
  font-weight: 500;
}

/* Crypto Address */
.crypto-address-section {
  margin-bottom: 20px;
}

.crypto-address-section label {
  display: block;
  font-size: 13px;
  color: var(--wm-text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.crypto-address-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--wm-border-subtle);
  border-radius: var(--wm-radius-md);
}

.crypto-address {
  flex: 1;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 11px;
  color: var(--wm-text-primary);
  word-break: break-all;
  line-height: 1.5;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--wm-radius-sm);
  color: var(--wm-text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--wm-transition-base);
  white-space: nowrap;
}

.copy-btn:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
  border-color: var(--wm-accent-purple);
}

.copy-btn.copied {
  background: rgba(0, 230, 160, 0.2);
  border-color: rgba(0, 230, 160, 0.4);
  color: #00e6a0;
}

/* Wallet Address Input */
.wallet-address-input-container {
  margin-top: 4px;
}

.wallet-address-input {
  width: 100%;
  padding: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--wm-border-subtle);
  border-radius: var(--wm-radius-md);
  color: var(--wm-text-primary);
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 13px;
  outline: none;
  transition: border-color var(--wm-transition-base), box-shadow var(--wm-transition-base);
}

.wallet-address-input:focus {
  border-color: var(--wm-accent-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.wallet-address-input::placeholder {
  color: var(--wm-text-tertiary);
}

/* Crypto Info Grid */
.crypto-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.crypto-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--wm-radius-sm);
  border: 1px solid var(--wm-border-subtle);
}

.info-label {
  font-size: 11px;
  color: var(--wm-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 13px;
  color: var(--wm-text-primary);
  font-weight: 600;
}

/* Withdraw Summary */
.withdraw-summary {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: var(--wm-radius-md);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  color: var(--wm-text-secondary);
  font-size: 13px;
}

.summary-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row.total {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(251, 191, 36, 0.2);
  color: var(--wm-text-primary);
  font-weight: 600;
}

.summary-value {
  color: var(--wm-text-primary);
  font-weight: 500;
}

.summary-row.total .summary-value {
  color: #fbbf24;
  font-size: 15px;
}

/* Demo Notice */
.demo-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px dashed rgba(59, 130, 246, 0.25);
  border-radius: var(--wm-radius-md);
  margin-bottom: 20px;
  text-align: center;
}

.demo-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  border-radius: var(--wm-radius-full);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.demo-notice p {
  color: var(--wm-text-secondary);
  font-size: 12px;
  margin: 0;
  line-height: 1.5;
}

/* Mobile responsive for crypto */
@media (max-width: 520px) {
  .crypto-grid {
    grid-template-columns: 1fr;
  }
  
  .payment-method-tabs {
    flex-direction: column;
    gap: 4px;
  }
  
  .payment-tab {
    padding: 14px;
  }
  
  .crypto-benefits {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .network-options {
    flex-direction: column;
  }
  
  .network-option {
    min-width: 100%;
  }
  
  .crypto-info-grid {
    grid-template-columns: 1fr;
  }
}

