/* ============================================================
   CryptoOutsiders — Global Design System
   ============================================================ */

/* ── CSS Custom Properties (Dark Theme) ─────────────────── */
:root {
  /* Backgrounds */
  --bg-base:       #080d1a;
  --bg-surface:    #0d1529;
  --bg-elevated:   #111c35;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --bg-input:      rgba(255,255,255,0.06);
  --bg-overlay:    rgba(8,13,26,0.85);

  /* Brand Colors */
  --primary:        #1a6fff;
  --primary-dark:   #0052cc;
  --primary-light:  #4d8fff;
  --primary-glow:   rgba(26,111,255,0.35);
  --accent:         #00d4ff;
  --accent-glow:    rgba(0,212,255,0.3);

  /* Semantic */
  --success:      #00e87a;
  --success-bg:   rgba(0,232,122,0.1);
  --warning:      #f0a500;
  --warning-bg:   rgba(240,165,0,0.1);
  --danger:       #ff4757;
  --danger-bg:    rgba(255,71,87,0.1);
  --info:         #00d4ff;
  --info-bg:      rgba(0,212,255,0.1);

  /* Coin Colors */
  --btc:  #f7931a;
  --eth:  #627eea;
  --usdt: #26a17b;
  --usdc: #2775ca;

  /* Text */
  --text-primary:   #ffffff;
  --text-secondary: #8892b0;
  --text-muted:     #4a5578;
  --text-inverse:   #080d1a;

  /* Borders */
  --border:       rgba(255,255,255,0.08);
  --border-focus: rgba(26,111,255,0.6);
  --border-hover: rgba(255,255,255,0.15);

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow:0 0 30px var(--primary-glow);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.2s var(--ease);
  --transition-slow: 0.4s var(--ease);

  /* Layout */
  --nav-height:   72px;
  --max-width:    1280px;
  --sidebar-width:260px;
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-base:       #f0f4ff;
  --bg-surface:    #ffffff;
  --bg-elevated:   #e8eeff;
  --bg-card:       rgba(0,0,0,0.03);
  --bg-card-hover: rgba(0,0,0,0.06);
  --bg-input:      rgba(0,0,0,0.05);
  --bg-overlay:    rgba(240,244,255,0.9);
  --text-primary:  #0a0e1a;
  --text-secondary:#4a5578;
  --text-muted:    #8892b0;
  --border:        rgba(0,0,0,0.1);
  --border-hover:  rgba(0,0,0,0.2);
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:     0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.15);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--transition-slow), color var(--transition-slow);
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── Page Loader ─────────────────────────────────────────── */
.page-loader {
  position: fixed; inset: 0; background: var(--bg-base);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.4s, visibility 0.4s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo {
  font-size: 48px; color: var(--primary);
  animation: pulse-glow 1.5s ease-in-out infinite;
  margin-bottom: 20px;
}
.loader-bar {
  width: 200px; height: 3px;
  background: var(--border);
  border-radius: 99px; overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 99px;
  animation: loader-progress 1.5s ease infinite;
}

/* ── Navigation ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(8,13,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition-slow);
}
[data-theme="light"] .site-header { background: rgba(255,255,255,0.9); }

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon { font-size: 22px; color: var(--primary); filter: drop-shadow(0 0 8px var(--primary-glow)); }
.logo-text {
  font-size: 20px; font-weight: 800; color: var(--text-primary);
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--primary); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1;
}
.nav-links a {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav-links a:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.nav-links a.active { color: var(--primary); background: rgba(26,111,255,0.1); }
.nav-links .admin-link { color: var(--warning); }
.nav-links .admin-link:hover { background: var(--warning-bg); }
.nav-links .admin-link.active { background: var(--warning-bg); }

.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text-primary); background: var(--bg-card-hover); border-color: var(--border-hover); }
.theme-toggle svg { width: 16px; height: 16px; }
[data-theme="dark"]  .icon-sun  { display: none; }
[data-theme="dark"]  .icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

.btn-nav-login {
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  border: 1px solid var(--border); background: transparent;
  transition: all var(--transition);
}
.btn-nav-login:hover { border-color: var(--primary); color: var(--primary); }
.btn-nav-signup {
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all var(--transition);
}
.btn-nav-signup:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--primary-glow); }

/* User Menu */
.user-menu { position: relative; }
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none; color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
  box-shadow: 0 0 0 0 var(--primary-glow);
}
.user-avatar:hover { box-shadow: 0 0 0 3px var(--primary-glow); }
.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 220px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition); z-index: 100;
}
.user-menu.open .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.dropdown-email { font-size: 13px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; font-size: 14px; color: var(--text-secondary);
  text-decoration: none; transition: all var(--transition);
}
.dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.dropdown-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.dropdown-logout { color: var(--danger) !important; }
.dropdown-logout:hover { background: var(--danger-bg) !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 38px; height: 38px; background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px; transition: all var(--transition);
}
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--text-secondary); border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: var(--bg-elevated); border-bottom: 1px solid var(--border);
  z-index: 999; overflow: hidden;
  max-height: 0; transition: max-height 0.35s var(--ease);
}
.mobile-nav.open { max-height: 600px; }
.mobile-nav-inner { padding: 12px 16px 20px; }
.mobile-nav-link {
  display: block; padding: 12px 16px; font-size: 15px; font-weight: 500;
  color: var(--text-secondary); text-decoration: none; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--text-primary); background: var(--bg-card-hover); }
