/* ============================================================
   P2P EXCHANGE - COMPLETE CSS
   Mobile-first | Dark/Light Theme | PWA Style
   ============================================================ */

:root {
  /* Light Theme */
  --bg-primary: #F8F9FC;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-input: #F1F3F8;
  --bg-nav: #FFFFFF;
  --bg-header: #FFFFFF;

  --text-primary: #1A1D2E;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-inverse: #FFFFFF;

  --border-color: #E5E7EB;
  --border-focus: #6C63FF;

  --accent: #6C63FF;
  --accent-light: rgba(108, 99, 255, 0.1);
  --accent-dark: #5852d6;

  --success: #10B981;
  --success-light: rgba(16, 185, 129, 0.1);
  --danger: #EF4444;
  --danger-light: rgba(239, 68, 68, 0.1);
  --warning: #F59E0B;
  --warning-light: rgba(245, 158, 11, 0.1);
  --info: #3B82F6;
  --info-light: rgba(59, 130, 246, 0.1);

  --buy-color: #10B981;
  --sell-color: #EF4444;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 70px;
  --header-height: 60px;

  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg-primary: #0F1117;
  --bg-secondary: #1A1D2E;
  --bg-card: #1E2133;
  --bg-input: #252840;
  --bg-nav: #1A1D2E;
  --bg-header: #1A1D2E;

  --text-primary: #F1F3F8;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;

  --border-color: #2D3149;
  --border-focus: #6C63FF;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::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(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
  transition: background var(--transition), color var(--transition);
}

body.auth-body { padding-bottom: 0; background: linear-gradient(135deg, #6C63FF 0%, #4ECDC4 100%); }

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.8; }
img { max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--transition);
}

.header-left { display: flex; align-items: center; gap: 10px; }

.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #6C63FF, #4ECDC4);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px;
}

.app-name { font-size: 18px; font-weight: 700; color: var(--text-primary); }

.header-right { display: flex; align-items: center; gap: 8px; }

.rate-ticker {
  background: var(--bg-input);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  display: flex; align-items: center; gap: 4px;
  font-size: 12px;
}
.rate-label { color: var(--text-muted); }
.rate-value { font-weight: 600; color: var(--success); }

.icon-btn {
  width: 36px; height: 36px;
  border: none; background: var(--bg-input);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 14px;
  position: relative; transition: all var(--transition);
}
.icon-btn:hover { background: var(--accent-light); color: var(--accent); }

.badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--danger);
  color: white; font-size: 9px; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-header);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.app-main {
  padding-top: calc(var(--header-height) + 16px);
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 24px;
  min-height: 100vh;
}

/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  border-top: 1px solid var(--border-color);
  display: flex; align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; padding: 8px 0;
  color: var(--text-muted); text-decoration: none;
  font-size: 10px; font-weight: 500;
  transition: all var(--transition);
  position: relative;
}

.nav-item.active { color: var(--accent); }
.nav-item.active .nav-icon { color: var(--accent); }
.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

.nav-icon { font-size: 20px; line-height: 1; }

.trade-btn-wrapper { flex: 1.2; }

.trade-fab {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #6C63FF, #4ECDC4);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 22px;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.5);
  transition: all var(--transition);
  transform: translateY(-8px);
}
.trade-fab:hover, .trade-fab.active { transform: translateY(-8px) scale(1.1) rotate(45deg); }

/* ============================================================
   TRADE SPEED DIAL
   ============================================================ */
.trade-menu { position: fixed; inset: 0; z-index: 200; }
.trade-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }

