/* ================================================================
   Home topbar + hero (hesap.com.tr style)
================================================================ */

:root {
  --home-topbar-h: 108px;
  --home-topbar-h-auth: 112px;
  --hero-promo-h: 52px;
  --hero-stage-ratio: 16 / 9;
  --hero-radius: 14px;
  --hero-accent: #ff6b00;
  --hero-accent-soft: rgba(255, 107, 0, 0.18);
}

/* ── Mobile topbar ───────────────────────────────────────────── */
.home-topbar-mobile {
  display: none;
}

@media (max-width: 768px) {
  .home-topbar-mobile {
    display: block;
    position: relative;
    width: 100%;
    padding: 8px 10px 10px;
    background: var(--page-bg, #0b0b0f);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .home-topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
  }

  .home-topbar-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .home-topbar-logo img {
    height: 34px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
  }

  .home-topbar-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
  }

  .home-topbar-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--hero-accent);
    color: #111;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
  }

  .home-topbar-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 36px;
  }

  .home-topbar-user-row--guest {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .home-topbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    min-height: 24px;
    box-sizing: border-box;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .home-topbar-link-login {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
  }

  .home-topbar-link-login:hover,
  .home-topbar-link-login:focus-visible {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
  }

  .home-topbar-link-reg {
    border: 1px solid rgba(255, 107, 0, 0.45);
    background: rgba(255, 107, 0, 0.12);
    color: var(--hero-accent, #ff6b00);
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
  }

  .home-topbar-link-reg:hover,
  .home-topbar-link-reg:focus-visible {
    border-color: rgba(255, 107, 0, 0.65);
    background: rgba(255, 107, 0, 0.2);
    color: #ff9a3d;
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.18);
    outline: none;
  }

  .home-topbar-user-row--auth {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .htb-auth-start {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
  }

  .htb-auth-end {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .htb-deposit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 0, 0.35);
    background: rgba(255, 107, 0, 0.1);
    color: var(--hero-accent, #ff6b00);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .htb-listing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 30px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 0, 0.45);
    background: rgba(255, 107, 0, 0.12);
    color: #ffb347;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .htb-listing i {
    font-size: 10px;
  }

  .htb-tool {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
  }

  .htb-tool-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
  }

  .htb-tool-badge-msg {
    background: var(--hero-accent, #ff6b00);
    color: #111;
  }

  .htb-account-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    max-width: 118px;
    padding: 2px 8px 2px 2px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    flex-shrink: 0;
    min-width: 0;
  }

  .htb-account-chip img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 107, 0, 0.4);
  }

  .htb-balance {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
  }

  body.has-mobile-topbar.is-auth-topbar {
    --home-topbar-h: var(--home-topbar-h-auth);
  }

  body.has-mobile-topbar .site-header {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    min-height: var(--home-topbar-h);
    padding: 0;
    background: var(--page-bg, #0b0b0f) !important;
    border-bottom: none !important;
    z-index: 500;
  }

  body.has-mobile-topbar.site-panel-open .site-header {
    z-index: 400;
  }

  body.has-mobile-topbar .logo-simple {
    display: none !important;
  }

  body.has-mobile-topbar main {
    padding-bottom: calc(var(--nav-pill-h, 56px) + var(--nav-bottom, 16px) + 16px) !important;
  }
}

/* ── Hero section — resim üstü resim (hesap.com.tr) ───────────── */
.hero {
  position: relative;
  margin: 0 0 14px;
  padding: 6px 0 10px;
}

.hero .container-xxl {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 12px;
  z-index: 1;
}

.hero .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.hero .col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0;
}

.hero .d-block { display: block !important; }
.hero .d-none { display: none !important; }

@media (min-width: 768px) {
  .hero .d-md-none { display: none !important; }
  .hero .d-md-block { display: block !important; }
  .hero .container-xxl { padding: 0 16px; }
}

@media (max-width: 767.98px) {
  .hero .d-md-block { display: none !important; }
}

