/* Mobil BC header: assets/css/header-bc.css — bu dosya yalnızca geriye dönük sınıflar */
:root {
  --mobile-sub-header-full-height: 44px;
}

/* .mainMenu tam genişlik: assets/css/mobile-base.css içinde body.mobile-site .mainMenu */

/*
 * Sticky tek blokta olursa (eski .mobileHeader sticky) tarayıcı tüm çocukları tek stacking context’e hapseder;
 * içerikteki z-index:50–100 katmanlar mor menüyü (z-index:1) ve bazen tüm şeridi örter.
 * Sticky’yi inner + .mainMenu’ye böldük; z-index’ler sheet (1060/1061) header-bc (1051) / inner (1050) hiyerarşisiyle uyumlu kalır.
 */
.mobileHeader {
  position: static;
  width: 100%;
  max-width: 100%;
  overflow-x: visible;
  background: var(--headerBG, #0e0124);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/*
 * Üstte ince çizgi: ton farkı (base.css html/body artık headerBG), alt piksel + Safari sticky.
 * Yukarı taşıma + notch padding; 992px sınırı yok (mobil şablon geniş ekranda da aynı).
 */
body.mobile-site .mobileHeader {
  margin-top: -2px;
  padding-top: calc(2px + env(safe-area-inset-top, 0px));
}

.mobileHeader-inner {
  height: var(--mobile-top-bar-height);
  min-height: var(--mobile-top-bar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
}

/* Logo/CTA şeridi: MobileRightSheet (1048) üstünde; viewport’ta üstte yapışır (body.mobile-site .mobileHeader padding + notch ile aynı hiza) */
body.mobile-site .mobileHeader-inner {
  position: -webkit-sticky;
  position: sticky;
  top: calc(2px + env(safe-area-inset-top, 0px));
  z-index: 1050;
  overflow-x: clip;
  background: var(--headerBG, #0e0124);
}
/* Mor şerit: sayfa içeriğinin üstünde; sheet (1048) ve sağ panel (1018+) altında kalır */
body.mobile-site .mobileHeader .mainMenu {
  position: -webkit-sticky;
  position: sticky;
  top: calc(2px + env(safe-area-inset-top, 0px) + var(--mobile-top-bar-height, 64px));
  z-index: 1020;
}

.mobileHeader-logo img {
  height: 68px;
  width: auto;
}

.mobileHeader-logo {
  flex-shrink: 0;
}

.mobileHeader-balance {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobileHeader-balance-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobileHeader-balance-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  flex-shrink: 0;
}

.mobileHeader-balance-k {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.mobileHeader-balance-v {
  font-weight: 700;
  color: var(--secondary, #fcac00);
}

.mobileHeader-balance-pair--bonus .mobileHeader-balance-v {
  font-weight: 600;
  font-size: 10px;
  color: rgba(252, 172, 0, 0.95);
}

.mobileHeader-balance-sep {
  flex-shrink: 0;
  opacity: 0.35;
  font-weight: 300;
  padding: 0 1px;
}

.mobileHeader-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.mobileHeader-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
}

.mobileHeader-actions button.btn {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.mobileHeader-actions #Giris,
.mobileHeader-actions #openRegister {
  font-weight: 700;
}

.mobileHeader-actions #openRegister {
  color: #fff !important;
}

.mobileHeader-smartPanel {
  flex-shrink: 0;
  margin-left: 4px;
}

.mobileHeader .hdr-toggle-button-bc {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
}

.mobileHeader-user {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ana navigasyon: mor şerit — orijinal m.casinomilyon (ikon üstte, metin altta, yatay kaydırma) */
.mobileHeader .mainMenu:not(.header-hidden) {
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 0;
  width: 100%;
  background: #1f0942;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 55px !important;
  overflow: hidden !important;
  min-height: 48px;
}

.mobileHeader .mainMenu.header-hidden {
  max-height: 0 !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden !important;
  border-top-color: transparent;
}

.mobileHeader .mainMenu ul {
  justify-content: flex-start;
  padding: 0 4px;
}

/* İkon üstte, metin altta — BetConstruct mobil alt menü şeridi */
.mobileHeader .mainMenu ul li a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  min-height: 48px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85) !important;
}

.mobileHeader .mainMenu ul li a .CMSIconSVGWrapper {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  line-height: 0;
  color: #deb33f;
}

.mobileHeader .mainMenu ul li a .CMSIconSVGWrapper svg {
  width: 18px;
  height: 18px;
  display: block;
  color: #deb33f;
  fill: #deb33f;
}

.mobileHeader .mainMenu ul li a > span:not(.CMSIconSVGWrapper) {
  line-height: 1.1;
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobileHeader .mainMenu ul li a:hover,
.mobileHeader .mainMenu ul li a.active {
  color: #fff !important;
  background: rgba(133, 15, 131, 0.35);
}

.mobileHeader .mainMenu ul li a:hover .CMSIconSVGWrapper svg,
.mobileHeader .mainMenu ul li a.active .CMSIconSVGWrapper svg {
  color: #fcac00;
  fill: #fcac00;
}