.trade-actions {
  position: absolute;
  bottom: calc(var(--nav-height) + 20px);
  left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 10px;
  width: 260px;
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.trade-action {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  text-decoration: none; color: var(--text-primary);
  transition: all var(--transition);
}
.trade-action:hover { transform: translateX(4px); }

.action-icon {
  width: 44px; height: 44px;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-size: 18px; color: white;
}

.trade-action.buy   .action-icon { background: linear-gradient(135deg, #10B981, #059669); }
.trade-action.sell  .action-icon { background: linear-gradient(135deg, #EF4444, #DC2626); }
.trade-action.deposit  .action-icon { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.trade-action.withdraw .action-icon { background: linear-gradient(135deg, #F59E0B, #D97706); }

.action-info strong { display: block; font-size: 14px; font-weight: 600; }
.action-info small  { color: var(--text-muted); font-size: 11px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.card-title { font-size: 15px; font-weight: 600; }
.card-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   WALLET BALANCE CARD
   ============================================================ */
.wallet-hero {
  background: linear-gradient(135deg, #6C63FF 0%, #4ECDC4 100%);
  border-radius: var(--radius-xl);
  padding: 24px;
  color: white; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.wallet-hero::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.wallet-hero::after {
  content: '';
  position: absolute; bottom: -60px; left: 30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.wallet-hero-label { font-size: 12px; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }
.wallet-hero-balance { font-size: 36px; font-weight: 700; margin: 6px 0; }
.wallet-hero-sub { font-size: 13px; opacity: 0.7; }

.wallet-hero-actions {
  display: flex; gap: 10px; margin-top: 20px; position: relative; z-index: 1;
}
.wallet-hero-btn {
  flex: 1; padding: 10px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  color: white; font-size: 12px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none; transition: all var(--transition);
  backdrop-filter: blur(10px);
}
.wallet-hero-btn:hover { background: rgba(255,255,255,0.3); }
.wallet-hero-btn i { font-size: 18px; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}
.stat-card:active { transform: scale(0.97); }

.stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 10px;
}
.stat-value  { font-size: 20px; font-weight: 700; }
.stat-label  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.icon-green  { background: var(--success-light); color: var(--success); }
.icon-red    { background: var(--danger-light);  color: var(--danger); }
.icon-blue   { background: var(--info-light);    color: var(--info); }
.icon-purple { background: var(--accent-light);  color: var(--accent); }
.icon-yellow { background: var(--warning-light); color: var(--warning); }

/* ============================================================
   ORDER LIST
   ============================================================ */
.order-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 10px; transition: all var(--transition);
  text-decoration: none; color: var(--text-primary);
}
.order-item:active { transform: scale(0.98); }

.order-type-icon {
  width: 44px; height: 44px;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.order-type-icon.buy     { background: var(--success-light); color: var(--success); }
.order-type-icon.sell    { background: var(--danger-light);  color: var(--danger); }
.order-type-icon.deposit { background: var(--info-light);    color: var(--info); }
.order-type-icon.withdraw{ background: var(--warning-light); color: var(--warning); }

.order-info { flex: 1; min-width: 0; }
.order-id-text  { font-size: 13px; font-weight: 600; }
.order-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.order-amount { text-align: right; }
.order-crypto { font-size: 15px; font-weight: 700; }
.order-inr    { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   STATUS BADGES
   ============================================================ */
.badge-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600; text-transform: capitalize;
  white-space: nowrap;
}
.status-pending          { background: var(--warning-light); color: var(--warning); }
.status-matched          { background: var(--info-light);    color: var(--info); }
.status-payment_marked   { background: var(--accent-light);  color: var(--accent); }
.status-payment_confirmed{ background: var(--success-light); color: var(--success); }
.status-completed        { background: var(--success-light); color: var(--success); }
.status-cancelled, .status-expired { background: var(--danger-light); color: var(--danger); }
.status-disputed         { background: var(--warning-light); color: var(--warning); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-secondary); }
.form-label span { color: var(--danger); }

.form-control {
  width: 100%; padding: 12px 14px;
  background: var(--bg-input); border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 15px; font-family: var(--font);
  transition: all var(--transition); outline: none;
}
.form-control:focus { border-color: var(--accent); background: var(--bg-secondary); box-shadow: 0 0 0 3px var(--accent-light); }
.form-control::placeholder { color: var(--text-muted); }
.form-control.error { border-color: var(--danger); }

.input-group { position: relative; }
.input-group .form-control { padding-right: 50px; }
.input-group-append {
  position: absolute; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; padding: 0 14px;
  color: var(--text-muted); font-size: 13px; font-weight: 600;
}

.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 11px; color: var(--danger); margin-top: 5px; display: none; }
.form-error.show { display: block; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  width: 100%; padding: 14px;
  border: none; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary   { background: linear-gradient(135deg, #6C63FF, #5852d6); color: white; box-shadow: 0 4px 15px rgba(108,99,255,0.4); }
.btn-success   { background: linear-gradient(135deg, #10B981, #059669); color: white; box-shadow: 0 4px 15px rgba(16,185,129,0.4); }
.btn-danger    { background: linear-gradient(135deg, #EF4444, #DC2626); color: white; box-shadow: 0 4px 15px rgba(239,68,68,0.4); }
.btn-warning   { background: linear-gradient(135deg, #F59E0B, #D97706); color: white; }
.btn-outline   { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }
.btn-ghost     { background: var(--bg-input); color: var(--text-secondary); }
.btn-sm        { padding: 8px 16px; font-size: 13px; width: auto; }

/* ============================================================
   TIMER COMPONENT
   ============================================================ */
.order-timer {
  background: linear-gradient(135deg, rgba(108,99,255,0.08), rgba(78,205,196,0.08));
  border: 1.5px solid var(--accent-light);
  border-radius: var(--radius-lg);
  padding: 20px; text-align: center; margin-bottom: 20px;
}
.timer-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.timer-display {
  font-size: 48px; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums; letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}
.timer-display.urgent { color: var(--danger); animation: timerPulse 1s ease infinite; }
@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.timer-subtext { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ============================================================
   STEPS / PROGRESS
   ============================================================ */
.order-steps { display: flex; align-items: center; margin-bottom: 24px; }
.step {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 6px; position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute; top: 16px; left: 50%;
  width: 100%; height: 2px;
  background: var(--border-color);
  z-index: 0;
}
.step.done:not(:last-child)::after { background: var(--accent); }

.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%; border: 2px solid var(--border-color);
  background: var(--bg-card); display: flex;
  align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  position: relative; z-index: 1;
  transition: all var(--transition);
}
.step.done   .step-dot { background: var(--accent); border-color: var(--accent); color: white; }
.step.active .step-dot { border-color: var(--accent); color: var(--accent); animation: stepPulse 1.5s ease infinite; }
@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-light); }
  50% { box-shadow: 0 0 0 6px var(--accent-light); }
}

.step-label { font-size: 10px; color: var(--text-muted); text-align: center; }
.step.active .step-label, .step.done .step-label { color: var(--accent); font-weight: 600; }

/* ============================================================
   MERCHANT INFO CARD
   ============================================================ */
.payment-info-card {
  background: var(--bg-card);
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 20px;
}
.payment-info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border-color);
}
.payment-info-row:last-child { border-bottom: none; }
.payment-info-label { font-size: 12px; color: var(--text-muted); }
.payment-info-value { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.copy-btn {
  width: 28px; height: 28px; border: none;
  background: var(--accent-light); border-radius: 6px;
  color: var(--accent); font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.payment-amount-highlight {
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.05));
  border-radius: var(--radius-md);
  padding: 16px; text-align: center; margin-bottom: 14px;
}
.payment-amount-label { font-size: 12px; color: var(--text-muted); }
.payment-amount-value { font-size: 32px; font-weight: 800; color: var(--success); margin-top: 4px; }

/* ============================================================
   AUTH STYLES
   ============================================================ */
.auth-container {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px;
}

.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-icon {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px; display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 32px; color: white; margin-bottom: 12px;
  backdrop-filter: blur(10px);
}
.auth-logo h1 { font-size: 28px; font-weight: 800; color: white; }
.auth-logo p  { color: rgba(255,255,255,0.8); font-size: 14px; }

.auth-card {
  width: 100%; max-width: 400px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-xl);
}

.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.auth-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

.auth-footer { color: rgba(255,255,255,0.7); font-size: 12px; text-align: center; margin-top: 16px; }
.auth-footer a { color: white; font-weight: 600; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }
.auth-divider span { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.auth-link { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.auth-link a { color: var(--accent); font-weight: 600; }

/* ============================================================
   OTP INPUT
   ============================================================ */
.otp-container { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.otp-input {
  width: 48px; height: 56px;
  text-align: center; font-size: 22px; font-weight: 700;
  background: var(--bg-input); border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md); color: var(--text-primary);
  outline: none; transition: all var(--transition);
}
.otp-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.notif-overlay { position: fixed; inset: 0; z-index: 150; }
.notif-dropdown {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  right: 12px; left: 12px;
  max-width: 360px; margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  z-index: 200; overflow: hidden;
  animation: dropDown 0.2s ease;
}
@keyframes dropDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border-color);
  font-weight: 600; font-size: 14px;
}
.notif-header button { font-size: 12px; color: var(--accent); background: none; border: none; cursor: pointer; }

.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item {
  padding: 14px 16px; border-bottom: 1px solid var(--border-color);
  display: flex; gap: 12px; align-items: flex-start;
  transition: background var(--transition);
}
.notif-item.unread { background: var(--accent-light); }
.notif-item:hover { background: var(--bg-input); }
.notif-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.notif-content p { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.notif-content small { font-size: 11px; color: var(--text-muted); }
.notif-empty { padding: 40px; text-align: center; color: var(--text-muted); }
.notif-empty i { font-size: 32px; margin-bottom: 8px; display: block; }

/* ============================================================
   KYC STATUS
   ============================================================ */
.kyc-banner {
  background: linear-gradient(135deg, var(--warning-light), var(--warning-light));
  border: 1.5px solid var(--warning);
  border-radius: var(--radius-lg);
  padding: 14px 16px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.kyc-banner i { color: var(--warning); font-size: 20px; flex-shrink: 0; }
.kyc-banner-text p { font-size: 13px; font-weight: 600; }
.kyc-banner-text small { font-size: 11px; color: var(--text-muted); }
.kyc-banner a { color: var(--warning); font-weight: 600; font-size: 12px; text-decoration: underline; }

/* ============================================================
   UPLOAD AREA
   ============================================================ */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px; text-align: center;
  cursor: pointer; transition: all var(--transition);
  position: relative;
}
.upload-area:hover, .upload-area.dragover { border-color: var(--accent); background: var(--accent-light); }
.upload-area input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-area i { font-size: 32px; color: var(--text-muted); margin-bottom: 8px; }
.upload-area p { font-size: 13px; color: var(--text-muted); }
.upload-area strong { color: var(--accent); }
.upload-preview { max-height: 120px; border-radius: 8px; margin-top: 10px; }

/* ============================================================
   ADDRESS QR / COPY
   ============================================================ */
.address-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 20px; text-align: center; border: 1px solid var(--border-color);
}
.address-qr { width: 180px; height: 180px; margin: 0 auto 16px; background: white; padding: 8px; border-radius: 8px; }
.address-text {
  font-family: 'Courier New', monospace; font-size: 12px;
  background: var(--bg-input); border-radius: 8px;
  padding: 10px 14px; word-break: break-all;
  display: flex; align-items: center; gap: 10px;
}
.address-text span { flex: 1; text-align: left; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed; bottom: calc(var(--nav-height) + 20px);
  left: 16px; right: 16px;
  z-index: 9999; display: flex; flex-direction: column-reverse; gap: 8px;
}

.toast {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: 14px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  border-left: 4px solid var(--accent);
  animation: toastIn 0.3s ease;
}
.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }
.toast i { font-size: 18px; }
.toast.success i { color: var(--success); }
.toast.error i   { color: var(--danger); }
.toast.warning i { color: var(--warning); }
.toast p { font-size: 14px; flex: 1; }
.toast.hide { animation: toastOut 0.3s ease forwards; }

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

/* ============================================================
   LOADER
   ============================================================ */
.global-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.4); display: flex;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.loader-spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-message {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: 12px 14px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
  border-left: 4px solid var(--accent);
  animation: slideDown 0.3s ease;
}
.flash-success { border-color: var(--success); }
.flash-warning { border-color: var(--warning); }
.flash-danger  { border-color: var(--danger); }
.flash-message i { font-size: 16px; }
.flash-success i { color: var(--success); }
.flash-warning i { color: var(--warning); }
.flash-danger  i { color: var(--danger); }
.flash-message button { margin-left: auto; background: none; border: none; color: var(--text-muted); font-size: 14px; }

@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-title { font-size: 15px; font-weight: 700; }
.section-link  { font-size: 13px; color: var(--accent); }

/* ============================================================
   TABS
   ============================================================ */
.tabs { display: flex; gap: 0; background: var(--bg-input); border-radius: var(--radius-md); padding: 4px; margin-bottom: 20px; }
.tab-btn {
  flex: 1; padding: 8px;
  background: none; border: none;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  color: var(--text-muted); cursor: pointer; transition: all var(--transition);
}
.tab-btn.active { background: var(--bg-card); color: var(--text-primary); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

/* ============================================================
   AMOUNT CALCULATOR
   ============================================================ */
.calc-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 20px; border: 1px solid var(--border-color); margin-bottom: 20px;
}
.calc-input-wrapper { position: relative; margin-bottom: 12px; }
.calc-currency {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-weight: 700; color: var(--text-secondary); font-size: 15px;
}
.calc-input {
  width: 100%; padding: 16px 14px 16px 44px;
  background: var(--bg-input); border: 2px solid var(--border-color);
  border-radius: var(--radius-md); font-size: 24px; font-weight: 700;
  color: var(--text-primary); outline: none; transition: all var(--transition);
}
.calc-input:focus { border-color: var(--accent); background: var(--bg-secondary); }
.calc-arrow { text-align: center; color: var(--text-muted); margin: 8px 0; font-size: 20px; }
.calc-result {
  background: var(--bg-input); border-radius: var(--radius-md);
  padding: 14px; display: flex; justify-content: space-between; align-items: center;
}
.calc-result-label { font-size: 12px; color: var(--text-muted); }
.calc-result-value { font-size: 22px; font-weight: 700; color: var(--accent); }

.rate-info { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-color); }

/* ============================================================
   QUICK AMOUNT CHIPS
   ============================================================ */
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.quick-amount-chip {
  padding: 6px 14px; background: var(--bg-input);
  border: 1.5px solid var(--border-color); border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: all var(--transition);
  color: var(--text-secondary);
}
.quick-amount-chip:hover, .quick-amount-chip.selected {
  background: var(--accent-light); border-color: var(--accent); color: var(--accent);
}

/* ============================================================
   RESPONSIVE (tablet+)
   ============================================================ */
@media (min-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-container { padding: 32px; }
}

@media (min-width: 768px) {
  body { max-width: 480px; margin: 0 auto; }
  .app-header { max-width: 480px; left: 50%; transform: translateX(-50%); }
  .bottom-nav { max-width: 480px; left: 50%; transform: translateX(-50%); }
  .toast-container { max-width: 448px; left: 50%; transform: translateX(-50%); }
}
