/* ============================================
   XTOKEN PRO - ULTRA MODERN CRYPTO WALLET 2026
   Part 1: Variables, Base & Animations
   ============================================ */

:root {
  /* Deep Space Palette */
  --bg-primary: #0a0a1f;
  --bg-secondary: #12123a;
  --bg-tertiary: #1a1a4e;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  
  /* Neon Accents */
  --neon-purple: #8b5cf6;
  --neon-blue: #3b82f6;
  --neon-cyan: #06b6d4;
  --neon-green: #10b981;
  --neon-red: #ef4444;
  --neon-orange: #f59e0b;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --gradient-danger: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
  --gradient-gold: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
  --gradient-text: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  
  /* Glassmorphism */
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-strong: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(20px);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 32px;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
.bg-animated {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 40%, rgba(99, 102, 241, 0.2) 0%, transparent 40%),
    var(--bg-primary);
  animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Particle Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Glass Card Base */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--glass-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Typography */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-success {
  background: var(--gradient-success);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Headings */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(0);
}

.btn-glow {
  animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(102, 126, 234, 0.8), 0 0 20px rgba(139, 92, 246, 0.4); }
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-border-strong);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--neon-purple);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.btn-success {
  background: var(--gradient-success);
  box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

.btn-success:hover {
  box-shadow: 0 8px 25px rgba(17, 153, 142, 0.6);
}

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

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Form Elements */
.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-field {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: #fff;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-base);
}

.input-field:focus {
  background: var(--bg-glass-hover);
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1), 0 0 20px rgba(139, 92, 246, 0.2);
}

.input-field::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.input-label {
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transition: all var(--transition-base);
  font-size: 1rem;
}

.input-field:focus + .input-label,
.input-field:not(:placeholder-shown) + .input-label {
  top: -0.6rem;
  left: 1rem;
  font-size: 0.75rem;
  color: var(--neon-purple);
  background: var(--bg-secondary);
  padding: 0 0.5rem;
  border-radius: 4px;
}

/* Icons */
.icon-glow {
  filter: drop-shadow(0 0 8px currentColor);
}

/* Price Ticker */
.price-ticker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  background: var(--bg-glass);
  border-radius: 100px;
  border: 1px solid var(--glass-border);
}

.price-up { color: var(--neon-green); }
.price-down { color: var(--neon-red); }

.pulse-arrow {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

/* Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.75rem;
  transition: all var(--transition-base);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}

.nav-item:hover,
.nav-item.active {
  color: var(--neon-purple);
  background: var(--bg-glass-hover);
}

.nav-item svg {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
}

.nav-item:hover svg {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px var(--neon-purple));
}

/* Trust Badges */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  animation: fadeInUp 0.6s ease-out;
}

.trust-badge svg {
  color: var(--neon-green);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--neon-purple), 0 0 10px var(--neon-purple); }
  50% { box-shadow: 0 0 20px var(--neon-purple), 0 0 30px var(--neon-purple); }
}

.glow-effect {
  animation: glow 2s ease-in-out infinite;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-glass);
  border-top-color: var(--neon-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  color: #fff;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--glass-border);
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-purple);
}

/* Selection */
::selection {
  background: var(--neon-purple);
  color: #fff;
}
/* ============================================
   XTOKEN PRO - Part 2: Component Specific Styles
   ============================================ */

/* Container */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem;
  padding-bottom: 100px;
  min-height: 100vh;
}

/* Login Page Specific */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
}

.login-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 2.5rem;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.login-title {
  margin-bottom: 0.5rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-subtitle {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* Dashboard Specific */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid var(--glass-border-strong);
}

.portfolio-card {
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.portfolio-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eye-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all var(--transition-base);
}

.eye-toggle:hover {
  color: #fff;
  background: var(--bg-glass-hover);
}

.balance-amount {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  letter-spacing: -0.03em;
}

.balance-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--neon-green);
  position: relative;
  z-index: 1;
}

/* Action Buttons Grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition-base);
  cursor: pointer;
}

.action-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--neon-purple);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.action-btn svg {
  width: 24px;
  height: 24px;
  color: var(--neon-purple);
  transition: all var(--transition-base);
}

.action-btn:hover svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px var(--neon-purple));
}

/* Asset Cards */
.assets-section {
  margin-bottom: 1.5rem;
}

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

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.asset-card {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.asset-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.asset-card:hover::after {
  opacity: 1;
}

.asset-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
  position: relative;
}

