.nav-bg-primary{
    background: linear-gradient(135deg, #060d1c 0%, #0b1220 60%, #0f172a 100%);
    position: static;
    top: auto;
    z-index: 1050;
}

.nav-fixed .nav-bg-primary{
    position: static;
    top: auto;
}

.inventory-bar,
.nb-hype-bar,
.nav-bg-primary,
.mobile-promo-strip {
    position: static !important;
    top: auto !important;
    inset: auto !important;
}

@media (min-width: 992px) {
  body.pay-clean-nav .desktop-side-nav {
    display: none !important;
  }
}

body.pay-success-clean-nav .inventory-bar,
body.pay-success-clean-nav .mobile-promo-strip,
body.pay-success-clean-nav .mobile-bottom-nav,
body.pay-success-clean-nav .desktop-side-nav {
  display: none !important;
}

/* LOADER GLOBAL */
.nb-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 30% 30%, rgba(10, 20, 60, 0.6), rgba(4, 8, 20, 0.9));
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.nb-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.nb-loader-core {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.nb-loader-ring {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.08);
  border-top-color: #3b82f6;
  border-right-color: #22c55e;
  animation: nb-spin 1s linear infinite;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.35);
}
.nb-loader-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0ea5e9, #22c55e);
  box-shadow: 0 6px 18px rgba(14,165,233,0.35);
}
.nb-loader-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(14,165,233,0.18), rgba(0,0,0,0));
  filter: blur(32px);
}
.nb-loader-text {
  color: #e2e8f0;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .8rem;
  position: relative;
  margin-top: 92px;
}
@keyframes nb-spin {
  to { transform: rotate(360deg); }
}

/* ===== NAV INFERIOR MOBILE ===== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1049;
    background: linear-gradient(135deg, #060d1c 0%, #0b1220 60%, #0f172a 100%);
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 6px 10px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: .35rem;
    position: fixed;
    overflow: visible;
  }
  .mobile-bottom-nav.nav-scrollable {
    position: fixed;
  }
  .mobile-bottom-nav-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: .35rem;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-bottom-nav-inner::-webkit-scrollbar { display: none; }
  .mobile-bottom-nav.nav-scrollable::before,
  .mobile-bottom-nav.nav-scrollable::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 54px;
    pointer-events: none;
    z-index: 1;
  }
  .mobile-bottom-nav.nav-scrollable::before {
    left: 0;
    background: linear-gradient(90deg, rgba(6,13,28,1) 0%, rgba(6,13,28,0.75) 40%, rgba(6,13,28,0) 100%);
  }
  .mobile-bottom-nav.nav-scrollable::after {
    right: 0;
    background: linear-gradient(270deg, rgba(6,13,28,1) 0%, rgba(6,13,28,0.75) 40%, rgba(6,13,28,0) 100%);
  }
  .mobile-bottom-nav.nav-scrollable.nav-at-start::before { opacity: 0; }
  .mobile-bottom-nav.nav-scrollable.nav-at-end::after { opacity: 0; }
  .mobile-bottom-nav::-webkit-scrollbar { display: none; }
  
  /* agora exibimos também no desktop (com classe dedicada para espaçamento) */
  
  /* itens básicos */
  .mb-nav-item {
    flex: 0 0 auto;
    min-width: 72px;
    text-decoration: none;
    color: #f9fafb;
    font-size: .7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    opacity: .85;
  }

  .mb-nav-item.active {
    opacity: 1;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 6px 10px 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  }

  .mb-nav-item.active i,
  .mb-nav-item.active span {
    color: #ffffff;
  }

  
  .mb-nav-item i {
    font-size: 1.25rem;
  }
  
  .mb-nav-item span {
    line-height: 1.1;
  }
  
  .mb-nav-item:active,
  .mb-nav-item:focus-visible {
    opacity: 1;
    transform: translateY(-1px);
  }
  
  /* centro destacado – estilo “botão neon” seguindo vibe das shine buttons */
  .mb-nav-main {
    flex: 1.4;
    display: flex;
    justify-content: center;
  }
  
  .mb-main-btn {
    border-radius: 10%;
    background: #0f172a;
    padding: 4px 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  
  .mb-main-btn i {
    font-size: 1.4rem;
  }
  
  .mb-main-btn span {
    font-size: .7rem;
    font-weight: 600;
  }

  /* hint “arraste” */
  .mobile-bottom-nav .scroll-hint {
    display: none;
    position: absolute;
    right: 12px;
    top: -34px;
    background: rgba(6,13,28, 0.92);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    padding: 6px 10px;
    color: #e5e7eb;
    font-size: .72rem;
    line-height: 1.1;
    gap: 6px;
    align-items: center;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    z-index: 2;
  }
  .mobile-bottom-nav .scroll-hint i {
    font-size: .9rem;
  }
  .mobile-bottom-nav.show-scroll-hint .scroll-hint {
    display: inline-flex;
    animation: navHintFade 2.4s ease forwards;
  }
  @keyframes navHintFade {
    0%   { opacity: 0; transform: translateY(6px); }
    12%  { opacity: 1; transform: translateY(0); }
    80%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-2px); }
  }

  /* scrollbar custom */
  .mobile-bottom-nav .nav-scrollbar {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 5px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    overflow: hidden;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
  }
  .mobile-bottom-nav.nav-scrollable .nav-scrollbar {
    opacity: .75;
  }
  .mobile-bottom-nav .nav-scrollbar-thumb {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0b2a45, #0e4f7a);
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
    transition: width .08s ease-out;
  }

  /* dá espaço no conteúdo quando a barra existe */
  @media (max-width: 767.98px){
    .navbar .container-fluid {
      flex-wrap: nowrap;
    }

    body.has-mobile-bottom-nav {
      padding-bottom: calc(136px + env(safe-area-inset-bottom)); /* altura da barra + faixa promo com respiro (iOS safe area) */
    }

    .navbar-mobile-head {
      flex-wrap: nowrap;
      width: 100%;
    }

    .mobile-user-bar {
      display: flex;
      align-items: center;
      gap: 8px;
      padding-left: 6px;
      padding-right: 6px;
      width: 100%;
      flex: 1 1 0;
      flex-wrap: nowrap;
      min-width: 0;
      justify-content: flex-end;
    }

    .mobile-balance-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 9px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.16);
      color: #fff;
      font-weight: 700;
      font-size: .78rem;
      white-space: nowrap;
      flex-shrink: 1;
    }

    .mobile-user-btn {
      min-width: 0;
      width: auto;
      padding: 8px 10px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: .8rem;
      height: auto;
      flex-shrink: 1;
    }

    .mobile-user-btn i {
      font-size: 1rem;
    }

    .mobile-user-btn span {
      max-width: 160px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .mobile-login-btn {
      padding: 8px 10px;
      font-size: .82rem;
      height: auto;
    }

    /* Ajustes de nome/saldo no navbar mobile */
    .navbar .shine-button.button-primary {
      min-width: 0;
      width: 100%;
      height: auto;
      padding: 10px 14px;
      white-space: normal;
      line-height: 1.2;
      overflow: visible;
      text-align: center;
      margin-top: 8px;
    }

    .navbar #nav-saldo {
      width: 100%;
      margin-bottom: 6px;
    }

    /* Botões de ação pós-roleta (girar novamente/abrir) */
  .roulette-actions .shine-button.button-primary,
  .slot .roulette-actions .shine-button.button-primary {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 44px;
    white-space: normal;
    line-height: 1.3;
    padding: 12px 16px;
    text-align: center;
  }
  } /* fim max-width 767 */

