/* GlowAuth consistency pass: loaded last. Unifies sidebar tab tiles, removes clipping/flicker, matches hero eyebrows. */

/* ---- Mobile sidebar ---- */
@media (max-width:960px){
  /* contain:paint clipped the active accent bar and icon shadow, which looked like glitching edges */
  .msb{contain:layout style}

  /* One tile recipe for every row (tabs, API Plans, close button): same size, border and fill. */
  .msb-icon,.msb-shop-icon{
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.07);
    color:#e4e4e7;
    box-shadow:none;
  }
  .msb-shop-icon{border-radius:12px}

  /* Active tab: brighter tile (not a darker one), white icon, same border width so nothing shifts. */
  .msb-item.is-active .msb-icon{
    border:1px solid rgba(255,255,255,.34);
    background:rgba(255,255,255,.16);
    color:#fff;
    box-shadow:none;
  }
  .msb-item.is-active{
    border-color:rgba(255,255,255,.2);
    background:linear-gradient(90deg,rgba(255,255,255,.1),rgba(255,255,255,.03));
  }
  .msb-item.is-active::before{left:-10px;top:16px;bottom:16px;width:3px;background:#e4e4e7}
  .msb-item.is-active .msb-copy small{color:#a1a1aa}

  /* Predictable press feedback: no sticky hover, smooth transition, no layout shift. */
  .msb-item{transition:background-color .15s ease,border-color .15s ease;transform:none}
  .msb-item:active{transform:none;background:rgba(255,255,255,.08)}
  .msb-item.is-active:active{background:linear-gradient(90deg,rgba(255,255,255,.14),rgba(255,255,255,.05))}
  .msb-shop{border-color:rgba(255,255,255,.2);background:linear-gradient(135deg,rgba(255,255,255,.09),rgba(255,255,255,.03))}
  .msb-shop:active{background:rgba(255,255,255,.14)}
  .msb-shop .msb-chevron{color:#d4d4d8}

  /* Last row is no longer cut off mid-tile: spare room at the bottom plus a soft fade as a scroll hint. */
  .msb-nav{
    padding-bottom:28px;
    -webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 26px),transparent);
    mask-image:linear-gradient(180deg,#000 calc(100% - 26px),transparent);
  }
}

/* ---- Hero eyebrows: Punishment used bare rose text while every other page uses the same pill ---- */
.pn-eyebrow{
  padding:8px 14px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(16,16,16,.9);
  color:#fafafa;
}
.pn-eyebrow i{background:#fafafa;box-shadow:0 0 0 4px rgba(255,255,255,.1),0 0 12px rgba(255,255,255,.3)}

/* ---- Desktop top tabs: one hover/active colour for the whole strip ---- */
.dashboard-tab{transition:background-color .18s ease,border-color .18s ease,color .18s ease}
.dashboard-tab:not(.is-active):hover{background:rgba(255,255,255,.06)}
.dashboard-tab .tab-icon{color:#e4e4e7}
.dashboard-tab.is-active .tab-icon,.dashboard-tab:hover .tab-icon{color:#fff}

/* ---- Landing/credits brand: never break "GlowAuth" mid-word; the icon strip gives up space instead ---- */
.login-bar{flex-wrap:nowrap;gap:10px}
.login-brand,.credits-brand{flex:0 0 auto;min-width:max-content}
.login-brand strong,.credits-brand span{white-space:nowrap;overflow-wrap:normal;word-break:keep-all}
.login-bar-links{flex:0 1 auto;min-width:0}
.login-bar-links a{flex:0 0 auto;white-space:nowrap}
@media (max-width:420px){
  .login-bar{padding:8px 10px}
  .login-brand{gap:8px}
  .login-brand img{width:32px;height:32px}
  .login-brand strong{font-size:1.15rem}
  .login-bar-links{gap:2px}
  .login-bar-links a{padding:9px 10px}
}
