/* ATHAR 2.0 — 127 HEADER FIX
 * - Register button removed, Login small & neat
 * - Settings gear now sits inside the header
 * - Logo + store name are never cut off
 */

/* header row: logo+name on the left (never shrinks), small controls on the right (shrink first) */
html body .top-header{
  display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
  justify-content:space-between!important;gap:6px!important;padding:5px 8px!important;
}
html body .top-header .header-left{
  flex:0 0 auto!important;min-width:0!important;max-width:none!important;overflow:visible!important;gap:6px!important;
}
html body .top-header .header-logo-img{flex:0 0 auto!important;display:block;width:var(--u-logo,30px)!important;height:var(--u-logo,30px)!important}
html body .top-header .brand-text{
  display:flex!important;flex:0 0 auto!important;white-space:nowrap!important;
  overflow:visible!important;text-overflow:clip!important;max-width:none!important;
  font-size:var(--u-brand,15px)!important;gap:3px!important;
}
html body .top-header .header-right{
  flex:1 1 auto!important;min-width:0!important;justify-content:flex-end!important;gap:5px!important;
}
html body .top-header .ath-actions{flex:0 0 auto!important;gap:5px!important}

/* Register button removed everywhere */
html body .ath-reg,html body .register-btn,html body #topRegisterBtn{display:none!important}

/* Login: small, tidy, right side */
html body .ath-login{
  height:var(--u-btnh,28px)!important;min-height:0!important;min-width:0!important;
  padding:0 13px!important;font-size:var(--u-btn,11px)!important;font-weight:800!important;
  letter-spacing:.3px!important;line-height:1!important;white-space:nowrap!important;
  border-radius:9px!important;
  background:linear-gradient(135deg,#c4122a,#ff3b4e)!important;color:#fff!important;border:0!important;
  box-shadow:0 3px 10px rgba(225,29,46,.35)!important;
}
html body .ath-login:active{transform:scale(.96)}

/* gear inside the header — same size as the bell / country chip */
html body .top-header #atharThemeGear.in-header{
  display:grid!important;place-items:center!important;visibility:visible!important;opacity:1!important;
  position:static!important;left:auto!important;bottom:auto!important;z-index:auto;flex:0 0 auto;
  width:var(--u-icon,30px)!important;height:var(--u-icon,30px)!important;min-width:var(--u-icon,30px);
  border-radius:9px!important;font-size:calc(var(--u-icon,30px) * .46)!important;
  box-shadow:none!important;border:1.5px solid rgba(255,59,78,.5)!important;background:#14080a!important;
}

/* very small phones: keep the name visible, trim the extras instead */
@media(max-width:350px){
  html body .top-header .brand-text{display:flex!important}
  html body .ath-login{padding:0 9px!important}
  html body .ath-cc-code{display:none!important}
}

/* make sure the header's "hide everything except actions" rule never hides the gear */
html body .top-header .header-right > #atharThemeGear{display:grid!important}

/* palette icon: no gear-style spin */
html body #atharThemeGear.open i{transform:none!important}

/* country chip: sits right beside the color (palette) icon */
html body .top-header .header-right > .ath-cc{display:block!important;position:relative;flex:0 0 auto!important}
html body .top-header .header-right .ath-cc-btn{
  height:var(--u-icon,30px)!important;min-height:0!important;min-width:0!important;padding:0 7px!important;
  font-size:var(--u-bal,11px)!important;gap:4px!important;border-radius:9px!important;
}
html body .top-header .header-right .ath-cc-flag{font-size:13px!important}
html body.athar-user-logged-in .top-header .header-right .ath-cc-code{display:none!important}
html body.ath-no-cc .top-header .header-right > .ath-cc,html.ath-no-cc body .top-header .header-right > .ath-cc{display:none!important}

/* ================= DRAWER: compact + tidy ================= */
html body .drawer{width:min(80vw,300px)!important}
html body .drawer .ath-dh{padding:22px 14px 12px!important}
html body .drawer .ath-dh .drawer-avatar{
  width:66px!important;height:66px!important;font-size:26px!important;margin-bottom:9px!important;
  border:2px solid rgba(255,255,255,.85)!important;
  box-shadow:0 0 0 4px rgba(255,59,78,.22),0 8px 20px rgba(225,29,46,.4)!important;
  background-color:#2a0d12!important;
}
html body .drawer .ath-dh h4{font-size:16px!important;margin:0 0 2px!important}
html body .drawer .ath-dh p{font-size:11.5px!important;margin:0 0 7px!important}
html body .drawer .ath-dh .drawer-user-status{padding:2px 9px!important;font-size:10.5px!important}
html body .drawer .ath-dh .drawer-close{width:30px!important;height:30px!important;top:10px!important;right:10px!important;font-size:12px!important}
html body .drawer .ath-drawer-edit{height:28px!important;padding:0 14px!important;font-size:11.5px!important;gap:6px!important;margin-top:8px!important}

html body .drawer .ath-drawer-balance{margin:10px 12px 0!important;padding:10px 12px!important;border-radius:16px!important;box-shadow:0 8px 20px rgba(225,29,46,.3)!important}
html body .drawer .ath-db-left small{font-size:10.5px!important;margin-bottom:1px!important}
html body .drawer .ath-db-left strong{font-size:19px!important}
html body .drawer .ath-db-btn{height:32px!important;padding:0 11px!important;font-size:12px!important;border-radius:10px!important}

html body .drawer .ath-drawer-guest{margin:10px 12px 0!important}
html body .drawer .ath-drawer-guest button{height:38px!important;font-size:12.5px!important;border-radius:12px!important}

html body .drawer .ath-drawer-pref{margin:10px 12px 0!important;padding:9px 10px!important;border-radius:14px!important}
html body .drawer .ath-pref-title{font-size:11px!important;margin-bottom:6px!important}
html body .drawer .ath-drawer-pref .athar-country-btn{height:34px!important;font-size:12.5px!important;padding:0 11px!important;border-radius:10px!important}

html body .drawer .drawer-logout-btn{
  width:calc(100% - 24px)!important;margin:10px 12px 0!important;height:36px!important;
  font-size:12.5px!important;border-radius:12px!important;gap:7px!important;
}
html body .drawer .drawer-divider{margin:10px 12px!important}
html body .drawer .drawer-menu-item{margin:2px 8px!important;padding:6px 10px!important;gap:10px!important;font-size:13px!important;border-radius:13px!important}
html body .drawer .drawer-menu-item i{width:30px!important;height:30px!important;font-size:13px!important;border-radius:10px!important}
html body .drawer .drawer-version{font-size:10px!important}

/* slider: let the browser keep vertical scroll, give us horizontal swipes (no more pointercancel stalls) */
html body #home-slider-container{touch-action:pan-y!important}
/* notice ticker must never stay paused after a touch */
html body .athar-tv-track{animation-play-state:running!important}
html body #atharTypewriterBar.athar-tv:active .athar-tv-track{animation-play-state:running!important}
