/* =====================================================================
   SISINTCOBADMINISERV — Estilos premium
   ===================================================================== */
:root {
  --sidebar-w: 264px;
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --primary-dark: #4f46e5;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --dark: #0f172a;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .12);
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
}

/* ------------------------------------------------ animaciones */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn  { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes popIn    { 0% { opacity: 0; transform: scale(.92); } 100% { opacity: 1; transform: scale(1); } }
@keyframes shimmer  { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes floaty   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); } 50% { box-shadow: 0 0 0 7px rgba(239,68,68,0); } }
@keyframes gradMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.anim-up    { animation: fadeUp .55s cubic-bezier(.22,.9,.36,1) both; }
.anim-in    { animation: fadeIn .5s ease both; }
.anim-pop   { animation: popIn .45s cubic-bezier(.34,1.56,.64,1) both; }
.anim-slide { animation: slideIn .5s cubic-bezier(.22,.9,.36,1) both; }
.d-1 { animation-delay: .06s; } .d-2 { animation-delay: .12s; } .d-3 { animation-delay: .18s; }
.d-4 { animation-delay: .24s; } .d-5 { animation-delay: .30s; } .d-6 { animation-delay: .36s; }

/* ------------------------------------------------ layout */
.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
  color: #cbd5e1;
  position: fixed; inset: 0 auto 0 0;
  z-index: 1040;
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.22,.9,.36,1);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 20px 18px;
}
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad);
  background-size: 200% 200%;
  animation: gradMove 6s ease infinite;
  display: grid; place-items: center;
  color: #fff; font-size: 1.25rem;
  box-shadow: 0 6px 18px rgba(139, 92, 246, .45);
  flex: none;
}
.brand-logo-img {
  background: #fff;
  animation: none;
  padding: 4px;
}
.brand-logo-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }

.brand-name { font-weight: 800; color: #fff; font-size: .95rem; letter-spacing: .5px; line-height: 1.15; }
.brand-sub  { font-size: .62rem; color: #818cf8; text-transform: uppercase; letter-spacing: 1.5px; }

.nav-section { padding: 14px 20px 6px; font-size: .62rem; letter-spacing: 1.6px; text-transform: uppercase; color: #64748b; font-weight: 700; }

.nav-link-s {
  display: flex; align-items: center; gap: 12px;
  color: #94a3b8; text-decoration: none;
  padding: 10px 14px; margin: 2px 12px;
  border-radius: 10px;
  font-weight: 500; font-size: .875rem;
  transition: all .22s ease;
  position: relative;
}
.nav-link-s i { font-size: 1.05rem; width: 22px; text-align: center; transition: transform .22s ease; }
.nav-link-s:hover { color: #fff; background: rgba(99, 102, 241, .14); }
.nav-link-s:hover i { transform: translateX(2px) scale(1.12); }
.nav-link-s.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(99,102,241,.28), rgba(139,92,246,.14));
  box-shadow: inset 3px 0 0 var(--primary);
}
/* módulos desplegables: el padre y sus subopciones forman UNA sola caja */
.nav-module {
  margin: 2px 12px;
  border-radius: 12px;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav-module .nav-link-s { margin: 0; }
.nav-module.open {
  background: rgba(99, 102, 241, .10);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .22);
}
.nav-module.open .nav-parent { border-radius: 12px 12px 0 0; }

.nav-parent { cursor: pointer; user-select: none; }
.nav-parent .nav-chevron { margin-left: auto; font-size: .75rem; width: auto; transition: transform .3s cubic-bezier(.22,.9,.36,1); }
.nav-parent.open .nav-chevron { transform: rotate(180deg); }
.nav-parent.active-parent {
  color: #fff;
  background: linear-gradient(90deg, rgba(99,102,241,.28), rgba(139,92,246,.14));
  box-shadow: inset 3px 0 0 var(--primary);
}
.nav-sub {
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(.22,.9,.36,1);
}
.nav-sub.open { max-height: 300px; padding-bottom: 6px; }
.nav-sub-item {
  padding: 8px 14px 8px 30px !important;
  font-size: .82rem !important;
  position: relative;
  border-radius: 10px !important;
  margin: 2px 6px !important;
}
/* línea guía vertical que conecta las subopciones con el módulo */
.nav-sub-item::before {
  content: ''; position: absolute; left: 19px; top: -8px; bottom: 50%;
  width: 1.5px; background: rgba(99, 102, 241, .35);
}
.nav-sub-item::after {
  content: ''; position: absolute; left: 19px; top: 50%;
  width: 8px; height: 1.5px; background: rgba(99, 102, 241, .35);
}
.nav-sub-item i { font-size: .9rem !important; margin-left: 8px; }
.nav-sub-item.active { box-shadow: none; background: linear-gradient(90deg, rgba(99,102,241,.35), rgba(139,92,246,.18)); }

.nav-link-s .badge-count {
  margin-left: auto;
  background: var(--danger); color: #fff;
  font-size: .65rem; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  animation: pulseDot 2s infinite;
}

.sidebar-footer { margin-top: auto; padding: 16px 20px; font-size: .68rem; color: #475569; border-top: 1px solid rgba(255,255,255,.06); }

/* ------------------------------------------------ main */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex; flex-direction: column;
  min-height: 100vh;
}

.topbar {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 28px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 1030;
}
.topbar h1 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.topbar .crumb { font-size: .72rem; color: var(--muted); }

.btn-burger { display: none; border: 0; background: transparent; font-size: 1.4rem; color: var(--text); }

.user-chip {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border);
  padding: 6px 14px 6px 6px; border-radius: 40px;
  box-shadow: var(--shadow);
}
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  overflow: hidden; flex: none;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip a:hover .u-name { color: var(--primary-dark); }
.user-chip .u-name { font-weight: 700; font-size: .8rem; line-height: 1.1; }
.user-chip .u-role { font-size: .65rem; color: var(--muted); }

.content { padding: 26px 28px 40px; flex: 1; }

/* ------------------------------------------------ tarjetas */
.card-panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226,232,240,.7);
  padding: 22px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.card-panel:hover { box-shadow: var(--shadow-lg); }

