/* ========================================
   Bottom tab — mobile primary navigation, boletería
   ----------------------------------------
   Replaces the sidebar on small screens. Hidden on tablet+ (≥720px).
   Dashed top rule + mono caps labels + gold dot on the active tab.
   Touch targets stay ≥44px tall to keep tapping comfortable.
   ======================================== */

.bottom-tab {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  height: var(--bottom-tab-height);
  background:
    radial-gradient(60% 100% at 50% 100%, rgba(10, 219, 198, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(13, 23, 20, 0.92), rgba(8, 12, 11, 0.96));
  border-top: 1px solid rgba(10, 219, 198, 0.14);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
  z-index: 150;
  padding: 6px 4px env(safe-area-inset-bottom);
  backdrop-filter: blur(10px);
}

/* button_to wraps its <button.tab> in a <form> — let the form
   collapse to a flex item so the button takes the row space. */
.bottom-tab > form { flex: 1; margin: 0; display: flex; }

.bottom-tab > .tab,
.bottom-tab > form > .tab {
  position: relative;
  flex: 1;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  padding: 4px 3px;
  min-width: 0;
  cursor: pointer;
  transition: color 150ms;
}

/* Con 6 ítems (autenticado + Fichines) los labels largos no deben
   romper el layout: una sola línea, recortado con elipsis. */
.bottom-tab > .tab > .label,
.bottom-tab > form > .tab > .label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-tab > .tab:hover,
.bottom-tab > form > .tab:hover { color: var(--ink-soft); }
.bottom-tab > .tab.-active { color: var(--accent); }
.bottom-tab > .tab.-active::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--green-glow);
}

.bottom-tab > .tab > .icon,
.bottom-tab > form > .tab > .icon {
  width: 20px;
  height: 20px;
}
.bottom-tab > .tab.-active > .icon {
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--green-glow));
}

@media (max-width: 720px) {
  .bottom-tab {
    display: flex;
  }
}

/* ─── More Menu ─────────────────────────────────────── */

.more-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 148;
  backdrop-filter: blur(2px);
}
.more-backdrop.-open { display: block; }

.more-drawer {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--bottom-tab-height);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(10, 219, 198, 0.10), transparent 60%),
    linear-gradient(180deg, #131915 0%, #0c100e 100%);
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--line-strong);
  border-top: 1px solid rgba(10, 219, 198, 0.18);
  border-bottom: none;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.45);
  z-index: 149;
  padding: 6px 0 10px;
  transform: translateY(100%);
  transition: transform 240ms cubic-bezier(0.32, 0.72, 0, 1);
}
.more-drawer.-open { transform: translateY(0); }

@media (max-width: 720px) {
  .more-drawer { display: block; }
}

.more-drawer__handle {
  width: 42px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
  margin: 6px auto 14px;
  box-shadow: 0 0 8px var(--green-glow);
}

.more-drawer__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  width: 100%;
  font-size: 15px;
  font-family: var(--font);
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: background 120ms, color 120ms, border-color 120ms;
}
.more-drawer__item:hover,
.more-drawer__item:active {
  background: rgba(10, 219, 198, 0.08);
  border-left-color: var(--accent);
  color: var(--fg);
}
.more-drawer__item:hover > .icon,
.more-drawer__item:active > .icon { color: var(--accent); }
.more-drawer__item > .icon { flex-shrink: 0; }
.more-drawer__item.-premium { color: var(--gold); }
.more-drawer__item.-danger  { color: var(--roja); }

/* button_to envuelve en <form> — colapsarlo para que no rompa el layout */
.more-drawer__form { display: contents; }

.more-drawer__divider {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}