.mobile-nav-logout { color: var(--danger) !important; margin-top: 8px; }

/* ── Main Content ─────────────────────────────────────────── */
.main-content { min-height: calc(100vh - var(--nav-height)); }

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 560px; }
.container-md { max-width: 800px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600; line-height: 1;
  border: none; cursor: pointer; transition: all var(--transition);
  text-decoration: none; white-space: nowrap; user-select: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--primary-glow); }
.btn-primary:active { transform: translateY(0); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #0099cc);
  color: #fff; box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--accent-glow); }

.btn-success {
  background: linear-gradient(135deg, var(--success), #00b85e);
  color: #fff; box-shadow: 0 4px 15px rgba(0,232,122,0.3);
}
.btn-success:hover { transform: translateY(-2px); }

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #cc2233);
  color: #fff; box-shadow: 0 4px 15px rgba(255,71,87,0.3);
}
.btn-danger:hover { transform: translateY(-2px); }

.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: rgba(26,111,255,0.1); }

.btn-ghost {
  background: var(--bg-card); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--border-hover); }

.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-xs { padding: 5px 11px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; border-radius: var(--radius-md); }

/* Loading spinner in buttons */
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.card-hover:hover {
  background: var(--bg-card-hover); border-color: var(--border-hover);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.card-glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}
.card-glow { box-shadow: var(--shadow-glow); border-color: rgba(26,111,255,0.3); }

