/* ==========================================================================
   ZERO TWO NEO v2 - modern mobile header, floating dock, segmented tabs, chips.
   Palette from the Selena art: periwinkle + sky blue on soft white.
   Logo flower untouched; only the wordmark text is restyled. Loaded last.
   ========================================================================== */
:root{
  --nx-a:#8f4ff0;           /* periwinkle */
  --nx-b:#733aff;           /* sky */
  --nx-ink:#24163a;
  --nx-mute:#8d7ca8;
  --nx-soft:#f4eefd;
  --nx-grad:linear-gradient(135deg,#8f4ff0 0%,#a063f2 55%,#733aff 100%);
  --nx-d:'Space Grotesk','Inter',system-ui,sans-serif;
  --nx-ease:cubic-bezier(.3,.9,.3,1);
}

/* wordmark text only */
html body .brand .aevy-word{
  font-family:var(--nx-d)!important;font-weight:700!important;text-transform:none!important;
  letter-spacing:-.025em!important;margin-right:0!important;line-height:1.3!important;padding:.04em .06em .16em 0;display:inline-block;
  background:linear-gradient(100deg,#7a3bd6,#8f4ff0 50%,#733aff);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent!important;
}

@media (max-width:760px){
  /* ---------- header ---------- */
  html body .site-header,html body .site-header.hide{
    background:rgba(255,255,255,.72)!important;border:0!important;border-radius:0!important;
    box-shadow:0 1px 0 rgba(143,79,240,.08)!important;
    -webkit-backdrop-filter:saturate(1.8) blur(22px)!important;backdrop-filter:saturate(1.8) blur(22px)!important;
  }
  html body .site-header .brand{gap:8px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
  html body .site-header .brand .aevy-word{font-size:23px!important;line-height:1.3!important}
  html body .site-header .brand::after{content:none!important}
  html body .site-header .bar-actions{gap:8px!important}
  html body .site-header .bar-actions .mobile-alerts,
  html body .site-header .bar-actions .mobile-profile{
    width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important;flex:none;
    aspect-ratio:1/1;overflow:hidden;border-radius:50%!important;background:var(--nx-soft)!important;border:0!important;
    color:var(--nx-a)!important;box-shadow:none!important;padding:0!important;display:grid!important;place-items:center;
    transition:transform .2s var(--nx-ease),background .2s;
  }
  html body .site-header .bar-actions .mobile-alerts:active,html body .site-header .bar-actions .mobile-profile:active{transform:scale(.92)}
  html body .site-header .bar-actions svg{stroke:var(--nx-a);width:20px!important;height:20px!important}
  html body .site-header .mobile-profile.has-photo{padding:2px!important;background:var(--nx-grad)!important}
  html body .site-header .mobile-profile .avatar{width:100%!important;height:100%!important;min-width:0;border-radius:50%!important;position:relative;box-shadow:none!important;border:2px solid #ffffff;box-sizing:border-box}
  html body .site-header .mobile-profile .avatar>img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover;border-radius:50%}
  html body .site-header .mobile-profile .avatar>svg{width:100%!important;height:100%!important;display:block}

  /* ---------- floating glass dock ---------- */
  html body .tabbar{
    display:flex!important;align-items:center;gap:4px;
    left:14px!important;right:14px!important;height:66px!important;padding:8px!important;
    bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
    background:rgba(255,255,255,.78)!important;border:1px solid rgba(255,255,255,.9)!important;border-radius:26px!important;
    box-shadow:0 20px 44px -14px rgba(112,52,200,.38),0 2px 0 rgba(255,255,255,.8) inset,0 0 0 1px rgba(143,79,240,.07)!important;
    -webkit-backdrop-filter:saturate(1.8) blur(24px)!important;backdrop-filter:saturate(1.8) blur(24px)!important;
    overflow:visible;transform:none;
  }
  html body .tabbar a{
    flex:1 1 0;min-width:0;height:50px;display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;gap:0!important;
    padding:0 !important;border-radius:18px!important;background:transparent!important;border:0!important;box-shadow:none!important;transform:none!important;
    color:var(--nx-mute)!important;overflow:hidden;
    transition:flex-grow .45s var(--nx-ease),background .3s,color .3s,gap .3s;
  }
  html body .tabbar a::before,html body .tabbar a::after{content:none!important}
  html body .tabbar a>svg{
    flex:none;width:23px!important;height:23px!important;padding:0!important;margin:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;
    color:inherit!important;stroke:currentColor;stroke-width:1.8;transform:none!important;
  }
  /* label hidden until the tab is active */
  html body .tabbar a>b{
    font:700 13px/1 var(--nx-d)!important;letter-spacing:-.01em!important;text-transform:none!important;color:inherit!important;
    max-width:0;opacity:0;margin:0!important;white-space:nowrap;overflow:hidden;
    transition:max-width .45s var(--nx-ease),opacity .25s,margin .3s;
  }
  /* active: expanded gradient pill with label */
  html body .tabbar a[aria-current="page"]{
    flex-grow:2.3;color:#ffffff!important;background:var(--nx-grad)!important;gap:8px!important;border-radius:18px!important;
    box-shadow:0 10px 20px -10px rgba(143,79,240,.9)!important;
  }
  html body .tabbar a[aria-current="page"]>b{max-width:90px;opacity:1;color:#ffffff!important}
  html body .tabbar a[aria-current="page"]>svg{color:#ffffff!important;background:none!important;box-shadow:none!important;border-radius:0!important;padding:0!important}
  html body .tabbar a>svg *{stroke:currentColor!important}
  html body .tabbar a>svg .fl{fill:currentColor!important;fill-opacity:.14;stroke:currentColor!important}
  html body .tabbar a[aria-current="page"]>svg .fl{fill:#ffffff!important;fill-opacity:.22}
  html body .tabbar a[aria-current="page"]>svg *{stroke:#ffffff!important}
  html body .tabbar a:not([aria-current="page"]):active{background:var(--nx-soft)!important}

  /* Post: round accent button, icon only */
  html body .tabbar a[data-route="publish"]{flex:0 0 50px;width:50px;border-radius:50%!important;background:var(--nx-ink)!important;color:#ffffff!important;box-shadow:0 10px 20px -10px rgba(36,22,58,.8)!important}
  html body .tabbar a[data-route="publish"]>svg{color:#ffffff!important;stroke:#ffffff;width:22px!important;height:22px!important;padding:0!important;background:none!important;box-shadow:none!important;clip-path:none!important;border-radius:0!important}
  html body .tabbar a[data-route="publish"]>b{display:none!important}
  html body #toast{bottom:calc(92px + env(safe-area-inset-bottom,0px))!important}

  /* page titles */
  html body .page-head h1,html body #view-activity h1,html body #view-settings h1,html body #view-giveaways h1,html body .st-page>h1{
    font-family:var(--nx-d)!important;text-transform:none!important;letter-spacing:-.035em!important;font-size:28px!important;color:var(--nx-ink)!important;
  }
}
@media (max-width:360px){
  html body .tabbar{left:8px!important;right:8px!important;padding:6px!important}
  html body .tabbar{gap:2px}
  html body .tabbar a[aria-current="page"]{gap:6px!important;padding:0 6px!important}
  html body .tabbar a[aria-current="page"]>b{font-size:11.5px!important;max-width:72px}
  html body .tabbar a>svg{width:21px!important;height:21px!important}
  html body .tabbar a[data-route="publish"]{flex:0 0 44px;width:44px;height:44px}
}

/* ---------- tabs: segmented control (all sizes) ---------- */
html body .ap-tabs,html body .mp-tabs,html body .pp-tabs,html body .hs-tabs{
  display:flex;gap:4px!important;padding:4px!important;background:var(--nx-soft)!important;border:0!important;border-radius:16px!important;box-shadow:none!important;
}
html body .ap-tabs button,html body .mp-tabs button,html body .pp-tabs button,html body .hs-tabs button{
  flex:1;border:0!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;padding:10px 12px!important;
  font:600 13px/1 var(--nx-d)!important;letter-spacing:-.005em!important;text-transform:none!important;color:var(--nx-mute)!important;
  transition:background .25s,color .25s,box-shadow .25s;
}
html body .ap-tabs button.on,html body .mp-tabs button.on,html body .pp-tabs button.on,html body .hs-tabs button.on,
html body .ap-tabs button[aria-selected="true"],html body .mp-tabs button[aria-selected="true"],html body .pp-tabs button[aria-selected="true"],html body .hs-tabs button[aria-selected="true"]{
  background:#ffffff!important;color:var(--nx-a)!important;box-shadow:0 4px 12px -4px rgba(112,52,200,.3)!important;
}

/* ---------- chips: soft rounded, gradient when active ---------- */
html body .chips .chip,html body .ap-chip,html body .seg button{
  border-radius:999px!important;background:var(--nx-soft)!important;border:0!important;color:#624a88!important;
  font:600 13px/1 var(--nx-d)!important;letter-spacing:-.005em!important;text-transform:none!important;box-shadow:none!important;padding:9px 15px!important;
  transition:background .25s,color .25s,transform .2s;
}
html body .chips .chip:active,html body .ap-chip:active{transform:scale(.95)}
html body .chips .chip.on,html body .chips .chip[aria-pressed="true"],html body .ap-chip.on,html body .seg button.on,html body .seg button[aria-pressed="true"]{
  background:var(--nx-grad)!important;color:#ffffff!important;box-shadow:0 8px 16px -8px rgba(143,79,240,.8)!important;
}
@media (prefers-reduced-motion:reduce){html body .tabbar a,html body .tabbar a>b{transition:none}}

html body .ap-tabs button::before,html body .ap-tabs button::after,html body .mp-tabs button::before,html body .mp-tabs button::after,
html body .pp-tabs button::before,html body .pp-tabs button::after,html body .hs-tabs button::before,html body .hs-tabs button::after{content:none!important}

html body .avatar>img{width:100%!important;height:100%!important;object-fit:cover}
