/* Barra inferior de la plataforma y flecha de volver arriba. */
#pt-cats { scroll-margin-top: 80px; }

.gb-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(16, 32, 56, 0.16), 0 0 0 1px rgba(66, 147, 225, 0.08);
  padding: 6px;
}
.gb-bar a,
.gb-bar button {
  border: 0;
  background: transparent;
  color: #4d5d6e;
  text-decoration: none;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 7px 0 5px;
  border-radius: 16px;
}
.gb-bar span {
  line-height: 1.05;
  text-align: center;
}
.gb-bar svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gb-bar .is-on {
  color: #4293E1;
  background: rgba(66, 147, 225, 0.14);
}
.gb-bar .gb-join {
  color: #4293E1;
  gap: 2px;
  padding-top: 0;
  padding-bottom: 4px;
}
.gb-bar a.gb-join,
.gb-bar a.gb-account {
  text-decoration: none;
}
.gb-bar .gb-plus {
  width: 52px;
  height: 52px;
  margin-top: -22px;
  border-radius: 50%;
  background: #4293E1;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(66, 147, 225, 0.38);
}
.gb-bar .gb-plus svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
}

.gb-top,
.back-top {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 45;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #4293E1;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(20, 40, 70, 0.28);
}
.gb-top[hidden],
.back-top[hidden] { display: none !important; }

@media (max-width: 899px) {
  .gb-bar { display: grid; }
  body.gb-has-bar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .app-tab { display: none !important; }
  .bottom-nav > a,
  .bottom-nav .foot-copy { display: none !important; }
  .gb-top,
  .back-top { bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.gb-has-bar #bottom-nav { bottom: calc(78px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
  .pt-tab { display: none; }
}