/* ── Form Elements ───────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
}
.form-label span.required { color: var(--danger); margin-left: 3px; }

.form-control {
  width: 100%; padding: 13px 16px;
  background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 15px; font-family: inherit;
  transition: all var(--transition); outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus { border-color: var(--primary); background: rgba(26,111,255,0.05); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-control:disabled { opacity: 0.5; cursor: not-allowed; }
.form-control.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255,71,87,0.2); }
.form-control.success { border-color: var(--success); }

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238892b0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
  padding-right: 44px;
}

.form-hint { margin-top: 6px; font-size: 13px; color: var(--text-muted); }
.form-error { margin-top: 6px; font-size: 13px; color: var(--danger); }
.form-success { margin-top: 6px; font-size: 13px; color: var(--success); }

.input-group { position: relative; display: flex; }
.input-group .form-control { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.input-group .btn { border-radius: 0 var(--radius-md) var(--radius-md) 0; flex-shrink: 0; }
.input-prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 15px; pointer-events: none;
}
.input-prefix + .form-control { padding-left: 36px; }
.input-suffix {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 13px; font-weight: 600;
}
.input-with-suffix .form-control { padding-right: 60px; }

/* Password toggle */
.password-wrapper { position: relative; }
.password-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); padding: 4px;
  cursor: pointer; transition: color var(--transition);
}
.password-toggle:hover { color: var(--text-primary); }
.password-toggle svg { width: 18px; height: 18px; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.3px;
}
.badge::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-info    { background: var(--info-bg);    color: var(--info); }
.badge-muted   { background: var(--bg-card);    color: var(--text-muted); }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius-md);
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid transparent;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-body { font-size: 14px; line-height: 1.6; }
.alert-title { font-weight: 600; margin-bottom: 4px; }
.alert-success { background: var(--success-bg); border-color: rgba(0,232,122,0.25); color: var(--success); }
.alert-warning { background: var(--warning-bg); border-color: rgba(240,165,0,0.25); color: var(--warning); }
.alert-danger  { background: var(--danger-bg);  border-color: rgba(255,71,87,0.25);  color: var(--danger); }
.alert-info    { background: var(--info-bg);    border-color: rgba(0,212,255,0.25);  color: var(--info); }

/* ── Toast Notifications ─────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 9998; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-md);
  background: var(--bg-elevated); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); min-width: 280px; max-width: 400px;
  pointer-events: auto; transform: translateX(120%);
  animation: toast-in 0.3s var(--ease) forwards;
  font-size: 14px; font-weight: 500;
}
.toast.removing { animation: toast-out 0.3s var(--ease) forwards; }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-message { flex: 1; color: var(--text-primary); }
.toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 2px; transition: color var(--transition); }
.toast-close:hover { color: var(--text-primary); }
.toast-close svg { width: 14px; height: 14px; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info    { border-left: 3px solid var(--info); }

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.page-subtitle { color: var(--text-secondary); font-size: 15px; margin-top: 6px; }
.page-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

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

/* ── Table ───────────────────────────────────────────────── */
.table-wrapper {
  width: 100%; overflow-x: auto;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 14px 16px; font-size: 12px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--bg-card); text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 16px; font-size: 14px; color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg-card-hover); }
.table-empty { text-align: center; padding: 48px 20px !important; color: var(--text-muted); }

