/* LofiBet mobile app shell — mobile-only (≤860px) */
.lp-m-bar,
.lp-m-cats,
.lp-m-drawer,
.lp-m-scrim,
.lp-m-bottom,
.lp-m-hub {
  display: none;
}

/* —— Top bar —— */
.lp-m-bar {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  padding-top: max(10px, env(safe-area-inset-top));
  min-height: 64px;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.96), rgba(8, 12, 22, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  /* Above #lpPop (2000) so Giriş / Üye Ol stay tappable while announcements show */
  z-index: 2100;
}
.lp-m-bar.is-logged {
  position: sticky; /* keep sticky; absolute child needs positioned ancestor */
}
.lp-m-burger,
.lp-m-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lp-m-burger svg,
.lp-m-close svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.lp-m-bar .logo,
.lp-m-bar .lp-logo,
.lp-m-bar a img {
  max-height: 28px;
  width: auto;
}
.lp-m-auth {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.lp-m-auth a,
.lp-m-auth button {
  height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  cursor: pointer;
}
.lp-m-login {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.lp-m-reg {
  background: var(--lp-blue, #2f89d6);
  color: #fff;
  border: 0;
  box-shadow: none; /* was red rgba(236,34,41) glow — removed */
}
/* Logged-in: balance + profile top-right (mobile only) */
.lp-m-bar.is-logged .lp-m-auth {
  margin-left: auto;
  justify-content: flex-end;
  gap: 8px;
}
.lp-m-user {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid rgba(47, 137, 214, 0.8);
  background: radial-gradient(circle at 50% 40%, rgba(47, 137, 214, 0.4), rgba(15, 23, 42, 0.95) 70%);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  /* Inner border + soft glow only — outermost hard ring removed */
  box-shadow:
    0 0 0 2px rgba(8, 12, 22, 0.95),
    0 0 14px rgba(47, 137, 214, 0.45);
}
.lp-m-user svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.lp-m-user:hover,
.lp-m-user:focus {
  outline: 0;
  border-color: #2f89d6;
  box-shadow:
    0 0 0 2px #080c16,
    0 0 18px rgba(47, 137, 214, 0.55);
}
.lp-m-bal {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 380px) {
  .lp-m-bal { display: none; }
}

/* —— Category chips —— */
.lp-m-cats {
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px 12px;
  background: #080c16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.lp-m-cats::-webkit-scrollbar { display: none; }
.lp-m-cats a {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 72px;
  padding: 10px 12px;
  border-radius: 16px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.lp-m-cats a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.lp-m-cats a.is-on,
.lp-m-cats a:active {
  color: #fff;
  background: linear-gradient(160deg, rgba(236, 34, 41, 0.35), rgba(236, 34, 41, 0.12));
  border-color: rgba(236, 34, 41, 0.45);
  box-shadow: none;
  transform: translateY(-1px);
}

/* —— Drawer —— */
.lp-m-scrim {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  z-index: 2150;
  backdrop-filter: blur(2px);
}
.lp-m-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(380px, 90vw);
  background: linear-gradient(180deg, #0d1320 0%, #0a0f1a 100%);
  color: #e2e8f0;
  z-index: 2200;
  flex-direction: column;
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.45);
  transform: translateX(-105%);
  transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}
html.lp-m-open .lp-m-drawer { transform: translateX(0); }
html.lp-m-open .lp-m-scrim { display: block !important; }
.lp-m-drawer-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  padding-top: max(14px, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.lp-m-tabs {
  display: flex;
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
}
.lp-m-tabs button {
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-weight: 800;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.lp-m-tabs button.is-on {
  color: #fff;
  background: var(--lp-blue, #ec2229);
}
.lp-m-search {
  margin: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0 12px;
}
.lp-m-search svg { width: 18px; height: 18px; stroke: #94a3b8; fill: none; stroke-width: 1.8; }
.lp-m-search input {
  border: 0;
  background: transparent;
  width: 100%;
  height: 44px;
  font: inherit;
  color: #f1f5f9;
}
.lp-m-drawer-b {
  overflow: auto;
  padding: 0 12px calc(24px + env(safe-area-inset-bottom));
  flex: 1;
}
.lp-m-group {
  margin: 16px 6px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #64748b;
  text-transform: uppercase;
}
.lp-m-drawer-b a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  text-decoration: none;
  font-weight: 750;
  font-size: 14px;
}
.lp-m-drawer-b a:active { background: rgba(236, 34, 41, 0.14); }
.lp-m-drawer-b a svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex: none;
}

/* —— Bottom tab bar —— */
.lp-m-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2100;
  height: calc(var(--lp-bottom-h, 64px) + env(safe-area-inset-bottom));
  padding: 0 4px max(6px, env(safe-area-inset-bottom));
  background: #080c16;
  border-top: 1px solid rgba(47, 137, 214, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: flex-end;
  justify-content: space-between;
  gap: 0;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.35);
}
.lp-m-bottom a,
.lp-m-bottom button.lp-m-kupon {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  color: #94a3b8;
  text-decoration: none;
  font-family: inherit;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  padding-top: 8px;
  min-width: 0;
  line-height: 1.15;
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lp-m-bottom a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lp-m-bottom a svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-m-bottom a.is-on { color: #f8fafc; }
.lp-m-bottom a.is-on svg { stroke: var(--lp-blue, #2f89d6); }
/* Center menu button — Lofipay blue (no green) */
.lp-m-bottom .lp-m-kupon,
button.lp-m-kupon {
  width: 56px !important;
  height: 56px !important;
  margin-top: -20px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3b9aef 0%, var(--lp-blue, #2f89d6) 45%, var(--lp-blue-d, #1f6fb3) 100%) !important;
  color: #fff !important;
  justify-content: center !important;
  align-items: center !important;
  box-shadow: 0 0 0 3px #080c16, 0 10px 24px rgba(47, 137, 214, 0.45);
  flex: 0 0 56px !important;
  padding: 0 !important;
  font-size: 0 !important;
  border: 0 !important;
  gap: 0 !important;
}
.lp-m-bottom .lp-m-kupon svg,
button.lp-m-kupon svg {
  width: 24px;
  height: 24px;
  stroke: #fff !important;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lp-m-kupon.is-on,
.lp-m-kupon:active { filter: brightness(1.08); }

/* —— Mobile home hub —— */
.lp-m-hub {
  flex-direction: column;
  gap: 14px;
  padding: 12px 12px 4px;
}
.lp-m-hub-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 2px 0;
}
.lp-m-hub-title strong {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -.02em;
}
.lp-m-hub-title a {
  color: var(--lp-blue, #ec2229);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}
.lp-m-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.lp-m-quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 86px;
  padding: 12px 6px;
  border-radius: 18px;
  text-decoration: none;
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  background:
    radial-gradient(120px 80px at 30% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(160deg, #141b2b, #0d1320);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.lp-m-quick a i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(236, 34, 41, 0.16);
  color: #fecaca;
}
.lp-m-quick a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.lp-m-quick a[data-tone="mint"] i { background: rgba(45, 212, 191, 0.16); color: #99f6e4; }
.lp-m-quick a[data-tone="amber"] i { background: rgba(251, 191, 36, 0.16); color: #fde68a; }
.lp-m-quick a[data-tone="sky"] i { background: rgba(56, 189, 248, 0.16); color: #bae6fd; }
.lp-m-quick a:active { transform: scale(.97); }

@media (max-width: 860px) {
  .lp-m-bar,
  .lp-m-cats { display: flex; }
  .lp-m-bottom { display: flex; }
  .lp-m-drawer { display: flex; }
  .lp-m-hub { display: flex; }

  .lp-iconnav { display: none !important; }
  /* Homepage: hide top-left burger/menu; logo sits on the left. Bottom nav unchanged. */
  body.lp-body .lp-m-burger {
    display: none !important;
  }
  body.lp-body .lp-m-bar {
    justify-content: space-between;
  }
  body.lp-body .lp-m-bar > .lp-logo,
  body.lp-body .lp-m-bar > .lp-logo-only,
  body.lp-body .lp-m-bar > a.lp-logo {
    margin-right: auto;
    order: 0;
  }
  body.lp-body .lp-m-auth {
    margin-left: auto;
  }
  body.lp-body .lp-side { display: none !important; }
  body.lp-body .lp-layout { grid-template-columns: 1fr !important; gap: 0 !important; }
  /* Keep .lp-header in DOM (modals live there) — only hide visible chrome */
  body.lp-body .lp-header-in,
  body.lp-sport .lp-header-in,
  body.lp-live .lp-header-in,
  body.lp-content .lp-header-in,
  body.lp-account .lp-header-in,
  body.lp-espor .lp-header-in {
    display: none !important;
  }
  body.lp-body .lp-header,
  body.lp-sport .lp-header,
  body.lp-live .lp-header,
  body.lp-content .lp-header,
  body.lp-account .lp-header,
  body.lp-espor .lp-header {
    display: block !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.lp-body .lp-topbar,
  body.lp-sport .lp-topbar,
  body.lp-live .lp-topbar,
  body.lp-content .lp-topbar,
  body.lp-account .lp-topbar,
  body.lp-espor .lp-topbar {
    display: none !important;
  }
  .header-pro1 .navpromain { display: none !important; }

  body.lp-sport,
  body.lp-live,
  body.lp-content,
  body.lp-body,
  body.lp-account,
  body.lp-espor {
    padding-bottom: calc(var(--lp-bottom-h, 68px) + env(safe-area-inset-bottom) + 18px) !important;
    background: #080c16 !important;
  }

  /* Home: app-like stacking */
  body.lp-body .lp-hero {
    margin: 0 12px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  body.lp-body .lp-tiles {
    display: none !important;
  }
  body.lp-body .lp-block {
    padding-left: 12px;
    padding-right: 12px;
  }
  body.lp-body .lp-block > h2 {
    font-size: 15px;
    letter-spacing: -.01em;
  }
  body.lp-body .lp-slots-track {
    animation: none !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  body.lp-body .lp-slot {
    flex: 0 0 42vw;
    max-width: 168px;
    scroll-snap-align: start;
  }
  body.lp-body .lp-slot-art {
    height: 56vw;
    max-height: 220px;
    border-radius: 14px;
  }
  /* Son kazananlar + jackpot — force dark tokens to match mobile shell / account UI */
  body.lp-body .lp-winners {
    margin: 8px 0 4px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.92) 0%, rgba(11, 18, 32, 0.88) 100%) !important;
    border: 1px solid var(--lp-line, #243044) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35) !important;
    color: var(--lp-ink, #e8eef7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  body.lp-body .lp-winner-meta em {
    color: var(--lp-muted, #9aa8bc) !important;
  }
  body.lp-body .lp-winner-meta strong,
  body.lp-body .lp-winner-meta b {
    color: #f8fafc !important;
  }
  body.lp-body .lp-winner-art {
    border-color: #334155 !important;
    background-color: var(--lp-soft, #0f172a) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  }
  body.lp-body .lp-winner-art.is-empty {
    background: linear-gradient(135deg, #1e293b, #0f172a) !important;
  }
  body.lp-body .lp-jpboard,
  .lp-casino .lp-jpboard {
    margin: 4px 0 8px !important;
    padding: 10px 10px 8px !important;
    border-radius: 12px !important;
    background:
      radial-gradient(120% 80% at 10% 0%, rgba(59, 130, 246, 0.22), transparent 55%),
      radial-gradient(90% 70% at 90% 10%, rgba(14, 165, 233, 0.18), transparent 50%),
      linear-gradient(180deg, #0f172a 0%, #111827 100%) !important;
    border: 1px solid #1e3a5f !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(59, 130, 246, 0.12) !important;
    color: #e2e8f0 !important;
  }
  body.lp-body .lp-jpboard-head,
  .lp-casino .lp-jpboard-head {
    margin: 0 0 8px !important;
  }
  body.lp-body .lp-jpboard-head h2,
  .lp-casino .lp-jpboard-head h2 {
    color: #93c5fd !important;
    font-size: 12px !important;
    letter-spacing: 0.06em !important;
  }
  /* Grand full width on top; Major + Minor side by side */
  body.lp-body .lp-jp-layout,
  .lp-casino .lp-jp-layout,
  .lp-jp-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  body.lp-body .lp-jp-cardx,
  .lp-casino .lp-jp-cardx {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #1e3a5f !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) !important;
    color: #e2e8f0 !important;
    min-height: 52px !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    border-radius: 10px !important;
  }
  body.lp-body .lp-jp-cardx.is-grand,
  .lp-casino .lp-jp-cardx.is-grand,
  .lp-jp-cardx.is-grand {
    grid-column: 1 / -1 !important;
    background: linear-gradient(180deg, #1e3a5f 0%, #0f172a 100%) !important;
    border-color: #1e3a5f !important;
    min-height: 58px !important;
    padding: 10px 12px !important;
  }
  body.lp-body .lp-jp-ico,
  .lp-casino .lp-jp-ico {
    width: 32px !important;
    height: 32px !important;
  }
  body.lp-body .lp-jp-cardx.is-grand .lp-jp-ico,
  .lp-casino .lp-jp-cardx.is-grand .lp-jp-ico {
    width: 36px !important;
    height: 36px !important;
  }
  body.lp-body .lp-jp-meta em,
  .lp-casino .lp-jp-meta em {
    color: #94a3b8 !important;
    font-size: 10px !important;
  }
  body.lp-body .lp-jp-meta strong,
  .lp-casino .lp-jp-meta strong {
    color: #f8fafc !important;
    font-size: 14px !important;
  }
  body.lp-body .lp-jp-cardx.is-grand .lp-jp-meta strong,
  .lp-casino .lp-jp-cardx.is-grand .lp-jp-meta strong {
    color: #eff6ff !important;
    font-size: 16px !important;
  }
  body.lp-body .lp-jp-meta strong.is-bump,
  .lp-casino .lp-jp-meta strong.is-bump {
    color: #93c5fd !important;
    text-shadow: 0 0 12px rgba(96, 165, 250, 0.55) !important;
  }
  /*
   * Footer — Galabet-style compact mobile:
   * stacked section titles, horizontal pipe-separated links, less height.
   */
  body.lp-body .lp-footer,
  .lp-footer {
    opacity: 1;
    font-size: 12px;
    margin-top: 12px !important;
    padding: 20px 12px 72px !important;
    background: #080c16 !important; /* match .lp-m-bottom */
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
    text-align: center;
  }
  body.lp-body .lp-footer .lp-wrap,
  .lp-footer .lp-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  body.lp-body .lp-footgrid,
  .lp-footgrid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 18px !important;
    grid-template-columns: none !important;
  }
  body.lp-body .lp-footgrid > div,
  .lp-footgrid > div {
    width: 100%;
    max-width: 640px;
    text-align: center;
  }
  body.lp-body .lp-footgrid h3,
  .lp-footgrid h3 {
    margin: 0 0 8px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #cbd5e1 !important;
  }
  body.lp-body .lp-footgrid a,
  .lp-footgrid a {
    display: inline !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    white-space: nowrap;
  }
  body.lp-body .lp-footgrid a:not(:last-child)::after,
  .lp-footgrid a:not(:last-child)::after {
    content: "|";
    display: inline;
    margin: 0 8px;
    color: rgba(148, 163, 184, 0.45);
    font-weight: 400;
  }
  body.lp-body .lp-footgrid a:hover,
  .lp-footgrid a:hover {
    color: #e2e8f0 !important;
  }
  body.lp-body .lp-copy,
  .lp-copy {
    margin: 16px 0 0 !important;
    font-size: 11px !important;
    color: #64748b !important;
    text-align: center;
  }

  body.lp-body .footer-pro,
  body.lp-body .footer-pro1,
  body.lp-body .bottom-payment-row,
  .footer-pro,
  .footer-pro1,
  .bottom-payment-row {
    background: #080c16 !important; /* match .lp-m-bottom */
    background-image: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
    text-align: center;
  }
  body.lp-body .footer-pro,
  .footer-pro {
    padding: 20px 12px 24px !important;
  }
  body.lp-body .footer-pro .container,
  .footer-pro .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
    padding: 0 !important;
  }
  body.lp-body .footer-pro .row,
  .footer-pro .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 18px !important;
    margin: 0 !important;
  }
  body.lp-body .footer-pro .col-xs-4,
  .footer-pro .col-xs-4,
  body.lp-body .footer-pro [class*="col-"],
  .footer-pro [class*="col-"] {
    float: none !important;
    width: 100% !important;
    max-width: 640px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
  }
  body.lp-body .footer-pro .title-text,
  .footer-pro .title-text {
    margin: 0 0 8px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #cbd5e1 !important;
  }
  body.lp-body .footer-pro .title-text .glyphicon,
  .footer-pro .title-text .glyphicon {
    display: none !important;
  }
  body.lp-body .footer-pro .bottom-links,
  .footer-pro .bottom-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    text-align: center !important;
  }
  body.lp-body .footer-pro .bottom-links li,
  .footer-pro .bottom-links li {
    display: inline !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.7 !important;
  }
  body.lp-body .footer-pro .bottom-links a,
  .footer-pro .bottom-links a {
    display: inline !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    white-space: nowrap;
    padding: 0 !important;
  }
  body.lp-body .footer-pro .bottom-links li:not(:last-child)::after,
  .footer-pro .bottom-links li:not(:last-child)::after {
    content: "|";
    margin: 0 8px;
    color: rgba(148, 163, 184, 0.45);
    font-weight: 400;
  }
  body.lp-body .footer-pro .bottom-links a:hover,
  .footer-pro .bottom-links a:hover {
    color: #e2e8f0 !important;
  }
  body.lp-body .footer-pro .lp-license,
  .footer-pro .lp-license {
    background: rgba(15, 23, 42, 0.45) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    text-align: left;
    margin: 16px auto 0 !important;
    max-width: 640px;
  }
  body.lp-body .bottom-payment-row,
  .bottom-payment-row {
    padding: 12px 12px 80px !important;
  }

  /* Casino lobbies — app-like filter + denser grid */
  .lp-casino {
    display: flex !important;
    flex-direction: column !important;
    width: calc(100% - 16px) !important;
    max-width: none !important;
    margin: 8px auto 24px !important;
    gap: 10px !important;
  }
  /* Flatten cmain so mobile order can be controlled independently of DOM */
  .lp-casino .lp-cmain {
    display: contents !important;
    min-width: 0;
  }
  /* banners → jackpot → providers → categories → oyun ara → game grid */
  .lp-casino .lp-cbanners { order: 1; }
  .lp-casino .lp-jpboard { order: 2; }
  .lp-casino .lp-pstrip { order: 3; }
  .lp-casino .lp-catstrip { order: 4; }
  .lp-casino .lp-cside { order: 5; }
  .lp-casino .lp-psnote,
  .lp-casino .is-sr-only,
  .lp-casino .lp-cgrid,
  .lp-casino #lpCasinoGrid,
  .lp-casino .lp-loadmore,
  .lp-casino #lpCasinoSentinel { order: 6; }
  .lp-casino .lp-cside {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 10px !important;
    border-radius: 16px !important;
    background: #0f172a !important;
    border: 1px solid var(--lp-line, #243044) !important;
    position: relative;
    top: auto;
    z-index: auto;
    color: #e2e8f0 !important;
  }
  /* Search + Tüm Sağlayıcılar as a button pair (search wider) */
  .lp-casino .lp-cside input {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: #111827 !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
  }
  .lp-casino .lp-cside input::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
  }
  /*
   * Tüm Sağlayıcılar CTA — white text always.
   * Root cause: lobby.php .lp-cside button / button.is-on / :hover use dark ink
   * (#0f172a / #0f3f6e) for provider rows; JS used to add is-on on open, and
   * sticky :hover after tap reapplied dark color. Rules below + :not() in lobby.php.
   */
  .lp-casino .lp-cside button.lp-cside-allprov,
  .lp-casino .lp-cside button.lp-cside-allprov:hover,
  .lp-casino .lp-cside button.lp-cside-allprov:focus,
  .lp-casino .lp-cside button.lp-cside-allprov:active,
  .lp-casino .lp-cside button.lp-cside-allprov.is-on,
  .lp-casino .lp-cside button.lp-cside-allprov.is-open,
  .lp-casino .lp-cside button.lp-cside-allprov[aria-expanded="true"],
  .lp-casino .lp-cside.is-provs-open button.lp-cside-allprov,
  .lp-casino .lp-cside-allprov {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 42% !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(145deg, #3b9aef 0%, var(--lp-blue, #2f89d6) 55%, var(--lp-blue-d, #1f6fb3) 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font: inherit !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(47, 137, 214, 0.28) !important;
    filter: none;
  }
  .lp-casino .lp-cside button.lp-cside-allprov.is-open,
  .lp-casino .lp-cside button.lp-cside-allprov[aria-expanded="true"],
  .lp-casino .lp-cside.is-provs-open button.lp-cside-allprov {
    filter: brightness(1.06);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  .lp-casino .lp-cside-provs {
    display: none !important;
    flex: 1 1 100% !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .lp-casino .lp-cside.is-provs-open .lp-cside-provs {
    display: flex !important;
  }
  .lp-casino .lp-cside-provs button {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    white-space: nowrap !important;
    height: 42px !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #1e293b !important;
    color: #e2e8f0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    gap: 8px;
    cursor: pointer;
    text-align: left !important;
  }
  .lp-casino .lp-cside-provs button.is-on {
    background: rgba(47, 137, 214, 0.28) !important;
    color: #fff !important;
  }
  .lp-casino .lp-cside-provs button em {
    background: rgba(148, 163, 184, 0.22) !important;
    color: #f8fafc !important;
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 99px;
    font-style: normal;
    font-weight: 800;
  }
  .lp-casino .lp-cside-provs .lp-pill {
    flex: 0 0 auto !important;
    margin: 4px 0 0 !important;
    width: 100% !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    white-space: nowrap;
    box-sizing: border-box !important;
  }
  .lp-casino .lp-cgrid,
  body.lp-body .lp-games,
  .lp-casino-grid,
  .lp-lobby-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .lp-casino .lp-gcard {
    border-radius: 14px !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28) !important;
  }
  /* Lobby row: flat oval chips, Lobby first on one line */
  .lp-casino .lp-pstrip,
  .lp-pstrip {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    background: #0f172a !important;
    border: 1px solid var(--lp-line, #243044) !important;
    box-shadow: none !important;
    padding: 8px !important;
    overflow: hidden;
  }
  .lp-casino .lp-lobby-btn,
  .lp-lobby-btn,
  .lp-casino .lp-provtile,
  .lp-provtile {
    background: #111827 !important;
    color: #e2e8f0 !important;
    border: 1px solid #334155 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    height: 40px !important;
  }
  .lp-casino .lp-lobby-btn svg,
  .lp-lobby-btn svg {
    stroke: #94a3b8 !important;
    color: #94a3b8 !important;
  }
  .lp-casino .lp-lobby-btn.is-on,
  .lp-lobby-btn.is-on,
  .lp-casino .lp-provtile.is-on,
  .lp-provtile.is-on {
    background: #0b1220 !important;
    border-color: var(--lp-blue, #2f89d6) !important;
    color: #f8fafc !important;
  }
  .lp-casino .lp-lobby-btn.is-on svg,
  .lp-lobby-btn.is-on svg {
    stroke: #94a3b8 !important;
  }
  .lp-casino .lp-provtile-name,
  .lp-provtile-name {
    color: #f8fafc !important;
  }
  .lp-casino .lp-catstrip {
    margin: 0 0 12px !important;
  }
  .lp-casino .lp-cattile,
  .lp-cattile,
  .lp-casino .lp-cat-next,
  .lp-cat-next {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: var(--lp-line, #243044) !important;
  }
  .lp-casino .lp-cattile .lp-catico,
  .lp-cattile .lp-catico {
    color: #cbd5e1 !important;
  }
  .lp-casino .lp-cattile.is-on,
  .lp-cattile.is-on {
    background: rgba(47, 137, 214, 0.22) !important;
    border-color: var(--lp-blue, #2f89d6) !important;
    color: #fff !important;
  }
  .lp-casino .lp-cattile.is-on .lp-catico,
  .lp-cattile.is-on .lp-catico {
    color: var(--lp-blue, #3b9aef) !important;
  }
  .lp-casino .lp-cbanners {
    margin-bottom: 10px !important;
  }
  .lp-casino .lp-jpboard {
    border-radius: 12px !important;
    margin: 4px 0 8px !important;
  }

  /* Sport / live betting — keep iframe usable above bottom nav */
  body.lp-sport .main-wrap-pro,
  body.lp-live .main-wrap-pro,
  body.lp-sport .content-pro,
  body.lp-live .content-pro {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.lp-sport iframe,
  body.lp-live iframe,
  body.lp-espor iframe {
    min-height: calc(100vh - 180px) !important;
  }

  /* Account / content pages */
  body.lp-account .lp-layout,
  body.lp-content .lp-layout {
    padding: 0 10px !important;
  }

  /*
   * Bonuslar (/content/promotions/) — root cause of mobile layout break:
   * vagon-theme-mavi.css sets .main-wrap-pro { min-width:1100px } and
   * .content-pro / .footer-pro { min-width:1260px }. That forces a desktop
   * canvas under the mobile shell (horizontal overflow / squashed chrome).
   */
  body.lp-content,
  body.lp-content .main-wrap-pro,
  body.lp-content .content-pro,
  body.lp-content .content-pro3,
  body.lp-content .content-row,
  body.lp-content #divOrta,
  body.lp-content .lp-content-orta,
  body.lp-content .footer-pro,
  body.lp-content .footer-pro1,
  body.lp-content .bottom-payment-row,
  body.lp-content .header-pro,
  body.lp-content .header-pro1,
  body.lp-content .header-pro-inside,
  body.lp-content .header-main-wrap {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body.lp-content {
    overflow-x: hidden !important;
  }
  body.lp-content .main-wrap-pro {
    overflow-x: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.lp-content .content-pro {
    padding: 12px 12px 28px !important;
  }

  /*
   * Bonuslar dark surfaces — shell/vagon still paint #f3f6fb / white filters
   * and card shells. Force Lofipay dark tokens on mobile only.
   */
  body.lp-content,
  body.lp-content .main-wrap-pro,
  body.lp-content .content-pro,
  body.lp-content .content-pro3,
  body.lp-content .content-row,
  body.lp-content #divOrta,
  body.lp-content .lp-content-orta {
    background: #080c16 !important;
    background-image: none !important;
    color: #e2e8f0 !important;
  }
  body.lp-content .lp-promos,
  body.lp-content .lp-promos-wide {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    background: transparent !important;
    color: #e2e8f0 !important;
  }
  body.lp-content .lp-promos-head h1,
  body.lp-content .lp-promos h1 {
    color: #f8fafc !important;
  }
  body.lp-content .lp-promo-filters {
    gap: 8px !important;
  }
  body.lp-content .lp-promo-filter {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
  }
  body.lp-content .lp-promo-filter:hover {
    border-color: #3b9aef !important;
    color: #fff !important;
  }
  body.lp-content .lp-promo-filter.is-on {
    background: linear-gradient(145deg, #3b9aef 0%, #2f89d6 55%, #1f6fb3 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
  }
  body.lp-content .lp-promo-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  body.lp-content .lp-promo-card {
    width: 100% !important;
    max-width: 100% !important;
    background: #0f172a !important;
    border: 1px solid #243044 !important;
  }
  body.lp-content .lp-promo-img {
    max-width: 100% !important;
  }
  body.lp-content .lp-promo-empty,
  body.lp-content .lp-promo-detail {
    background: #0f172a !important;
    border-color: #243044 !important;
    color: #e2e8f0 !important;
  }
  body.lp-content .lp-promo-empty {
    color: #94a3b8 !important;
  }
  body.lp-content .lp-promo-html {
    background: #0f172a !important;
    color: #cbd5e1 !important;
  }
  body.lp-content .lp-promo-html h1 {
    color: #f8fafc !important;
  }
  body.lp-content .lp-promo-html p {
    color: #cbd5e1 !important;
  }
  body.lp-content .lp-promo-chip {
    background: rgba(47, 137, 214, 0.22) !important;
    color: #bae6fd !important;
  }
  body.lp-content .lp-back {
    color: #3b9aef !important;
  }
  body.lp-content .footer-pro .container {
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
  }
  body.lp-content .footer-pro,
  body.lp-content .footer-pro1,
  body.lp-content .bottom-payment-row {
    background: #080c16 !important;
    background-image: none !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
    color: #94a3b8 !important;
  }
  body.lp-content .footer-pro .row,
  body.lp-content .footer-pro [class*="col-"] {
    display: block !important;
    width: 100% !important;
    float: none !important;
    min-width: 0 !important;
  }
  body.lp-content .footer-pro .title-text {
    color: #e2e8f0 !important;
  }
  body.lp-content .footer-pro .bottom-links a,
  body.lp-content .footer-pro a {
    color: #94a3b8 !important;
  }
  body.lp-content .footer-pro .lp-license {
    background: #0f172a !important;
    border-color: #243044 !important;
    color: #94a3b8 !important;
  }

  /* CMS content pages (Firma Bilgileri, Genel Kurallar, …) — dark cards */
  body.lp-content .lp-cms,
  body.lp-content .lp-cms-group,
  body.lp-content .lp-cms-main {
    background: #0f172a !important;
    border-color: #243044 !important;
    color: #e2e8f0 !important;
  }
  body.lp-content .lp-cms {
    background: transparent !important;
  }
  body.lp-content .lp-cms-group h4,
  body.lp-content .lp-cms-head {
    background: #111827 !important;
    border-color: #243044 !important;
    color: #94a3b8 !important;
  }
  body.lp-content .lp-cms-group a,
  body.lp-content .lp-cms-head h1,
  body.lp-content .lp-cms-body,
  body.lp-content .lp-cms-body p,
  body.lp-content .lp-cms-body li,
  body.lp-content .lp-cms-body span,
  body.lp-content .lp-cms-body div,
  body.lp-content .lp-cms-body h1,
  body.lp-content .lp-cms-body h2,
  body.lp-content .lp-cms-body h3,
  body.lp-content .lp-cms-body strong,
  body.lp-content .lp-cms-body b {
    color: #e2e8f0 !important;
    background: transparent !important;
  }
  body.lp-content .lp-cms-group a.is-on,
  body.lp-content .lp-cms-group a:hover {
    background: rgba(47, 137, 214, 0.18) !important;
    color: #93c5fd !important;
  }
  body.lp-content .lp-cms-body a {
    color: #60a5fa !important;
  }

  /* Bonus detail popup — scroll terms (shell previously set overflow:visible) */
  .lp-pm-overlay {
    align-items: flex-end !important;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom)) !important;
  }
  .lp-pm-dialog {
    width: 100% !important;
    max-height: min(88vh, 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: #07111f !important;
  }
  .lp-pm-mount,
  .lp-pm {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: min(88vh, 100%) !important;
  }
  .lp-pm-body {
    grid-template-columns: 1fr !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .lp-pm-side {
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .lp-pm-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain;
    padding-bottom: 16px !important;
  }
  .lp-pm-html p,
  .lp-pm-html ul,
  .lp-pm-html ol,
  .lp-pm-html div {
    color: #c7d4e3 !important;
  }

  /* Winner rail: snappier on mobile */
  body.lp-body .lp-winners-track {
    animation-duration: 48s !important;
  }
  body.lp-body .lp-winner {
    min-width: 200px;
  }

  /* Espor / placeholder pages */
  body.lp-espor .lp-espor-frame,
  .lp-placeholder-wrap {
    margin: 8px 10px 20px !important;
    border-radius: 16px !important;
    overflow: hidden;
  }

  /* Üye ol — hide register side banner (~360x580) on mobile only */
  .lp-reg-banner,
  .lp-reg-banner-link {
    display: none !important;
  }
  .lp-reg-shell {
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(0, 1fr) !important;
  }

  /*
   * Turnuvalar — dark title + notice card.
   * Inline page styles use --lp-ink / --lp-card light defaults (.lp-bos white,
   * h2 dark), which clash with the mobile dark shell.
   */
  body.lp-body .lp-wrap .lp-section > h2,
  body.lp-body .lp-wrap .lp-section > h2 span {
    color: #f8fafc !important;
  }
  body.lp-body .lp-bos {
    background: #0f172a !important;
    border: 1px solid #243044 !important;
    color: #cbd5e1 !important;
  }
  body.lp-body .lp-turnuva {
    background: #0f172a !important;
    border-color: #243044 !important;
    color: #e2e8f0 !important;
  }
  body.lp-body .lp-turnuva h3,
  body.lp-body .lp-turnuva .lp-odul {
    color: #f8fafc !important;
  }
  body.lp-body .lp-turnuva p,
  body.lp-body .lp-turnuva .lp-tarih {
    color: #94a3b8 !important;
  }
  body.lp-body .lp-rozet {
    background: rgba(47, 137, 214, 0.22) !important;
    color: #bae6fd !important;
  }
}

@media (min-width: 861px) {
  .lp-m-bar,
  .lp-m-cats,
  .lp-m-drawer,
  .lp-m-scrim,
  .lp-m-bottom,
  .lp-m-hub { display: none !important; }
}
