/* Only navigation placement changes; site themes/content retain their styles. */
.classic-app-nav { display: none; }
.classic-app-nav[hidden], .bottom-app-nav[hidden] { display: none !important; }
html:not([data-navigation-style="modern"]) { --bottom-nav-height: 0px; }
html:not([data-navigation-style="modern"]) .site-header > .bottom-app-nav,
html:not([data-navigation-style="modern"]) .header-actions :is([data-view="notifications"], [data-view="messages"]) { display: none !important; }
html:not([data-navigation-style="modern"]) .site-header > .classic-app-nav {
  position: static;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  border-top: 1px solid var(--bottom-nav-border);
  border-bottom: 1px solid var(--bottom-nav-border);
  background: var(--bottom-nav-bg);
}
.classic-app-nav .nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 57px;
  gap: 4px;
  padding: 7px 2px;
  border: 0;
  border-right: 1px solid var(--bottom-nav-border);
  background: transparent;
  color: var(--bottom-nav-text);
  font-family: var(--font-vietnamese, inherit);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.classic-app-nav .nav-item:last-child { border-right: 0; }
.classic-app-nav .nav-item > span:last-child { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.classic-app-nav .nav-item svg { width: 21px; height: 21px; }
.classic-app-nav .nav-icon-wrap { position: relative; display: inline-flex; }
.classic-app-nav .nav-item:hover,
.classic-app-nav .nav-item.active { color: var(--bottom-nav-accent); background: color-mix(in srgb, var(--bottom-nav-accent) 6%, transparent); }
.classic-app-nav .nav-item.active::after { content: ""; position: absolute; inset: auto 20% 0; height: 2px; background: var(--bottom-nav-accent); }
.classic-app-nav .nav-item:focus-visible { outline: 2px solid var(--bottom-nav-accent); outline-offset: -3px; }
.classic-app-nav .badge { position: absolute; top: -8px; right: -13px; min-width: 19px; height: 17px; padding: 1px 4px; border-radius: 9px; background: var(--blue, #519dff); color: #fff; font: 700 9px/13px sans-serif; text-align: center; }
.classic-app-nav .badge.danger { background: var(--danger, #ef476f); }
.classic-app-nav .badge:empty,
.classic-app-nav .badge[data-count="0"],
.classic-app-nav .badge[hidden] { display: none; }
.gn-navigation-style-setting { display: grid; gap: 6px; margin-bottom: 14px; color: var(--text, #eef2f6); font-size: 14px; font-weight: 700; }
.gn-navigation-style-setting select { box-sizing: border-box; width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line, #46515d); border-radius: 8px; background: var(--surface-2, #222a33); color: inherit; font: inherit; }
.gn-navigation-style-setting small { color: var(--muted, #b5bfca); font-size: 12px; font-weight: 400; line-height: 1.5; }
.gn-navigation-style-setting [data-navigation-style-feedback] { margin: 0; color: var(--blue, #519dff); font-size: 12px; font-weight: 500; }
@media (max-width: 560px) {
  .classic-app-nav .nav-item { font-size: 11px; }
  html:not([data-navigation-style="modern"]) .auth-member .header-theme-menu { right: -46px; }
  html:not([data-navigation-style="modern"]) .auth-member .header-theme-menu::before { right: 59px; }
}
@media (max-width: 350px) { .classic-app-nav .nav-item { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .classic-app-nav .nav-item { transition: none; } }