.asset-icon.bnb {
  background: linear-gradient(135deg, #f3ba2f 0%, #f0b90b 100%);
  box-shadow: 0 0 20px rgba(243, 186, 47, 0.4);
}

.asset-icon.usdt {
  background: linear-gradient(135deg, #26a17b 0%, #10b981 100%);
}

.asset-icon.usdc {
  background: linear-gradient(135deg, #2775ca 0%, #3b82f6 100%);
}

.asset-info {
  flex: 1;
}

.asset-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.asset-chain {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  background: var(--bg-tertiary);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
}

.asset-details {
  text-align: right;
}

.asset-balance {
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
}

.asset-value {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.asset-change {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.asset-change.positive { color: var(--neon-green); }
.asset-change.negative { color: var(--neon-red); }

/* Mini Chart */
.mini-chart {
  width: 60px;
  height: 30px;
  background: linear-gradient(to right, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.mini-chart::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
}

/* Security Badge */
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 100px;
  color: var(--neon-green);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

.security-badge svg {
  filter: drop-shadow(0 0 5px var(--neon-green));
}

/* Asset Details Page */
.asset-hero {
  text-align: center;
  padding: 2rem 0;
  position: relative;
}

.asset-hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #f3ba2f 0%, #f0b90b 100%);
  box-shadow: 0 0 40px rgba(243, 186, 47, 0.5);
  animation: float 3s ease-in-out infinite;
}

.asset-hero-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.asset-hero-change {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-weight: 600;
}

/* Chart Placeholder */
.chart-container {
  height: 200px;
  background: var(--bg-glass);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.chart-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(139, 92, 246, 0.3), transparent);
  clip-path: polygon(0% 80%, 20% 60%, 40% 70%, 60% 40%, 80% 50%, 100% 20%, 100% 100%, 0% 100%);
}

/* Transaction History */
.tx-list {
  margin-bottom: 1.5rem;
}

.tx-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border: 1px solid var(--glass-border);
  transition: all var(--transition-base);
}

.tx-item:hover {
  background: var(--bg-glass-hover);
  transform: translateX(5px);
}

.tx-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  background: var(--bg-tertiary);
}

.tx-icon.sent { color: var(--neon-red); }
.tx-icon.received { color: var(--neon-green); }

.tx-info {
  flex: 1;
}

.tx-type {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.tx-date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.tx-amount {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 700;
}

.tx-amount.sent { color: var(--neon-red); }
.tx-amount.received { color: var(--neon-green); }

.tx-address {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
}

/* Withdraw Options */
.withdraw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.withdraw-option {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.withdraw-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.withdraw-option:hover::before {
  transform: translateX(100%);
}

.withdraw-option:hover {
  border-color: var(--neon-purple);
  transform: translateY(-2px);
}

.withdraw-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.75rem;
  background: var(--bg-tertiary);
  transition: transform var(--transition-base);
}

.withdraw-option:hover .withdraw-icon {
  transform: scale(1.1) rotate(5deg);
}

.withdraw-info h3 {
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.withdraw-info p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Bank/Fiat Grid */
.fiat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.fiat-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}

.fiat-option:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--neon-cyan);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

.fiat-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 2rem;
  background: var(--bg-tertiary);
  transition: all var(--transition-base);
}

.fiat-option:hover .fiat-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px currentColor;
}

.fiat-name {
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
}
/* ============================================
   XTOKEN PRO - Part 3: Forms, Confirm & Success
   ============================================ */

/* Form Pages */
.form-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 1rem;
}

.back-btn {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.back-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--neon-purple);
  transform: translateX(-3px);
}

.form-title {
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

/* Amount Input */
.amount-input-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.amount-input {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-glass);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: #fff;
  width: 100%;
  outline: none;
  transition: all var(--transition-base);
  font-family: var(--font-mono);
}

.amount-input:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1), 0 0 30px rgba(139, 92, 246, 0.2);
}

.amount-currency {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.conversion-display {
  text-align: center;
  padding: 1rem;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--glass-border);
}

.conversion-display .highlight {
  color: var(--neon-cyan);
  font-weight: 700;
}

/* Conditional Fields */
.conditional-field {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.conditional-field.active {
  display: block;
}

.field-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Confirm Fee Page */
.review-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.review-row:last-child {
  border-bottom: none;
}

.review-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.review-value {
  font-weight: 600;
  text-align: right;
  font-family: var(--font-mono);
}

.review-value.highlight {
  color: var(--neon-cyan);
  font-size: 1.125rem;
}

.fee-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.fee-box::before {
  content: '⚠️';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  opacity: 0.2;
}

.fee-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.fee-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--neon-orange);
  font-family: var(--font-mono);
}

/* Dropdown */
.select-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.select-field {
  width: 100%;
  padding: 1rem 3rem 1rem 1.25rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: #fff;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  appearance: none;
  outline: none;
  transition: all var(--transition-base);
}

.select-field:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.select-wrapper::after {
  content: '▼';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  font-size: 0.75rem;
}

/* Address Box */
.address-box {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  word-break: break-all;
  display: none;
}

.address-box.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  color: #fff;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.copy-btn:hover {
  background: var(--neon-purple);
  border-color: var(--neon-purple);
}

.copy-btn.copied {
  background: var(--neon-green);
  border-color: var(--neon-green);
}

/* File Upload */
.upload-zone {
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--neon-purple);
  background: var(--bg-glass-hover);
}

.upload-zone.has-file {
  border-color: var(--neon-green);
  background: rgba(16, 185, 129, 0.05);
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
  transition: transform var(--transition-base);
}

.upload-zone:hover .upload-icon {
  transform: scale(1.1);
}

.upload-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.upload-hint {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.upload-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.upload-input {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

/* Warning Box */
.warning-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.warning-box svg {
  color: var(--neon-red);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Success Page */
.success-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.success-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 3rem;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.5);
  animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.success-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: var(--gradient-success);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-message {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 400px;
}

/* Receipt Card */
.receipt-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: left;
  position: relative;
}

.receipt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-success);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.receipt-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 2px dashed var(--glass-border);
  margin-bottom: 1.5rem;
}

.receipt-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.receipt-date {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.875rem;
}

.receipt-row:last-child {
  border-bottom: none;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--glass-border);
  font-weight: 700;
  font-size: 1rem;
}

.receipt-label {
  color: rgba(255, 255, 255, 0.6);
}

.receipt-value {
  font-family: var(--font-mono);
  color: #fff;
}

.receipt-value.success {
  color: var(--neon-green);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 100px;
  color: var(--neon-green);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1rem;
}

.status-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulse 2s infinite;
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

/* Page Transitions */
.page-transition {
  animation: pageEnter 0.5s ease-out;
}

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

/* Responsive */
@media (min-width: 768px) {
  .container {
    max-width: 600px;
  }
  
  .fiat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .action-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 1rem;
  }
  
  .action-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .balance-amount {
    font-size: 2rem;
  }
}

/* Utility Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
