/* ============================================
   CryptoSharkBot — Design System
   Theme: Deep Dark Cyber-Shark
   ============================================ */

/* ---- CSS Variables / Tokens ---- */
:root {
  /* Base colors */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(17, 24, 39, 0.9);
  --bg-input: rgba(15, 20, 35, 0.8);
  --bg-sidebar: #0d1220;

  /* Accent colors */
  --accent-blue: #00d4ff;
  --accent-teal: #0ff0b3;
  --accent-purple: #8b5cf6;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --accent-green: #10b981;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0ff0b3 100%);
  --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-dark: linear-gradient(180deg, #0a0e17 0%, #111827 100%);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #00d4ff;

  /* Borders */
  --border-color: rgba(148, 163, 184, 0.1);
  --border-glow: rgba(0, 212, 255, 0.3);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);
  --shadow-glow-teal: 0 0 20px rgba(15, 240, 179, 0.15);

  /* Layout */
  --sidebar-width: 260px;
  --navbar-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s var(--ease-smooth);
  --transition-base: 0.3s var(--ease-smooth);
  --transition-slow: 0.5s var(--ease-smooth);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent-blue); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-teal); }

button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }

/* ---- Preloader ---- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__shark { text-align: center; }
.preloader__fin { animation: preloaderPulse 1.5s ease-in-out infinite; }
.preloader__text {
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}
@keyframes preloaderPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ---- App Layout ---- */
.app { display: flex; min-height: 100vh; }

.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition-base);
}

/* ---- Sidebar ---- */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition-base);
  overflow-y: auto;
}
.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}
.sidebar__logo img { width: 40px; height: 40px; }
.sidebar__logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar__nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}
.sidebar__link:hover {
  background: rgba(0, 212, 255, 0.06);
  color: var(--text-primary);
}
.sidebar__link.active {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-blue);
  font-weight: 600;
}
.sidebar__link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 24px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
}
.sidebar__link-icon {
  width: 20px;
  text-align: center;
  font-size: 1.15rem;
}
.sidebar__divider {
  height: 1px;
  background: var(--border-color);
  margin: 12px 0;
}
.sidebar__section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 8px 14px 4px;
}