/* ── Skeleton Loaders ────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── Divider ─────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.divider-text {
  display: flex; align-items: center; gap: 16px; color: var(--text-muted);
  font-size: 13px; margin: 24px 0;
}
.divider-text::before, .divider-text::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Step Indicator ──────────────────────────────────────── */
.steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 32px;
}
.step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1; position: relative;
}
.step::after {
  content: ''; position: absolute; top: 18px; left: 50%; width: 100%;
  height: 2px; background: var(--border); z-index: 0;
}
.step:last-child::after { display: none; }
.step-number {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--border);
  color: var(--text-muted); font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; z-index: 1;
  transition: all var(--transition);
}
.step-label { font-size: 12px; color: var(--text-muted); font-weight: 500; text-align: center; }
.step.active .step-number { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-glow); }
.step.active .step-label { color: var(--primary); }
.step.done .step-number { background: var(--success); border-color: var(--success); color: #fff; }
.step.done::after { background: var(--success); }

/* ── On Hold Banner ──────────────────────────────────────── */
.hold-banner {
  background: var(--danger-bg); border: 1px solid rgba(255,71,87,0.3);
  border-radius: var(--radius-md); padding: 16px 20px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
}
.hold-banner-icon { font-size: 24px; flex-shrink: 0; }
.hold-banner-body { flex: 1; }
.hold-banner-title { font-weight: 700; color: var(--danger); margin-bottom: 4px; }
.hold-banner-text  { font-size: 13px; color: var(--text-secondary); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  margin-top: auto;
}
.footer-container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 16px; }
.footer-tagline { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition);
}
.social-link:hover { color: var(--primary); border-color: var(--primary); background: rgba(26,111,255,0.1); }
.social-link svg { width: 15px; height: 15px; }
.footer-col-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); margin-bottom: 16px; }
.footer-links li + li { margin-top: 10px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--text-primary); }
.footer-coins { display: flex; flex-direction: column; gap: 10px; }
.footer-coins li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.footer-coin { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; }
.footer-coin.btc  { background: var(--btc); }
.footer-coin.eth  { background: var(--eth); }
.footer-coin.usdt { background: var(--usdt); }
.footer-coin.usdc { background: var(--usdc); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.footer-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-badge {
  font-size: 12px; color: var(--text-muted); padding: 5px 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 99px;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 8px var(--primary-glow)); }
  50%       { filter: drop-shadow(0 0 20px var(--primary-glow)); }
}
@keyframes loader-progress {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
@keyframes skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes toast-in {
  to { transform: translateX(0); }
}
@keyframes toast-out {
  to { transform: translateX(120%); }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.fade-in { animation: fade-in 0.5s var(--ease) both; }
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* ── Utility Classes ─────────────────────────────────────── */
.text-primary   { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-success   { color: var(--success) !important; }
.text-warning   { color: var(--warning) !important; }
.text-danger    { color: var(--danger) !important; }
.text-accent    { color: var(--accent) !important; }
.text-center    { text-align: center; }
.text-right     { text-align: right; }
.font-bold      { font-weight: 700; }
.font-semibold  { font-weight: 600; }

.flex           { display: flex; }
.flex-center    { display: flex; align-items: center; justify-content: center; }
.flex-between   { display: flex; align-items: center; justify-content: space-between; }
.flex-col       { flex-direction: column; }
.gap-8          { gap: 8px; }
.gap-12         { gap: 12px; }
.gap-16         { gap: 16px; }
.gap-20         { gap: 20px; }
.gap-24         { gap: 24px; }

.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.p-0 { padding: 0 !important; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.invisible { visibility: hidden; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Mobile Bottom Navigation (shared across pages) ─────── */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--bg-elevated); border-top: 1px solid var(--border);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, 1fr);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mbn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; color: var(--text-muted);
  font-size: 10px; font-weight: 500; padding: 4px 8px;
  transition: color .15s;
}
.mbn-item svg { width: 20px; height: 20px; }
.mbn-item.active, .mbn-item:hover { color: var(--primary); }

/* ── Coin pill strip (shared: buy + deposit pages) ───────── */
.buy-coin-strip {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none; margin-bottom: 20px;
}
.buy-coin-strip::-webkit-scrollbar { display: none; }
.buy-coin-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px; cursor: pointer; flex-shrink: 0;
  background: var(--bg-elevated); border: 1.5px solid var(--border);
  transition: all .2s; min-width: 130px;
}
.buy-coin-pill:hover   { border-color: rgba(26,111,255,.4); }
.buy-coin-pill.selected {
  background: rgba(26,111,255,.1); border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(26,111,255,.2);
}
.buy-pill-info { flex: 1; text-align: left; }
.buy-pill-sym  { display: block; font-size: 13px; font-weight: 700; }
.buy-pill-price{ display: block; font-size: 11px; color: var(--text-muted); }
.buy-pill-change {
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 99px;
}
.buy-pill-change.up   { background: rgba(0,232,122,.1); color: var(--success); }
.buy-pill-change.down { background: rgba(255,71,87,.1);  color: var(--danger); }

/* ── Page back button + title (shared: buy + deposit) ────── */
.buy-back {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); text-decoration: none; flex-shrink: 0;
  transition: all var(--transition);
}
.buy-back:hover { border-color: var(--primary); color: var(--primary); }
.buy-title { font-size: 20px; font-weight: 800; }
.buy-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Amount card (shared: buy + deposit) ─────────────────── */
.buy-amount-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 20px; padding: 20px; margin-bottom: 16px;
}
.buy-amount-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }
.buy-amount-row {
  display: flex; align-items: center; gap: 6px; margin-bottom: 14px;
}
.buy-currency-sym { font-size: 22px; font-weight: 800; color: var(--text-muted); flex-shrink: 0; }
.buy-currency-sym.crypto { font-size: 20px; color: var(--primary); }
.buy-amount-input {
  flex: 1; font-size: 28px; font-weight: 800; background: none;
  border: none; outline: none; color: var(--text-primary);
  min-width: 0; -moz-appearance: textfield;
}
.buy-amount-input::-webkit-outer-spin-button,
.buy-amount-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-amount-input::placeholder { color: rgba(255,255,255,.12); }
.buy-currency-code { font-size: 13px; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.buy-quick-row {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
}
.buy-quick-btn {
  padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer; transition: all .15s;
}
.buy-quick-btn:hover, .buy-quick-btn.active {
  background: rgba(26,111,255,.12); border-color: var(--primary); color: var(--primary);
}
.buy-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 4px 0 14px;
}
.buy-divider-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); flex-shrink: 0;
  margin: 0 auto;
}
.buy-fee-note {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-muted); margin-top: 8px;
}

