/* Üst bar: Footer’daki sport-betslip (z-index:1990) tıklamayı yutmasın */
#fe_header {
  z-index: 3000 !important;
}

/* Global mobile overflow fixes */
html,
body,
#fe_web_container,
#fe_main,
#sports_container {
  max-width: 100%;
  overflow-x: hidden;
}

sport-mobile {
  display: block;
  width: 100%;
}

#fe_main {
  min-height: auto !important;
}

/* Prevent phantom notice gap above sports content */
#fe_main:before {
  display: none !important;
  content: none !important;
  height: 0 !important;
  padding: 0 !important;
}

/* Keep top area tight on mobile sports view */
@media (max-width: 767px) {
  #fe_body.digitain-sportsbook-portable #fe_main {
    padding-top: 0 !important;
  }
  #fe_body.digitain-sportsbook-portable #fe_main .main_menu.main_menu_inpage {
    margin-top: 0 !important;
  }
}

/* Sports preloader: force show first 4 seconds only in #fe_main */
#sports_container {
  position: relative;
}

#fe_main.preload-active {
  position: relative;
  overflow: hidden;
}

#fe_main.preload-active #sports_container {
  height: calc(100vh - 115px);
  min-height: 420px;
  overflow: hidden;
}

#fe_main.preload-active #sports_container .sports_preloader {
  display: flex !important;
  position: absolute;
  inset: 0;
  z-index: 50;
}

#fe_main.preload-active #sports_container .sports_container_wrapper2 {
  display: none !important;
}

#sports_container .sports_preloader {
  transition: opacity 0.25s ease;
}

/* Header close persistence support */
#topHeaderMessage {
  transition: opacity 0.2s ease;
}

body.left-menu-open #topHeaderMessage {
  display: none !important;
}

/* Left menu improved overlay behavior */
.left_menu_area_bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
}

.left_menu_area.left_menu_area_v2 {
  z-index: 999;
}

/* Mobil hesap paneli: SF / open_login ile acilir; sayfa yuklenince kapali */
#mob_user_profile_modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#mob_user_profile_modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

#mob_user_profile_modal .mob_user_profile_modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

#mob_user_profile_modal .mob_user_profile_modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(92vh, 100dvh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px 16px 0 0;
  background: #0d1b2a;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

/* Ic yapi: ust sabit, asagi kayan liste (body overflow hidden ile uyumlu) */
#mob_user_profile_modal .mob_user_profile_modal__inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow: hidden;
}

#mob_user_profile_modal .mob_profile_sheet {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#mob_user_profile_modal .mob_profile_row_user {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 45%, #3b0764 100%);
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#mob_user_profile_modal .mob_profile_display_name {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: 0.01em;
  word-break: break-word;
}

#mob_user_profile_modal .mob_profile_row_user_actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

#mob_user_profile_modal .mob_profile_deposit_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  color: #1a0a2e;
  background: linear-gradient(180deg, #facc15 0%, #eab308 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: none;
}

#mob_user_profile_modal .mob_profile_deposit_btn:active {
  transform: scale(0.98);
}

#mob_user_profile_modal .mob_profile_close_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

#mob_user_profile_modal .mob_profile_scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

#mob_user_profile_modal .login_menu_area_v2 {
  width: 100%;
  margin: 0;
  padding: 0;
}

#mob_user_profile_modal .user_area {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  z-index: auto;
  padding-bottom: 24px;
}

/* base.css float yerine yan yana esnek bakiye satiri */
#mob_user_profile_modal .balance_btns_holder {
  display: flex !important;
  width: 100% !important;
  float: none !important;
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

#mob_user_profile_modal .balance_btns_holder .balance_container,
#mob_user_profile_modal .balance_btns_holder .open_slip_container {
  float: none !important;
  width: 50% !important;
  flex: 1 1 50%;
  min-width: 0;
  box-sizing: border-box;
}

#mob_user_profile_modal .balance_btns_holder .clear {
  display: none !important;
}

#mob_user_profile_modal .header_sec_loggedin_menu_v2 .ttl_sec {
  padding: 12px 16px 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

#mob_user_profile_modal .header_sec_loggedin_menu_v2 .profile_sec a,
#mob_user_profile_modal .header_sec_loggedin_menu_v2 .reports_sec a,
#mob_user_profile_modal .header_sec_loggedin_menu_v2 .help_sec a {
  padding-left: 16px;
  padding-right: 16px;
}

body.mob-user-profile-open {
  overflow: hidden;
}

/* Sheet icinde dikey kaydirma (ozellikle mobil) */
#mob_user_profile_modal.is-open .mob_profile_scroll {
  touch-action: pan-y;
}

/* Custom coupon panel */
#customCouponPanel {
  position: fixed;
  right: 10px;
  bottom: 10px;
  width: 320px;
  max-width: calc(100vw - 20px);
  background: #0b1222;
  border: 1px solid #334155;
  border-radius: 10px;
  color: #e2e8f0;
  z-index: 1200;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  display: none;
}

#customCouponPanel.is-visible {
  display: block;
}

#customCouponPanel .cc-head,
#customCouponPanel .cc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #1e293b;
}

#customCouponPanel .cc-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

#customCouponPanel .cc-foot {
  border-top: 1px solid #1e293b;
  border-bottom: 0;
}

#customCouponPanel .cc-body {
  max-height: 240px;
  overflow: auto;
  padding: 8px 10px;
}

#customCouponPanel .cc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#customCouponPanel .cc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #1e293b;
  padding: 8px 0;
}

#customCouponPanel .cc-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#customCouponPanel .cc-item-main strong,
#customCouponPanel .cc-item-main span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#customCouponPanel .cc-item-main span {
  color: #94a3b8;
  font-size: 12px;
}

#customCouponPanel .cc-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

#customCouponPanel .cc-odd {
  color: #22d3ee;
  font-weight: 700;
}

#customCouponPanel .cc-remove,
#customCouponPanel .cc-clear,
#customCouponPanel .cc-close {
  border: 1px solid #475569;
  background: #111827;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 3px 7px;
}

#customCouponPanel .cc-play {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #06b6d4, #22d3ee);
  color: #001523;
  font-weight: 700;
  padding: 8px 10px;
}

#customCouponPanel .cc-empty {
  color: #94a3b8;
  font-size: 13px;
  padding: 10px 0;
}
