/* ═══════════════════════════════════════════════════
   SIDEBAR — Off-Canvas Navigation
   ═══════════════════════════════════════════════════ */
.sb {
  width: var(--sb-w, 240px);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform .35s cubic-bezier(.4,0,.2,1),
              box-shadow .35s ease;
  animation: fadeInLeft .4s ease-out;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ─── Logo ─── */
.sb-logo { padding: 20px 16px; border-bottom: 1px solid var(--border); }
.sb-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--pp); border-radius: 10px; padding: 10px 12px;
}
.sb-dot {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--p), var(--pm));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(83,74,183,.25);
}
.sb-lbl { font-size: 14px; font-weight: 700; color: var(--p); line-height: 1.2; }
.sb-sub { font-size: 12px; color: var(--pm); font-weight: 400; }

/* ─── Sections ─── */
.sb-sec { padding: 14px 10px 2px; }
.sb-sec-lbl {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--txt3);
  padding: 0 8px; margin-bottom: 6px;
}

/* ─── Nav Items ─── */
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--rs);
  cursor: pointer; font-size: 12.5px; font-weight: 500;
  color: var(--txt2); transition: all .2s cubic-bezier(.4,0,.2,1);
  margin-bottom: 2px; position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.nav-item::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--p); border-radius: 0 3px 3px 0;
  transform: scaleY(0); transition: transform .2s ease;
}
.nav-item:hover {
  background: var(--bp); color: var(--b); padding-left: 16px;
}
.nav-item:hover::before { transform: scaleY(1); }
.nav-item.active { background: var(--pp); color: var(--p); font-weight: 600; }
.nav-item.active::before { transform: scaleY(1); }
.nav-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }

/* ─── Filters ─── */
.sb-filters {
  padding: 14px 12px; border-top: 1px solid var(--border); margin-top: auto;
}
.f-lbl {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--txt3); margin-bottom: 6px;
}
.f-sel {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--rs);
  font-family: 'Inter', sans-serif; font-size: 13px;
  color: var(--txt); background: var(--bg);
  cursor: pointer; margin-bottom: 8px; outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239ca3af'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.f-sel:focus { border-color: var(--pm); box-shadow: 0 0 0 3px rgba(83,74,183,.1); }
.btn-reset {
  width: 100%; padding: 10px;
  background: var(--primary-gradient, var(--p)); color: #fff; border: none;
  border-radius: var(--rs);
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s; letter-spacing: .02em;
}
.btn-reset:hover { opacity: .9; transform: translateY(-1px); }
.btn-reset:active { transform: translateY(0) scale(.98); }

/* ═══════════ RESPONSIVE ═══════════ */

/* Tablet */
@media (max-width: 1024px) {
  .sb { width: 220px; }
}

/* Mobile — off-canvas slide-in */
@media (max-width: 768px) {
  .sb {
    width: 280px;
    transform: translateX(-100%);
    box-shadow: none;
  }
  .sb.open {
    transform: translateX(0);
    box-shadow: 8px 0 40px rgba(15,15,30,.2);
  }
  .nav-item { padding: 12px 14px; font-size: 13.5px; }
  .nav-icon { font-size: 16px; }
  .f-sel { padding: 10px 12px; font-size: 13px; }
  .btn-reset { padding: 12px; font-size: 13px; }
}
