/* Sidebar idéntico al panel React, replicado en HTML estático para money site */
.sp-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: linear-gradient(135deg, #0f2747 0%, #1a3a5f 50%, #2c4a6e 100%);
  color: rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.sp-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(0,181,161,0.22), transparent 50%), radial-gradient(circle at 80% 70%, rgba(14,165,233,0.18), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.sp-sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.sp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
  text-decoration: none;
}
.sp-brand-mark {
  height: 44px;
  width: 44px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #00b5a1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sp-brand-mark svg { height: 28px; width: 28px; }
.sp-brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.sp-brand-text .sp-name { font-weight: 700; font-size: 13px; color: #fff; }
.sp-brand-text .sp-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 2px; color: #00b5a1; }
.sp-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.sp-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.sp-nav a:hover { background: rgba(255,255,255,0.1); color: #00b5a1; }
.sp-nav a.active {
  background: #00b5a1;
  color: #0f2747;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.sp-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.sp-nav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Empuja el contenido principal a la derecha del sidebar */
body.sp-has-sidebar { padding-left: 240px; }

/* Mobile: sidebar oculto, hamburger toggle */
.sp-mobile-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1001;
  background: #0f2747;
  color: #fff;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1023px) {
  body.sp-has-sidebar { padding-left: 0 !important; }
  .sp-sidebar { transform: translateX(-100%); transition: transform 0.25s ease; }
  .sp-sidebar.sp-open { transform: translateX(0); }
  .sp-mobile-toggle { display: flex; }
}
.sp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}
@media (max-width: 1023px) {
  .sp-overlay.sp-open { display: block; }
}

/* Items privados (Mis Recordatorios + Bandeja Soporte) — visual ámbar + candado.
   Replica el patrón de AppSidebar.tsx (regla 33j 2026-05-02). */
.sp-nav a.sp-privado {
  background: rgba(251, 191, 36, 0.10);
  border-left: 2px solid rgba(251, 191, 36, 0.7);
  padding-left: 10px;
}
.sp-nav a.sp-privado:hover {
  background: rgba(251, 191, 36, 0.20);
}
.sp-nav a.sp-privado.active {
  background: var(--sidebar-primary, rgba(0, 181, 161, 0.85));
  border-left-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.sp-lock {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  color: rgba(252, 211, 77, 1);
  flex-shrink: 0;
}
.sp-lock svg {
  width: 12px;
  height: 12px;
}
.sp-nav a.sp-privado.active .sp-lock {
  color: rgba(255, 255, 255, 0.7);
}
