.bottom-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  justify-content: initial;
}

.bottom-nav > .notifications,
.bottom-nav > a,
.bottom-nav > form {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 100%;
}

.bottom-nav > form > button,
.bottom-nav > .notifications > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.bottom-nav > .notifications > summary {
  gap: 4px;
}

.bottom-nav .nav-add {
  align-self: center;
  justify-self: center;
  margin-top: 0;
}

@media (max-width: 620px) {
  .bottom-nav {
    height: 78px;
    border-radius: 22px 22px 0 0;
  }
}

/* Desktop navigation gets a contained glass lift instead of a flat colour
   flash. Touch layouts keep their stable tap targets. */
@media (hover: hover) and (pointer: fine) {
  .bottom-nav > a:not(.nav-add),
  .bottom-nav > form > button,
  .bottom-nav > .notifications > summary {
    position: relative;
    border-radius: 11px;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  }

  .bottom-nav > a:not(.nav-add):hover,
  .bottom-nav > form > button:hover,
  .bottom-nav > .notifications > summary:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #edeaff, #f8f6ff) !important;
    color: var(--primary) !important;
    box-shadow: 0 8px 18px #46377d24, inset 0 1px 0 #fff;
  }

  .bottom-nav > a:not(.nav-add):hover i,
  .bottom-nav > form > button:hover i,
  .bottom-nav > .notifications > summary:hover i {
    transform: scale(1.08);
  }

  .bottom-nav .nav-add {
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  }

  .bottom-nav .nav-add:hover {
    transform: translateY(-3px) scale(1.06);
    filter: saturate(1.12) brightness(1.06);
    box-shadow: 0 12px 26px #5b48a966, 0 0 0 4px #a994ff2e;
  }

  .bottom-nav > a:not(.nav-add):focus-visible,
  .bottom-nav > form > button:focus-visible,
  .bottom-nav > .notifications > summary:focus-visible,
  .bottom-nav .nav-add:focus-visible {
    outline: 3px solid #a994ff;
    outline-offset: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bottom-nav > a,
  .bottom-nav > form > button,
  .bottom-nav > .notifications > summary { transition: none !important; }
}