/* ---- Navbar ---- */
.navbar {
  height: var(--navbar-height);
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.navbar__left { display: flex; align-items: center; gap: 16px; }
.navbar__page-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.navbar__right { display: flex; align-items: center; gap: 16px; }
.navbar__prices {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.navbar__price-item { display: flex; align-items: center; gap: 4px; }
.navbar__price-value { color: var(--text-primary); font-weight: 600; }
.navbar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.navbar__user:hover { border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.navbar__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--bg-primary);
}
.navbar__username {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}
.navbar__burger {
  display: none;
  background: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: 4px;
}

/* ---- Page Content ---- */
.page-content {
  flex: 1;
  padding: 28px;
  animation: fadeIn 0.35s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Mobile Bottom Nav ---- */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  z-index: 100;
  padding: 0 8px;
  align-items: center;
  justify-content: space-around;
}
.mobile-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
}
.mobile-nav__item-icon { font-size: 1.2rem; }
.mobile-nav__item.active { color: var(--accent-blue); }
.mobile-nav__item:hover { color: var(--text-primary); }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}
.card:hover {
  border-color: rgba(0, 212, 255, 0.15);
  box-shadow: var(--shadow-glow);
}
.card--glow {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}
.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.card__subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---- Balance Card (specific) ---- */
.balance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-base);
  cursor: pointer;
}
.balance-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.balance-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.balance-card__icon--btc { background: rgba(247, 147, 26, 0.15); color: #f7931a; }
.balance-card__icon--eth { background: rgba(98, 126, 234, 0.15); color: #627eea; }
.balance-card__icon--ton { background: rgba(0, 136, 204, 0.15); color: #0088cc; }
.balance-card__icon--usdt { background: rgba(38, 161, 123, 0.15); color: #26a17b; }
.balance-card__info { flex: 1; }
.balance-card__currency { font-weight: 700; font-size: 0.95rem; }
.balance-card__name { font-size: 0.75rem; color: var(--text-muted); }
.balance-card__amounts { text-align: right; }
.balance-card__available { font-weight: 700; font-size: 1rem; }
.balance-card__usd { font-size: 0.8rem; color: var(--text-secondary); }
.balance-card__locked {
  font-size: 0.7rem;
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

/* ---- Hero Stats (Dashboard) ---- */
.hero-stats {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-glow);
  margin-bottom: 24px;
}
.hero-stats__total-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.hero-stats__total-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 4px 0 20px;
  letter-spacing: -1px;
}
.hero-stats__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.hero-stats__item {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.hero-stats__item-label { font-size: 0.75rem; color: var(--text-muted); }
.hero-stats__item-value { font-size: 1.1rem; font-weight: 700; margin-top: 4px; }

/* ---- Quick Actions ---- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition-base);
  cursor: pointer;
}
.quick-action:hover {
  color: var(--text-primary);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}
.quick-action__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(0, 212, 255, 0.08);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::after { opacity: 1; }

.btn--primary {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
}
.btn--primary:hover {
  box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
}
.btn--secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn--secondary:hover { border-color: var(--border-glow); }
.btn--danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn--danger:hover { background: rgba(239, 68, 68, 0.25); }
.btn--sm { padding: 8px 16px; font-size: 0.8rem; }
.btn--lg { padding: 14px 32px; font-size: 1rem; }
.btn--full { width: 100%; }
.btn--disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Form Elements ---- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
.form-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
.form-input::placeholder { color: var(--text-muted); }
.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.form-error {
  font-size: 0.75rem;
  color: var(--accent-red);
  margin-top: 6px;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.form-select:focus { border-color: var(--accent-blue); }
.form-select option { background: var(--bg-secondary); }

/* Currency selector (radio-button style) */
.currency-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}
.currency-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.currency-option:hover { border-color: rgba(0, 212, 255, 0.3); }
.currency-option.selected {
  border-color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.1);
}
.currency-option__icon { font-size: 1.5rem; }

/* ---- Data Table ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}
.data-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.05);
  vertical-align: middle;
}
.data-table tr { transition: background var(--transition-fast); }
.data-table tbody tr:hover { background: rgba(0, 212, 255, 0.03); }

/* ---- Status Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge--pending { background: rgba(245, 158, 11, 0.15); color: var(--accent-orange); }
.badge--processing { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.badge--completed { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.badge--failed { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }
.badge--cancelled { background: rgba(100, 116, 139, 0.15); color: var(--text-muted); }
.badge--buy { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.badge--sell { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }
.badge--disputed { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.pagination__btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.pagination__btn:hover { border-color: var(--border-glow); color: var(--text-primary); }
.pagination__btn.active {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.pagination__btn:disabled { opacity: 0.3; cursor: default; }

/* ---- Toast ---- */
.toast-container {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  animation: toastIn 0.35s ease forwards;
  pointer-events: auto;
  max-width: 380px;
  cursor: pointer;
}
.toast--success { background: rgba(16, 185, 129, 0.9); color: #fff; }
.toast--error { background: rgba(239, 68, 68, 0.9); color: #fff; }
.toast--info { background: rgba(0, 212, 255, 0.9); color: var(--bg-primary); }
.toast--warning { background: rgba(245, 158, 11, 0.9); color: var(--bg-primary); }
.toast.removing { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalBgIn 0.2s ease;
}
@keyframes modalBgIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 440px;
  width: 90%;
  animation: modalIn 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.92) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.modal__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}
.modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ---- Grid Layouts ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ---- Swap Section ---- */
.swap-box {
  max-width: 480px;
  margin: 0 auto;
}
.swap-field {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 4px;
}
.swap-field__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.swap-field__row { display: flex; align-items: center; gap: 12px; }
.swap-field__input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  font-weight: 700;
  width: 100%;
}
.swap-field__input::placeholder { color: var(--text-muted); }
.swap-field__currency {
  padding: 8px 14px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.swap-divider {
  display: flex;
  justify-content: center;
  margin: -12px 0;
  position: relative;
  z-index: 2;
}
.swap-divider__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--accent-blue);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  cursor: pointer;
}
.swap-divider__btn:hover {
  border-color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.1);
  transform: rotate(180deg);
}
.swap-info {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.swap-info__row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}
.swap-info__value { color: var(--text-primary); font-weight: 500; }

/* ---- QR Code ---- */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.qr-box {
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
}
.address-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  max-width: 100%;
  overflow: hidden;
}
.address-box__text {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--text-primary);
  word-break: break-all;
}
.address-box__copy {
  flex-shrink: 0;
  padding: 6px 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-blue);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.address-box__copy:hover { background: rgba(0, 212, 255, 0.2); }

/* ---- P2P Offer Card ---- */
.p2p-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition-base);
}
.p2p-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}
.p2p-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.p2p-card__user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.p2p-card__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}
.p2p-card__username { font-weight: 600; font-size: 0.9rem; }
.p2p-card__rating { font-size: 0.8rem; color: var(--accent-orange); }
.p2p-card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-teal);
}
.p2p-card__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.p2p-card__detail-label { color: var(--text-muted); }
.p2p-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

/* ---- Tabs ---- */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 20px;
}
.tab {
  flex: 1;
  padding: 10px 16px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
}
.tab:hover { color: var(--text-primary); }
.tab.active {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-blue);
}

