@keyframes navbar-logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
  }
  .navbar-logo-pulse {
    animation: navbar-logo-float 2.5s ease-in-out infinite;
  }
  #nav-sidebar, #nav-sidebar * {
    list-style: none !important;
    list-style-type: none !important;
  }
  #nav-sidebar a {
    text-decoration: none !important;
  }

  /* ---------- Menu lateral ---------- */
  #nav-sidebar-overlay {
    background:
      radial-gradient(ellipse 70% 60% at 0% 50%, rgba(var(--bfd,225,29,42), 0.14), transparent 70%),
      rgba(0, 0, 0, 0.64);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: sy-side-fade 0.35s ease both;
  }

  @keyframes sy-side-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  #nav-sidebar {
    --side-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --side-red: rgb(var(--bfa,255,59,69));
    width: 320px;
    max-width: 86vw;
    height: 100%;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 0 22px 22px 0;
    background:
      linear-gradient(180deg, transparent, rgba(var(--bfa,255,59,69), 0.55) 30%, rgba(var(--bfa,255,59,69), 0.55) 70%, transparent) right top / 1px 100% no-repeat,
      radial-gradient(90% 38% at 0% 0%, rgba(var(--bfd,225,29,42), 0.17), transparent 70%),
      radial-gradient(80% 30% at 100% 100%, rgba(var(--bfd,225,29,42), 0.08), transparent 70%),
      linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 24px 24px,
      linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 24px 24px,
      linear-gradient(180deg, #0e0809, #060404);
    box-shadow: 30px 0 60px -24px rgba(0, 0, 0, 0.95);
    transition: transform 0.5s var(--side-ease);
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--bfa,255,59,69), 0.35) transparent;
    color: #fff;
  }

  #nav-sidebar::-webkit-scrollbar { width: 6px; }
  #nav-sidebar::-webkit-scrollbar-track { background: transparent; }
  #nav-sidebar::-webkit-scrollbar-thumb { border-radius: 6px; background: rgba(var(--bfa,255,59,69), 0.35); }

  #nav-sidebar .sy-side-inner {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 0 16px 20px;
  }

  /* Cabeçalho */
  #nav-sidebar .sy-side-head {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 -16px;
    padding: 18px 16px 16px;
    background: linear-gradient(180deg, rgba(14, 8, 9, 0.97) 72%, rgba(14, 8, 9, 0));
  }

  #nav-sidebar .sy-side-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
  }

  #nav-sidebar .sy-side-logo {
    position: relative;
    display: grid;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, rgba(var(--bfd,225,29,42), 0.32), #0a0506 72%);
    box-shadow: 0 0 22px -6px rgba(var(--bfd,225,29,42), 0.7);
  }

  #nav-sidebar .sy-side-logo-ring {
    position: absolute;
    inset: -3px;
    padding: 1.5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgb(var(--bfa,255,59,69)), rgba(var(--bfa,255,59,69), 0.05) 30%, rgba(255, 255, 255, 0.2) 50%, rgba(var(--bfa,255,59,69), 0.05) 70%, rgb(var(--bfa,255,59,69)));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: sy-side-spin 8s linear infinite paused;
  }

  #nav-sidebar.is-open .sy-side-logo-ring,
  #nav-sidebar.is-open .sy-side-shine,
  #nav-sidebar.is-open .sy-side-ping::after {
    animation-play-state: running;
  }

  #nav-sidebar .sy-side-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }

  @keyframes sy-side-spin {
    to { transform: rotate(1turn); }
  }

  #nav-sidebar .sy-side-brand-txt {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
  }

  #nav-sidebar .sy-side-name {
    font-family: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
  }

  #nav-sidebar .sy-side-online {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    color: #86efac;
  }

  #nav-sidebar .sy-side-ping {
    position: relative;
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
  }

  #nav-sidebar .sy-side-ping::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid #34d399;
    animation: sy-side-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite paused;
  }

  @keyframes sy-side-ping {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(2.8); opacity: 0; }
  }

  #nav-sidebar .sy-side-close {
    display: grid;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    transition: border-color 0.3s var(--side-ease), background-color 0.3s var(--side-ease);
  }

  #nav-sidebar .sy-side-close svg {
    width: 16px;
    height: 16px;
    transition: transform 0.4s var(--side-ease);
  }

  #nav-sidebar .sy-side-close:hover {
    border-color: rgba(var(--bfa,255,59,69), 0.6);
    background: rgba(var(--bfd,225,29,42), 0.14);
  }

  #nav-sidebar .sy-side-close:hover svg {
    transform: rotate(90deg);
  }

  /* Busca */
  #nav-sidebar .sy-side-search {
    display: flex;
    height: 46px;
    align-items: center;
    gap: 10px;
    margin: 2px 0 20px;
    padding: 0 8px 0 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    background:
      linear-gradient(180deg, rgba(20, 13, 14, 0.96), rgba(10, 7, 8, 0.96)) padding-box,
      linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(var(--bfa,255,59,69), 0.35), rgba(255, 255, 255, 0.07)) border-box;
    cursor: text;
    transition: box-shadow 0.3s var(--side-ease);
  }

  #nav-sidebar .sy-side-search:focus-within {
    box-shadow: 0 0 0 3px rgba(var(--bfa,255,59,69), 0.16), 0 0 24px -8px rgba(var(--bfa,255,59,69), 0.7);
  }

  #nav-sidebar .sy-side-search > svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: rgb(var(--bfa,255,107,114));
  }

  #nav-sidebar .sy-side-search input {
    min-width: 0;
    height: 100%;
    flex: 1;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    font-size: 13.5px;
    color: #fff;
  }

  #nav-sidebar .sy-side-search input::placeholder {
    color: rgba(255, 255, 255, 0.38);
  }

  #nav-sidebar .sy-side-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
  }

  #nav-sidebar .sy-side-search kbd {
    flex-shrink: 0;
    padding: 3px 7px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
  }

  /* Rótulos de seção */
  #nav-sidebar .sy-side-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 4px 8px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
  }

  #nav-sidebar .sy-side-label::before {
    content: "";
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--side-red);
    box-shadow: 0 0 10px rgba(var(--bfa,255,59,69), 0.8);
  }

  #nav-sidebar .sy-side-label--cats {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* Links */
  #nav-sidebar .sy-side-nav,
  #nav-sidebar .sy-side-cats {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  #nav-sidebar .sy-side-link,
  #nav-sidebar .sy-side-cat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.82);
    transition: background-color 0.25s var(--side-ease), color 0.25s var(--side-ease);
  }

  #nav-sidebar .sy-side-txt {
    min-width: 0;
    font-size: 13.5px;
    font-weight: 600;
  }

  #nav-sidebar .sy-side-ico,
  #nav-sidebar .sy-side-cat-ico {
    display: grid;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    color: rgb(var(--bfa,255,107,114));
    transition: transform 0.3s var(--side-ease), border-color 0.25s var(--side-ease), background-color 0.25s var(--side-ease), box-shadow 0.25s var(--side-ease), color 0.25s var(--side-ease);
  }

  #nav-sidebar .sy-side-ico svg {
    width: 16px;
    height: 16px;
  }

  #nav-sidebar .sy-side-chev {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-left: auto;
    color: var(--side-red);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s var(--side-ease), transform 0.25s var(--side-ease);
  }

  #nav-sidebar .sy-side-link:hover,
  #nav-sidebar .sy-side-cat:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
  }

  #nav-sidebar .sy-side-link:hover .sy-side-ico,
  #nav-sidebar .sy-side-cat:hover .sy-side-cat-ico {
    transform: translateX(2px);
    border-color: rgba(var(--bfa,255,59,69), 0.55);
    background-color: rgba(var(--bfd,225,29,42), 0.16);
    box-shadow: 0 0 16px -4px rgba(var(--bfd,225,29,42), 0.7);
    color: #fff;
  }

  #nav-sidebar .sy-side-link:hover .sy-side-chev,
  #nav-sidebar .sy-side-cat:hover .sy-side-chev {
    opacity: 1;
    transform: none;
  }

  /* Página atual */
  #nav-sidebar .sy-side-link.is-active,
  #nav-sidebar .sy-side-cat.is-active {
    background: linear-gradient(90deg, rgba(var(--bfd,225,29,42), 0.18), rgba(var(--bfd,225,29,42), 0));
    color: #fff;
  }

  #nav-sidebar .sy-side-link.is-active::before,
  #nav-sidebar .sy-side-cat.is-active::before {
    content: "";
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: -16px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--side-red);
    box-shadow: 0 0 12px rgba(var(--bfa,255,59,69), 0.9);
  }

  #nav-sidebar .is-active .sy-side-ico,
  #nav-sidebar .is-active .sy-side-cat-ico {
    border-color: rgba(var(--bfa,255,59,69), 0.6);
    background: linear-gradient(180deg, rgb(var(--bfa,255,77,86)), rgb(var(--bfd,179,18,29)));
    color: #fff;
  }

  /* Destaque: Como usar seus pontos */
  #nav-sidebar .sy-side-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    margin-top: 10px;
    padding: 11px 12px 11px 11px;
    border-radius: 16px;
    border: 1.5px solid transparent;
    background:
      linear-gradient(180deg, rgba(20, 11, 12, 0.97), rgba(8, 5, 6, 0.97)) padding-box,
      linear-gradient(135deg, rgb(var(--bfa,255,59,69)), rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.04) 60%, rgb(var(--bfa,255,59,69))) border-box;
    box-shadow: 0 14px 30px -18px rgba(var(--bfd,225,29,42), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.4s var(--side-ease), box-shadow 0.4s var(--side-ease);
  }

  #nav-sidebar .sy-side-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 12% 50%, rgba(var(--bfa,255,59,69), 0.22), transparent 60%);
  }

  #nav-sidebar .sy-side-cta:hover {
    box-shadow: 0 18px 36px -16px rgba(var(--bfd,225,29,42), 0.85), 0 0 24px -8px rgba(var(--bfd,225,29,42), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  }

  #nav-sidebar .sy-side-cta > span:not(.sy-side-shine) {
    position: relative;
  }

  #nav-sidebar .sy-side-cta-ico {
    display: grid;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(var(--bfa,255,59,69), 0.3);
    background: radial-gradient(circle at 50% 30%, rgba(var(--bfa,255,59,69), 0.3), transparent 70%), rgba(255, 255, 255, 0.03);
    color: #fff;
    transition: transform 0.5s var(--side-ease);
  }

  #nav-sidebar .sy-side-cta-ico svg {
    width: 19px;
    height: 19px;
  }

  #nav-sidebar .sy-side-cta:hover .sy-side-cta-ico {
    transform: scale(1.08) rotate(-6deg);
  }

  #nav-sidebar .sy-side-cta-txt {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
  }

  #nav-sidebar .sy-side-cta-kicker {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(var(--bfl,255,138,143));
  }

  #nav-sidebar .sy-side-cta-title {
    font-family: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
  }

  #nav-sidebar .sy-side-cta-arrow {
    display: grid;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.4s var(--side-ease), background-color 0.4s var(--side-ease), border-color 0.4s var(--side-ease);
  }

  #nav-sidebar .sy-side-cta-arrow svg {
    width: 14px;
    height: 14px;
  }

  #nav-sidebar .sy-side-cta:hover .sy-side-cta-arrow {
    transform: translateX(3px);
    border-color: var(--side-red);
    background: var(--side-red);
  }

  #nav-sidebar .sy-side-shine {
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.06) 60%, transparent);
    transform: skewX(-18deg);
    animation: sy-side-shine 6s var(--side-ease) infinite paused;
  }

  @keyframes sy-side-shine {
    0%, 55% { left: -60%; }
    85%, 100% { left: 130%; }
  }

  /* Categorias */
  #nav-sidebar .sy-side-cat {
    gap: 11px;
    padding: 5px 8px;
    color: rgba(255, 255, 255, 0.74);
  }

  #nav-sidebar .sy-side-cat-ico {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.45);
  }

  #nav-sidebar .sy-side-cat-ico svg {
    width: 15px;
    height: 15px;
  }

  #nav-sidebar .sy-side-cat-name {
    overflow: hidden;
    min-width: 0;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  /* Rodapé do menu */
  #nav-sidebar .sy-side-foot {
    margin-top: auto;
    padding-top: 22px;
  }

  #nav-sidebar .sy-side-foot-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
  }

  #nav-sidebar .sy-side-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #nav-sidebar .sy-side-social {
    --c: rgb(var(--bfa,255,59,69));
    display: flex;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    transition: border-color 0.3s var(--side-ease), box-shadow 0.3s var(--side-ease), background-color 0.3s var(--side-ease), transform 0.3s var(--side-ease);
  }

  #nav-sidebar .sy-side-social img,
  #nav-sidebar .sy-side-social svg {
    width: 17px;
    height: 17px;
  }

  #nav-sidebar .sy-side-social:hover {
    transform: translateY(-2px);
    border-color: var(--c);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px -6px var(--c);
  }

  #nav-sidebar a:focus-visible,
  #nav-sidebar button:focus-visible {
    outline: 2px solid var(--side-red);
    outline-offset: 2px;
  }

  /* Entrada em cascata ao abrir */
  #nav-sidebar.is-open .sy-side-anim {
    animation: sy-side-in 0.5s var(--side-ease) both;
    animation-delay: calc(min(var(--i, 0), 16) * 28ms + 120ms);
  }

  @keyframes sy-side-in {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: none; }
  }

  @media (max-width: 767px) {
    #nav-sidebar-overlay {
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #nav-sidebar,
    #nav-sidebar-overlay {
      transition: none;
      animation: none;
    }

    #nav-sidebar .sy-side-logo-ring,
    #nav-sidebar .sy-side-shine,
    #nav-sidebar .sy-side-ping::after,
    #nav-sidebar.is-open .sy-side-anim {
      animation: none;
    }
  }