/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   dashboard.css â€” BITNova App Shell
   Dark, FXTNova-inspired, mobile-first
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #121620;
  --bg2:       #191e2b;
  --bg3:       #222838;
  --bg4:       #2c3448;
  --border:    rgba(255, 255, 255, 0.09);
  --text:      #f8fafc;
  --muted:     #8e9bb0;
  --muted2:    #64748b;
  --accent:    #00d4ff;
  --accent2:   #00ff88;
  --pos:       #0ecb81;
  --neg:       #f6465d;
  --gold:      #f0b90b;
  --sidebar-w: 220px;
  --topbar-h:  56px;
  --mob-nav-h: 60px;
  --r:         12px;
  --grad:      linear-gradient(135deg,#00ff88 0%,#00d4ff 50%,#a78bfa 100%);
}

html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--mob-nav-h);
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

/* â”€â”€ SIDEBAR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.db-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 900;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.db-sidebar.open { transform: translateX(0); }

.db-sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 899;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.db-sidebar-overlay.show { display: block; }

.db-sidebar-inner {
  display: flex; flex-direction: column;
  height: 100%; overflow-y: auto;
  padding: 0 0 16px;
}

/* Logo */
.db-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.db-logo img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.db-logo-bit  { font-size: 15px; font-weight: 900; background: linear-gradient(135deg,#00ff88,#00d4ff); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.db-logo-nova { font-size: 15px; font-weight: 900; background: linear-gradient(135deg,#00d4ff,#a78bfa); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.db-logo-sub  { font-size: 9px; color: var(--muted); letter-spacing: .4px; margin-top: 1px; }

/* Nav */
.db-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; flex: 1; }

.db-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 99px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7);
  transition: all .2s ease;
  border: none; background: none; text-align: left;
  min-height: 42px; cursor: pointer; text-decoration: none;
}
.db-nav-item svg { width: 17px; height: 17px; flex-shrink: 0; stroke: currentColor; }
.db-nav-item:hover { color: #ffffff; background: rgba(255,255,255,.06); }
.db-nav-item.active {
  color: #000000 !important; font-weight: 800 !important;
  background: #00ff88 !important;
  box-shadow: 0 4px 15px rgba(0,255,136,.4) !important;
}
.db-nav-item.active svg { stroke: #000000 !important; }

/* Sidebar footer */
.db-sidebar-footer { padding: 8px 12px; }
.db-sidebar-footer-link {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 11px; font-weight: 600; color: var(--muted2);
  transition: color .15s;
}
.db-sidebar-footer-link svg { margin-bottom: 4px; }
.db-sidebar-footer-link span { font-size: 10px; font-weight: 400; color: var(--muted2); }
.db-sidebar-footer-link:hover { color: var(--muted); }

/* â”€â”€ MAIN WRAPPER â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.db-main {
  min-height: 100vh;
  transition: margin-left .28s cubic-bezier(.4,0,.2,1);
}

/* â”€â”€ TOPBAR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Logo in topbar — hidden on desktop (sidebar has it), shown on mobile */
.db-topbar-logo { display: none; }

/* ── TOPBAR ──────────────────────────────────────────────────────────── */
.db-topbar {
  position: sticky; top: 0; z-index: 800;
  height: 56px;
  background: #12161f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
}

.db-burger {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #eaecef;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; flex-shrink: 0;
  transition: background 0.15s ease;
  cursor: pointer;
}
.db-burger:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
.db-burger svg { width: 17px; height: 17px; }

.db-topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.db-connect-wallet-btn {
  display: inline-flex;
  align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff; font-size: 13px; font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap; cursor: pointer;
  box-shadow: none;
}
.db-connect-wallet-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.db-connect-wallet-btn svg { width: 14px; height: 14px; stroke: #ffffff; }

.db-user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px; cursor: pointer;
  transition: background 0.15s ease; min-width: 0;
}
.db-user-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
}

.db-user-avatar {
  display: inline-flex;
  align-items: center; justify-content: center;
  height: 28px; border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #00ff88;           /* green numbers */
  font-size: 12px; font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  transition: background 0.15s, border-color 0.15s;
}
.db-user-chip:hover .db-user-avatar {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
}
.db-user-info { display: flex; flex-direction: column; min-width: 0; }
.db-user-name {
  font-size: 12px; font-weight: 600; color: #ffffff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px;
}
.db-user-bal { font-size: 11px; color: #848e9c; white-space: nowrap; }
.db-user-bal b { color: #eaecef; font-weight: 600; text-shadow: none; }
.db-user-chevron { color: #848e9c; flex-shrink: 0; }

.db-icon-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #848e9c;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease; cursor: pointer; flex-shrink: 0;
}
.db-icon-btn:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.15); }
.db-icon-btn svg { width: 16px; height: 16px; }

/* â”€â”€ PAGE CONTENT â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.db-content {
  padding: 20px 14px 24px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 18px;
}

/* Welcome */
.db-welcome {
  display: flex; flex-direction: column; gap: 12px;
}
.db-welcome-title {
  font-size: clamp(1.3rem,4vw,1.8rem); font-weight: 800; line-height: 1.15;
}
.db-welcome-title span { background: var(--grad); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.db-welcome-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.db-welcome-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* KYC Banner */
.db-kyc-banner {
  display: flex; align-items: center; gap: 10px;
  background: rgba(240,185,11,.08);
  border: 1px solid rgba(240,185,11,.25);
  border-radius: var(--r); padding: 12px 14px;
  position: relative;
}
.db-kyc-banner-icon {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: rgba(240,185,11,.12); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.db-kyc-banner-icon svg { width: 16px; height: 16px; }
.db-kyc-banner-text { flex: 1; font-size: 12px; color: var(--muted); }
.db-kyc-banner-text strong { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.db-kyc-banner-btn {
  background: var(--gold); color: #000;
  font-size: 12px; font-weight: 700; padding: 6px 12px;
  border-radius: 6px; border: none; cursor: pointer; white-space: nowrap;
  transition: opacity .15s;
}
.db-kyc-banner-btn:hover { opacity: .85; }
.db-kyc-banner-close {
  background: none; border: none; color: var(--muted);
  font-size: 18px; line-height: 1; padding: 0 4px;
  transition: color .15s;
}
.db-kyc-banner-close:hover { color: var(--text); }

/* Buttons */
.db-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--grad); color: #000; border: none;
  padding: 9px 18px; border-radius: 9px;
  font-size: 13px; font-weight: 700;
  transition: opacity .15s, transform .15s;
  white-space: nowrap;
}
.db-btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.db-btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.05); color: var(--text);
  border: 1px solid var(--border);
  padding: 9px 18px; border-radius: 9px;
  font-size: 13px; font-weight: 600;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.db-btn-outline:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.15); }