@media (min-width: 768px){
  body.has-desktop-bottom-nav {
    padding-bottom: 82px;
  }
  body.has-mobile-bottom-nav {
    padding-bottom: 0;
  }
}

/* faixa promocional na base (mobile) */
.mobile-promo-strip {
  background: linear-gradient(135deg, #0f172a 0%, #111827 40%, #0b1220 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  width: 100%;
  margin: 14px 0 8px;
}
.promo-ticker {
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  opacity: 0;
  transition: opacity .4s ease;
  text-align: center;
  white-space: nowrap;
}
.promo-ticker.show {
  opacity: 1;
}
@supports(padding: max(0px)) {
  .mobile-promo-strip {
    padding-bottom: 10px;
  }
  .mobile-bottom-nav {
    padding-bottom: max(10px, calc(10px + env(safe-area-inset-bottom)));
  }
}
@media (max-width: 575.98px) {
  .promo-ticker {
    font-size: .85rem;
    white-space: normal;
  }
}

/* ===== SIDEBAR DESKTOP ===== */
@media (min-width: 992px) {
  .mobile-bottom-nav,
  .mobile-promo-strip {
    display: none !important;
  }
  body.has-desktop-side-nav .mobile-bottom-nav,
  body.has-desktop-side-nav .mobile-promo-strip {
    display: none !important;
  }
  body.has-desktop-side-nav {
    padding-left: 0;
    padding-bottom: 86px;
  }
  .desktop-side-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    background: linear-gradient(135deg, #0a1327, #0c1a35);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    padding: 10px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    z-index: 1040;
    box-shadow: 0 12px 38px rgba(0,0,0,0.35);
    max-height: none;
    overflow: hidden;
  }
  .desktop-side-nav.scrollable::before,
  .desktop-side-nav.scrollable::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 42px;
    pointer-events: none;
    z-index: 2;
  }
  .desktop-side-nav.scrollable::before {
    left: 0;
    background: linear-gradient(90deg, rgba(10,19,39,0.95) 0%, rgba(10,19,39,0) 100%);
  }
  .desktop-side-nav.scrollable::after {
    right: 0;
    background: linear-gradient(270deg, rgba(12,26,53,0.95) 0%, rgba(12,26,53,0) 100%);
  }
  .desktop-side-nav.scroll-top::before { opacity: 0; }
  .desktop-side-nav.scroll-bottom::after { opacity: 0; }
  .desktop-side-nav-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    width: 100%;
    justify-content: center;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: #0e4f7a transparent;
  }
  .desktop-side-nav-inner::-webkit-scrollbar {
    height: 6px;
  }
  .desktop-side-nav-inner::-webkit-scrollbar-track {
    background: transparent;
  }
  .desktop-side-nav-inner::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0b2a45, #0e4f7a);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(14,79,122,0.45);
  }
  .side-nav-item {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: .82rem;
    border: 1px solid transparent;
    transition: all .15s ease;
    text-align: left;
    white-space: nowrap;
  }
  .side-nav-item i {
    font-size: 1.05rem;
  }
  .side-nav-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
  }
  .side-nav-item.active {
    background: linear-gradient(135deg, rgba(59,130,246,0.22), rgba(37,99,235,0.12));
    border-color: rgba(59,130,246,0.35);
    color: #bfdbfe;
    box-shadow: 0 8px 24px rgba(59,130,246,0.22);
  }
}