/* Wrapper — blur tam genişlik, kart banner-strip ile hizalı */
.hero-slider-wrapper {
  --hero-container-pad: 12px;
  --hero-blur-zone: 260px;
  --hero-slide-h: 300px;
  --hero-thumb-h: 54px;
  --hero-card-inset-x: 12px;
  position: relative;
  width: calc(100% + (var(--hero-container-pad) * 2));
  max-width: none;
  margin-left: calc(var(--hero-container-pad) * -1);
  margin-right: calc(var(--hero-container-pad) * -1);
  height: calc(var(--hero-blur-zone) + (var(--hero-slide-h) / 2));
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 768px) {
  .hero-slider-wrapper {
    --hero-container-pad: 16px;
    --hero-blur-zone: 290px;
    --hero-slide-h: 380px;
    --hero-thumb-h: 62px;
    --hero-card-inset-x: 16px;
  }
}

@media (min-width: 1200px) {
  .hero-slider-wrapper {
    --hero-blur-zone: 330px;
    --hero-slide-h: 440px;
    --hero-thumb-h: 72px;
    --hero-card-inset-x: 16px;
  }
}

/* Arka blur — alt %50 kesik, sağ/sol tam kaplı */
.hero-bg-stack {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hero-blur-zone);
  z-index: 0;
  overflow: hidden;
  border-radius: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}

.hero-bg-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.08) 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
}

.hero-bg-slide {
  position: absolute;
  inset: -15% -5%;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: blur(20px) saturate(1.12) brightness(0.55);
  transform: scale(1.12);
}

.hero-bg-stack.no-blur-mode .hero-bg-slide {
  inset: 0;
}

.hero-bg-stack.no-blur-mode .hero-bg-slide img {
  filter: brightness(0.92) saturate(1.08);
  transform: none;
  object-position: top center;
}

/* Ön kart — %50 blur içinde / %50 dışında, banner ile aynı genişlik */
.hero-card {
  position: absolute;
  left: var(--hero-card-inset-x);
  right: var(--hero-card-inset-x);
  top: calc(var(--hero-blur-zone) - (var(--hero-slide-h) / 2));
  width: auto;
  height: var(--hero-slide-h);
  z-index: 2;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.48),
    0 18px 48px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #0a0a12;
}

.hero-thumb-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: var(--hero-thumb-h);
  pointer-events: none;
  overflow: hidden;
  background: #050508;
  --hero-thumb-bg-url: none;
  transition: opacity 0.45s ease;
}

.hero-thumb-bg::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  z-index: 0;
  background-image: var(--hero-thumb-bg-url);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  filter: blur(20px) saturate(1.12) brightness(0.55);
  transform: scale(1.12);
  transition: filter 0.45s ease, transform 0.45s ease, opacity 0.45s ease;
}

.hero-thumb-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.72) 52%,
    rgba(0, 0, 0, 0.92) 100%
  );
  backdrop-filter: blur(10px) saturate(0.8) brightness(0.4);
  -webkit-backdrop-filter: blur(10px) saturate(0.8) brightness(0.4);
}

.main-slider {
  width: 100%;
  height: 100%;
  background: #0d0d18;
  position: relative;
  z-index: 2;
}

.main-slider .swiper-slide {
  height: auto;
}

.main-slider .slide-link {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.main-slider .slide-media {
  position: relative;
  width: 100%;
}

.main-slider .slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.42) 34%,
    rgba(0, 0, 0, 0.08) 62%,
    transparent 100%
  );
}

.main-slider .slide-img {
  display: block;
  width: 100%;
  height: var(--hero-slide-h);
  object-fit: cover;
}

.main-slider .slide-img--empty {
  height: var(--hero-slide-h);
  background: linear-gradient(135deg, #060610, #160828);
}

@media (max-width: 767.98px) {
  .hero-slider-wrapper .main-slider .slide-media {
    height: calc(var(--hero-slide-h) - var(--hero-thumb-h));
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a12;
    overflow: hidden;
  }

  .hero-slider-wrapper .main-slider .slide-media::after {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.38) 38%,
      rgba(0, 0, 0, 0.06) 68%,
      transparent 100%
    );
  }

  .hero-slider-wrapper .main-slider .slide-img,
  .hero-slider-wrapper .main-slider .slide-img--empty {
    height: 100%;
    width: 100%;
    max-height: calc(var(--hero-slide-h) - var(--hero-thumb-h));
    object-fit: var(--hero-slide-fit, contain);
    object-position: var(--hero-slide-pos, center center) !important;
  }
}

/* Left caption overlay — hesap.com.tr */
.slide-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  padding: 0 0 var(--hero-thumb-h);
}

