/* Raised navigation surface */
.app-nav {
  left: 50%; right: auto; bottom: 0; width: min(100%, 600px);
  transform: translateX(-50%); min-height: 70px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border: 1px solid #4c4035; border-bottom: 0; border-radius: 17px 17px 0 0;
  background: linear-gradient(180deg, #24211f 0%, #171514 48%, #100f0e 100%);
  box-shadow: 0 -8px 24px rgba(0,0,0,.34), inset 0 1px 0 rgba(245,219,182,.16), inset 0 -1px 0 rgba(0,0,0,.8);
}
.app-nav button { position: relative; min-height: 52px; padding: 3px 0 7px; gap: 3px; color: #d0c4b6; }
.app-nav button .nav-icon { color: inherit; font-size: 22px; }
.app-nav button[data-open="scanner"] span { white-space: nowrap; font-size: 10px; }
.screen-slide-forward:not([hidden]) { animation:bnf-slide-forward 230ms cubic-bezier(.22,.7,.25,1); }
.screen-slide-back:not([hidden]) { animation:bnf-slide-back 230ms cubic-bezier(.22,.7,.25,1); }
@keyframes bnf-slide-forward { from { opacity:.82; transform:translateX(18px); } to { opacity:1; transform:translateX(0); } }
@keyframes bnf-slide-back { from { opacity:.82; transform:translateX(-18px); } to { opacity:1; transform:translateX(0); } }
@media (prefers-reduced-motion: reduce) { .screen-slide-forward:not([hidden]),.screen-slide-back:not([hidden]) { animation:none; } }
.app-nav button[aria-current="page"] { color: #ecc18b; }
.app-nav button[aria-current="page"]::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40%; max-width: 32px; height: 2px; border-radius: 2px; background: #e8bd82; box-shadow: 0 0 7px rgba(232,189,130,.28); }
.profile-save { bottom: calc(78px + env(safe-area-inset-bottom)); }
.shell { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
@media (max-width:340px) { .app-nav { padding-left: 4px; padding-right: 4px; } .app-nav button .nav-icon { font-size: 20px; } .app-nav button[data-open="scanner"] span { font-size: 9px; } }