.kpi-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid rgba(226,232,240,.7);
  box-shadow: var(--shadow);
  transition: transform .28s cubic-bezier(.22,.9,.36,1), box-shadow .28s;
}
.kpi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.kpi-card::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--kpi-color, var(--primary)); opacity: .08;
  transition: transform .4s ease;
}
.kpi-card:hover::after { transform: scale(1.35); }
.kpi-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.35rem; color: #fff;
  background: var(--kpi-color, var(--primary));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--kpi-color, var(--primary)) 40%, transparent);
  margin-bottom: 14px;
}
.kpi-value { font-size: 1.55rem; font-weight: 800; line-height: 1; letter-spacing: -.5px; }
.kpi-label { font-size: .75rem; color: var(--muted); font-weight: 600; margin-top: 6px; text-transform: uppercase; letter-spacing: .6px; }
.kpi-foot  { font-size: .72rem; margin-top: 10px; color: var(--muted); }

/* ------------------------------------------------ botones */
.btn-grad {
  background: var(--grad);
  background-size: 180% 180%;
  color: #fff !important; border: 0;
  padding: 9px 20px; border-radius: 10px;
  font-weight: 700; font-size: .85rem;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 18px rgba(99, 102, 241, .35);
  transition: all .25s ease;
  text-decoration: none; cursor: pointer;
}
.btn-grad:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(99, 102, 241, .45); }
.btn-grad:active { transform: translateY(0); }

