/* Site-wide mobile balance — proportional scaling for phones */

@media (max-width: 768px) {
    html:has(body.page-home),
    html:has(.profile-panel.is-open) {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

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

    html {
        overflow-x: clip;
    }

    /* Header — anasayfa ile aynı boyut (16px taban → sabit px, tüm sayfalarda) */
    nav.fixed.top-0 > div {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    nav.fixed.top-0 > div > div.flex.items-center.justify-between {
        height: 42px;
        min-height: 42px;
        gap: 8px !important;
        align-items: center !important;
    }

    nav.fixed.top-0 .site-logo-link {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 48%;
        padding: 3px 0 !important;
    }

    nav.fixed.top-0 .header-nav-actions {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
        max-width: 62%;
        flex-shrink: 0;
    }

    .site-logo-wordmark {
        font-size: 20.5px !important;
        letter-spacing: -0.04em !important;
        font-weight: 800 !important;
        filter: drop-shadow(0 0 14px rgba(46, 199, 255, 0.22));
    }

    .site-logo-wordmark__light,
    .site-logo-wordmark__accent {
        color: #2ec7ff !important;
        text-shadow: 0 0 18px rgba(46, 199, 255, 0.42);
    }

    .site-logo-img,
    nav.fixed.top-0 .site-logo-img--header {
        height: 32px !important;
        max-height: 32px;
    }

    nav.fixed.top-0 .site-logo-img--header.site-logo-img--3d {
        height: 34px !important;
        max-height: 34px;
        width: auto !important;
    }

    nav.fixed.top-0 .header-auth-guest__link {
        padding: 0 8px !important;
        font-size: 11px !important;
        line-height: 1.1;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .header-auth-guest {
        height: 30px;
        border-width: 1px;
        border-radius: 7px;
    }

    /* Üst bar hesap kutusu — mobil tipografi ve hizalama */
    .header-account {
        display: inline-flex !important;
        align-items: stretch !important;
        height: 34px !important;
        max-width: 100%;
        flex-shrink: 1;
        min-width: 0;
        font-family: "Outfit", system-ui, sans-serif;
        border-width: 1.5px !important;
        border-color: #ffffff !important;
        border-radius: 9px !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 2px 12px rgba(0, 0, 0, 0.24) !important;
    }

    .header-account__wallet {
        display: inline-flex !important;
        align-items: center !important;
        align-self: stretch !important;
        padding: 0 6px 0 7px !important;
        gap: 5px !important;
        min-width: 0;
        flex: 1 1 auto;
    }

    .header-account__wallet-icon {
        width: 14px !important;
        font-size: 11px !important;
        color: #2ec7ff !important;
        line-height: 1 !important;
    }

    .header-account__wallet-copy {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 1px !important;
        min-width: 0;
    }

    .header-account__label {
        display: block !important;
        font-size: 7.5px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        letter-spacing: 0.1em !important;
        text-transform: uppercase !important;
        color: rgba(255, 255, 255, 0.42) !important;
    }

    nav.fixed.top-0 #header-user-balance,
    .header-account__value {
        display: block !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        letter-spacing: 0 !important;
        font-variant-numeric: tabular-nums !important;
        background: transparent !important;
        color: #2ec7ff !important;
        border: 0 !important;
        box-shadow: none !important;
        text-shadow: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 5.75rem;
    }

    .header-account__split {
        align-self: stretch !important;
        width: 1px !important;
        margin: 5px 0 !important;
        background: rgba(46, 199, 255, 0.32) !important;
        flex-shrink: 0;
    }

    .header-account__deposit {
        display: inline-flex !important;
        align-items: center !important;
        align-self: stretch !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 0;
        flex: 0 0 auto;
        padding: 0 7px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        letter-spacing: 0.01em !important;
        color: #f4fbff !important;
        gap: 4px !important;
    }

    .header-account__deposit span {
        display: inline !important;
        color: #f4fbff !important;
        font-weight: 600 !important;
    }

    .header-account__deposit i {
        color: #2ec7ff !important;
        font-size: 9px !important;
        line-height: 1 !important;
    }

    .header-account__user {
        display: inline-flex !important;
        align-items: center !important;
        align-self: stretch !important;
        max-width: 5.5rem !important;
        min-width: 0;
        flex: 0 1 auto;
        padding: 0 7px !important;
        gap: 4px !important;
    }

    .header-account__name {
        font-size: 11px !important;
        font-weight: 600 !important;
        line-height: 1.1 !important;
        letter-spacing: 0.01em !important;
        color: #2ec7ff !important;
        text-shadow: none !important;
    }

    .header-account__chevron {
        display: inline-block !important;
        font-size: 8px !important;
        color: rgba(255, 255, 255, 0.72) !important;
        line-height: 1 !important;
        flex-shrink: 0;
    }

    main.pt-14 {
        padding-top: 43px;
    }

    /* Cards & panels */
    .game-card,
    .oyun-card,
    .panel,
    .card,
    .provider-card,
    .deposit-card,
    .wallet-card,
    .stats-card {
        border-radius: 0.75rem !important;
    }

    .glass-effect,
    .glass-enhanced {
        border-radius: 0.85rem !important;
    }

    /* Form inputs — prevent iOS zoom without oversized UI */
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    select,
    textarea {
        font-size: max(16px, 0.92rem);
    }

    /* Mobile bottom navigation sizing (position rules at file end, root level) */

    .mobile-bottom-nav__inner a,
    .mobile-bottom-nav__inner button {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .mobile-bottom-nav__inner svg {
        width: 1.45rem;
        height: 1.45rem;
    }

    .mobile-bottom-nav__inner span:not(.mobile-bottom-nav__icon):not(.mobile-bottom-nav__label) {
        display: none !important;
    }

    body.has-mobile-bottom-nav:not(.page-home) main {
        padding-bottom: calc(4.05rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.has-mobile-bottom-nav.page-home main {
        padding-bottom: 0 !important;
    }

    body.has-mobile-bottom-nav.page-home .home-page {
        padding-bottom: 0 !important;
    }

    body.page-home footer {
        padding-bottom: calc(4.05rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Legacy selectors (keep for cached markup) */
    .md\:hidden.fixed.bottom-0 .grid.grid-cols-5 a {
        padding-top: 0.28rem !important;
        padding-bottom: 0.28rem !important;
    }

    .md\:hidden.fixed.bottom-0 .grid.grid-cols-5 svg {
        width: 1.05rem;
        height: 1.05rem;
    }

    .md\:hidden.fixed.bottom-0 .grid.grid-cols-5 span {
        font-size: 0.58rem !important;
    }

    /* Mobile footer */
    footer .md\:hidden.container {
        padding-top: 1.5rem !important;
        padding-bottom: 1.25rem !important;
    }

    footer .md\:hidden h3 {
        font-size: 0.78rem !important;
        margin-bottom: 0.55rem !important;
    }

    /* Page content spacing helpers */
    .container.mx-auto.px-4,
    .mx-auto.px-4 {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }
}

@media (max-width: 390px) {
    html:not(:has(body.page-home)) {
        font-size: 13px;
    }

    nav.fixed.top-0 > div > div.flex.items-center.justify-between {
        gap: 6px !important;
    }

    nav.fixed.top-0 .site-logo-link {
        max-width: 44% !important;
    }

    nav.fixed.top-0 .header-nav-actions {
        max-width: 64% !important;
    }

    .site-logo-wordmark {
        font-size: 18px !important;
    }

    .site-logo-wordmark__light,
    .site-logo-wordmark__accent {
        text-shadow: 0 0 14px rgba(46, 199, 255, 0.38);
    }

    .header-account {
        height: 32px !important;
    }

    .header-account__label {
        display: none !important;
    }

    .header-account__wallet {
        padding: 0 5px 0 6px !important;
        gap: 4px !important;
        flex: 1 1 0;
    }

    .header-account__wallet-copy {
        flex-direction: row !important;
        align-items: center !important;
        gap: 0 !important;
    }

    .header-account__deposit {
        padding: 0 6px !important;
        font-size: 10.5px !important;
    }

    .header-account__user {
        max-width: 4.75rem !important;
        padding: 0 6px !important;
    }

    nav.fixed.top-0 #header-user-balance,
    .header-account__value,
    .header-account__name {
        font-size: 10.5px !important;
        max-width: 4.85rem;
    }

    .header-account__deposit span {
        font-size: 10.5px !important;
    }

    .site-logo-img,
    nav.fixed.top-0 .site-logo-img--header {
        height: 30px !important;
        max-height: 30px;
    }

    nav.fixed.top-0 .site-logo-img--header.site-logo-img--3d {
        height: 32px !important;
        max-height: 32px;
        width: auto !important;
    }

    nav.fixed.top-0 > div > div.flex.items-center.justify-between {
        height: 40px;
        min-height: 40px;
    }

    main.pt-14 {
        padding-top: 2.65rem;
    }
}

/* Mobile bottom nav — root rules so fixed works regardless of parent overflow */
@media (max-width: 767px) {
    #mobile-bottom-nav,
    .mobile-bottom-nav {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        z-index: 9999 !important;
        margin: 0 !important;
        background: #0e2742 !important;
        border-top: 1px solid rgba(46, 199, 255, 0.14);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transform: translateZ(0);
    }

    .mobile-bottom-nav--icons .mobile-bottom-nav__inner {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        min-height: 3.55rem;
        height: auto;
        padding: 0.18rem 0.1rem 0.22rem;
        max-width: 42rem;
        margin: 0 auto;
    }

    .mobile-bottom-nav--icons .mobile-bottom-nav__item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 0.14rem;
        min-height: 3.3rem;
        height: auto;
        padding: 0.12rem 0.04rem 0.02rem;
        color: #9eb4c8;
        background: transparent;
        border: 0;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        font: inherit;
    }

    .mobile-bottom-nav--labeled .mobile-bottom-nav__item.is-active {
        color: #ffffff;
    }

    .mobile-bottom-nav--labeled .mobile-bottom-nav__item.is-active::before {
        content: "";
        position: absolute;
        top: 0.02rem;
        width: 0.85rem;
        height: 0.13rem;
        border-radius: 999px;
        background: #2ec7ff;
        box-shadow: 0 0 8px rgba(46, 199, 255, 0.4);
    }

    .mobile-bottom-nav--icons .mobile-bottom-nav__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 1.55rem;
        height: 1.55rem;
        overflow: visible;
        border-radius: 0;
        color: inherit;
        background: transparent;
        border: 0;
        box-shadow: none;
        transition: transform 0.18s ease;
    }

    .mobile-bottom-nav--3d .mobile-bottom-nav__icon img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        pointer-events: none;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
    }

    .mobile-bottom-nav--icons .mobile-bottom-nav__icon svg {
        width: 1.15rem;
        height: 1.15rem;
        display: block;
    }

    /* Menü: SVG — sarı plaka/kalıntı yok */
    .mobile-bottom-nav__icon--menu {
        background: transparent !important;
        box-shadow: none !important;
        filter: none !important;
    }

    .mobile-bottom-nav__icon--menu svg {
        width: 1.2rem !important;
        height: 1.2rem !important;
        display: block;
        filter: none !important;
    }

    .mobile-bottom-nav__item--menu,
    .mobile-bottom-nav__item--menu:active,
    .mobile-bottom-nav__item--menu:focus,
    .mobile-bottom-nav__item--menu:focus-visible {
        background: transparent !important;
        box-shadow: none !important;
        outline: none !important;
    }

    .mobile-bottom-nav__label {
        display: block !important;
        font-size: 0.58rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        line-height: 1.05;
        white-space: nowrap;
    }

    .mobile-bottom-nav--labeled .mobile-bottom-nav__item.is-active .mobile-bottom-nav__label {
        font-weight: 700;
    }

    .mobile-bottom-nav--icons .mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon,
    .mobile-bottom-nav--icons .mobile-bottom-nav__item:active .mobile-bottom-nav__icon {
        transform: translateY(-1px) scale(1.04);
        border-color: transparent;
        box-shadow: none;
    }

    /* Legacy cached bottom nav markup (must include right-0; not the sidebar) */
    .md\:hidden.fixed.bottom-0.left-0.right-0:not(#mobileSidebar) {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        z-index: 9999 !important;
    }

    #mobileSidebar {
        width: 17.5rem !important;
        max-width: 17.5rem !important;
        right: auto !important;
        top: 3.5rem !important;
        bottom: 0 !important;
        z-index: 10050 !important;
        background: #0e2742 !important;
        background-image:
            radial-gradient(circle at top left, rgba(46, 199, 255, 0.1), transparent 34%),
            linear-gradient(180deg, #0e2742 0%, #12324f 38%, #102c48 100%) !important;
        opacity: 1 !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    #mobileSidebarOverlay {
        z-index: 10040 !important;
        background: rgba(14, 39, 66, 0.78) !important;
    }
}

@media (min-width: 768px) {
    #mobile-bottom-nav,
    .mobile-bottom-nav {
        display: none !important;
    }
}




/* hdrWhite2-mobile */
@media (max-width: 768px) {
  nav.fixed.top-0 .header-account,
  .header-account {
    border-color: #ffffff !important;
    border: 1.5px solid #ffffff !important;
  }
}

/* regWhite1 final — Kayıt Ol yazısı Giriş Yap gibi beyaz */
html body nav a.header-auth-guest__link--register,
html body nav .header-auth-guest__link--register,
html body .header-auth-guest__link--register,
html body .header-auth-guest a[href*="register"],
html body .header-auth-guest a[href*="kayit"] {
  color: #ffffff !important;
}

/* ===== navOutline1: line icons matching reference photo ===== */
.mobile-bottom-nav--outline .mobile-bottom-nav__icon {
  color: #9ec9dc !important;
  background: transparent !important;
  box-shadow: none !important;
}
.mobile-bottom-nav--outline .mobile-bottom-nav__icon svg {
  width: 1.45rem !important;
  height: 1.45rem !important;
  display: block;
  stroke: currentColor;
  filter: none !important;
}
.mobile-bottom-nav--outline .mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon,
.mobile-bottom-nav--outline .mobile-bottom-nav__item:active .mobile-bottom-nav__icon {
  color: #ffffff !important;
}
.mobile-bottom-nav--outline .mobile-bottom-nav__label {
  color: #9ec9dc;
  font-size: 0.6rem !important;
  font-weight: 600;
}
.mobile-bottom-nav--outline .mobile-bottom-nav__item.is-active .mobile-bottom-nav__label {
  color: #ffffff !important;
  font-weight: 700 !important;
}
.mobile-bottom-nav__item--support .mobile-bottom-nav__label {
  font-size: 0.55rem !important;
  letter-spacing: -0.01em;
}
.mobile-bottom-nav--outline .mobile-bottom-nav__item,
.mobile-bottom-nav--outline .mobile-bottom-nav__item:active,
.mobile-bottom-nav--outline .mobile-bottom-nav__item:focus,
.mobile-bottom-nav--outline .mobile-bottom-nav__item:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: none !important;
}
/* ===== nav3dIcons1: crisp 3D bottom-tab icons ===== */
.mobile-bottom-nav--3d .mobile-bottom-nav__icon {
  width: 1.85rem !important;
  height: 1.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.mobile-bottom-nav--3d .mobile-bottom-nav__icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  filter: none !important;
}
.mobile-bottom-nav--3d .mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon img {
  filter: drop-shadow(0 0 6px rgba(46, 199, 255, 0.45)) !important;
  transform: translateY(-1px);
}
.mobile-bottom-nav--3d .mobile-bottom-nav__label {
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
}
.mobile-bottom-nav--3d .mobile-bottom-nav__item.is-active .mobile-bottom-nav__label {
  color: #7adfff !important;
}
/* ===== navPlain1: simple outline bottom tabs ===== */
.mobile-bottom-nav--plain .mobile-bottom-nav__icon {
  width: 1.45rem !important;
  height: 1.45rem !important;
  color: rgba(190, 215, 235, 0.72) !important;
}
.mobile-bottom-nav--plain .mobile-bottom-nav__icon svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
.mobile-bottom-nav--plain .mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon,
.mobile-bottom-nav--plain .mobile-bottom-nav__item:active .mobile-bottom-nav__icon {
  color: #7adfff !important;
}
.mobile-bottom-nav--plain .mobile-bottom-nav__label {
  margin-top: 0.18rem !important;
  font-size: 0.6rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  color: rgba(190, 215, 235, 0.72) !important;
}
.mobile-bottom-nav--plain .mobile-bottom-nav__item.is-active .mobile-bottom-nav__label {
  color: #7adfff !important;
  font-weight: 700 !important;
}
.mobile-bottom-nav--plain .mobile-bottom-nav__item.is-active::before {
  background: #7adfff !important;
}