.slide-caption-anchor {
  position: absolute;
  display: flex;
  align-items: stretch;
  max-width: min(92%, 520px);
  transform: translate(0, -50%);
}

.slide-caption-accent {
  flex: 0 0 5px;
  width: 5px;
  margin: 14px 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #ffd54a 0%, #e8a020 55%, #c77800 100%);
  box-shadow: 0 0 14px rgba(232, 160, 32, 0.45);
}

.slide-caption-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 4px;
  max-width: min(92%, 520px);
  padding: 16px 12px 18px 10px;
}

.slide-game-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  padding: 5px 12px;
  border: 1.5px solid rgba(232, 160, 32, 0.85);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.slide-headline {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.65);
}

.slide-cta {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .main-slider .slide-img,
  .main-slider .slide-img--empty {
    height: var(--hero-slide-h);
  }

  .slide-caption {
    padding-bottom: var(--hero-thumb-h);
  }

  .slide-caption-accent {
    flex-basis: 6px;
    width: 6px;
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .slide-caption-body {
    gap: 6px;
    padding: 22px 18px 24px 14px;
  }

  .slide-game-pill {
    font-size: 11px;
    padding: 6px 14px;
  }

  .slide-headline {
    font-size: 26px;
  }

  .slide-cta {
    font-size: 10px;
    margin-top: 3px;
  }
}

@media (min-width: 1200px) {
  .main-slider .slide-img,
  .main-slider .slide-img--empty {
    height: var(--hero-slide-h);
  }

  .slide-caption {
    padding-bottom: var(--hero-thumb-h);
  }

  .slide-cta {
    font-size: 11px;
  }
}

/* Bottom game logo tabs — blurred dark, hero üst efektine uyumlu */
.slider-thumbs-wrapper {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: stretch;
  height: var(--hero-thumb-h);
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-radius: 0 0 14px 14px;
}

.slider-thumbs-wrapper::-webkit-scrollbar {
  display: none;
}

.hero-tumb {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: var(--hero-thumb-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.2s ease;
}

.hero-tumb:last-child {
  border-right: 0;
}

.hero-tumb > .hero-tumb-logo,
.hero-tumb > .hero-tumb-label {
  position: relative;
  z-index: 1;
}

.hero-tumb.active {
  box-shadow: inset 0 3px 0 #e8a020;
}

.hero-tumb:focus-visible {
  outline: 2px solid rgba(232, 160, 32, 0.55);
  outline-offset: -2px;
}

.hero-tumb-logo {
  display: block;
  max-width: 100%;
  max-height: 26px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0.72);
  opacity: 0.55;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.hero-tumb.active .hero-tumb-logo {
  filter: none;
  opacity: 1;
}

.hero-tumb-label {
  display: block;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

.hero-tumb.active .hero-tumb-label {
  color: #ffd54a;
}

@media (min-width: 768px) {
  .hero-tumb-logo {
    max-height: 32px;
  }

  .hero-tumb-label {
    font-size: 9px;
  }
}

@media (min-width: 992px) {
  .hero-tumb-logo {
    max-height: 38px;
  }
}

@media (max-width: 767.98px) {
  .slider-thumbs-wrapper:has(.hero-tumb:nth-child(5)) {
    overflow-x: auto;
  }

  .slider-thumbs-wrapper:has(.hero-tumb:nth-child(5)) .hero-tumb {
    flex: 0 0 75px;
    min-width: 75px;
  }
}

/* Banner strip — kategori kartları (logo + başlık + alt yazı) */
.banner-strip-wrap {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 14px;
}

.banner-strip-wrap.has-bs-bg {
  padding: 10px 8px;
}

.bs-bg-blur {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(28px) saturate(1.12);
  transform: scale(1.08);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.bs-bg-blur.no-blur-mode {
  filter: none;
  transform: none;
  opacity: 0.88;
  inset: 0;
}

.banner-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  position: relative;
  z-index: 2;
}

.banner-item {
  position: relative;
  display: block;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(145deg, #161622 0%, #0e0e16 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.banner-item:hover {
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

.banner-item-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.22) 100%
  );
  pointer-events: none;
}

.banner-item-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 0 16px;
}

.banner-item-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.banner-item-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.banner-item-title {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-item-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 992px) {
  .banner-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .banner-item {
    border-radius: 14px;
  }
}
