/**
 * Mobil ana sayfa - Banner, jackpot, stories, popüler slotlar (2. foto ile uyumlu)
 * Sidebar: masaüstü ile aynı menü, mobilde hamburger ile açılır
 */
.m-header-home {
  display: flex;
  align-items: center;
  gap: 12px;
}
.m-header-menu-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.m-header-menu-btn:active {
  background: rgba(255,255,255,0.12);
}
.m-header-home .m-header-logo {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.m-header-logo-img { max-height: 32px; width: auto; display: block; vertical-align: middle; }
.m-header-logo-fallback { display: inline-flex !important; align-items: center; gap: 8px; }
.m-header-home .m-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-header-home .m-btn-auth {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.m-header-home .m-btn-login {
  background: rgba(255,255,255,0.1);
  color: #9ca3af;
  border: 1px solid rgba(255,255,255,0.15);
}
.m-header-home .m-btn-register {
  background: linear-gradient(135deg, #dc3545, #b91c1c);
  color: #fff;
}

/* Duyuru çubuğu - mobil uyumlu infinite scroll */
.m-announce {
  background: linear-gradient(90deg, #dc3545, #a71d2a);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
}
.m-announce-inner {
  white-space: nowrap;
  display: inline-block;
  animation: m-scroll-marquee 25s linear infinite;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.m-announce-inner span {
  margin: 0 1.5rem;
  font-size: 0.85rem;
}
.m-announce-inner i {
  margin-right: 6px;
  opacity: 0.95;
}
@keyframes m-scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Banner - mobil touch uyumlu, tıklanabilir */
.m-banner {
  display: block;
  width: 100%;
  min-height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  text-decoration: none;
  position: relative;
  z-index: 2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1a22;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
  pointer-events: auto;
}
.m-banner:active { opacity: 0.95; }
@media (max-width: 380px) {
  .m-banner { min-height: 150px !important; }
}
.m-banner-cta {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-block;
  background: #dc3545;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(220,53,69,0.5);
}

/* Birden fazla banner için yatay slider */
.m-banner-slider {
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.m-banner-track {
  display: flex;
  gap: 12px;
  scroll-snap-type: x mandatory;
}
.m-banner-slide {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: center;
}
@media (min-width: 480px) {
  .m-banner-slide { flex-basis: 92%; }
}

/* Jackpot */
.m-jackpot {
  background: #b91c1c;
  border-radius: 10px;
  padding: 18px 16px;
  margin-bottom: 20px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
  border-left: 4px solid #dc2626;
}
.m-jackpot-provider {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.m-jackpot-total {
  font-size: clamp(1.2rem, 5vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.m-jackpot-tiers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.m-jackpot-tier {
  flex: 1;
  min-width: 0;
  max-width: calc(25% - 6px);
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  padding: 10px 6px;
  text-align: center;
}
.m-jackpot-tier-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.m-jackpot-tier-val {
  display: block;
  font-size: clamp(0.65rem, 2.5vw, 0.85rem);
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Stories (ikon çubuğu) */
.m-stories {
  background: #16161d;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 14px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.m-stories-row {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: max-content;
}
.m-story-item {
  flex-shrink: 0;
  text-decoration: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}
.m-story-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(30,30,40,0.95);
  border: 2px solid #b91c1c;
  box-shadow: 0 0 12px rgba(185,28,28,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-story-circle i {
  font-size: 1.1rem;
  color: #fff;
}
.m-story-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Popüler slotlar */
.m-populer {
  margin-bottom: 100px;
}
.m-populer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.m-populer-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-populer-more {
  color: #9ca3af;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}
.m-populer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.m-populer-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: #14141c;
  border: 1px solid rgba(255,255,255,0.08);
  -webkit-tap-highlight-color: transparent;
}
.m-populer-card:active {
  opacity: 0.95;
}
.m-populer-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #1a1a22;
}
.m-populer-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.m-populer-card-info {
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

/* Mobil sayfa: sidebar overlay */
body.m-page .sidebar-pin-toggle,
body.m-page .sidebar-expand-tab { display: none !important; }
body.m-page .sidebar-close-mobile {
  display: flex !important; align-items: center; justify-content: center;
  width: 36px; height: 36px; min-width: 36px; min-height: 36px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05);
  border-radius: 8px; color: #9ca3af; cursor: pointer; font-size: 1rem;
}
body.m-page .sidebar-close-mobile:hover { background: rgba(255,255,255,0.1); color: #fff; }
body.m-page .sidebar { transform: translateX(-100%) !important; width: 280px !important; max-width: 85vw !important; }
body.m-page .sidebar.sidebar-open { transform: translateX(0) !important; box-shadow: 8px 0 30px rgba(0,0,0,0.5) !important; }
body.m-page .sidebar-backdrop {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 999;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
  display: none;
}
body.m-page .sidebar-backdrop.active { display: block !important; opacity: 1; pointer-events: auto; }
body.m-page .sidebar { z-index: 1001 !important; }

.m-profile-card { background: #14141c; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); padding: 20px; margin-bottom: 24px; }
.m-profile-title { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.m-profile-email { font-size: 0.9rem; color: #9ca3af; margin-bottom: 20px; }
.m-profile-balances { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.m-profile-balance-item { flex: 1; min-width: 120px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 14px; }
.m-profile-balance-label { display: block; font-size: 0.75rem; color: #9ca3af; margin-bottom: 4px; }
.m-profile-balance-val { font-size: 1.1rem; font-weight: 700; color: #fff; }
.m-profile-balance-green { color: #22c55e; }

/* Mobilde sidebar logosunu küçült */
body.m-page .sidebar-brand-logo {
  max-height: 26px !important;
}
body.m-page .sidebar-brand {
  font-size: 1.05rem !important;
}