/* Site geneli mobil uyumluluk — kurallar yalnızca küçük ekranlarda */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

/* Yalnızca ana içerik görselleri — footer/ikonlara dokunma */
.Main img:not(.nav_icon img),
.promo-page-card img {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

#flippanel img {
  max-width: 120px;
  display: block;
  margin: 0 auto 6px;
}

@media (max-width: 991px) {
  body {
    padding-bottom: 52px;
  }

  .container-90,
  .containerfullwidth,
  .Account {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  #flippanel .container-size,
  #flippanel #flip,
  #flippanel #panel {
    width: 100% !important;
    max-width: 100% !important;
  }

  #flippanel #flip .col-md-12 {
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 10px;
    text-align: center;
  }

  .logo_content img {
    max-width: min(160px, 42vw);
    height: auto;
  }

  #header-auth-buttons .btn-yellow {
    font-size: 12px;
    padding: 8px 12px;
    min-height: 36px;
  }

  .Languages__dropdown .Languages__toggle {
    font-size: 12px;
    padding: 6px 8px !important;
  }

  .Header-navigation-menu {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .Header-navigation-menu__item {
    min-width: 64px;
    flex: 0 0 auto;
  }

  .Header-navigation-menu__item > a {
    min-height: 64px;
    font-size: 10px;
    padding: 8px 4px;
  }

  .Header-navigation-menu__item .nav_icon {
    width: 40px !important;
    height: 40px !important;
  }

  .Header-navigation-menu__item .nav_icon img {
    max-height: 26px !important;
  }

  .social-icons {
    display: none !important;
  }

  .bottom-footer-marque,
  .bm_botbar {
    height: auto !important;
    min-height: 40px;
  }

  .bottom-marque-row {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    padding: 0 4px;
  }

  .bottom-footer-item {
    flex: 0 0 auto;
    min-width: 110px;
    font-size: 11px !important;
    white-space: nowrap;
    padding: 10px 8px !important;
  }

  .marque-content {
    font-size: 11px !important;
    white-space: nowrap;
  }

  .footerbg .row > [class*="col-"] {
    margin-bottom: 16px;
  }

  .foot-title {
    font-size: 14px;
  }

  .foot-ul {
    padding-left: 0;
  }

  #mini-iframe,
  #jackpot-iframe,
  .lSSlideOuter,
  .lSSlideWrapper,
  .lightSlider {
    max-width: 100% !important;
  }

  .Main {
    padding-bottom: 8px;
  }

  .games-list .col-md-3,
  .games-list .col-md-9,
  .games-list .col-md-10,
  .games-list .col-md-2,
  .games-list .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .Slot-providers {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px !important;
  }

  .Slot-providers__item {
    flex: 0 0 auto;
    min-width: 88px;
    width: auto !important;
    max-width: none !important;
  }

  .games-list__wrap {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .games-list__wrap .game-item,
  .games-list__wrap [class*="game-item"] {
    width: 100% !important;
  }

  .sportbook-frame,
  .sportbook-frame-wrap {
    min-height: calc(100vh - 200px) !important;
    height: calc(100vh - 200px) !important;
  }

  .sportbook-providers__item {
    font-size: 0.68rem;
    padding: 0.55rem 0.25rem;
  }

  .Account-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
  }

  .Account-header__actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .Account-header__actions > a {
    flex: 1 1 auto;
    text-align: center;
    margin-right: 0 !important;
  }

  .Account-navigation__menu {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
  }

  .Account-navigation__link {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 12px 14px !important;
    font-size: 12px !important;
  }

  .Account-title {
    padding: 1rem 12px 0.5rem !important;
  }

  .Account-title__content h1 {
    font-size: 1.45rem !important;
  }

  .Account__main {
    padding: 0.5rem 12px 1.5rem !important;
  }

  .Account-deposit-filters {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
  }

  .Account-deposit-methods__group {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .Account-deposit-methods,
  #deposit-methods-grid,
  .deposit-methods-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .Account-deposit-methods__item {
    width: 100% !important;
    max-width: none !important;
    height: 6.75rem !important;
    min-height: 6.75rem !important;
  }

  .deposit-inline-panel {
    flex-direction: column !important;
  }

  .deposit-inline-panel__logo {
    flex: none !important;
    width: 100% !important;
    min-height: 100px;
  }

  .deposit-inline-panel__form {
    width: 100%;
  }

  .deposit-inline-panel__submit {
    width: 100%;
    text-align: center;
  }

  .deposit-wizard-overlay {
    padding: 0 !important;
    align-items: stretch !important;
  }

  .deposit-wizard {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    border-radius: 0 !important;
  }

  .deposit-wizard__header,
  .deposit-wizard__steps,
  .deposit-wizard__body,
  .deposit-wizard__footer {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .deposit-wizard__steps {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
  }

  .deposit-wizard__step {
    min-width: 76px;
  }

  .deposit-wizard__btn {
    font-size: 0.85rem;
  }

  .Auth__form,
  .register-card {
    max-width: 100%;
  }

  .promo-page-grid,
  .promo-grid,
  .promosyon-grid {
    grid-template-columns: 1fr !important;
  }

  /* Header mobil (viewport tabanlı yedek) */
  .header_new {
    flex-wrap: wrap;
    gap: 8px;
  }

  .header_right_content {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
  }

  .header_right_content_down {
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 6px !important;
  }

  .header-logged-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .header-balance-pill {
    font-size: 12px;
    padding: 6px 10px;
    min-height: 34px;
  }

  .container,
  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }

  .Auth--login .Auth__layout {
    max-width: 100% !important;
    padding: 0 8px;
  }

  #providerSearchControls {
    float: none !important;
    display: flex !important;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 8px;
  }

  #providerSearchInput {
    flex: 1 1 100%;
    width: 100% !important;
  }

  .casino-game-item-content {
    min-width: 0;
  }

  .games-list__wrap,
  .casino-category-games {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .games-list__wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .Account-deposit-methods,
  #deposit-methods-grid,
  .deposit-methods-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .Account-deposit-methods__item {
    width: 100% !important;
    max-width: none !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  body {
    padding-bottom: 44px;
  }

  .social-icons {
    display: flex !important;
  }

  .games-list__wrap {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .Account-deposit-methods,
  #deposit-methods-grid,
  .deposit-methods-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .Account-deposit-methods__item {
    width: 100% !important;
    max-width: none !important;
  }

  .deposit-wizard-overlay {
    padding: 16px !important;
    align-items: center !important;
  }

  .deposit-wizard {
    width: min(760px, 100%) !important;
    min-height: auto;
    max-height: none;
    border-radius: 12px !important;
  }
}

@media (max-width: 380px) {
  .header_new {
    flex-wrap: wrap;
  }

  .header_right_content {
    flex: 1 1 100%;
    justify-content: flex-end;
  }

  .header-action-btn,
  .header-search-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  #header-auth-buttons .btn-yellow {
    font-size: 11px;
    padding: 6px 10px;
  }

  .header-user-profile__toggle {
    padding: 6px 10px;
    font-size: 11px;
  }

  .bottom-footer-item {
    min-width: 96px;
    font-size: 10px !important;
  }
}
