/* Sidebar — PoC #11 colour groups */
:root {
  --arc-bg: #07080f;
  --arc-panel: #0b0d18;
  --arc-border: #131828;
  --arc-blue: #1a6fff;
  --arc-teal: #0fc49a;
  --arc-amber: #f59e0b;
  --arc-red: #e05060;
  --arc-pro: #2dd4a0;
}

body {
  background: var(--arc-bg);
}

.arcana-sidebar {
  width: 210px;
  background: var(--arc-panel);
  border-right: 1px solid var(--arc-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 100;
  padding: 0;
}

.arcana-sidebar .sb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--arc-border);
}

.arcana-sidebar .logo-badge {
  width: 28px;
  height: 28px;
  background: #0d1836;
  border: 1px solid #1a4060;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--arc-blue);
}

.arcana-sidebar .sb-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
}

.arcana-sidebar .sb-sub {
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--arc-blue);
}

.sb-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.nav-group { padding: 0 10px; margin-bottom: 4px; }
.nav-divider { height: 1px; background: #0e1020; margin: 6px 10px 10px; }
.nav-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 8px 5px;
  font-weight: 500;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #404a70;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.nav-item:hover { background: #0f1120; color: #9090c0; }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.5; flex-shrink: 0; }
.nav-badge { font-size: 8px; font-weight: 700; border-radius: 8px; padding: 1px 5px; margin-left: auto; }
.badge-new { background: #0d1428; border: 1px solid #1a2a50; color: #4a80d0; }
.badge-pro { background: #091a0f; border: 1px solid #1a4020; color: var(--arc-pro); }

.g-main .nav-label { color: #1a4080; }
.g-main .nav-item.active { background: #0d1836; border-left-color: var(--arc-blue); color: #6aacff; }

.g-markets .nav-label { color: #0e3a30; }
.g-markets .nav-item.active { background: #081e18; border-left-color: var(--arc-teal); color: var(--arc-teal); }
.nav-item.active.crypto { background: #1a1200 !important; border-left-color: var(--arc-amber) !important; color: var(--arc-amber) !important; }

.g-knowledge .nav-label { color: #3a2800; }
.g-knowledge .nav-item.active { background: #180e00; border-left-color: #d97706; color: var(--arc-amber); }
.nav-item.active.crisis { background: #1a0808 !important; border-left-color: var(--arc-red) !important; color: var(--arc-red) !important; }

.g-account .nav-label { color: #1e2848; }
.g-account .nav-item.active { background: #0e1220; border-left-color: #6080b0; color: #8090c0; }
.nav-item.active.plan-item { background: #081a0f !important; border-left-color: var(--arc-pro) !important; color: var(--arc-pro) !important; }

.sb-footer { padding: 12px 10px 16px; border-top: 1px solid #0e1020; }
.sb-user { display: flex; align-items: center; gap: 9px; padding: 6px 8px; }
.sb-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #0d1836; border: 1px solid #1a4060;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #4a80d0;
}
.sb-uname { font-size: 11px; color: #8090b0; font-weight: 600; }
.sb-plan { font-size: 9px; color: #1e2a50; display: flex; align-items: center; gap: 4px; }
.plan-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--arc-pro); }

.arcana-main {
  margin-left: 210px;
  padding: 0;
  min-height: 100vh;
  background: var(--arc-bg);
}

@media (max-width: 768px) {
  .arcana-sidebar { width: 64px; }
  .arcana-sidebar .sb-name, .arcana-sidebar .sb-sub, .nav-item span:not(.nav-dot), .nav-badge, .nav-label, .sb-uname, .sb-plan { display: none; }
  .arcana-main { margin-left: 64px; }
}
