/* =====================================================================
   Casca "modo app" das páginas públicas (celular) — desenvolvido pela EGGYS
   Topo compacto + barra fixa de baixo. Gerada por app/views/_appshell.php.
   ===================================================================== */
.tsa-top,.tsa-nav{display:none}

@media (max-width:760px){
  /* cabeçalhos próprios de cada página dão lugar ao topo compacto */
  body>.hd,body>header.hd,body>.top{display:none!important}
  body{padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}

  .tsa-top{position:sticky;top:0;z-index:55;display:flex;align-items:center;justify-content:space-between;gap:12px;
    min-height:58px;padding:8px 14px;background:rgba(8,18,40,.92);border-bottom:1px solid rgba(245,180,0,.18);
    -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
  .tsa-brand{display:flex;align-items:center;gap:10px;min-width:0;text-decoration:none}
  .tsa-logo{display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;overflow:hidden;border:2px solid rgba(245,180,0,.7);border-radius:8px;background:#fff}
  .tsa-logo img{width:100%;height:100%;object-fit:contain}
  .tsa-name{display:flex;flex-direction:column;min-width:0;line-height:1.05}
  .tsa-name strong{color:#fff;font-size:1.02rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tsa-name small{color:#ffd75e;font-size:.68rem;font-weight:700;text-transform:uppercase}
  .tsa-btn{display:inline-flex;align-items:center;flex:0 0 auto;min-height:36px;padding:0 16px;border:1px solid rgba(245,180,0,.55);border-radius:999px;
    color:#ffd75e;font-size:.86rem;font-weight:800;letter-spacing:.02em;text-decoration:none;white-space:nowrap}

  .tsa-nav{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:60;display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;padding:7px 6px 6px;border:1px solid rgba(245,180,0,.26);border-radius:20px;
    background:rgba(8,18,40,.94);box-shadow:0 18px 40px -14px rgba(0,0,0,.85),inset 0 1px 0 rgba(255,255,255,.06);
    -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
  .tsa-nav a{position:relative;display:flex;min-width:0;flex-direction:column;align-items:center;gap:3px;padding:5px 2px 3px;border-radius:13px;
    color:#9fb0cf;font-size:.68rem;font-weight:700;line-height:1.1;text-decoration:none;-webkit-tap-highlight-color:transparent;transition:color .18s ease,background .18s ease}
  .tsa-nav a span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tsa-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.9}
  .tsa-nav a:active{background:rgba(255,255,255,.07)}
  .tsa-nav a.is-active{color:#ffd75e}
  .tsa-nav a.is-active:not(.tsa-cta)::before{content:"";position:absolute;top:-7px;left:50%;width:22px;height:3px;border-radius:0 0 4px 4px;
    background:linear-gradient(90deg,#ffd75e,#f5b400);transform:translateX(-50%)}
  .tsa-nav a.tsa-cta{color:#ffd75e;font-weight:800}
  .tsa-cta i{display:grid;place-items:center;width:50px;height:50px;margin-top:-28px;border:3px solid #081228;border-radius:50%;
    background:linear-gradient(180deg,#ffd75e,#f5b400);box-shadow:0 10px 22px -6px rgba(245,180,0,.75);color:#1b1206}
  .tsa-cta i svg{width:24px;height:24px;stroke-width:2}
}
@media (max-width:760px) and (prefers-reduced-motion:no-preference){
  .tsa-cta i{animation:tsaPulse 2.4s ease-in-out infinite}
}
@keyframes tsaPulse{50%{box-shadow:0 10px 26px -4px rgba(245,180,0,.95),0 0 0 6px rgba(245,180,0,.14)}}
