/* TapHub v18: header precision pass from user-supplied phone reference.
   Overlay limited to header + shared crown rendering. Does not change menu/footer/API. */
.app-header {
  position:sticky !important; top:0 !important; z-index:100 !important;
  height:58px !important; min-height:58px !important;
  padding:0 14px !important; margin:0 !important;
  display:block !important;
  background:#090d1cf7 !important;
  border:0 !important; border-bottom:1px solid #202441 !important;
  box-shadow:none !important;
}
.app-header .header-inner {
  width:100% !important; height:100% !important; max-width:100% !important;
  margin:0 !important; padding:0 !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  column-gap:7px !important; align-items:center !important;
  justify-content:normal !important;
}
.app-header .brand {
  display:inline-flex !important; align-items:center !important;
  justify-content:flex-start !important; justify-self:start !important;
  width:max-content !important; max-width:100% !important;
  min-width:0 !important; height:auto !important;
  flex:none !important; gap:7px !important;
  margin:0 !important; padding:0 !important;
  background:none !important; border:0 !important;
  overflow:visible !important;
  transform:none !important; text-align:left !important;
  white-space:nowrap !important;
}
.app-header .brand-big {
  display:inline-block !important; flex:0 0 auto !important;
  margin:0 !important; padding:0 !important;
  font-family:Arial,Helvetica,sans-serif !important;
  font-style:italic !important; font-weight:950 !important;
  font-size:clamp(23px,7vw,28px) !important;
  line-height:1 !important; letter-spacing:-1.3px !important;
  color:#fff !important; -webkit-text-fill-color:#fff !important;
  background:none !important;
  text-shadow:0 1px 1px #0006 !important;
  filter:none !important;
}
.app-header .brand-big .brand-hub {
  background:linear-gradient(110deg,#f786fa 2%,#c74cfc 43%,#a43eef 100%) !important;
  background-clip:text !important; -webkit-background-clip:text !important;
  color:#c94af6 !important; -webkit-text-fill-color:transparent !important;
  letter-spacing:-1.3px !important;
}
/* The same carefully redrawn asset as in the loader: no emoji, no glyph overlap. */
.app-header .brand-crown {
  flex:0 0 25px !important; width:25px !important; min-width:25px !important;
  height:25px !important; position:relative !important;
  padding:0 !important; margin:0 !important;
  display:block !important;
  transform:translateY(-1px) !important;
  overflow:visible !important; filter:none !important;
  animation:none !important;
}
.app-header .brand-crown svg,
.drawer-brand .brand-crown svg,
.th-spin-crown svg { visibility:hidden !important; }
.app-header .brand-crown::after,
.drawer-brand .brand-crown::after,
.th-spin-crown::after {
  content:''; display:block; width:100%; height:100%;
  position:absolute; inset:0;
  background:url('/assets/taphub-crown-ref-v18.svg') center / contain no-repeat;
  filter:drop-shadow(0 0 4px #ffc343a8) drop-shadow(0 0 2px #ffce70);
  pointer-events:none;
}
.app-header .header-right {
  display:flex !important; align-items:center !important;
  justify-content:flex-end !important; justify-self:end !important;
  grid-column:2 !important; gap:6px !important;
  flex:none !important; width:auto !important;
  height:40px !important; margin:0 !important; padding:0 !important;
}
.app-header .header-icon {
  display:grid !important; place-items:center !important;
  padding:0 !important; margin:0 !important;
  width:34px !important; height:36px !important;
  flex:0 0 34px !important; min-width:34px !important;
  background:#101425 !important; border:0 !important;
  border-radius:12px !important; color:#f8f8fc !important;
  box-shadow:none !important;
}
.app-header .header-icon svg { width:19px !important; height:19px !important; stroke-width:2 !important; }
/* No hamburger button on reference. Keep same navigation via bottom bar. */
.app-header .left-trigger,.app-header .desktop-links {display:none !important;}
/* Drawer crown shares the same icon, only if drawer is used. */
.drawer-brand .brand-crown{position:relative!important;display:block!important;width:28px!important;height:28px!important;flex:0 0 28px!important;filter:none!important;}
.th-spin-crown{position:relative!important;filter:none!important;}
@media(max-width:350px){
  .app-header{padding:0 10px!important}
  .app-header .header-inner{column-gap:5px!important}
  .app-header .brand{gap:5px!important}
  .app-header .brand-big{font-size:23px!important}
  .app-header .brand-crown{flex-basis:22px!important;min-width:22px!important;width:22px!important;height:22px!important}
  .app-header .header-right{gap:3px!important}
  .app-header .header-icon{width:32px!important;min-width:32px!important;flex-basis:32px!important;height:35px!important}
}
@media(min-width:620px){
  .app-header{height:64px!important;padding:0 22px!important}
  .app-header .brand-big{font-size:30px!important}
  .app-header .brand-crown{width:28px!important;min-width:28px!important;flex-basis:28px!important;height:28px!important}
}
