/* Propósito: barra inferior táctil. Responsabilidad: estilo KUBAYAR, safe areas y estados. Dependencias: variables e iconos del template. */
.balance-bottom-nav,
.balance-bottom-space { display: none; }

@media (max-width: 991.98px), (display-mode: standalone) {
  .balance-bottom-space { display: block; height: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .balance-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px max(4px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px));
    background: var(--card, #fff);
    border-top: 1px solid var(--border, #EAE9ED);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .06);
    font-family: inherit;
  }
  .balance-bottom-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 62px;
    padding: 3px 1px;
    border-radius: 12px;
    color: var(--text-gray, #717579);
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s ease, background-color .15s ease;
  }
  .balance-bottom-nav__icon { display: grid; place-items: center; width: 34px; height: 30px; font-size: 23px; line-height: 1; }
  .balance-bottom-nav__icon svg { width: 25px; height: 25px; }
  .balance-bottom-nav__label { font-size: clamp(9px, 2.65vw, 12px); font-weight: 600; line-height: 1.3; white-space: nowrap; }
  .balance-bottom-nav__link[aria-current="page"],
  .balance-bottom-nav__link:hover { color: var(--primary, #5A45AA); background: var(--rgba-primary-1); }
  .balance-bottom-nav__link:active { background: var(--rgba-primary-2); }
  .balance-bottom-nav__link:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
  .balance-bottom-nav__link--action { color: var(--primary); }
  .balance-bottom-nav__link--action .balance-bottom-nav__icon {
    width: 46px;
    height: 46px;
    margin-top: -19px;
    border-radius: 14px;
    background: var(--primary, #5A45AA);
    color: #fff;
    box-shadow: 0 4px 10px var(--rgba-primary-3);
  }
}
@media (prefers-reduced-motion: reduce) {
  .balance-bottom-nav__link { transition: none; }
}
