/*//////////////////////////////////////////////////////////
  47Flare — NAV BAR (bottom)
//////////////////////////////////////////////////////////*/

.bottom-nav{
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  display: grid;
  place-items: center;
  z-index: 50;
  pointer-events: none;

  /* kill micro scroll on mobile */
  overflow-x: clip;
  max-width: 100vw;
}
@supports not (overflow: clip){
  .bottom-nav{ overflow-x: hidden; }
}

.bottom-nav .bar{
  pointer-events: auto;

  /* IMPORTANT: never exceed viewport width */
  width: min(520px, calc(100vw - 24px));
  height: 72px;

  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(12, 16, 16, 0.58);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  padding: 0 8px;

  /* allow floating logo, but without affecting viewport */
  overflow: visible;
  position: relative;
}

/* Light bar */
[data-theme="light"] .bottom-nav .bar{
  background: rgba(255,255,255,0.65);
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

.nav-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-btn:hover{
  border-color: var(--stroke);
  background: rgba(0,0,0,0.08);
}
[data-theme="light"] .nav-btn:hover{ background: rgba(0,0,0,0.06); }

/* Force grid alignment: left / center / right */
#openMenu{ justify-self: start; }
#openPortal{ justify-self: end; }

.center-logo{
  justify-self: center;
  align-self: center;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* icons */
.ic{ width: 20px; height: 20px; display: inline-block; }
.ic svg{ width: 20px; height: 20px; }

/* extra safety for iOS */
html, body{ overflow-x: clip; }
@supports not (overflow: clip){
  html, body{ overflow-x: hidden; }
}

/* SAFARI FIX: prevent any nav FX from creating page overflow */
html, body{ overflow-x: hidden !important; }
.bottom-nav{ overflow-x: hidden !important; }
.bottom-nav .bar{ overflow: visible; }

/* --- NAV: ensure nothing inside becomes scrollable --- */
.bottom-nav,
.bottom-nav .bar,
.center-logo,
.center-logo .ff-logo-wrap {
  overflow: visible !important;
}

.bottom-nav .bar {
  overflow: visible !important;
}

/* If any browser tries to paint internal scrollbars */
.bottom-nav * {
  scrollbar-width: none;
}
.bottom-nav *::-webkit-scrollbar {
  width: 0;
  height: 0;
}