/* ---- Profile ---- */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
}
.profile-name { font-size: 1.4rem; font-weight: 700; }
.profile-username { color: var(--text-secondary); font-size: 0.9rem; }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.profile-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.profile-stat__value {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.profile-stat__label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ---- Login Page (World-Class) ---- */
.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.login-bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.login-card {
  position: relative;
  z-index: 1;
  background: rgba(15, 20, 35, 0.85);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 48px 40px 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-glow), 0 25px 80px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: loginCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes loginSuccess {
  to { opacity: 0; transform: scale(1.05) translateY(-20px); }
}

/* Logo wrapper with pulsing glow */
.login-logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}
.login-logo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: logoGlow 3s ease-in-out infinite alternate;
}
@keyframes logoGlow {
  from { transform: scale(0.9); opacity: 0.5; }
  to { transform: scale(1.2); opacity: 1; }
}
.login-card__logo {
  width: 80px;
  height: 80px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.4));
}
.login-card__title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-card__subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Username input with @ prefix */
.login-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  overflow: hidden;
}
.login-input-wrapper:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
.login-input-prefix {
  padding: 12px 0 12px 16px;
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 1rem;
  user-select: none;
}
.login-input-with-prefix {
  border: none !important;
  background: transparent !important;
  padding-left: 4px !important;
  box-shadow: none !important;
}
.login-input-with-prefix:focus {
  border: none !important;
  box-shadow: none !important;
}

/* Login button with arrow icon */
.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.login-btn__icon {
  transition: transform 0.3s ease;
}
.login-btn:hover .login-btn__icon {
  transform: translateX(4px);
}

/* Step 2: Code sent indicator */
.login-code-sent {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  text-align: left;
}
.login-code-sent__icon {
  font-size: 2rem;
  flex-shrink: 0;
  animation: codeSentPulse 1.5s ease infinite;
}
@keyframes codeSentPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.login-code-sent__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.login-code-sent__text strong {
  color: var(--accent-blue);
}

/* Individual code digit inputs */
.login-code-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.login-code-digit {
  width: 48px;
  height: 58px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Inter', monospace;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--accent-blue);
  caret-color: var(--accent-blue);
  transition: all 0.2s ease;
}
.login-code-digit:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15), 0 0 20px rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}
.login-code-digit:not(:placeholder-shown) {
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.04);
}
.login-code-dash {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  padding: 0 2px;
}

/* Timer */
.login-timer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
#timer-value {
  color: var(--accent-teal);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Shake animation for wrong code */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 50%, 90% { transform: translateX(-6px); }
  30%, 70% { transform: translateX(6px); }
}

/* Footer */
.login-footer {
  margin-top: 28px;
}
.login-footer__divider {
  position: relative;
  text-align: center;
  margin-bottom: 16px;
}
.login-footer__divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--border-color);
}
.login-footer__divider span {
  position: relative;
  background: rgba(15, 20, 35, 0.85);
  padding: 0 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.login-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 600;
  transition: all var(--transition-fast);
}
.login-footer__link:hover {
  color: var(--accent-teal);
  transform: translateY(-1px);
}

/* Trust badges */
.login-badges {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  margin-top: 32px;
  animation: loginCardIn 0.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.login-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(15, 20, 35, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.08);
  backdrop-filter: blur(8px);
}

/* ---- Skeleton Loading ---- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(148, 163, 184, 0.08) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton--text { height: 16px; width: 60%; margin-bottom: 8px; }
.skeleton--heading { height: 28px; width: 40%; margin-bottom: 16px; }
.skeleton--card { height: 80px; border-radius: var(--radius-lg); margin-bottom: 12px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}
.empty-state__text { font-size: 0.95rem; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .mobile-nav { display: flex; }
  .page-content { padding: 20px 16px 80px; }
  .navbar__prices { display: none; }
  .navbar__burger { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats__total-value { font-size: 1.8rem; }
  .hero-stats__row { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .profile-header { flex-direction: column; text-align: center; }
  .profile-stats { grid-template-columns: 1fr; }
  .swap-field__input { font-size: 1.2rem; }
  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 10px 10px; }
  .p2p-card__details { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { padding: 20px; }
  .hero-stats__row { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .currency-selector { grid-template-columns: repeat(2, 1fr); }
  .login-card { padding: 32px 24px; }
  .login-code-digit { width: 40px; height: 50px; font-size: 1.2rem; }
  .login-code-inputs { gap: 5px; }
  .login-badges { flex-direction: column; gap: 8px; align-items: center; }
  .modal-box { padding: 24px; }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--accent-blue); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-orange { color: var(--accent-orange); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8rem; }
.text-lg { font-size: 1.1rem; }
.fw-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.35); }
