
/* =======================================================================
   CONEXÃO TERREIROS V93 | MOBILE NAV PREMIUM
   Escopo intencionalmente isolado da experiência desktop e do chat.
   Reequilibra exatamente 6 alvos: Início, Eventos, Criar, Terreiros,
   Mensagens, Comunidade. O CTA não desloca os demais itens.
   ======================================================================= */
.ct-create-label-short-v93 {display:none;}
@media (max-width: 760px) {
  /* Cabeçalho mais leve, conservando marca e avatar. */
  #app > .v31-topbar {
    display:grid!important;
    grid-template-columns:minmax(0, 1fr) auto!important;
    grid-template-areas:"brand actions"!important;
    align-items:center!important;
    column-gap:8px!important;
    padding:9px 11px!important;
    min-height:66px!important;
  }
  #app > .v31-topbar .brand {grid-area:brand!important;min-width:0!important;gap:8px!important;}
  #app > .v31-topbar .brand img {
    width:43px!important;height:43px!important;flex:0 0 43px!important;
    border-radius:14px!important;
  }
  #app > .v31-topbar .brand > div {min-width:0!important;max-width:100%!important;}
  #app > .v31-topbar .brand strong {
    display:block!important;max-width:100%!important;white-space:nowrap!important;
    overflow:hidden!important;text-overflow:ellipsis!important;
    font-size:clamp(.78rem,3.2vw,.99rem)!important;letter-spacing:-.03em!important;
    line-height:1.12!important;
  }
  #app > .v31-topbar .brand small {
    display:block!important;font-size:.56rem!important;line-height:1.25!important;
    max-width:100%!important;white-space:nowrap!important;
    overflow:hidden!important;text-overflow:ellipsis!important;
  }
  #app > .v31-topbar .header-actions {
    grid-area:actions!important;display:flex!important;flex-wrap:nowrap!important;
    align-items:center!important;justify-self:end!important;gap:7px!important;
    margin:0!important;min-width:0!important;
  }
  #app > .v31-topbar #cloudStatus {display:none!important;}
  #app > .v31-topbar .create-event-top {
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    gap:3px!important;min-width:0!important;white-space:nowrap!important;
    height:39px!important;min-height:39px!important;padding:0 10px!important;
    font-size:.77rem!important;border-radius:14px!important;
  }
  #app > .v31-topbar .create-event-top > span:first-child {font-size:1rem!important;}
  #app > .v31-topbar .ct-create-label-wide-v93 {display:none!important;}
  #app > .v31-topbar .ct-create-label-short-v93 {display:inline!important;}
  #app > .v31-topbar .header-avatar {
    width:40px!important;height:40px!important;flex:0 0 40px!important;
    border-radius:13px!important;
  }
  #app > .v31-topbar .header-avatar img {width:29px!important;height:29px!important;}

  /* Seis colunas independentes. Borda dourada fina e centro discreto. */
  #app .bottom-nav.v31-bottom-nav.premium-bottom-nav {
    position:fixed!important;
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:3px!important;align-items:center!important;justify-items:stretch!important;
    left:8px!important;right:8px!important;width:auto!important;
    bottom:calc(9px + env(safe-area-inset-bottom,0px))!important;
    height:78px!important;max-height:78px!important;
    margin:0!important;padding:7px 7px 6px!important;
    box-sizing:border-box!important;
    border:1px solid rgba(238,183,87,.66)!important;
    border-radius:24px!important;
    background:linear-gradient(170deg,rgba(39,26,17,.98) 0%,rgba(17,12,9,.99) 65%,rgba(10,8,6,.99) 100%)!important;
    box-shadow:0 12px 32px rgba(0,0,0,.52),inset 0 1px rgba(255,224,151,.12),0 0 0 1px rgba(0,0,0,.16)!important;
    backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;
    overflow:hidden!important;isolation:isolate!important;z-index:300!important;
  }
  #app .bottom-nav.v31-bottom-nav.premium-bottom-nav::before,
  #app .bottom-nav.v31-bottom-nav.premium-bottom-nav::after {
    content:none!important;display:none!important;
  }
  #app .premium-bottom-nav > button.premium-nav-item {
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:64px!important;min-height:0!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    margin:0!important;padding:7px 1px 5px!important;
    box-sizing:border-box!important;gap:5px!important;border:none!important;
    border-radius:15px!important;
    background:transparent!important;transform:none!important;
    color:#c5b6a3!important;position:relative!important;z-index:2!important;
  }
  #app .premium-bottom-nav > button.premium-nav-item svg {
    flex:0 0 auto!important;width:23px!important;height:23px!important;
    stroke-width:1.85!important;
  }
  #app .premium-bottom-nav > button.premium-nav-item small {
    display:block!important;min-height:11px!important;height:auto!important;
    font-size:clamp(.49rem,1.95vw,.64rem)!important;
    font-weight:750!important;line-height:1.06!important;
    transform:none!important;letter-spacing:-.025em!important;
    white-space:normal!important;overflow:visible!important;
    text-overflow:clip!important;overflow-wrap:anywhere!important;
    text-align:center!important;
  }
  #app .premium-bottom-nav > button.premium-nav-item.active {
    color:#ffd073!important;
    background:radial-gradient(ellipse at center,rgba(215,136,41,.19) 0%,rgba(215,136,41,.04) 70%,transparent)!important;
    text-shadow:none!important;transform:none!important;
  }
  #app .premium-bottom-nav > button.premium-nav-item.active::before {
    content:none!important;display:none!important;
  }
  #app .premium-bottom-nav .active-underline {
    width:22px!important;height:2px!important;bottom:2px!important;
    box-shadow:0 0 6px rgba(245,182,59,.5)!important;
  }

  /* NOVO FAB: sem salto, sem transform translateX, apenas logo + discreto. */
  #app .premium-bottom-nav > button.premium-create-fab,
  #app .premium-bottom-nav > button.brand-center.create-center.premium-create-fab {
    position:relative!important;z-index:3!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:61px!important;min-height:0!important;max-height:61px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    flex-direction:column!important;gap:0!important;
    justify-self:stretch!important;align-self:center!important;
    margin:0!important;padding:0!important;
    border:1px solid rgba(222,160,66,.53)!important;border-radius:16px!important;
    background:linear-gradient(180deg,rgba(107,62,25,.64),rgba(35,21,12,.78))!important;
    box-shadow:0 5px 14px rgba(0,0,0,.24),inset 0 1px rgba(255,218,129,.10)!important;
    transform:none!important;overflow:visible!important;
  }
  #app .premium-bottom-nav > button.premium-create-fab:active {
    transform:scale(.96)!important;
  }
  #app .premium-bottom-nav > button.premium-create-fab .fab-logo-wrap {
    position:relative!important;
    width:43px!important;height:43px!important;min-width:43px!important;
    display:grid!important;place-items:center!important;
    margin:0!important;padding:2px!important;box-sizing:border-box!important;
    border:1px solid rgba(238,181,78,.7)!important;border-radius:50%!important;
    background:radial-gradient(circle,#442313,#120a07)!important;
    box-shadow:0 4px 10px rgba(0,0,0,.40)!important;
  }
  #app .premium-bottom-nav > button.premium-create-fab .fab-logo-wrap::after {
    content:none!important;display:none!important;
  }
  #app .premium-bottom-nav > button.premium-create-fab .fab-logo-wrap img {
    width:36px!important;height:36px!important;max-width:36px!important;
    margin:0!important;object-fit:cover!important;
    border-radius:50%!important;box-shadow:none!important;
  }
  #app .premium-bottom-nav > button.premium-create-fab .plus-mark {
    position:absolute!important;top:1px!important;right:1px!important;
    width:19px!important;height:19px!important;min-width:19px!important;
    margin:0!important;padding:0!important;
    display:grid!important;place-items:center!important;
    border:1px solid rgba(105,61,16,.77)!important;border-radius:50%!important;
    background:linear-gradient(180deg,#f8d87b,#e6a82c)!important;color:#2d1806!important;
    font-size:15px!important;font-weight:900!important;line-height:1!important;
    text-shadow:none!important;box-shadow:0 3px 8px rgba(0,0,0,.33)!important;
    transform:none!important;z-index:4!important;
  }
  body:not(.ct-chat-visible-v91) {padding-bottom:103px!important;}
  body.ct-chat-visible-v91 #app .bottom-nav.v31-bottom-nav.premium-bottom-nav {display:none!important;}
}
@media(max-width:390px){
  #app > .v31-topbar {padding:8px 9px!important;column-gap:7px!important;}
  #app > .v31-topbar .brand img {width:39px!important;height:39px!important;flex-basis:39px!important;}
  #app > .v31-topbar .brand {gap:7px!important;}
  #app > .v31-topbar .brand strong {font-size:.81rem!important;}
  #app > .v31-topbar .brand small {font-size:.51rem!important;}
  #app > .v31-topbar .create-event-top {padding:0 8px!important;height:38px!important;min-height:38px!important;}
  #app > .v31-topbar .header-avatar {width:38px!important;height:38px!important;flex-basis:38px!important;}
  #app .bottom-nav.v31-bottom-nav.premium-bottom-nav {
    height:74px!important;max-height:74px!important;
    gap:2px!important;padding:6px 5px 5px!important;
  }
  #app .premium-bottom-nav > button.premium-nav-item {height:61px!important;padding-inline:0!important;}
  #app .premium-bottom-nav > button.premium-nav-item svg {width:21px!important;height:21px!important;}
  #app .premium-bottom-nav > button.premium-nav-item small {font-size:.51rem!important;}
  #app .premium-bottom-nav > button.premium-create-fab {height:57px!important;max-height:57px!important;}
  #app .premium-bottom-nav > button.premium-create-fab .fab-logo-wrap {width:39px!important;height:39px!important;min-width:39px!important;}
  #app .premium-bottom-nav > button.premium-create-fab .fab-logo-wrap img {width:33px!important;height:33px!important;}
}

/* Ajuste final: o botão do topo precisa dimensionar pelo texto, sem invadir o avatar. */
@media (max-width:760px) {
  #app > .v31-topbar .create-event-top {
    width:auto!important;max-width:none!important;
    flex:0 0 auto!important;overflow:visible!important;
  }
}
@media (max-width:340px) {
  #app > .v31-topbar .brand strong {font-size:.73rem!important;}
  #app .premium-bottom-nav > button[data-go="community"] small .ct-community-full-v93 {display:none!important;}
  #app .premium-bottom-nav > button[data-go="community"] small .ct-community-short-v93 {display:inline!important;}
}
@media (min-width:341px) {
  #app .premium-bottom-nav > button[data-go="community"] small .ct-community-short-v93 {display:none!important;}
}