/* ── Section cards (shared: dashboard + deposit) ─────────── */
.dash-section {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden; margin-bottom: 14px;
}
.dash-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 10px;
}
.dash-section-title { font-size: 15px; font-weight: 700; }
.dash-section-link {
  display: flex; align-items: center; gap: 2px;
  font-size: 12px; font-weight: 600; color: var(--primary); text-decoration: none;
}

/* ── Transaction list (shared: dashboard + deposit) ──────── */
.tx-list-new { padding: 0 6px 10px; }
.tx-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 36px 20px; text-align: center; color: var(--text-muted);
  font-size: 14px; font-weight: 600;
}
.tx-empty p { font-size: 12px; font-weight: 400; }
.tx-item-new {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 14px; transition: background .15s;
}
.tx-item-new:hover { background: rgba(255,255,255,.03); }
.tx-item-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.tx-item-icon svg { width: 16px; height: 16px; }
.tx-item-icon.buy,
.tx-item-icon.deposit      { background: rgba(26,111,255,.12); color: var(--primary); }
.tx-item-icon.withdraw     { background: rgba(0,232,122,.1);  color: var(--success); }
.tx-item-icon.redeem       { background: rgba(139,92,246,.12); color: #c4b5fd; }
.tx-item-icon.verify       { background: rgba(0,212,255,.12); color: var(--accent); }
.tx-item-icon.admin_credit { background: rgba(0,232,122,.1);  color: var(--success); }
.tx-item-icon.admin_debit  { background: rgba(255,71,87,.1);   color: var(--danger); }
.tx-item-body   { flex: 1; min-width: 0; }
.tx-item-label  { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tx-item-coin   {
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 99px;
  background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border);
}
.tx-item-ref  { font-size: 11px; color: var(--text-muted); font-family: monospace; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-item-right { text-align: right; flex-shrink: 0; }
.tx-item-amount { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.tx-item-amount.credit { color: var(--success); }
.tx-item-amount.debit  { color: var(--text-primary); }
.tx-item-meta  { display: flex; align-items: center; gap: 5px; justify-content: flex-end; flex-wrap: wrap; }
.tx-item-time  { font-size: 11px; color: var(--text-muted); }

/* ── Info list (shared: withdraw + redeem sidebar) ───────── */
.info-list  { display: flex; flex-direction: column; gap: 14px; }
.info-item  { display: flex; gap: 12px; align-items: flex-start; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links.desktop-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .container { padding: 0 16px; }
  .page-title { font-size: 22px; }
  .btn-nav-login, .btn-nav-signup { display: none; }
  .toast-container { bottom: 16px; right: 16px; left: 16px; }
  .toast { min-width: unset; }
}
@media (max-width: 640px) {
  .mobile-bottom-nav { display: grid; }
}
@media (max-width: 480px) {
  .nav-container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
}
