/* Motions dashboard shell — sidebar for standalone pages (/wallets, /profile).
 * Self-contained: does NOT depend on app.css or dashboard-v2.css. Just the
 * sidebar + main-content shell so those pages keep the nav visible.
 * Matches the visual language of the SPA sidebar exactly.
 */

.ds-shell {
  display: grid;
  grid-template-columns: 216px 1fr;
  min-height: 100dvh; /* dvh respects iOS Safari's dynamic address bar; falls back to vh below */
  min-height: 100vh;
}

.ds-side {
  background: #0a0c10;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0 20px;
  overflow-y: auto;
  position: sticky;
  top: 0;
  height: 100dvh;
  height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.ds-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 14px;
}
.ds-brand-logo {
  height: 44px; width: auto;
  filter: drop-shadow(0 0 10px rgba(109,224,201,0.28));
}
.ds-brand-name {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  color: #e9ecf1;
}

.ds-nav-section {
  padding: 14px 20px 6px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: #6b717d; font-weight: 600;
}

.ds-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 20px;
  font-size: 13px; font-weight: 500;
  color: #a2a8b4;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  border-left: 2px solid transparent;
}
.ds-nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: #e9ecf1;
}
.ds-nav-item.active {
  background: rgba(109,224,201,0.06);
  color: #6de0c9;
  border-left-color: #6de0c9;
}
.ds-nav-item svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}
.ds-nav-item.active svg { opacity: 1; }

.ds-upgrade-pill {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px;
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6de0c9;
  background: rgba(109,224,201,0.10);
  border: 1px solid rgba(109,224,201,0.28);
  border-radius: 4px;
}
.ds-upgrade-pill svg { width: 9px; height: 9px; stroke: currentColor; fill: none; }

.ds-main {
  min-width: 0;
  min-height: 100dvh;
  min-height: 100vh;
  /* Bottom padding so mobile bottom nav doesn't cover the last inch of content. */
}

/* Mobile bottom nav — replaces the hidden sidebar on ≤720px. */
.ds-bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  background: rgba(10,12,16,0.96);
  border-top: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}
.ds-bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 10px;
  color: #6b717d; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  min-width: 60px;
}
.ds-bn-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ds-bn-item.active { color: #6de0c9; }

/* Mobile: hide sidebar, show bottom nav */
@media (max-width: 720px) {
  .ds-shell { grid-template-columns: 1fr; }
  .ds-side { display: none; }
  .ds-bottom-nav { display: flex; }
  .ds-main { padding-bottom: 80px; } /* clear the fixed bottom nav */
}

/* When WalletConnect modal is active, hide our own bottom nav(s) so they
   don't cover the wallet list. wc-signin.js toggles body.wc-active. */
body.wc-active .ds-bottom-nav,
body.wc-active .mnav,
body.wc-active .mnav-sheet {
  display: none !important;
}
