/* ===== BONUSA MOBILE FINAL V6 ===== */

/* üst banner genel */
.hero-gif-strip {
  margin: 8px 0 8px 0 !important;
}

.hero-banner-scroll {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-banner-scroll .banner-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(212,175,55,0.45);
  border-radius: 14px;
  overflow: hidden;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(212,175,55,0.08);
}

.hero-banner-scroll .banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* intro */
.section-intro {
  margin: 6px 0 10px 0 !important;
  text-align: center !important;
}

.section-intro h1 {
  margin: 0 0 8px 0 !important;
}

.section-intro p {
  margin: 0 !important;
}

/* üst nav içindeki filtre linklerini normal nav gibi göster */
.nav-top-filter {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  color: var(--text-secondary, #cfcfcf) !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.nav-top-filter.active {
  color: var(--gold, #d4af37) !important;
}

.nav-top-filter.active::after {
  content: "" !important;
  display: block !important;
  width: 100% !important;
  height: 3px !important;
  background: var(--gold, #d4af37) !important;
  border-radius: 999px !important;
  margin-top: 6px !important;
}

@media (max-width: 768px) {
  .nav {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "logo auth"
      "links links";
    align-items: center !important;
    gap: 8px 10px !important;
  }

  .logo {
    grid-area: logo !important;
    justify-self: start !important;
    font-size: 1.95rem !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  .nav-auth {
    grid-area: auth !important;
    justify-self: end !important;
    display: flex !important;
    gap: 8px !important;
    width: auto !important;
    margin: 0 !important;
  }

  .nav-auth .btn,
  .nav-auth a.btn,
  .nav-auth button.btn {
    width: auto !important;
    min-width: 92px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    font-size: 0.86rem !important;
    border-radius: 12px !important;
    justify-content: center !important;
  }

  .nav-links {
    grid-area: links !important;
    width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
    gap: 22px !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
  }

  .nav-links a {
    font-size: 0.98rem !important;
  }

  /* banner mobilde 2 kart görünür */
  .hero-gif-strip {
    margin: 6px 0 6px 0 !important;
  }

  .hero-banner-scroll {
    display: flex !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding-bottom: 2px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .hero-banner-scroll::-webkit-scrollbar {
    display: none;
  }

  .hero-banner-scroll .banner-card {
    flex: 0 0 calc(50% - 4px) !important;
    min-width: calc(50% - 4px) !important;
    max-width: calc(50% - 4px) !important;
    height: 68px !important;
    min-height: 68px !important;
    border-radius: 12px !important;
    scroll-snap-align: start;
  }

  /* başlık ve kartlar arası boşluk azalt */
  .section-intro {
    margin: 4px 0 8px 0 !important;
  }

  .section-intro h1,
  .hero-title,
  h1 {
    font-size: 2rem !important;
    line-height: 1.06 !important;
    margin-bottom: 8px !important;
    text-align: center !important;
  }

  .section-intro p,
  .section-subtitle,
  .hero-subtitle,
  .subtitle,
  p.lead {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    text-align: center !important;
    margin: 0 !important;
  }

  /* sponsor grid üst boşluğu azalt */
  #sponsors-grid,
  .sponsors-grid,
  .sponsor-grid,
  .grid-sponsors {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 8px !important;
  }

  .sponsor-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    min-height: auto !important;
    padding: 9px !important;
    gap: 7px !important;
    border-radius: 14px !important;
    position: relative !important;
  }

  /* mobilde boş logo alanı görünmesin */
  .sponsor-logo {
    display: none !important;
  }

  .sponsor-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    min-width: 0 !important;
  }

  .bonus-badge {
    min-height: 40px !important;
    padding: 7px !important;
    font-size: 0.74rem !important;
    line-height: 1.12 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .promo-code {
    padding: 7px !important;
    gap: 4px !important;
    border-radius: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .promo-code span {
    font-size: 0.68rem !important;
    line-height: 1 !important;
  }

  .promo-code code {
    font-size: 0.78rem !important;
    line-height: 1.05 !important;
    text-align: center !important;
    word-break: break-word !important;
  }

  .copy-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    border-radius: 7px !important;
    padding: 0 !important;
  }

  .copy-btn i {
    font-size: 0.70rem !important;
  }

  .sponsor-actions .btn,
  .sponsor-actions a.btn {
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 8px !important;
    font-size: 0.76rem !important;
    border-radius: 10px !important;
  }

  .sponsor-actions .btn i,
  .sponsor-actions a.btn i {
    font-size: 0.74rem !important;
    margin-right: 4px !important;
  }

  .vip-badge,
  .sponsor-card .vip,
  .sponsor-card .badge-vip {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    min-width: 44px !important;
    height: 22px !important;
    padding: 0 7px !important;
    font-size: 0.66rem !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 429px) {
  .logo {
    font-size: 1.75rem !important;
  }

  .nav-auth .btn,
  .nav-auth a.btn,
  .nav-auth button.btn {
    min-width: 84px !important;
    height: 36px !important;
    min-height: 36px !important;
    font-size: 0.82rem !important;
    padding: 0 10px !important;
  }

  .nav-links {
    gap: 18px !important;
  }

  .section-intro h1,
  .hero-title,
  h1 {
    font-size: 1.9rem !important;
  }

  .hero-banner-scroll .banner-card {
    flex: 0 0 calc(50% - 4px) !important;
    min-width: calc(50% - 4px) !important;
    max-width: calc(50% - 4px) !important;
    height: 62px !important;
    min-height: 62px !important;
  }

  .sponsor-card {
    padding: 8px !important;
    gap: 6px !important;
  }

  .bonus-badge {
    min-height: 36px !important;
    font-size: 0.70rem !important;
    padding: 6px !important;
  }

  .promo-code {
    padding: 6px !important;
  }

  .promo-code span {
    font-size: 0.64rem !important;
  }

  .promo-code code {
    font-size: 0.74rem !important;
  }

  .sponsor-actions .btn,
  .sponsor-actions a.btn {
    height: 32px !important;
    min-height: 32px !important;
    font-size: 0.74rem !important;
  }
}

/* ===== PROFILE AVATAR + MOBILE FIX ===== */

.avatar-manager {
  margin: 0 0 18px 0 !important;
  padding: 14px !important;
  border: 1px solid rgba(212,175,55,0.35) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.02) !important;
}

.avatar-manager-row {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.avatar-preview {
  width: 84px !important;
  height: 84px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid rgba(212,175,55,0.5) !important;
  background: #111 !important;
}

.uploaded-avatar-img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}

.avatar-actions {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.avatar-note {
  margin: 10px 0 0 0 !important;
  font-size: 0.86rem !important;
  opacity: 0.8 !important;
}

@media (max-width: 768px) {
  .profile-card,
  .profile-container,
  .invite-card,
  .referral-card,
  .stats-card {
    overflow: hidden !important;
  }

  .avatar-manager {
    margin: 0 0 14px 0 !important;
    padding: 12px !important;
    border-radius: 14px !important;
  }

  .avatar-manager-row {
    align-items: flex-start !important;
  }

  .avatar-preview {
    width: 72px !important;
    height: 72px !important;
  }

  .avatar-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .avatar-actions .btn {
    width: 100% !important;
    min-height: 40px !important;
    height: 40px !important;
    justify-content: center !important;
  }

  .stats-grid,
  .profile-stats,
  .referral-stats,
  .invite-stats,
  .summary-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .invite-actions,
  .code-actions,
  .referral-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

@media (max-width: 429px) {
  .avatar-actions {
    grid-template-columns: 1fr !important;
  }

  .stats-grid,
  .profile-stats,
  .referral-stats,
  .invite-stats,
  .summary-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== PROFILE MOBILE FIX V8 ===== */

body.profile-page .avatar-manager,
body.profile-page .profile-card,
body.profile-page .profile-container,
body.profile-page .invite-card,
body.profile-page .referral-card,
body.profile-page .stats-card,
body.profile-page .summary-card {
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.profile-page #bonussa-avatar-manager {
  margin: 0 0 16px 0 !important;
  padding: 12px !important;
  border: 1px solid rgba(212,175,55,0.28) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.02) !important;
}

body.profile-page .avatar-manager-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

body.profile-page #bonussa-avatar-preview.avatar-preview,
body.profile-page .avatar-preview {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  min-height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  flex: 0 0 72px !important;
  background: #111 !important;
  border: 2px solid rgba(212,175,55,0.45) !important;
}

body.profile-page .avatar-actions {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

body.profile-page .avatar-actions .btn,
body.profile-page .avatar-actions .avatar-upload-btn {
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

body.profile-page .avatar-note {
  margin: 8px 0 0 0 !important;
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
  opacity: 0.9 !important;
}

body.profile-page .profile-header,
body.profile-page .user-header,
body.profile-page .account-header {
  display: grid !important;
  grid-template-columns: 72px 1fr !important;
  gap: 12px !important;
  align-items: center !important;
}

body.profile-page .profile-avatar,
body.profile-page .user-avatar {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  min-height: 72px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

body.profile-page .profile-avatar img,
body.profile-page .user-avatar img,
body.profile-page .uploaded-avatar-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

body.profile-page .invite-actions,
body.profile-page .code-actions,
body.profile-page .referral-actions {
  display: grid !important;
  grid-template-columns: 96px 1fr !important;
  gap: 10px !important;
  align-items: center !important;
}

body.profile-page .stats-grid,
body.profile-page .profile-stats,
body.profile-page .referral-stats,
body.profile-page .invite-stats,
body.profile-page .summary-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

@media (max-width: 768px) {
  body.profile-page .profile-card,
  body.profile-page .profile-container,
  body.profile-page .invite-card,
  body.profile-page .referral-card,
  body.profile-page .stats-card,
  body.profile-page .summary-card {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 16px !important;
  }

  body.profile-page #bonussa-avatar-manager {
    padding: 12px !important;
    margin-bottom: 14px !important;
  }

  body.profile-page .avatar-manager-row {
    align-items: flex-start !important;
  }

  body.profile-page .avatar-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body.profile-page .avatar-actions .btn,
  body.profile-page .avatar-actions .avatar-upload-btn {
    width: 100% !important;
  }

  body.profile-page .invite-actions,
  body.profile-page .code-actions,
  body.profile-page .referral-actions {
    grid-template-columns: 88px 1fr !important;
  }

  body.profile-page .stats-grid,
  body.profile-page .profile-stats,
  body.profile-page .referral-stats,
  body.profile-page .invite-stats,
  body.profile-page .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 429px) {
  body.profile-page .profile-card,
  body.profile-page .profile-container,
  body.profile-page .invite-card,
  body.profile-page .referral-card,
  body.profile-page .stats-card,
  body.profile-page .summary-card {
    padding: 14px !important;
  }

  body.profile-page .profile-header,
  body.profile-page .user-header,
  body.profile-page .account-header {
    grid-template-columns: 60px 1fr !important;
    gap: 10px !important;
  }

  body.profile-page #bonussa-avatar-preview.avatar-preview,
  body.profile-page .avatar-preview,
  body.profile-page .profile-avatar,
  body.profile-page .user-avatar {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    flex-basis: 60px !important;
  }

  body.profile-page .avatar-actions {
    grid-template-columns: 1fr !important;
  }

  body.profile-page .invite-actions,
  body.profile-page .code-actions,
  body.profile-page .referral-actions {
    grid-template-columns: 1fr !important;
  }

  body.profile-page .stats-grid,
  body.profile-page .profile-stats,
  body.profile-page .referral-stats,
  body.profile-page .invite-stats,
  body.profile-page .summary-grid {
    grid-template-columns: 1fr !important;
  }
}

/* logged-in durumda Profil kalkınca menü daha derli toplu dursun */
@media (max-width: 768px) {
  .nav-links {
    row-gap: 10px !important;
  }

  .nav-links li[style*="display: none"] {
    display: none !important;
  }
}
