/*@3.BONC.1*/
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(56px + var(--sa-b));
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  /*@3.BONC.19*/
  padding-bottom: var(--sa-b);
  box-sizing: border-box;
  /*@3.BONC.15*/
  will-change: transform;
  transform: translateZ(0);
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: calc(60px + var(--sa-b)) !important;
  }
}

/*@3.BONC.16*/
.bn-pin { display: none; }
.bn-edit .bn-pin {
  display: grid; place-items: center;
  position: absolute; inset-block-start: -2px; inset-inline-end: -2px;
  inline-size: 1.15rem; block-size: 1.15rem; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border-color);
  color: var(--text-secondary); font-size: .5rem;
}
/*@3.BONC.18*/
.bn-sheet.bn-edit .bn-pin {
  position: static; inline-size: 1.3rem; block-size: 1.3rem;
  margin-inline-start: auto; margin-inline-end: 0;
}
.bottom-nav.bn-edit .bottom-nav-item { opacity: .85; touch-action: none; }
.bottom-nav-item.gdo-drag {
  opacity: 1; z-index: 2; color: var(--st-accent, #a78bfa);
  background: color-mix(in srgb, var(--st-accent, #a78bfa) 14%, transparent);
}
.bn-hint {
  padding: .3rem .55rem .45rem; font-size: .68rem; line-height: 1.45;
  color: var(--text-muted); text-align: center;
  border-block-end: 1px solid var(--border-color); margin-block-end: .25rem;
}
.bn-edit-row {
  inline-size: 100%; background: transparent; border: 0;
  color: var(--text-secondary); font-family: inherit; cursor: pointer;
  border-block-start: 1px solid var(--border-color); margin-block-start: .25rem;
}
.bn-edit-row[aria-pressed="true"] { color: var(--st-accent, #a78bfa); }

/*@3.BONC.2*/
.bottom-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  appearance: none; -webkit-appearance: none;
  background: none; border: 0;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-md);
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
  font-size: 1.1rem;
  transition: transform 0.2s;
}

/*@3.BONC.3*/
.bottom-nav-item { flex-shrink: 0; }
.bottom-nav-label { white-space: nowrap; }
/*@3.BONC.17*/
.bottom-nav > .bottom-nav-item {
  inline-size: 3.5rem; padding-inline: .15rem;
}
.bottom-nav > .bottom-nav-item .bottom-nav-label {
  max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis;
}
/*@3.BONC.4*/
.bottom-nav .bn-more-item { display: none; }
.bottom-nav.bn-has-more .bn-more-item { display: flex; }

.bottom-nav-item.active {
  color: var(--st-accent);
}

.bottom-nav-item.active i {
  transform: scale(1.1);
}

.bottom-nav-item:hover {
  color: var(--text-primary);
}

/*@3.BONC.5*/
.bottom-nav-dot {
  position: absolute;
  top: 4px;
  inset-inline-end: 18px;
  min-width: 8px;
  height: 8px;
  padding: 0 3px;
  border-radius: 9999px;
  background: #f43f5e;
  border: 1.5px solid var(--bg-surface);
  font-size: 0.5rem;
  line-height: 8px;
  color: #fff;
  text-align: center;
  pointer-events: none;
}

/*@3.BONC.6*/
.bn-sheet {
  /*@3.BONC.7*/
  position: fixed; inset-inline-end: .5rem; z-index: 1001;
  bottom: calc(56px + var(--sa-b) + 6px);
  display: none;
}
.bn-sheet.on { display: block; animation: bnSheetIn .2s cubic-bezier(.4, 0, .2, 1); }
@keyframes bnSheetIn {
  from { opacity: 0; transform: translateY(6px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .bn-sheet.on { animation: none; } }
.bn-sheet-in {
  position: relative;
  min-width: 168px; max-width: min(280px, 78vw);
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl); padding: .35rem;
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, .5);
}
/*@3.BONC.8*/
.bn-sheet-in::after {
  content: ''; position: absolute; bottom: -5px; inset-inline-end: 1.15rem;
  width: 9px; height: 9px; transform: rotate(45deg);
  /*@3.BONC.9*/
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  border-inline-end: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
/*@3.BONC.10*/
.bn-sheet-in .bottom-nav-item {
  flex-direction: row; justify-content: flex-start;
  width: 100%; padding: .58rem .7rem; gap: .6rem;
  border-radius: var(--radius-lg); font-size: .84rem;
}
.bn-sheet-in .bottom-nav-label { font-size: .84rem; }
.bn-sheet-in .bottom-nav-item i { font-size: .78rem; }
.bn-sheet-in .bottom-nav-item.active i { transform: none; }
/*@3.BONC.11*/
.bn-sheet-in .bottom-nav-dot {
  position: static; margin-inline-start: auto; border: 0;
  min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; font-size: .6rem;
}

.bn-sheet-item, .bn-sheet-in .bottom-nav-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .58rem .7rem; border-radius: var(--radius-lg);
  color: var(--text-secondary); font-weight: 700; font-size: .84rem;
  transition: background .2s, color .2s;
}
/*@3.BONC.12*/
.bn-sheet-item:hover, .bn-sheet-item.active,
.bn-sheet-in .bottom-nav-item:hover, .bn-sheet-in .bottom-nav-item.active {
  background: var(--bg-elevated); color: var(--st-accent, #a78bfa);
}
.bn-sheet-item i, .bn-sheet-in .bottom-nav-item i {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: var(--radius-md);
  background: var(--bg-elevated); display: grid; place-items: center; font-size: .78rem;
}
.bn-sheet-item.active i, .bn-sheet-item:hover i,
.bn-sheet-in .bottom-nav-item.active i, .bn-sheet-in .bottom-nav-item:hover i {
  background: color-mix(in srgb, var(--st-accent, #a78bfa) 15%, transparent);
  color: var(--st-accent, #a78bfa);
}
/*@3.BONC.13*/
.bottom-nav > .bottom-nav-item .bottom-nav-label { font-size: .62rem; }

/*@3.BONC.14*/
.bn-more-item i { font-size: 1.28rem; }