.btn-soft {
  background: #eef2ff; color: var(--primary-dark) !important; border: 0;
  padding: 8px 16px; border-radius: 10px; font-weight: 700; font-size: .82rem;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .2s; text-decoration: none; cursor: pointer;
}
.btn-soft:hover { background: #e0e7ff; transform: translateY(-1px); }

.btn-icon {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border);
  background: #fff; color: var(--muted);
  display: inline-grid; place-items: center; font-size: .9rem;
  transition: all .18s; cursor: pointer; text-decoration: none;
}
.btn-icon:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-icon.text-danger:hover  { background: #fef2f2; border-color: #fecaca; }
.btn-icon.text-success:hover { background: #f0fdf4; border-color: #bbf7d0; }
.btn-icon.text-primary:hover { background: #eef2ff; border-color: #c7d2fe; }

/* ------------------------------------------------ tablas */
.table-premium { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-premium thead th {
  font-size: .68rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); font-weight: 700;
  padding: 10px 14px; border-bottom: 2px solid var(--border);
  background: #f8fafc;
  white-space: nowrap;
}
.table-premium thead th:first-child { border-radius: 10px 0 0 0; }
.table-premium thead th:last-child  { border-radius: 0 10px 0 0; }
.table-premium tbody td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table-premium tbody tr { transition: background .18s ease, transform .18s ease; }
.table-premium tbody tr:hover { background: #f8faff; }

.badge-estado {
  display: inline-block; padding: 4px 11px; border-radius: 30px;
  font-size: .67rem; font-weight: 800; letter-spacing: .6px; color: #fff;
}
.bg-success   { background: linear-gradient(135deg,#10b981,#059669) !important; }
.bg-warning   { background: linear-gradient(135deg,#f59e0b,#d97706) !important; }
.bg-danger    { background: linear-gradient(135deg,#ef4444,#dc2626) !important; }
.bg-info      { background: linear-gradient(135deg,#06b6d4,#0891b2) !important; }
.bg-dark      { background: linear-gradient(135deg,#334155,#0f172a) !important; }
.bg-secondary { background: linear-gradient(135deg,#94a3b8,#64748b) !important; }
.bg-primary   { background: linear-gradient(135deg,#6366f1,#8b5cf6) !important; }

/* ------------------------------------------------ formularios */
.form-label { font-weight: 700; font-size: .76rem; color: var(--text); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.form-control, .form-select {
  border-radius: 10px; border: 1.5px solid var(--border);
  padding: 9px 13px; font-size: .875rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}

/* ------------------------------------------------ login */
.login-page {
  min-height: 100vh;
  display: grid; place-items: center;
  background: radial-gradient(1100px 600px at 15% -10%, rgba(99,102,241,.35), transparent 60%),
              radial-gradient(900px 500px at 110% 110%, rgba(217,70,239,.28), transparent 55%),
              linear-gradient(160deg, #0f172a, #1e1b4b 60%, #312e81);
  padding: 20px;
  position: relative; overflow: hidden;
}
.login-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; animation: floaty 7s ease-in-out infinite; }
.login-card {
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,.98);
  border-radius: 24px;
  padding: 42px 38px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  position: relative; z-index: 2;
}

/* ------------------------------------------------ misceláneo */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font-size: 1.35rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 10px; }
.page-head h2 i { color: var(--primary); }
.page-head p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }

.avatar-sm {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .8rem;
}

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 18px; }
.filter-bar .form-control, .filter-bar .form-select { min-width: 150px; }

.empty-state { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty-state i { font-size: 3rem; opacity: .3; display: block; margin-bottom: 12px; }

.progress-slim { height: 7px; border-radius: 6px; background: #eef2f7; overflow: hidden; }
.progress-slim > div { height: 100%; border-radius: 6px; background: var(--grad); transition: width 1s cubic-bezier(.22,.9,.36,1); }

.list-tile { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #f1f5f9; }
.list-tile:last-child { border-bottom: 0; }

.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.chart-box { position: relative; height: 290px; }

/* separadores de sección en formularios */
.form-seccion {
  font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--primary-dark);
  padding: 8px 12px; margin-bottom: 12px;
  background: linear-gradient(90deg, #eef2ff, transparent);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; gap: 8px;
}

/* burbuja "está escribiendo…" del chat */
.typing-burbuja {
  display: inline-flex; align-items: center; gap: 5px;
  background: #eef2ff;
  padding: 12px 16px;
  border-radius: 14px 14px 14px 4px;
  animation: popIn .3s cubic-bezier(.34,1.56,.64,1) both;
}
.typing-burbuja span {
  width: 8px; height: 8px; border-radius: 50%;
  background: #8b5cf6;
  animation: puntoSalta 1.2s ease-in-out infinite;
}
.typing-burbuja span:nth-child(2) { animation-delay: .18s; background: #6366f1; }
.typing-burbuja span:nth-child(3) { animation-delay: .36s; background: #a78bfa; }
@keyframes puntoSalta {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-7px); opacity: 1; }
}

/* toast flash */
.flash-wrap { position: fixed; top: 18px; right: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.flash-item {
  min-width: 290px; max-width: 380px;
  background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start;
  border-left: 4px solid var(--primary);
  animation: slideInR .45s cubic-bezier(.22,.9,.36,1) both;
}
@keyframes slideInR { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.flash-item.f-success { border-color: var(--success); }
.flash-item.f-danger  { border-color: var(--danger); }
.flash-item.f-warning { border-color: var(--warning); }
.flash-item i { font-size: 1.2rem; }
.flash-item.f-success i { color: var(--success); }
.flash-item.f-danger i  { color: var(--danger); }
.flash-item.f-warning i { color: var(--warning); }

/* modales bootstrap refinados */
.modal-content { border: 0; border-radius: 18px; box-shadow: var(--shadow-lg); }
/* garantizar scroll interno en modales largos (el fondo queda bloqueado por Bootstrap) */
.modal-dialog-scrollable .modal-body {
  max-height: calc(100vh - 230px);
  overflow-y: auto !important;
  scrollbar-width: thin;
}
.modal-dialog-scrollable .modal-body::-webkit-scrollbar { width: 8px; }
.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 6px; }
.modal-header { border-bottom: 1px solid var(--border); padding: 18px 24px; }
.modal-header .modal-title { font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 9px; }
.modal-header .modal-title i { color: var(--primary); }
.modal-body { padding: 22px 24px; }
.modal-footer { border-top: 1px solid var(--border); padding: 14px 24px; }

/* impresión de recibos */
@media print {
  .no-print, .sidebar, .topbar, .flash-wrap { display: none !important; }
  .main { margin: 0 !important; }
  .content { padding: 0 !important; }
  body { background: #fff !important; }
  .card-panel { box-shadow: none !important; border: 0 !important; }
}

/* ==================================================================
   RESPONSIVE — experiencia tipo aplicación
   ================================================================== */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: 30px 0 60px rgba(0,0,0,.3); }
  .main { margin-left: 0; }
  .btn-burger { display: inline-block; }
  .content { padding: 18px 14px 40px; }
  .topbar { padding: 10px 14px; gap: 10px; }
  .topbar h1 { font-size: 1rem; }
  .topbar .crumb { display: none; }
  .user-chip .u-name, .user-chip .u-role { display: none; }
  .user-chip { padding: 4px; gap: 4px; }
}

@media (max-width: 767px) {
  /* espacio para la barra inferior */
  .content { padding: 14px 12px calc(92px + env(safe-area-inset-bottom)); }

  .page-head { gap: 10px; }
  .page-head h2 { font-size: 1.05rem; gap: 7px; }
  .page-head p { font-size: .72rem; }

  /* filtros apilados a lo ancho */
  .filter-bar { gap: 8px; }
  .filter-bar > div { flex: 1 1 100%; min-width: 100% !important; }
  .filter-bar .form-control, .filter-bar .form-select { min-width: 100% !important; width: 100%; }
  .filter-bar .btn-soft, .filter-bar .btn-grad { flex: 1; justify-content: center; }

  /* tarjetas y KPIs compactos */
  .card-panel { padding: 15px 14px; border-radius: 14px; }
  .kpi-card { padding: 14px 15px; }
  .kpi-icon { width: 40px; height: 40px; font-size: 1.05rem; border-radius: 11px; margin-bottom: 10px; }
  .kpi-value { font-size: 1.2rem; }
  .kpi-label { font-size: .62rem; }
  .chart-box { height: 230px; }

  /* tablas: scroll horizontal con inercia */
  .table-responsive { -webkit-overflow-scrolling: touch; }
  .table-premium { min-width: 620px; }
  .table-premium thead th { padding: 8px 10px; font-size: .6rem; }
  .table-premium tbody td { padding: 10px 10px; font-size: .8rem; }

  /* modales a pantalla casi completa */
  .modal-dialog { margin: 8px; }
  .modal-dialog-scrollable .modal-body { max-height: calc(100vh - 170px); }
  .modal-body { padding: 16px; }
  .modal-header, .modal-footer { padding: 12px 16px; }
  .modal-footer { flex-wrap: nowrap; }
  .modal-footer .btn-grad { flex: 1; justify-content: center; }

  /* toasts a lo ancho */
  .flash-wrap { left: 12px; right: 12px; top: 12px; }
  .flash-item { min-width: 0; max-width: none; width: 100%; }

  .page-head .btn-grad, .page-head .btn-soft { padding: 8px 14px; font-size: .78rem; }
  .empty-state { padding: 30px 12px; }
  .empty-state i { font-size: 2.3rem; }
}

/* ---------- barra de navegación inferior (tipo app) ---------- */
.bottom-nav { display: none; }
@media (max-width: 767px) {
  .bottom-nav {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1046;
    background: rgba(13, 18, 38, .97);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,.09);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
    box-shadow: 0 -10px 30px rgba(2,6,23,.4);
  }
  .bottom-nav a, .bottom-nav button {
    flex: 1; max-width: 88px;
    background: none; border: 0;
    color: #8891b0; text-decoration: none;
    font-size: .58rem; font-weight: 700; letter-spacing: .2px;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 4px 2px; border-radius: 12px;
    position: relative; transition: color .2s, transform .15s;
  }
  .bottom-nav a:active, .bottom-nav button:active { transform: scale(.92); }
  .bottom-nav i { font-size: 1.2rem; line-height: 1; }
  .bottom-nav .activo { color: #fff; }
  .bottom-nav .activo i { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .bottom-nav .activo::after {
    content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    width: 22px; height: 3px; border-radius: 3px; background: var(--grad);
  }
  .bottom-nav .bn-badge {
    position: absolute; top: -2px; right: 16px;
    background: var(--danger); color: #fff;
    font-size: .55rem; font-weight: 800;
    min-width: 16px; height: 16px; border-radius: 9px; padding: 0 4px;
    display: grid; place-items: center;
  }
}

.sidebar-backdrop {
  display: none; position: fixed; inset: 0; z-index: 1035;
  background: rgba(15,23,42,.5); backdrop-filter: blur(2px);
}
.sidebar-backdrop.show { display: block; animation: fadeIn .25s both; }
