/* ═══════════════════════════════════════════════════════════════
   TÜM SAYFALAR — mobil uyumluluk (casino, spor, hesap, kayıt…)
   @media (max-width: 991px)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  /* ─── GENEL ─── */
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .App {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .Main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden;
  }

  .Main > .container,
  .Main > .container.containerfullwidth,
  .containerfullwidth {
    padding-left: 8px !important;
    padding-right: 8px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .container-90 {
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* ─── ANA SAYFA (index) ─── */
  .container1 {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .slider-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: block !important;
  }

  .lSSlideOuter,
  .lSSlideWrapper,
  #image-gallery,
  #image-gallery.lS-noPager {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    overflow: hidden !important;
  }

  #image-gallery li,
  #image-gallery .lslide {
    width: 100% !important;
    max-width: 100% !important;
  }

  #image-gallery img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 180px;
    object-fit: cover;
    display: block;
  }

  .main-top {
    display: none !important;
  }

  /* Jackpot widget */
  .containerfullwidth iframe[src*="jackpot"],
  iframe[src*="jackpotmaster"] {
    width: 100% !important;
    max-width: 100vw !important;
    height: 120px !important;
    min-height: 100px;
    display: block !important;
  }

  .egt.egt--show_egt_digital_jackpot,
  [class*="jackpot"] {
    max-width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ─── CASINO ─── */
  .games-list {
    padding: 8px 4px !important;
    max-width: 100% !important;
  }

  .games-list .border-radius {
    padding: 8px !important;
    border-radius: 8px;
  }

  .games-list h4 {
    font-size: 14px !important;
    margin-bottom: 8px;
  }

  .games-list__wrap,
  .casino-category-games,
  #games {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 0 !important;
  }

  .game-item,
  .casino-game-item-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .casino-game-item {
    aspect-ratio: 4/3;
    border-radius: 6px;
    overflow: hidden;
  }

  .game-item__info-title {
    font-size: 10px !important;
    line-height: 1.2;
  }

  .Slot-providers {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 4px;
    max-width: 100%;
  }

  .Slot-providers__item a {
    min-width: 68px !important;
    width: 68px !important;
    font-size: 9px !important;
  }

  #providerSearchControls,
  .searchArea {
    width: 100% !important;
    max-width: 100% !important;
  }

  #providerSearchInput,
  #searchgameinput,
  #search_game {
    width: 100% !important;
    box-sizing: border-box;
  }

  #btnLoadMoreGames {
    width: calc(100% - 16px) !important;
    margin: 10px 8px !important;
  }

  /* ─── SPOR ─── */
  .sportbook-shell,
  .spor-page-wrap {
    padding: 8px !important;
    max-width: 100% !important;
  }

  .sportbook-providers {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 6px;
    max-width: 100vw;
  }

  .sportbook-frame-wrap,
  .sportbook-frame {
    width: 100% !important;
    max-width: 100vw !important;
    min-height: calc(100dvh - 200px) !important;
    height: calc(100dvh - 200px) !important;
    border: none;
  }

  .spor-match-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px;
  }

  .spor-odds {
    justify-content: center;
    flex-wrap: wrap;
  }

  .spor-odd {
    flex: 1 1 calc(33% - 6px);
    min-width: 56px;
  }

  /* ─── PARA YATIR / ÇEK / HESAP ─── */
  .deposit-page,
  .account-page-wrap,
  .account-layout__content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    box-sizing: border-box;
  }

  .deposit-page__inner {
    width: 100% !important;
    padding: 8px 4px !important;
  }

  .Account,
  .Account.bg-darkest-navy-blue {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 4px !important;
  }

  .Account-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px;
    padding: 12px 8px !important;
  }

  .Account-header__actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px;
    width: 100%;
  }

  .Account-header__actions > a,
  .Account-header__actions > button {
    flex: 1 1 calc(50% - 4px) !important;
    font-size: 11px !important;
    padding: 8px 6px !important;
    text-align: center;
  }

  .Account-navigation__menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    padding-bottom: 6px;
    max-width: 100vw;
  }

  .Account-navigation__menu a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 12px;
  }

  .deposit-categories {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100vw;
  }

  .deposit-categories__item {
    flex: 0 0 auto;
    font-size: 12px !important;
    padding: 10px 14px !important;
  }

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

  .deposit-method-card,
  .Account-deposit-methods__item {
    width: 100% !important;
    max-width: none !important;
    min-height: 72px !important;
    height: 6.75rem !important;
    padding: 0 !important;
  }

  .Account-deposit-methods__logo {
    padding: 8px !important;
  }

  .Account-deposit-methods__logo img {
    max-width: 90% !important;
    max-height: 3.75rem !important;
  }

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

  .deposit-inline-panel__logo,
  .deposit-inline-panel__form,
  .deposit-inline-panel__submit,
  .deposit-inline-panel__fields {
    width: 100% !important;
    max-width: 100% !important;
  }

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

  .deposit-wizard {
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

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

  .deposit-wizard__footer {
    flex-direction: column;
    gap: 8px;
  }

  .deposit-wizard__btn {
    width: 100% !important;
  }

  .deposit-bank-info__row {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .account-form-card,
  .account-info-card {
    padding: 12px !important;
    margin-bottom: 12px;
  }

  .account-form-card .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* ─── KAYIT ─── */
  .Auth--register {
    padding: 1rem 8px 2rem !important;
  }

  .Auth--register .Auth__layout {
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 8px !important;
  }

  .Auth--register .Auth-header {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0.75rem !important;
  }

  .Auth--register .Auth__main {
    padding: 0 0.75rem 1.25rem !important;
  }

  .Auth--register .row > .col-md-4:first-child,
  .Auth--register .row > .col-md-4:last-child {
    display: none !important;
  }

  .Auth--register .Auth__main.col-md-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .Auth--register .register-card,
  .Auth--register .card-info-header {
    font-size: 13px;
  }

  .Auth--register .register-input,
  .Auth--register select {
    width: 100% !important;
    box-sizing: border-box;
  }

  .Auth--register .col-md-6,
  .Auth--register .col-md-4,
  .Auth--register .col-md-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* ─── BÖLÜM SAYFALARI (bonus, promosyon, referans…) ─── */
  .section-page-banner {
    padding: 12px 10px 0 !important;
  }

  .section-page-banner h2 {
    font-size: 1.2rem !important;
  }

  .section-page-content,
  .account-section-body {
    padding: 12px 10px 24px !important;
    font-size: 14px;
    line-height: 1.55;
  }

  .promo-page-grid,
  .promo-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 12px 8px !important;
  }

  .promo-page-card {
    padding: 16px 12px !important;
  }

  .winners-list,
  .referans-table-wrap,
  .history-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  table {
    font-size: 12px;
  }

  /* ─── MODAL / ARAMA ─── */
  .modal-dialog {
    margin: 10px auto !important;
    max-width: calc(100vw - 20px) !important;
  }

  #searchModal .form-control {
    width: 100% !important;
  }

  /* ─── TAWK — özel benimle sohbet butonu (sol alt, tab bar üstü) ─── */
  #tawk-bubble-container,
  .tawk-min-container .tawk-button-circle {
    display: none !important;
  }

  .bp-tawk-trigger {
    bottom: 62px !important;
    left: 6px !important;
    right: auto !important;
  }

  .tawk-max-container,
  iframe[src*="tawk.to" i] {
    z-index: 9990 !important;
  }

  /* ─── SCROLL TOP ─── */
  .scrool-top-container {
    bottom: 78px !important;
    right: 10px !important;
    z-index: 9970;
  }

  /* ─── FOOTER ekstra ─── */
  .footerbg .Footer-links {
    columns: 2;
    column-gap: 12px;
  }

  .footerbg .Footer-links li {
    break-inside: avoid;
    margin-bottom: 4px;
  }

  .footerbg img[style*="max-width: 250px"] {
    max-width: 160px !important;
  }

  /* ─── GİRİŞ sayfası padding ─── */
  .Auth--login {
    padding: 1rem 10px 1.5rem !important;
  }
}

/* html.is-mobile — UA ile algılanan cihazlar (geniş telefon) */
html.is-mobile .games-list__wrap,
html.is-mobile #games {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html.is-mobile .container1 {
  height: auto !important;
}

html.is-mobile body {
  overflow-x: hidden !important;
}