.db-btn-danger {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(246,70,93,.12); color: var(--neg);
  border: 1px solid rgba(246,70,93,.25);
  padding: 9px 18px; border-radius: 9px;
  font-size: 13px; font-weight: 600;
  transition: background .15s;
  white-space: nowrap;
}
.db-btn-danger:hover { background: rgba(246,70,93,.22); }

/* ── MARKET CHART CARD ─────────────────────────────────────────────────── */
.db-chart-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.db-chart-tabs {
  display: flex; gap: 8px;
  border-bottom: none;
  padding: 0;
}
.db-chart-tab {
  padding: 7px 18px;
  background: transparent; border: none;
  border-radius: 20px;
  color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s ease;
}
.db-chart-tab:hover { color: #ffffff; background: rgba(255,255,255,.05); }
.db-chart-tab.active { color: #ffffff !important; background: #191919 !important; font-weight: 700 !important; }

.db-overview-chart-wrap {
  width: 100%; height: 180px; position: relative;
}

/* Market list */
.db-market-list { padding: 4px 0; display: flex; flex-direction: column; gap: 2px; }
.db-market-loading { padding: 20px; text-align: center; color: var(--muted); font-size: 13px; }

.db-market-row {
  display: flex;
  align-items: center; justify-content: space-between;
  padding: 12px 18px;
  border-radius: 12px;
  border-bottom: 1px solid rgba(255,255,255,.03);
  cursor: pointer;
  transition: background .12s;
  gap: 10px;
}
.db-market-row:last-child { border-bottom: none; }
.db-market-row:hover { background: rgba(255,255,255,.03); }
.db-market-row.selected { background: rgba(0,212,255,.06); border-left: 2px solid var(--accent); }

.db-mkt-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.db-mkt-icon {
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
  background: rgba(255,255,255,.06); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.db-mkt-icon img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.db-mkt-ticker { font-size: 13px; font-weight: 700; }
.db-mkt-name   { font-size: 11px; color: var(--muted); margin-top: 1px; }

.db-mkt-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.db-mkt-price { font-size: 13px; font-weight: 600; }
.db-mkt-chg   { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.db-mkt-chg.up   { color: var(--pos); background: rgba(14,203,129,.1); }
.db-mkt-chg.down { color: var(--neg); background: rgba(246,70,93,.1); }

.db-tf-row {
  display: flex; gap: 2px; padding: 8px 12px;
  border-top: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.db-tf-row::-webkit-scrollbar { display: none; }
.db-tf-btn {
  padding: 5px 12px; border-radius: 6px;
  background: none; border: none;
  color: var(--muted); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: color .12s, background .12s;
  white-space: nowrap;
}
.db-tf-btn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.db-tf-btn.active { color: var(--accent); background: rgba(0,212,255,.1); }

/* â”€â”€ STATS ROW â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.db-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.db-stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  transition: border-color .2s;
}
.db-stat-card:hover { border-color: rgba(0,212,255,.2); }
.db-stat-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.db-stat-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.db-stat-value { font-size: 22px; font-weight: 800; line-height: 1; margin-bottom: 3px; }
.db-stat-value.positive { color: var(--pos); }
.db-stat-value.negative { color: var(--neg); }
.db-stat-sub { font-size: 11px; color: var(--muted2); }

/* â”€â”€ BOTTOM GRID â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.db-bottom-grid {
  display: flex; flex-direction: column; gap: 18px;
}

/* Panels */
.db-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.db-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.db-panel-title { font-size: 13px; font-weight: 700; }
.db-panel-link { font-size: 12px; color: var(--accent); cursor: pointer; background: none; border: none; }
.db-panel-link:hover { text-decoration: underline; }
.db-panel-pair-selector {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--text);
  background: var(--bg3); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px; cursor: pointer;
}
.db-chart-legend {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.db-legend-item.up { color: var(--pos); }
.db-legend-item.dn { color: var(--neg); }
.db-legend-price { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--accent); }

/* Transaction list */
.db-tx-loading { padding: 20px; text-align: center; color: var(--muted); font-size: 13px; }
.db-tx-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .12s;
}
.db-tx-row:last-child { border-bottom: none; }
.db-tx-row:hover { background: rgba(255,255,255,.03); }
.db-tx-icon {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.db-tx-icon.dep { background: rgba(14,203,129,.12); }
.db-tx-icon.wit { background: rgba(246,70,93,.1); }
.db-tx-icon.swp { background: rgba(0,212,255,.1); }
.db-tx-icon.trade { background: rgba(240,185,11,.1); }
.db-tx-meta { flex: 1; min-width: 0; }
.db-tx-type { font-size: 13px; font-weight: 600; }
.db-tx-date { font-size: 11px; color: var(--muted); margin-top: 1px; }
.db-tx-right { text-align: right; }
.db-tx-amount { font-size: 13px; font-weight: 600; }
.db-tx-amount.dep { color: var(--pos); }
.db-tx-amount.wit { color: var(--neg); }
.db-tx-status {
  font-size: 10px; font-weight: 600; margin-top: 2px;
  padding: 1px 6px; border-radius: 4px; display: inline-block;
}
.db-tx-status.confirmed,.db-tx-status.approved { background: rgba(14,203,129,.12); color: var(--pos); }
.db-tx-status.pending  { background: rgba(240,185,11,.1); color: var(--gold); }
.db-tx-status.rejected { background: rgba(246,70,93,.1); color: var(--neg); }

/* â”€â”€ QUICK ACTIONS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.db-quick-actions {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 10px;
}
.db-quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; border-radius: var(--r);
  background: var(--bg2); border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s;
  text-align: center; text-decoration: none;
}
.db-quick-btn:hover { color: var(--text); transform: translateY(-2px); border-color: rgba(255,255,255,.15); background: var(--bg3); }
.db-quick-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.db-quick-icon svg { width: 20px; height: 20px; }
.db-quick-btn.trade   .db-quick-icon { background: rgba(0,212,255,.12); color: var(--accent); }
.db-quick-btn.markets .db-quick-icon { background: rgba(14,203,129,.12); color: var(--pos); }
.db-quick-btn.wallet  .db-quick-icon { background: rgba(240,185,11,.12); color: var(--gold); }
.db-quick-btn.news    .db-quick-icon { background: rgba(167,139,250,.12); color: #a78bfa; }

/* â”€â”€ MOBILE BOTTOM NAV â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* ── TOPBAR NAV MOBILE FIX ───────────────────────────────────────────────── */
.db-topbar-nav {
  display: none !important;
}

/* ── BITNOVA MOBILE BOTTOM NAV — PITCH BLACK & GREEN LIGHTNING ────────── */
.db-mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
  height: 62px;
  background: rgba(13, 15, 22, 0.97);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 4px;
}
.db-mob-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; flex: 1; padding: 6px 0; cursor: pointer;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 11px; font-weight: 600;
  border: none; background: none; text-decoration: none;
  transition: all 0.2s ease; position: relative;
}
.db-mob-item svg {
  width: 20px; height: 20px;
  stroke: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}
.db-mob-item:hover { color: #00ff88 !important; }
.db-mob-item:hover svg { stroke: #00ff88 !important; }

.db-mob-item.active {
  color: #00ff88 !important;
  font-weight: 800 !important;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.6) !important;
}
.db-mob-item.active svg {
  stroke: #00ff88 !important;
  filter: drop-shadow(0 0 8px #00ff88) !important;
}
.db-mob-item.active::before {
  content: '';
  position: absolute; top: -1px; width: 28px; height: 3px;
  background: #00ff88; border-radius: 99px;
  box-shadow: 0 0 10px #00ff88, 0 0 16px #00ff88;
}

/* â”€â”€ MODALS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.db-modal-overlay {
  display: none; position: fixed;
  top: 0; left: 0; right: 0;
  bottom: 62px; /* sit above the 62px mobile nav bar */
  z-index: 2000;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: flex-end; justify-content: center;
}
.db-modal-overlay.open { display: flex; }

/* Wallet / deposit modal slides up from bottom on mobile */
.db-wallet-modal, .db-deposit-modal, .db-settings-modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  width: 100%; max-width: 480px;
  max-height: 88dvh;
  overflow-y: auto;
  animation: slideUp .25s cubic-bezier(.4,0,.2,1);
}
.db-profile-modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  width: 100%; max-width: 480px;
  max-height: 88dvh;
  overflow-y: auto;
  animation: slideUp .25s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.db-wallet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 700;
  position: sticky; top: 0;
  background: var(--bg2); z-index: 10;
}
.db-modal-close {
  background: rgba(255,255,255,.07); border: none; color: var(--muted);
  width: 28px; height: 28px; border-radius: 50%; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s, color .15s;
}
.db-modal-close:hover { background: rgba(255,255,255,.12); color: var(--text); }

/* â”€â”€ WALLET MODAL INTERNALS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.db-wallet-balance-card {
  margin: 16px; padding: 20px;
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(0,212,255,.08), rgba(0,255,136,.05));
  border: 1px solid rgba(0,212,255,.15);
  text-align: center;
}
.db-wlt-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.db-wlt-amount { font-size: 32px; font-weight: 900; line-height: 1; }
.db-wlt-cur { font-size: 14px; font-weight: 400; color: var(--muted); }
.db-wlt-usd { font-size: 13px; color: var(--muted); margin-top: 4px; }

.db-wallet-actions { display: flex; gap: 8px; padding: 0 16px 16px; }
.db-wlt-act-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: 10px; border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s;
  text-decoration: none; color: var(--text); background: var(--bg3);
}
.db-wlt-act-btn svg { width: 18px; height: 18px; }
.db-wlt-act-btn:hover { background: var(--bg4); }
.db-wlt-act-btn.deposit { color: var(--pos); border-color: rgba(14,203,129,.2); }
.db-wlt-act-btn.withdraw { color: var(--neg); border-color: rgba(246,70,93,.15); }
.db-wlt-act-btn.trade { color: var(--accent); border-color: rgba(0,212,255,.15); }

.db-wlt-assets-title { padding: 4px 16px 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.db-asset-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,.04);
}
.db-asset-icon { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.06); flex-shrink: 0; }
.db-asset-icon img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.db-asset-name { flex: 1; }
.db-asset-sym  { font-size: 13px; font-weight: 700; }
.db-asset-full { font-size: 11px; color: var(--muted); }
.db-asset-amt  { font-size: 13px; font-weight: 600; text-align: right; }
.db-asset-usd  { font-size: 11px; color: var(--muted); text-align: right; margin-top: 1px; }

/* â”€â”€ PROFILE MODAL â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.db-profile-avatar-row {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 18px 12px;
}
.db-profile-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); color: #000;
  font-size: 22px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.db-profile-name  { font-size: 16px; font-weight: 800; }
.db-profile-email { font-size: 12px; color: var(--muted); margin-top: 2px; }
.db-profile-uid   { font-size: 11px; color: var(--muted2); margin-top: 2px; }

.db-profile-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: var(--border); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.db-profile-stat { background: var(--bg2); padding: 12px 10px; text-align: center; }
.db-ps-val { font-size: 14px; font-weight: 800; }
.db-ps-lbl { font-size: 10px; color: var(--muted); margin-top: 2px; }

.db-profile-actions { display: flex; gap: 8px; padding: 0 16px 14px; }
.db-profile-action-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px; border-radius: 9px; border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; cursor: pointer; background: var(--bg3);
  color: var(--text); transition: background .15s; text-decoration: none;
}
.db-profile-action-btn:hover { background: var(--bg4); }
.db-profile-action-btn.kyc { color: var(--gold); border-color: rgba(240,185,11,.2); }
.db-profile-action-btn.deposit { color: var(--pos); border-color: rgba(14,203,129,.2); }

.db-profile-recent-title { padding: 0 16px 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.db-profile-logout-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: calc(100% - 32px); margin: 14px 16px 20px;
  padding: 12px; border-radius: 10px;
  background: rgba(246,70,93,.08); border: 1px solid rgba(246,70,93,.2);
  color: var(--neg); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.db-profile-logout-btn:hover { background: rgba(246,70,93,.15); }

/* â”€â”€ SETTINGS MODAL â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.db-settings-list { padding: 8px 0 24px; }
.db-settings-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border: none; background: none;
  width: 100%; color: var(--text); text-align: left;
  cursor: pointer; transition: background .12s;
  border-bottom: 1px solid rgba(255,255,255,.04); text-decoration: none;
}
.db-settings-item:last-child { border-bottom: none; }
.db-settings-item:hover { background: rgba(255,255,255,.03); }
.db-settings-item svg:first-child { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.db-settings-item div { flex: 1; font-size: 13px; font-weight: 600; }
.db-settings-sub { font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.db-settings-arrow { color: var(--muted); flex-shrink: 0; }
.db-settings-item.danger { color: var(--neg); }
.db-settings-item.danger svg:first-child { color: var(--neg); }

/* â”€â”€ DEPOSIT / WITHDRAW FORMS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.db-form-group { margin-bottom: 14px; }
.db-form-label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.db-form-input, .db-form-select {
  width: 100%; padding: 11px 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text); font-size: 14px;
  outline: none; transition: border-color .2s;
  appearance: none;
}
.db-form-input:focus, .db-form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,212,255,.08); }
.db-form-input::placeholder { color: var(--muted2); }
.db-dep-err {
  font-size: 12px; color: var(--neg);
  background: rgba(246,70,93,.08); border: 1px solid rgba(246,70,93,.2);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 8px;
}

/* â”€â”€ DESKTOP BREAKPOINTS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* ── MOBILE OPTIMISATION (dashboard home) ──────────────────────────────── */
@media (max-width: 767px) {
  /* Hide burger — sidebar accessed via bottom nav on mobile */
  .db-burger { display: none !important; }

  /* Show the BITNova logo in the topbar left slot on mobile */
  .db-topbar-logo {
    display: flex !important;
    align-items: center;
    gap: 7px;
    text-decoration: none;
  }
  .db-topbar-logo img {
    width: 26px; height: 26px;
    object-fit: contain; border-radius: 6px;
  }
  .db-topbar-logo-text .db-logo-bit  {
    font-size: 14px; font-weight: 900;
    background: linear-gradient(135deg,#00ff88,#00d4ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .db-topbar-logo-text .db-logo-nova {
    font-size: 14px; font-weight: 900;
    background: linear-gradient(135deg,#00d4ff,#a78bfa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .db-content { padding: 10px 10px 20px; gap: 12px; }
  .db-welcome-title { font-size: 1.15rem; }
  .db-welcome-sub   { font-size: 12px; margin-top: 1px; }
  .db-btn-primary, .db-btn-outline { padding: 8px 14px; font-size: 12px; border-radius: 8px; }
  /* Hide the Deposit/Withdraw action row on mobile — accessible via quick actions instead */
  .db-welcome-actions { display: none; }
  .db-kyc-banner { padding: 10px 12px; gap: 8px; border-radius: 10px; }
  .db-kyc-banner-icon { width: 28px; height: 28px; border-radius: 6px; }
  .db-kyc-banner-text { font-size: 11px; }
  .db-kyc-banner-text strong { font-size: 12px; }
  .db-kyc-banner-btn { font-size: 11px; padding: 5px 10px; border-radius: 5px; }
  .db-chart-card { padding: 10px; gap: 8px; border-radius: 10px; }
  .db-chart-tab { padding: 5px 10px; font-size: 11px; border-radius: 16px; }
  .db-overview-chart-wrap { height: 140px; }
  .db-tf-btn { padding: 4px 9px; font-size: 11px; }
  .db-market-row { padding: 9px 10px; border-radius: 8px; gap: 8px; }
  .db-mkt-icon   { width: 28px; height: 28px; }
  .db-mkt-ticker { font-size: 12px; }
  .db-mkt-name   { font-size: 10px; }
  .db-mkt-price  { font-size: 12px; }
  .db-mkt-chg    { font-size: 10px; padding: 1px 5px; }
  .db-stats-row  { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .db-stat-card  { padding: 11px 12px; border-radius: 10px; }
  .db-stat-header { margin-bottom: 5px; }
  .db-stat-label { font-size: 10px; }
  .db-stat-value { font-size: 18px; }
  .db-panel-header { padding: 11px 12px 8px; }
  .db-panel-title  { font-size: 12px; }
  .db-tx-row    { padding: 9px 12px; gap: 8px; }
  .db-tx-icon   { width: 30px; height: 30px; }
  .db-tx-type   { font-size: 12px; }
  .db-tx-date   { font-size: 10px; }
  .db-tx-amount { font-size: 12px; }
  .db-tx-status { font-size: 9px; padding: 1px 5px; }
  .db-quick-actions { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .db-quick-btn  { padding: 12px 6px; border-radius: 10px; font-size: 11px; }
  .db-quick-icon { width: 34px; height: 34px; border-radius: 9px; }
  .db-quick-icon svg { width: 17px; height: 17px; }
  #dbFavChart { height: 200px !important; }
}

/* ── DESKTOP BREAKPOINTS ──────────────────────────────────────────────── */

@media (max-width: 600px) {
  .db-topbar { padding: 0 10px; gap: 6px; height: 50px; }
  .db-user-info { display: none; }
  .db-user-chip { padding: 3px 6px; gap: 4px; border-radius: 6px; }
  .db-user-avatar { height: 24px; font-size: 10px; padding: 0 7px; border-radius: 6px; }
  .db-user-chevron { display: none; }
  .db-connect-wallet-btn { padding: 5px 10px; font-size: 11px; border-radius: 6px; }
  .db-icon-btn { width: 30px; height: 30px; border-radius: 6px; }
  .db-icon-btn svg { width: 14px; height: 14px; }
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .db-sidebar { transform: translateX(0); }
  .db-sidebar-overlay { display: none !important; }
  .db-main { margin-left: var(--sidebar-w); }
  .db-burger { display: none; }
  .db-mobile-nav { display: none; }
  /* Hide the injected mobile nav on desktop for dashboard shell pages */
  .mobile-bottom-nav { display: none !important; }
  .db-stats-row { grid-template-columns: repeat(5,1fr); }
  .db-bottom-grid { flex-direction: row; }
  .db-bottom-grid .db-panel { flex: 1; }
  .db-welcome { flex-direction: row; align-items: center; justify-content: space-between; }
  /* Modal centers on desktop — restore full inset since nav is hidden */
  .db-modal-overlay { align-items: center; bottom: 0; }
  .db-wallet-modal, .db-deposit-modal, .db-settings-modal, .db-profile-modal {
    border-radius: 18px;
    max-height: 85vh;
  }
}

@media (min-width: 1280px) {
  .db-content { padding: 24px 28px 32px; }
}

.db-notif-dot {
  position: absolute; top: 4px; right: 4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #f6465d; border: 2px solid #000;
  pointer-events: none;
}
.db-icon-btn { position: relative; }

/* â”€â”€ SCROLLBAR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }

/* â”€â”€ UTILITIES â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.positive { color: var(--pos) !important; }
.negative { color: var(--neg) !important; }

/* ── INJECTED MOBILE BOTTOM NAV (shared with styles.css pages) ───────────── */
@media (min-width: 769px) {
  .mobile-bottom-nav, #mobileBottomNav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-bottom-nav, #mobileBottomNav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

.mobile-bottom-nav {
  display: none !important;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: rgba(13, 15, 22, 0.97);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  cursor: pointer;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.18s;
  text-decoration: none;
  border: none;
  background: transparent;
  font-family: inherit;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-item svg {
  width: 22px; height: 22px;
  stroke: rgba(255, 255, 255, 0.45);
  fill: none;
  transition: stroke 0.18s, filter 0.18s;
}
.mobile-nav-item:hover { color: rgba(255, 255, 255, 0.85); }
.mobile-nav-item:hover svg { stroke: rgba(255, 255, 255, 0.85); }

.mobile-nav-item.active { color: #00ff88; }
.mobile-nav-item.active svg {
  stroke: #00ff88;
  filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.5));
}
.mobile-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  background: #00ff88;
  border-radius: 0 0 3px 3px;
}

.mobile-nav-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}

.mobile-nav-label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

/* ── SWAP MODAL — BITNova style ─────────────────────────────────────────── */
.swap-modal {
  display: none; position: fixed; inset: 0; z-index: 10100;
  align-items: center; justify-content: center; padding: 12px;
  background: rgba(0,0,0,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
@media (max-width: 480px) {
  .swap-modal { align-items: flex-end; padding: 0; }
}
.swap-modal.active { display: flex; }
.swap-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

/* Card */
.swap-card {
  position: relative; z-index: 1;
  width: min(370px, 100%);
  background: #161b26;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.6);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: trfSlideUp .25s cubic-bezier(0.16,1,0.3,1);
}
@media (max-width: 480px) {
  .swap-card { width: 100%; border-radius: 18px 18px 0 0; border-bottom: none; }
}

.swap-drag-handle {
  display: none; width: 32px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.2); margin: 8px auto 2px;
}
@media (max-width: 480px) {
  .swap-drag-handle { display: block; }
}

/* Header */
.swap-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 8px;
  font-size: 13px; font-weight: 700; color: #f8fafc;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
}
.swap-close {
  background: rgba(255,255,255,.06); border: none; cursor: pointer;
  color: #8e9bb0; width: 26px; height: 26px; border-radius: 6px;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.swap-close:hover { background: rgba(255,255,255,.12); color: #f8fafc; }

/* Rate bar */
.swap-rate-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 16px;
  background: rgba(14,203,129,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 11px;
}
.swap-rate-label { color: #64748b; font-weight: 600; }
.swap-rate-val   { color: #0ecb81; font-weight: 700; font-family: monospace; }

/* Section */
.swap-section {
  padding: 10px 16px 8px;
}
.swap-section-label {
  font-size: 10px; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px;
}

/* Input row */
.swap-row {
  display: flex; align-items: center; gap: 8px;
  background: #1e2433;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 3px 4px 3px 8px;
  transition: border-color .15s;
}
.swap-row:focus-within { border-color: #0ecb81; }

.swap-coin-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.06); border: none; cursor: pointer;
  color: #f8fafc; font-size: 11px; font-weight: 600;
  padding: 5px 9px; border-radius: 7px; white-space: nowrap;
  transition: background .15s; flex-shrink: 0;
}
.swap-coin-btn:hover { background: rgba(255,255,255,.12); }
.swap-coin-img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }

.swap-input {
  flex: 1; background: none; border: none; outline: none;
  color: #f8fafc; font-size: 15px; font-weight: 700;
  padding: 6px 4px; min-width: 0;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
}
.swap-input::placeholder { color: #475569; }
.swap-input-receive { color: #0ecb81; }

/* Balance row */
.swap-balance-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 2px 0; font-size: 10px; color: #64748b;
}
.swap-max-btn {
  background: rgba(14,203,129,.12); border: 1px solid rgba(14,203,129,.25);
  border-radius: 4px; padding: 1px 6px; color: #0ecb81;
  font-size: 9px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.swap-max-btn:hover { background: rgba(14,203,129,.22); }

/* Flip button */
.swap-flip-wrap {
  display: flex; justify-content: center;
  margin: -11px 0; position: relative; z-index: 2;
}
.swap-flip-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: #161b26;
  border: 1px solid rgba(14,203,129,.3);
  color: #0ecb81; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease; box-shadow: 0 0 0 3px #161b26;
}
.swap-flip-btn:hover {
  background: rgba(14,203,129,.15);
  border-color: #0ecb81;
  color: #fff;
  transform: rotate(180deg);
}

/* Details */
.swap-details {
  padding: 6px 16px 2px;
  display: flex; flex-direction: column; gap: 4px;
}
.swap-detail-row {
  display: flex; justify-content: space-between;
  font-size: 10px; color: #64748b;
}
.swap-detail-row span:last-child { color: #cbd5e1; font-weight: 600; }

/* Error */
.swap-error {
  padding: 4px 16px 0; font-size: 11px; color: #f6465d;
  min-height: 14px; font-weight: 600;
}

/* Submit button */
.swap-submit-btn {
  width: calc(100% - 32px); margin: 12px 16px 16px;
  padding: 11px; border: none; border-radius: 10px;
  background: #0ecb81;
  color: #090d14; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .15s;
}
.swap-submit-btn:hover:not(:disabled) {
  background: #00c076;
}
.swap-submit-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

/* Coin picker */
.swap-picker { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 62px; z-index: 10200; align-items: flex-end; justify-content: center; }
.swap-picker.active { display: flex; }
.swap-picker-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); cursor: pointer; }
.swap-picker-sheet { position: relative; z-index: 1; width: min(440px,100%); background: var(--bg2); border-radius: 20px 20px 0 0; border: 1px solid var(--border); border-bottom: none; max-height: 70vh; display: flex; flex-direction: column; animation: swapSheetUp .25s cubic-bezier(.4,0,.2,1); }
@keyframes swapSheetUp { from{transform:translateY(100%)} to{transform:none} }
.swap-picker-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 12px; font-size: 15px; font-weight: 800; color: var(--text); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.swap-picker-search-wrap { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bg3); border-bottom: 1px solid var(--border); flex-shrink: 0; color: var(--muted); }
.swap-picker-search { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 14px; font-family: inherit; }
.swap-picker-search::placeholder { color: var(--muted2); }
.swap-picker-list { overflow-y: auto; flex: 1; padding: 8px 0 16px; }
.swap-picker-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; cursor: pointer; transition: background .12s; }
.swap-picker-item:hover { background: rgba(255,255,255,.04); }
.swap-picker-info { flex: 1; }
.swap-picker-sym  { font-size: 14px; font-weight: 700; color: var(--text); }
.swap-picker-name { font-size: 11px; color: var(--muted); margin-top: 2px; }
.swap-picker-price{ font-size: 12px; color: var(--muted); font-family: monospace; }

@media (max-width: 480px) {
  .swap-card { width: 100%; border-radius: 18px 18px 0 0; border-bottom: none; }
  .swap-modal { align-items: flex-end; padding: 0; }
}
@media (min-width: 1024px) {
  .swap-picker { bottom: 0; }
}

/* ── CRYPTO STRIP ────────────────────────────────────────────────────────── */
.db-crypto-strip {
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 4px;
  cursor: grab;
  user-select: none;
}
.db-crypto-strip:active, .db-crypto-strip.is-dragging { cursor: grabbing; }
.db-crypto-strip::-webkit-scrollbar { display: none; }

.db-crypto-strip-track {
  display: flex; gap: 10px;
  width: max-content;
  animation: dbStripMarquee 32s linear infinite;
}
.db-crypto-strip:hover .db-crypto-strip-track,
.db-crypto-strip.is-dragging .db-crypto-strip-track {
  animation-play-state: paused;
}
@keyframes dbStripMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.db-crypto-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 12px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; flex-shrink: 0;
  cursor: pointer; transition: border-color .15s, background .15s;
  text-decoration: none;
  min-width: 120px;
}
.db-crypto-chip:hover { border-color: rgba(0,255,136,.3); background: var(--bg3); }
.db-crypto-chip-icon {
  width: 28px; height: 28px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
}
.db-crypto-chip-icon img { width: 100%; height: 100%; object-fit: cover; }
.db-crypto-chip-info { min-width: 0; }
.db-crypto-chip-sym   { font-size: 12px; font-weight: 800; color: var(--text); }
.db-crypto-chip-price { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.db-crypto-chip-chg   { font-size: 10px; font-weight: 700; margin-top: 1px; }
.db-crypto-chip-chg.up { color: var(--pos); }
.db-crypto-chip-chg.dn { color: var(--neg); }

/* ── ANALYTICS PANELS ────────────────────────────────────────────────────── */
.db-analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.db-analytics-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 16px;
}
.db-analytics-title {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.db-analytics-title svg { flex-shrink: 0; }

/* Sentiment gauge */
.db-gauge-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.db-gauge-arc {
  width: 110px; height: 58px; position: relative; overflow: visible;
}
.db-gauge-needle {
  transform-origin: 50% 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.db-gauge-val {
  font-size: 22px; font-weight: 900; color: var(--text);
  line-height: 1;
}
.db-gauge-label {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}

/* Win rate doughnut */
.db-donut-wrap {
  display: flex; align-items: center; gap: 14px;
}
.db-donut-svg { flex-shrink: 0; }
.db-donut-legend { display: flex; flex-direction: column; gap: 6px; }
.db-donut-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
}
.db-donut-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.db-donut-pct { font-weight: 800; color: var(--text); margin-left: 2px; }

/* Volume bars */
.db-vol-bars { display: flex; flex-direction: column; gap: 8px; }
.db-vol-row  { display: flex; flex-direction: column; gap: 3px; }
.db-vol-meta { display: flex; justify-content: space-between; font-size: 11px; }
.db-vol-label  { color: var(--muted); font-weight: 600; }
.db-vol-amount { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.db-vol-track  { height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.db-vol-fill   { height: 100%; border-radius: 3px; transition: width .6s ease; }

/* Top movers */
.db-movers-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
}
.db-mover-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; transition: border-color .15s;
  text-decoration: none;
}
.db-mover-card:hover { border-color: rgba(255,255,255,.18); }
.db-mover-icon {
  width: 32px; height: 32px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
}
.db-mover-icon img { width: 100%; height: 100%; object-fit: cover; }
.db-mover-info { flex: 1; min-width: 0; }
.db-mover-sym  { font-size: 12px; font-weight: 800; color: var(--text); }
.db-mover-name { font-size: 10px; color: var(--muted); }
.db-mover-chg  { font-size: 12px; font-weight: 800; text-align: right; }
.db-mover-chg.up { color: var(--pos); }
.db-mover-chg.dn { color: var(--neg); }
.db-movers-tabs {
  display: flex; gap: 4px; margin-bottom: 10px;
}
.db-movers-tab {
  padding: 4px 10px; border-radius: 20px; border: none;
  font-size: 11px; font-weight: 700; cursor: pointer; transition: all .15s;
  background: rgba(255,255,255,.05); color: var(--muted);
}
.db-movers-tab.active { background: rgba(0,255,136,.15); color: var(--accent2); }

@media (max-width: 767px) {
  .db-analytics-grid { grid-template-columns: 1fr; gap: 8px; }
  .db-movers-grid    { grid-template-columns: 1fr 1fr; }
  .db-crypto-chip    { min-width: 105px; padding: 7px 10px; }
  .db-crypto-chip-icon { width: 24px; height: 24px; }
  .db-crypto-chip-sym  { font-size: 11px; }
  .db-crypto-chip-price { font-size: 10px; }
}

/* ── Mobile Input Auto-Zoom Prevention & Viewport Stability ───────── */
html {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}
body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    input[type="search"],
    select,
    textarea,
    .swap-input,
    .BITNova-trf-input,
    #bnc-input {
        font-size: 16px !important;
    }
}
