@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700&family=Saira:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #0a0a0a;
  color: #ffffff;
  font-family: "Saira", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Arka plan sadece ana sayfa (index.php) */
body.site-front {
  background: #0a0a0a url('arkaplan.png') center center no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

body.site-front::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 767px) {
  body.site-front {
    background-attachment: scroll;
  }
  body.site-front::before {
    background: rgba(10, 10, 10, 0.9);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.page-root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  color: #ffffff;
}

.navbar {
  height: 56px;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0 0.75rem;
  position: sticky;
  top: 0;
  /* Yan bannerlar .side-banner z-index:90 — üst çubuğun ve menü düğmesinin üstte kalması için */
  z-index: 110;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
  cursor: pointer;
}

.logo-text {
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.04em;
  font-size: 1.1rem;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1px;
}

.navbar-actions::-webkit-scrollbar {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.mobile-drawer-no-scroll {
  overflow: hidden;
}

#top,
#section-sponsors,
#section-shortcuts,
#faq-block {
  scroll-margin-top: 72px;
}

@media (max-width: 767px) {
  #top,
  #section-sponsors,
  #section-shortcuts,
  #faq-block {
    scroll-margin-top: 128px;
  }
}

.mobile-drawer-nav {
  flex: 1;
}

.mobile-nav-toggle {
  display: inline-flex !important;
  flex-direction: column;
  flex-shrink: 0;
  flex-grow: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.55rem;
  background: rgba(8, 15, 28, 0.82);
  color: #f8fafc;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 4px 14px rgba(0, 0, 0, 0.35);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-nav-toggle--svg {
  gap: 0;
}

.mobile-nav-toggle-svg {
  display: block;
  flex-shrink: 0;
}

.mobile-nav-toggle:hover {
  border-color: rgba(253, 186, 116, 0.45);
  background: rgba(30, 41, 59, 0.92);
  color: #fff;
}

.navbar .mobile-nav-toggle {
  position: relative;
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(7, 12, 22, 0.72);
}

/* Ana sayfa değilse yüzen menü her zaman görünür (masaüstü dahil) */
body:not(.site-front) .site-global-menu-toggle {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Masaüstü: menü düğmesi navbar ile orantılı, klavye odaklı ve site vurgusu */
@media (min-width: 768px) {
  .navbar-mobile-auth {
    display: none !important;
  }

  /* Ortada ardışık: menü | logo; yanlarda boşluk dengesi; sağda aksiyonlar */
  .navbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0.35rem;
    padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .navbar > .mobile-nav-toggle {
    grid-column: 2;
    justify-self: end;
  }

  .navbar > .navbar-left.navbar-brand-center {
    grid-column: 3;
    justify-self: start;
    min-width: 0;
    max-width: min(42vw, 280px);
  }

  .navbar-actions.navbar-desktop-only {
    display: flex !important;
    grid-column: 4;
    justify-self: end;
    align-self: center;
    min-width: 0;
    /* Sağ kenara yapışmasın — gruptu biraz sola */
    margin-inline-end: clamp(1rem, 4vw, 3rem);
  }

  /* Bazı tarayıcı / tema kombinasyonlarında ikon kaybolmasın */
  .navbar .mobile-nav-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    overflow: visible !important;
    clip-path: none !important;
    align-self: center;
    border-radius: 0.62rem;
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.85) 100%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.07) inset,
      0 2px 10px rgba(0, 0, 0, 0.28);
    transition:
      border-color 0.18s ease,
      background 0.18s ease,
      box-shadow 0.18s ease,
      color 0.18s ease,
      transform 0.12s ease;
  }

  .navbar .mobile-nav-toggle:hover {
    border-color: color-mix(in srgb, var(--nav-accent, #f97316) 55%, rgba(255, 255, 255, 0.25));
    background: linear-gradient(180deg, rgba(51, 65, 85, 0.75) 0%, rgba(30, 41, 59, 0.92) 100%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.09) inset,
      0 0 0 1px color-mix(in srgb, var(--nav-accent, #f97316) 28%, transparent),
      0 4px 18px rgba(0, 0, 0, 0.35);
  }

  .navbar .mobile-nav-toggle:active {
    transform: scale(0.96);
  }

  .navbar .mobile-nav-toggle-svg {
    width: 24px;
    height: 24px;
  }

  .navbar .mobile-nav-toggle-svg line {
    stroke-width: 2px;
  }

  .site-global-menu-toggle {
    width: 46px;
    height: 46px;
    left: max(18px, env(safe-area-inset-left, 0px));
    top: max(18px, env(safe-area-inset-top, 0px));
    border-radius: 0.65rem;
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.88) 0%, rgba(15, 23, 42, 0.96) 100%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.08) inset,
      0 8px 28px rgba(0, 0, 0, 0.45);
    transition:
      border-color 0.18s ease,
      background 0.18s ease,
      box-shadow 0.18s ease,
      transform 0.12s ease;
  }

  .site-global-menu-toggle:hover {
    border-color: rgba(253, 186, 116, 0.5);
    transform: translateY(-1px);
  }

  .site-global-menu-toggle:active {
    transform: translateY(0) scale(0.97);
  }

  .site-global-menu-toggle .mobile-nav-toggle-svg {
    width: 24px;
    height: 24px;
  }

  .site-global-menu-toggle .mobile-nav-toggle-svg line {
    stroke-width: 2px;
  }
}

.mobile-nav-toggle:focus {
  outline: none;
}

.mobile-nav-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--nav-accent, #f97316) 85%, white);
  outline-offset: 3px;
}

.site-front .navbar .mobile-nav-toggle:focus-visible {
  outline-color: color-mix(in srgb, var(--nav-accent, #f97316) 85%, white);
}

.site-global-menu-toggle {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  top: max(12px, env(safe-area-inset-top, 0px));
  z-index: 9998;
}

body.site-front .site-global-menu-toggle {
  display: none !important;
}

.mobile-nav-toggle-bar {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 3px;
  border-radius: 1px;
  background: currentColor;
}

.navbar-mobile-auth {
  display: none;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-mobile-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.btn-mobile-auth-outline {
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.5);
}

.btn-mobile-auth-solid {
  border: 1px solid #ef4444;
  background: #ef4444;
  color: #fff;
}

.mobile-subbar {
  display: none;
}

.mobile-subbar-telegram {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ef4444;
}

.mobile-subbar-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.mobile-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(20rem, 88vw);
  z-index: 220;
  background: linear-gradient(180deg, #0b1624 0%, #070d14 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(-102%);
  transition: transform 0.22s ease;
  box-shadow: 8px 0 36px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.mobile-drawer.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-drawer-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow-y: auto;
  padding: 0.85rem 0.9rem 1.1rem;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer-close {
  position: absolute;
  top: 0.5rem;
  right: 0.45rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-drawer-brand {
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
  padding-right: 2.25rem;
  color: #f8fafc;
}

.mobile-drawer-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.mobile-drawer-auth-btn {
  text-align: center;
  padding: 0.48rem 0.35rem;
  border-radius: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mobile-drawer-auth-btn-primary {
  background: #ef4444;
  color: #fff;
  border: 1px solid #ef4444;
}

.mobile-drawer-auth-btn-muted {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.35);
}

.mobile-drawer-section-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.85);
  margin: 0.85rem 0 0.35rem;
}

.mobile-drawer-section-label:first-of-type {
  margin-top: 0.25rem;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.46rem 0.42rem;
  border-radius: 0.45rem;
  color: rgba(248, 250, 252, 0.93);
  font-size: 0.82rem;
  font-weight: 600;
}

.mobile-drawer-link:active {
  background: rgba(239, 68, 68, 0.12);
}

.mobile-drawer-link-icon {
  width: 26px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(248, 250, 252, 0.88);
}

.mobile-drawer-link-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.mobile-drawer-telegram-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0.2rem 0 0.35rem;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(239, 68, 68, 0.6);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.35), rgba(239, 68, 68, 0.12));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-tap-highlight-color: rgba(239, 68, 68, 0.35);
  touch-action: manipulation;
  transition:
    transform 0.1s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.mobile-drawer-telegram-btn:hover {
  border-color: #f87171;
  color: #fff;
}

.mobile-drawer-telegram-btn:active {
  transform: scale(0.98);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 1.35rem;
  text-align: center;
}

.mobile-drawer-footer-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  min-height: 42px;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.08s ease;
  -webkit-tap-highlight-color: rgba(239, 68, 68, 0.3);
  touch-action: manipulation;
}

.mobile-drawer-footer-tg:hover {
  background: rgba(239, 68, 68, 0.32);
  color: #fff;
}

.mobile-drawer-footer-tg:active {
  transform: scale(0.97);
}

.mobile-drawer-copy {
  margin-top: 0.55rem;
  font-size: 0.62rem;
  color: rgba(148, 163, 184, 0.72);
}

/* Navbar butonu (örnek button.primary/secondary tasarımına benzer) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: #020617;
  color: #f9fafb;
  cursor: pointer;
  appearance: none;
  white-space: nowrap;
  flex: 0 0 auto;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.08s ease;
}

.button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.button.secondary {
  border: 1px solid #ef4444; /* belirgin kırmızı çerçeve */
}

.button.primary {
  background: #ef4444;
  border-color: #f97316;
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.45);
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary:hover {
  background: #dc2626;
}

@media (max-width: 767px) {
  /* Doğrudan 3 çocuk: menü | logo | giriş-kayıt — ek wrapper yok */
  .navbar-mobile-auth {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    min-width: 0;
  }

  .navbar-desktop-only {
    display: none !important;
  }

  .navbar {
    height: 54px;
    min-height: 54px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-auto-flow: row;
    align-items: center;
    column-gap: 0.35rem;
    row-gap: 0;
    padding-left: 0.35rem;
    padding-right: 0.45rem;
    box-sizing: border-box;
  }

  .navbar > .mobile-nav-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
  }

  .navbar > .navbar-left.navbar-brand-center {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    justify-self: center;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .navbar-left.navbar-brand-center .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  .navbar-mobile-auth .btn-mobile-auth {
    padding: 0.26rem 0.46rem;
    font-size: 0.58rem;
    min-height: 30px;
  }

  .navbar-left img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .logo-text {
    font-size: 0.88rem;
    letter-spacing: -0.03em;
  }

  .mobile-subbar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.65rem 0.55rem;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 54px;
    z-index: 45;
  }

  .button {
    height: 34px;
    padding: 0.3rem 0.72rem;
    font-size: 0.64rem;
    min-width: 76px;
    border-radius: 999px;
    letter-spacing: 0.03em;
  }

  .button svg {
    width: 13px;
    height: 13px;
  }
}

.nav-pill:hover {
  border-color: #ef4444;
  box-shadow:
    0 0 18px rgba(0, 0, 0, 0.6),
    0 0 22px #ef4444;
  transform: translateY(-1px) scale(1.02);
}

.btn {
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-outline {
  background: #1a1a1a;
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-red {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(220, 38, 38, 0.4);
}

.btn-red:hover {
  background: #b91c1c;
}

.btn:active {
  transform: scale(0.97);
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.65rem 1rem 2rem;
}

@media (max-width: 767px) {
  .container {
    padding: 0.55rem 0.55rem 1.75rem;
  }
}

.banner-main {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 0;
}

.banner-main > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.banner-rotator {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  width: 100%;
  overflow: hidden;
}

.banner-slide {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  overflow: hidden;
}

.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.banner-rotator .banner-slide a,
.banner-rotator .banner-slide picture {
  display: block;
  width: 100%;
  line-height: 0;
}

.banner-img,
.banner-img-desktop,
.banner-img-mobile {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .banner-img-desktop {
    display: none;
  }
  .banner-img-mobile {
    display: block;
  }
}

@media (min-width: 768px) {
  .banner-img-mobile {
    display: none;
  }
}

/* Mobil hedef üst sınır: 475x75 (görsel oranı korunur, gerilmez) */
@media (max-width: 767px) {
  .banner-main {
    max-width: min(475px, 100%);
  }
}

/* Bilgisayar hedef üst sınır: 1400x200 (görsel oranı korunur, gerilmez) */
@media (min-width: 768px) {
  .banner-main {
    max-width: min(1400px, 100%);
  }
}

.top-logos {
  margin-top: 0.5rem;
  background: #0a0a0a;
  border-radius: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.top-logos-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  min-width: max-content;
  animation: marquee 20s linear infinite;
}

.top-logo-item {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.top-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.top-logo-img {
  height: 1.75rem;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

@media (min-width: 768px) {
  .top-logo-img {
    height: 2.25rem;
  }
}

.top-logo-img:hover {
  opacity: 1;
}

.top-logos-fade-left,
.top-logos-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3rem;
  z-index: 10;
}

.top-logos-fade-left {
  left: 0;
  background: linear-gradient(to right, #0a0a0a, transparent);
}

.top-logos-fade-right {
  right: 0;
  background: linear-gradient(to left, #0a0a0a, transparent);
}

@keyframes marquee {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}

.search-wrapper {
  position: relative;
  margin-top: 1rem;
}

.search-input {
  width: 100%;
  background: #1a1a1a;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.9rem;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.search-input:focus {
  border-color: rgba(255, 255, 255, 0.15);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

.sponsor-category-block {
  margin-top: 0.55rem;
  text-align: center;
}

.sponsor-category-block:first-of-type {
  margin-top: 0.35rem;
}

.sponsor-category-title {
  position: relative;
  display: inline-block;
  text-align: center;
  font-family: "Outfit", "Saira", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  padding: 0.28rem 0.85rem;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.25)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: filter 0.35s ease, letter-spacing 0.35s ease, transform 0.35s ease;
}

.sponsor-category-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
  transform: translateX(-50%);
  transition: width 0.4s ease;
  border-radius: 2px;
}

.sponsor-category-title:hover {
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.45)) drop-shadow(0 0 40px rgba(245, 158, 11, 0.2)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  letter-spacing: 0.12em;
  transform: scale(1.02);
}

.sponsor-category-title:hover::after {
  width: 80%;
}

/* Gradient desteklemeyen tarayıcılar için */
@supports not (background-clip: text) {
  .sponsor-category-title {
    -webkit-text-fill-color: inherit;
    background: none;
    color: #f59e0b;
  }
}

@media (max-width: 640px) {
  .sponsor-category-title {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
  }
  .grid-sponsors {
    max-width: 100%;
    gap: 0.2rem;
  }
}

.grid-sponsors {
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 680px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.2rem;
}

@media (min-width: 769px) {
  .grid-sponsors {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: min(1180px, 100%);
    gap: 0.18rem;
  }
}

@media (min-width: 1400px) {
  .grid-sponsors {
    max-width: min(1280px, 100%);
  }
}

.card-sponsor {
  background: radial-gradient(120% 80% at 50% 0%, rgba(30, 41, 59, 0.35) 0%, #0c0f14 55%);
  border-radius: 0.45rem;
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 0.32rem 0.22rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  min-height: 84px;
  transition:
    background-color 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.card-sponsor:hover {
  background: radial-gradient(120% 80% at 50% 0%, rgba(56, 189, 248, 0.12) 0%, #141820 60%);
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.15),
    0 12px 28px rgba(0, 0, 0, 0.55);
}

.card-logo-wrapper {
  height: 36px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-logo-wrapper img {
  max-height: 100%;
  max-width: 88px;
  object-fit: contain;
  filter: brightness(1.1);
}

.card-bonus {
  font-size: 0.39rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fde047;
  text-align: center;
  min-height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 1.15;
}

@media (min-width: 769px) {
  .card-logo-wrapper {
    height: 38px;
  }

  .card-logo-wrapper img {
    max-width: 92px;
  }

  .card-bonus {
    font-size: 0.42rem;
  }
}

.card-bonus-secondary {
  margin-top: 0.12rem;
  padding: 0.16rem 0;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.8);
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(249, 250, 251, 0.8);
  line-height: 1;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .card-bonus-secondary {
    padding: 0.12rem 0;
    font-size: 0.34rem;
    letter-spacing: 0.04em;
  }
}

/* .card-pill tamamen kaldırıldı; ileride tekrar kullanmak istersen yeniden ekleyebilirsin */



/* Mobilde kartları daha kompakt göster */
@media (max-width: 480px) {
  .card-sponsor {
    padding: 0.35rem 0.25rem;
    min-height: 80px;
    cursor: pointer;
    position: relative;
  }

  .card-logo-wrapper {
    height: 28px;
  }

  .card-logo-wrapper img {
    max-width: 65px;
  }

  /* Mobil: 1 tıkla büyütme – grid 4 sütun kalır, oran bozulmaz */
  .card-sponsor.zoomed {
    transform: scale(1.35);
    z-index: 60;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    border-color: rgba(239, 68, 68, 0.5);
    background: #1a1a1a;
  }
}

.side-banner {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 138px;
  max-height: min(620px, 78vh);
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.38);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 28px rgba(34, 211, 238, 0.12),
    0 22px 48px rgba(0, 0, 0, 0.88);
  background: linear-gradient(180deg, #0a1628 0%, #020617 100%);
  z-index: 90;
}

.side-banner-left {
  left: 0.65rem;
}

.side-banner-right {
  right: 0.65rem;
}

.side-banner-inner {
  width: 100%;
  height: 100%;
}

.side-banner-inner a {
  display: block;
  height: 100%;
}

.side-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.side-banner-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: #000000;
  color: #ffffff;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
}

@media (max-width: 1200px) {
  .side-banner {
    display: none;
  }
}

/* Telegram / kısayol kartı - Neden Bu Liste üstü */
.shortcut-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem 0.55rem;
  display: flex;
  justify-content: center;
}

.shortcut-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.shortcut-card:hover {
  background: rgba(26, 26, 26, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.shortcut-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--icon-color, #0088cc);
}

.shortcut-icon svg {
  width: 22px;
  height: 22px;
}

.shortcut-text {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .shortcut-card {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
  .shortcut-text {
    white-space: normal;
  }
}

/* Neden Burası? - Footer üstü SEO bloğu */
.why-here {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.35rem 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.why-here-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.35rem;
  color: #fff;
}

.why-here-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-bottom: 1.5rem;
}

.why-here-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.why-here-item {
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 1.25rem 1rem 1.5rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-here-item:hover {
  background: rgba(26, 26, 26, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.why-here-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.6rem;
}

.why-here-heading {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 0.5rem;
}

.why-here-desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  max-width: 100%;
}

@media (max-width: 900px) {
  .why-here-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .why-here {
    padding: 1.75rem 1rem 1.5rem;
  }

  .why-here-title {
    font-size: 1.1rem;
  }

  .why-here-sub {
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
  }

  .why-here-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .why-here-item {
    padding: 0.85rem 1rem 1rem;
  }

  .why-here-heading {
    font-size: 0.85rem;
  }

  .why-here-desc {
    font-size: 0.7rem;
  }
}

/* Hakkımızda bloğu */
/* Deneme Bonusu Hakkında */
.deneme-bonusu-block {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.deneme-bonusu-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.deneme-bonusu-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.deneme-bonusu-inner p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.deneme-bonusu-inner p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .deneme-bonusu-block {
    padding: 1.75rem 1rem 1.5rem;
  }
  .deneme-bonusu-title {
    font-size: 1.1rem;
  }
  .deneme-bonusu-inner p {
    font-size: 0.85rem;
  }
}

.about-block {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.about-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* SSS Accordion */
.faq-block {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.35rem 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.25rem;
  color: #fff;
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-question {
  width: 100%;
  padding: 0.9rem 0;
  text-align: left;
  background: none;
  border: none;
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.faq-question::after {
  content: "+";
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-question:hover {
  color: #fff;
}

.faq-answer {
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  padding: 0 0 0.9rem 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.footer {
  margin-top: 0;
  padding: 2rem 1rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  max-width: 560px;
  margin: 0 auto 0.5rem;
  line-height: 1.45;
}

.footer-contact {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.75rem;
}

.footer-contact a {
  color: #0088cc;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-text {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Yukarı çık butonu */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(17, 17, 17, 0.95);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 80;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: rgba(26, 26, 26, 0.98);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.2s ease;
}

.popup-dialog {
  position: relative;
  background: radial-gradient(circle at top, rgba(248, 250, 252, 0.06), transparent 55%), #020617;
  border-radius: 1.25rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);
  padding: 0.75rem;
  width: 320px;
  height: 320px;
  max-width: 90vw;
  max-height: 90vh;
}

.popup-frame {
  width: 100%;
  height: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(248, 250, 252, 0.16);
  overflow: hidden;
  background: #020617;
}

.popup-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .popup-dialog {
    width: 420px;
    height: 420px;
  }
}

@media (min-width: 1200px) {
  .popup-dialog {
    width: 520px;
    height: 520px;
  }
}

@media (max-width: 767px) {
  .popup-overlay {
    padding: 0;
  }

  .popup-dialog {
    width: 88vw;
    max-width: 360px;
    height: auto;
    max-height: 88vh;
    aspect-ratio: 1 / 1;
  }
}

.popup-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
}

.no-scroll {
  overflow: hidden;
}

/* Admin panel */
.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #050505;
}

@media (max-width: 768px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.admin-sidebar {
  background: #050505;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 1rem;
}

.admin-sidebar-title {
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-nav a {
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.admin-nav a.active,
.admin-nav a:hover {
  background: #111111;
  color: #ffffff;
}

.admin-main {
  padding: 1.5rem 1.25rem 2rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.admin-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table th {
  text-align: left;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-success {
  background: rgba(22, 163, 74, 0.16);
  color: #4ade80;
}

.badge-muted {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5f5;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Site Ayarları — bölümleri kartlarla ayır (admin section=settings) */
.admin-settings-wrap {
  max-width: 56rem;
}

.admin-settings-form.form-grid {
  gap: 0;
}

.admin-settings-card {
  margin-bottom: 1.15rem;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

.admin-settings-card:last-of-type {
  margin-bottom: 0;
}

.admin-settings-card__title {
  margin: 0 0 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.96);
  letter-spacing: 0.01em;
}

.admin-settings-card__lede {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.88);
}

.admin-settings-card .form-group {
  margin-bottom: 0.4rem;
}

.admin-settings-card--actions {
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.form-input,
.form-textarea,
.form-select {
  background: #050505;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0.5rem 0.6rem;
  font-size: 0.85rem;
  outline: none;
}

.form-textarea {
  min-height: 70px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: rgba(248, 113, 113, 0.8);
}

.form-row-inline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.form-checkbox {
  width: 14px;
  height: 14px;
}

.admin-alert {
  margin-bottom: 1rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
}

.admin-alert-success {
  background: rgba(22, 163, 74, 0.14);
  color: #4ade80;
}

.admin-alert-error {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 220;
  padding: max(0.65rem, env(safe-area-inset-top)) max(0.65rem, env(safe-area-inset-right)) max(0.65rem, env(safe-area-inset-bottom)) max(0.65rem, env(safe-area-inset-left));
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-modal {
  width: 100%;
  max-width: 640px;
  flex: 0 1 auto;
  min-height: 0;
  max-height: min(92vh, calc(100vh - max(1.5rem, env(safe-area-inset-top) + env(safe-area-inset-bottom) + 0.75rem)));
  margin: auto 0;
  align-self: center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #020617;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.9);
  padding: 1rem 1.1rem 1.15rem;
}

@supports (height: 100dvh) {
  .admin-modal {
    max-height: min(92dvh, calc(100dvh - max(1.5rem, env(safe-area-inset-top) + env(safe-area-inset-bottom) + 0.75rem)));
  }
}

/*
 * Market ürün modalı: kutunun yüksekliği = viewport (safe area düşülmüş).
 * Orta bölüm (admin-market-fields) flex ile kalan tüm alanı doldurur — max-height: vh KULLANMA.
 */
.admin-modal.admin-modal--market {
  box-sizing: border-box;
  width: min(96vw, 52rem);
  max-width: 52rem;
  flex: none;
  /* Dikey ortada + neredeyse 100dvh = üst/alt kırpılır; üste yasla */
  align-self: flex-start;
  margin: 0 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.5rem 0.65rem 0.55rem;
  /* Overlay ile aynı dikey padding; −1px yuvarlama taşmasına karşı */
  height: calc(100vh - max(0.65rem, env(safe-area-inset-top)) - max(0.65rem, env(safe-area-inset-bottom)) - 1px);
  max-height: calc(100vh - max(0.65rem, env(safe-area-inset-top)) - max(0.65rem, env(safe-area-inset-bottom)) - 1px);
}

@supports (height: 100dvh) {
  .admin-modal.admin-modal--market {
    height: calc(100dvh - max(0.65rem, env(safe-area-inset-top)) - max(0.65rem, env(safe-area-inset-bottom)) - 1px);
    max-height: calc(100dvh - max(0.65rem, env(safe-area-inset-top)) - max(0.65rem, env(safe-area-inset-bottom)) - 1px);
  }
}

.admin-modal.admin-modal--market > .admin-modal-header {
  flex-shrink: 0;
  margin: 0 0 0.35rem;
  padding: 0.1rem 0 0.35rem;
  background: #020617;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
}

/* Form: flex:1 1 0 — kalan yüksekliği kesin devralır */
.admin-modal.admin-modal--market > form.admin-market-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  gap: 0;
}

.admin-modal.admin-modal--market .admin-market-fields {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0.3rem 0.35rem 0;
  scrollbar-gutter: stable;
  display: grid;
  gap: 0.4rem 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-modal.admin-modal--market .admin-market-fields::-webkit-scrollbar {
  width: 10px;
}

.admin-modal.admin-modal--market .admin-market-fields::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.65);
  border-radius: 999px;
  border: 2px solid #020617;
}

.admin-modal.admin-modal--market .admin-market-fields .admin-market-span-full {
  grid-column: 1 / -1;
}

.admin-modal.admin-modal--market .admin-market-fields .admin-market-span-2 {
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .admin-modal.admin-modal--market .admin-market-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-modal.admin-modal--market .admin-market-fields .admin-market-span-2 {
    grid-column: span 2;
  }
}

.admin-modal.admin-modal--market .admin-market-hint {
  display: block;
  font-size: 0.65rem;
  line-height: 1.35;
  color: rgba(148, 163, 184, 0.92);
  margin-top: 0.15rem;
}

.admin-modal.admin-modal--market .form-label {
  font-size: 0.72rem;
  margin-bottom: 0;
}

.admin-modal.admin-modal--market .form-input,
.admin-modal.admin-modal--market .form-select {
  padding: 0.38rem 0.5rem;
  font-size: 0.8rem;
}

.admin-modal.admin-modal--market .form-group {
  gap: 0.15rem;
}

.admin-modal.admin-modal--market textarea.form-input {
  min-height: 3rem;
  max-height: 12rem;
  resize: vertical;
  line-height: 1.4;
}

.admin-modal.admin-modal--market .admin-market-check-row .form-label {
  margin-bottom: 0.2rem;
}

.admin-modal.admin-modal--market .admin-market-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-items: center;
}

.admin-modal.admin-modal--market .admin-market-check {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.95);
  cursor: pointer;
  gap: 0.35rem;
}

.admin-modal.admin-modal--market .admin-market-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.55rem 0 0.15rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(71, 85, 105, 0.65);
  background: #020617;
  box-shadow: 0 -12px 24px rgba(2, 6, 23, 0.9);
}

@media (max-width: 639px) {
  .admin-modal {
    padding: 0.85rem 0.75rem 1rem;
    border-radius: 0.65rem;
    max-height: min(94vh, calc(100vh - max(1rem, env(safe-area-inset-top) + env(safe-area-inset-bottom))));
  }

  @supports (height: 100dvh) {
    .admin-modal {
      max-height: min(94dvh, calc(100dvh - max(1rem, env(safe-area-inset-top) + env(safe-area-inset-bottom))));
    }
  }

  .admin-modal.admin-modal--market {
    width: calc(100vw - max(0.65rem, env(safe-area-inset-left)) - max(0.65rem, env(safe-area-inset-right)));
    max-width: none;
    border-radius: 0.45rem;
    padding: 0.45rem 0.5rem 0.45rem;
    height: calc(100vh - max(0.65rem, env(safe-area-inset-top)) - max(0.65rem, env(safe-area-inset-bottom)) - 1px);
    max-height: calc(100vh - max(0.65rem, env(safe-area-inset-top)) - max(0.65rem, env(safe-area-inset-bottom)) - 1px);
  }

  @supports (height: 100dvh) {
    .admin-modal.admin-modal--market {
      height: calc(100dvh - max(0.65rem, env(safe-area-inset-top)) - max(0.65rem, env(safe-area-inset-bottom)) - 1px);
      max-height: calc(100dvh - max(0.65rem, env(safe-area-inset-top)) - max(0.65rem, env(safe-area-inset-bottom)) - 1px);
    }
  }

  .admin-modal.admin-modal--market .admin-market-fields {
    grid-template-columns: 1fr;
  }

  .admin-modal.admin-modal--market .admin-market-fields .admin-market-span-2 {
    grid-column: 1 / -1;
  }
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.admin-modal-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.admin-modal-close {
  border: none;
  background: transparent;
  color: rgba(148, 163, 184, 0.9);
  font-size: 1.1rem;
  cursor: pointer;
}

.btn-sm {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(248, 113, 113, 0.18), transparent 55%), #020617;
  padding-bottom: 0;
}

.auth-page-escape {
  margin: -0.35rem 0 0.85rem;
}

.auth-page-escape__btn {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  padding: 0.6rem 1rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  background: rgba(30, 41, 59, 0.85) !important;
  color: #e2e8f0 !important;
  border-radius: 0.6rem;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-tap-highlight-color: rgba(251, 146, 60, 0.25);
  touch-action: manipulation;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    transform 0.08s ease;
}

.auth-page-escape__btn:hover {
  background: rgba(239, 68, 68, 0.14) !important;
  border-color: rgba(239, 68, 68, 0.55) !important;
  color: #fff !important;
}

.auth-page-escape__btn:active {
  transform: scale(0.98);
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 0.9rem;
  border: 1px solid rgba(248, 250, 252, 0.04);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.9);
  padding: 1.5rem 1.75rem 1.75rem;
}

.login-title {
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.login-subtitle {
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.68);
  margin-bottom: 1.25rem;
}

.telegram-login-widget-wrap {
  margin-top: 1rem;
  text-align: center;
}

.telegram-login-widget-wrap--primary {
  margin-top: 0.35rem;
}

.telegram-login-widget-callout {
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.14), rgba(239, 68, 68, 0.07));
  border-radius: 0.65rem;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.65rem;
  text-align: left;
}

.telegram-login-widget-callout-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #67e8f9;
  margin-bottom: 0.4rem;
}

.telegram-login-widget-callout-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.telegram-login-widget-callout-text {
  font-size: 0.74rem;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.45;
  margin: 0;
}

.telegram-login-widget-app-form {
  margin-bottom: 0.85rem;
}

.telegram-login-widget-app-btn {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  font-weight: 800;
  font-size: 0.82rem;
}

.auth-email-divider {
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}

.telegram-login-widget-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.85rem 0;
  color: rgba(148, 163, 184, 0.65);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.telegram-login-widget-divider::before,
.telegram-login-widget-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.22);
}

.telegram-login-widget-hint {
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.55);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.telegram-login-widget-inner {
  display: flex;
  justify-content: center;
}

.telegram-login-widget-inner iframe {
  border-radius: 0.5rem !important;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.profile-actions__btn {
  flex: 1 1 calc(50% - 0.3rem);
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  box-sizing: border-box;
}

/* —— Profil sayfası (profile.php) —— */
body.profile-page .login-wrapper.profile-page__wrap {
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 4vw, 1.75rem) clamp(0.75rem, 3vw, 1.25rem)
    calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.profile-layout {
  width: 100%;
  max-width: min(42rem, 100%);
  margin: 0 auto;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.65), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.profile-hero__avatar-wrap {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(248, 113, 113, 0.35);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.9);
  background: rgba(30, 41, 59, 0.9);
}

.profile-hero__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-hero__avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: #fecaca;
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.25), rgba(15, 23, 42, 0.95));
}

.profile-hero__meta {
  min-width: 0;
}

.profile-hero__eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 113, 113, 0.85);
}

.profile-hero__title {
  margin: 0 0 0.35rem;
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.03em;
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  color: #f8fafc;
  line-height: 1.15;
}

.profile-hero__email {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.72);
  word-break: break-word;
}

.profile-banner {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
  border: 1px solid transparent;
}

.profile-banner--success {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(74, 222, 128, 0.22);
  color: #86efac;
}

.profile-banner--error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(252, 165, 165, 0.25);
  color: #fecaca;
}

.profile-banner--warn {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(253, 224, 71, 0.22);
  color: #fde68a;
}

.profile-banner__link {
  display: inline-block;
  margin-top: 0.35rem;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.profile-banner__link:hover {
  color: #fecaca;
}

.profile-card {
  margin-bottom: 0.85rem;
  padding: 1rem 1.05rem 1.1rem;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 0.9rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.profile-card--balance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(125deg, rgba(239, 68, 68, 0.12), rgba(15, 23, 42, 0.95));
  border-color: rgba(248, 113, 113, 0.22);
}

.profile-balance__main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.profile-balance__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.55);
}

.profile-balance__value {
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  letter-spacing: -0.02em;
  color: #f8fafc;
  line-height: 1;
}

.profile-balance__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.55rem;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.profile-chip:hover {
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(203, 213, 225, 0.35);
  color: #fff;
}

.profile-chip--primary {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.profile-chip--primary:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(252, 165, 165, 0.55);
}

.profile-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f1f5f9;
}

.profile-card__lead {
  margin: 0 0 0.85rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.95);
}

.profile-card__head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.profile-card__head-row .profile-card__title {
  margin-bottom: 0;
}

.profile-card__see-all {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f87171;
  text-decoration: none;
}

.profile-card__see-all:hover {
  color: #fecaca;
  text-decoration: underline;
}

.profile-form {
  gap: 0.65rem;
}

.profile-field-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.85);
  line-height: 1.35;
}

.profile-btn-full {
  width: 100%;
  justify-content: center;
  min-height: 44px;
}

.profile-tg-status {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.88);
}

.profile-tg-handle {
  color: #7dd3fc;
  font-weight: 600;
}

.profile-status-dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.9);
}

.profile-status-dot--ok {
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
}

.profile-status-dot--mid {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.profile-status-dot--off {
  background: rgba(148, 163, 184, 0.65);
}

.profile-tg-form {
  margin-bottom: 0.65rem;
}

.profile-code-panel {
  margin: 0.65rem 0;
  padding: 0.65rem 0.75rem;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 0.6rem;
}

.profile-code-panel__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.75);
  margin-bottom: 0.35rem;
}

.profile-code-panel__code {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e0f2fe;
  word-break: break-all;
}

.profile-code-panel__hint {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.4;
}

.profile-code-panel__hint code {
  font-size: 0.85em;
  color: #bae6fd;
}

.profile-code-panel__actions {
  margin-top: 0.65rem;
}

.profile-code-panel__hint--primary {
  color: rgba(186, 230, 253, 0.95);
}

.profile-tg-open {
  text-decoration: none;
  box-sizing: border-box;
}

.profile-prose {
  margin: 0 0 0.75rem;
  font-size: 0.74rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.88);
}

.profile-prose code {
  font-size: 0.85em;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.8);
  padding: 0.08rem 0.28rem;
  border-radius: 0.3rem;
}

.profile-notify-form {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(51, 65, 85, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.profile-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.9);
  cursor: pointer;
}

.profile-check .form-checkbox {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.profile-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.55);
}

.profile-ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1fr);
  gap: 0.45rem 0.65rem;
  align-items: baseline;
  padding: 0.55rem 0.65rem;
  font-size: 0.72rem;
  background: rgba(2, 6, 23, 0.45);
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.profile-ledger__row:last-child {
  border-bottom: none;
}

.profile-ledger__date {
  color: rgba(148, 163, 184, 0.9);
  font-variant-numeric: tabular-nums;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-ledger__amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  justify-self: end;
}

.profile-ledger__amount--plus {
  color: #4ade80;
}

.profile-ledger__amount--minus {
  color: #fca5a5;
}

.profile-ledger__src {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.75);
  text-transform: lowercase;
}

@media (min-width: 480px) {
  .profile-ledger__row {
    grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr);
  }

  .profile-ledger__src {
    grid-column: auto;
    justify-self: end;
    text-align: right;
    text-transform: none;
  }
}

@media (min-width: 768px) {
  body.profile-page .login-wrapper.profile-page__wrap {
    padding-top: clamp(1.5rem, 4vh, 2.5rem);
    padding-bottom: clamp(1.5rem, 3vh, 2rem);
  }

  .profile-hero {
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.5rem;
  }

  .profile-hero__avatar-wrap {
    width: 5rem;
    height: 5rem;
  }

  .profile-card {
    padding: 1.1rem 1.2rem 1.2rem;
  }

  .profile-actions__btn {
    flex: 0 1 auto;
    min-width: 9rem;
  }
}

@media (max-width: 767px) {
  body.profile-page .login-wrapper.profile-page__wrap {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }
}

.app-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 180;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.15rem;
  padding: 0.35rem 0.35rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 18, 32, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

.app-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-height: 3rem;
  padding: 0.2rem 0.15rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.1;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.app-bottom-nav__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 250, 252, 0.85);
}

.app-bottom-nav__ico svg {
  width: 22px;
  height: 22px;
  display: block;
}

.app-bottom-nav__item.active {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.45);
}

.app-bottom-nav__item.active .app-bottom-nav__ico {
  color: #ef4444;
}

.app-bottom-nav__item:active {
  transform: scale(0.97);
}

@media (max-width: 767px) {
  .app-bottom-nav {
    display: grid;
  }

  .login-wrapper {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
    align-items: flex-start;
  }

  .login-card {
    margin-top: 0.9rem;
  }

  body.site-front {
    padding-bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
  }

  .scroll-top.visible {
    bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 768px) {
  .app-bottom-nav {
    display: none !important;
  }
}

/* Coin market — tam sayfa panel, responsive grid, tek ürün tam genişlik */
body.market-page-body {
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(56, 189, 248, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 45% at 100% 20%, rgba(99, 102, 241, 0.1), transparent 42%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(244, 63, 94, 0.06), transparent 45%),
    linear-gradient(180deg, #0c1222 0%, #020617 38%, #020617 100%);
  color: #e2e8f0;
}

.market-page {
  width: 100%;
  max-width: min(1280px, 100vw);
  margin: 0 auto;
  padding: 0.5rem clamp(0.65rem, 3vw, 1.25rem) 1rem;
  padding-bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

@media (max-width: 400px) {
  .market-page {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }

  .market-page-inner {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
}

@media (min-width: 768px) {
  .market-page {
    padding: 1.25rem clamp(1rem, 2.5vw, 1.5rem) 2.25rem;
    padding-bottom: 2.25rem;
  }
}

.market-page-inner {
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  border-radius: clamp(0.85rem, 2vw, 1.2rem);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(51, 65, 85, 0.12) 0%, transparent 28%),
    linear-gradient(165deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.94) 42%, rgba(2, 6, 23, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(15, 23, 42, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: clamp(0.65rem, 2vw, 0.9rem) clamp(0.75rem, 2.5vw, 1.35rem) clamp(1rem, 2.5vw, 1.5rem);
  padding-bottom: calc(clamp(1rem, 2.5vw, 1.5rem) + env(safe-area-inset-bottom, 0px));
}

.market-page-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.35), transparent);
  pointer-events: none;
}

@media (min-width: 768px) {
  .market-page-inner {
    padding-left: clamp(1rem, 2.5vw, 1.5rem);
    padding-right: clamp(1rem, 2.5vw, 1.5rem);
  }
}

.market-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.market-page-back {
  position: static;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.9);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.market-page-back:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.08);
}

.market-page-back:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.8);
  outline-offset: 2px;
}

.market-page-close.popup-close {
  position: static;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.1s ease;
}

.market-page-close.popup-close:hover {
  background: rgba(248, 113, 113, 0.2);
}

.market-page-close.popup-close:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.7);
  outline-offset: 2px;
}

.market-page-header {
  text-align: center;
  padding: 0.15rem clamp(0.25rem, 2vw, 1.5rem) 1.1rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.market-page-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.4rem, 4.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
  line-height: 1.15;
}

.market-page-lead {
  margin: 0 auto 1rem;
  max-width: 38rem;
  font-size: clamp(0.78rem, 2.2vw, 0.875rem);
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.98);
}

.market-balance-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.75rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 28px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.market-balance-chip__label {
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.market-balance-chip__value {
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  font-weight: 800;
  color: #fecaca;
  font-variant-numeric: tabular-nums;
}

.market-balance-chip__unit {
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.8);
  font-weight: 500;
}

.market-balance-chip__link {
  margin-left: 0.15rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #93c5fd;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(147, 197, 253, 0.25);
  transition: background 0.15s ease, color 0.15s ease;
}

.market-balance-chip__link:hover {
  background: rgba(147, 197, 253, 0.12);
  color: #bfdbfe;
}

.market-page-alert {
  margin: 0 0 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.market-toast {
  position: fixed;
  z-index: 12000;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translate(-50%, 120%);
  max-width: min(92vw, 22rem);
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  color: #ecfdf5;
  background: linear-gradient(145deg, rgba(22, 163, 74, 0.95), rgba(5, 46, 22, 0.98));
  border: 1px solid rgba(134, 239, 172, 0.35);
  border-radius: 0.65rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.market-toast.market-toast--show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Araç çubuğu + son alımlar — koyu tema, sistem kontrollerinden bağımsız */
.market-toolbar-panel {
  margin: 0 0 1.1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(155deg, rgba(51, 65, 85, 0.35) 0%, rgba(15, 23, 42, 0.92) 45%, rgba(2, 6, 23, 0.97) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 14px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.market-toolbar-panel__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.market-toolbar-panel__icon {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.9;
}

.market-toolbar-panel__heading {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.92);
}

.market-toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: flex-end;
}

.market-toolbar-controls__search {
  flex: 1 1 14rem;
  min-width: 0;
}

.market-toolbar-controls__sort {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  flex: 1 1 10rem;
  min-width: min(100%, 11rem);
}

.market-toolbar-controls__field-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(148, 163, 184, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* !important: bazı tarayıcılar search/select için sistem beyazını zorlar */
body.market-page-body main.market-page .market-toolbar-input,
body.market-page-body main.market-page .market-toolbar-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  font-family: inherit;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  background-color: #0f172a !important;
  color: #f1f5f9 !important;
  font-size: 0.84rem;
  line-height: 1.35;
  padding: 0.52rem 0.7rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color-scheme: dark;
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.market-page-body main.market-page .market-toolbar-input::placeholder {
  color: rgba(148, 163, 184, 0.8) !important;
  opacity: 1;
}

/* Otomatik doldurma (sarı/beyaz kutu) */
body.market-page-body main.market-page .market-toolbar-input:-webkit-autofill,
body.market-page-body main.market-page .market-toolbar-input:-webkit-autofill:hover,
body.market-page-body main.market-page .market-toolbar-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f1f5f9 !important;
  caret-color: #f1f5f9;
  box-shadow: inset 0 0 0 1000px #0f172a !important;
  transition: background-color 99999s ease-out 0s;
}

body.market-page-body main.market-page .market-toolbar-input:hover,
body.market-page-body main.market-page .market-toolbar-select:hover {
  border-color: rgba(186, 230, 253, 0.4) !important;
}

body.market-page-body main.market-page .market-toolbar-input:focus,
body.market-page-body main.market-page .market-toolbar-select:focus {
  border-color: rgba(251, 113, 133, 0.75) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(244, 63, 94, 0.22) !important;
}

body.market-page-body main.market-page .market-toolbar-select {
  cursor: pointer;
  padding-right: 2.35rem !important;
  background-color: #0f172a !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 1rem 1rem;
}

body.market-page-body main.market-page .market-toolbar-select::-ms-expand {
  display: none;
}

body.market-page-body main.market-page .market-toolbar-select option,
body.market-page-body main.market-page .market-toolbar-select optgroup {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

.market-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.35);
}

.market-empty__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: #e2e8f0;
}

.market-empty__text {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.55;
}

.market-recent {
  margin: 0 0 1.15rem;
  padding: 0.85rem 0.95rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(99, 102, 241, 0.22);
  background:
    linear-gradient(145deg, rgba(49, 46, 129, 0.42) 0%, rgba(15, 23, 42, 0.94) 52%, rgba(2, 6, 23, 0.98) 100%);
  box-shadow:
    0 1px 0 rgba(165, 180, 252, 0.08) inset,
    0 16px 44px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
}

.market-recent__header {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.market-recent__header-icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(165, 180, 252, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.market-recent__header-text {
  min-width: 0;
}

.market-recent__title {
  margin: 0 0 0.2rem;
  font-size: clamp(0.88rem, 2.8vw, 1.02rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.market-recent__subtitle {
  margin: 0;
  font-size: clamp(0.68rem, 2vw, 0.76rem);
  line-height: 1.45;
  color: rgba(199, 210, 254, 0.82);
}

.market-recent__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.market-recent__list .market-recent__item {
  list-style: none;
}

.market-recent__item {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.market-recent__mark {
  flex-shrink: 0;
  width: 0.28rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #a5b4fc 0%, #6366f1 55%, #4f46e5 100%);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.45);
  align-self: stretch;
  min-height: 2.5rem;
}

.market-recent__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.market-recent__product {
  margin: 0;
  font-size: clamp(0.74rem, 2.2vw, 0.84rem);
  font-weight: 600;
  line-height: 1.4;
  color: rgba(248, 250, 252, 0.96);
}

.market-recent__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  font-variant-numeric: tabular-nums;
}

.market-recent__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.market-recent__pill--debit {
  color: #fecdd3;
  background: rgba(127, 29, 29, 0.45);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.market-recent__when {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.95);
}

@media (max-width: 767px) {
  .market-toolbar-panel {
    padding: 0.55rem 0.5rem 0.6rem;
    border-radius: 0.55rem;
  }

  .market-toolbar-panel__heading {
    font-size: 0.62rem;
  }

  body.market-page-body main.market-page .market-toolbar-input,
  body.market-page-body main.market-page .market-toolbar-select {
    font-size: 0.72rem;
    padding: 0.42rem 0.5rem;
  }

  .market-recent {
    padding: 0.55rem 0.45rem 0.6rem;
    border-radius: 0.55rem;
  }

  .market-recent__header {
    gap: 0.45rem;
    margin-bottom: 0.55rem;
    padding-bottom: 0.5rem;
  }

  .market-recent__header-icon {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.95rem;
    border-radius: 0.45rem;
  }

  .market-recent__item {
    padding: 0.4rem 0.42rem;
    gap: 0.45rem;
  }

  .market-recent__mark {
    min-height: 2rem;
    width: 0.22rem;
  }
}

.market-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.market-modal[hidden] {
  display: none;
}

.market-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.market-modal__dialog {
  position: relative;
  width: min(100%, 22rem);
  padding: 1.1rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.99));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.market-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
}

.market-modal__body {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.95);
}

.market-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.market-modal__cancel.button {
  min-height: 2.5rem;
}

.market-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(165, 180, 252, 0.45);
  color: #e0e7ff;
}

.market-badge--featured {
  background: rgba(234, 179, 8, 0.28);
  border-color: rgba(253, 224, 71, 0.45);
  color: #fef9c3;
}

.market-badge--muted {
  background: rgba(71, 85, 105, 0.45);
  border-color: rgba(148, 163, 184, 0.35);
  color: rgba(226, 232, 240, 0.95);
}

.market-product-card--featured {
  border-color: rgba(250, 204, 21, 0.22);
  box-shadow:
    0 1px 0 rgba(253, 224, 71, 0.06) inset,
    0 18px 50px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(234, 179, 8, 0.1);
}

.market-product-card--soldout {
  opacity: 0.72;
}

.market-product-card .price-info__was {
  display: block;
  font-size: 0.68em;
  font-weight: 600;
  text-decoration: line-through;
  color: rgba(148, 163, 184, 0.85);
  margin-bottom: 0.08rem;
}

.market-promo-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(199, 210, 254, 0.95);
}

.market-rules {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-left: 3px solid rgba(251, 191, 36, 0.65);
  background: rgba(120, 53, 15, 0.14);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2);
}

.market-rules__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 0.05rem;
}

.market-rules__text {
  font-size: clamp(0.7rem, 2vw, 0.78rem);
  line-height: 1.55;
  color: rgba(254, 243, 199, 0.95);
}

/* Her ekranda 4 sütun (mobil + masaüstü); gap ekrana göre */
.market-grid {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  align-items: stretch;
}

@media (min-width: 480px) {
  .market-grid {
    gap: 0.45rem;
  }
}

@media (min-width: 768px) {
  .market-grid {
    gap: 0.65rem;
  }
}

@media (min-width: 1100px) {
  .market-grid {
    gap: 0.85rem;
  }
}

@media (min-width: 1400px) {
  .market-grid {
    gap: 1rem;
  }
}

.market-catalog {
  width: 100%;
  box-sizing: border-box;
}

/* Market ürün kartı — benzersiz sınıflar */
.market-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border-radius: clamp(0.7rem, 1.5vw, 0.9rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(165deg, rgba(51, 65, 85, 0.22) 0%, rgba(15, 23, 42, 0.92) 38%, rgba(2, 6, 23, 0.98) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 18px 50px rgba(0, 0, 0, 0.42);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .market-product-card:hover {
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.06) inset,
      0 22px 60px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(99, 102, 241, 0.12);
    transform: translateY(-2px);
  }
}

.market-product-card.market-product-card--owned {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow:
    0 1px 0 rgba(74, 222, 128, 0.08) inset,
    0 0 0 1px rgba(74, 222, 128, 0.12),
    0 18px 48px rgba(0, 0, 0, 0.42);
}

@media (hover: hover) and (pointer: fine) {
  .market-product-card.market-product-card--owned:hover {
    transform: translateY(-2px);
  }
}

.market-product-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.98));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.12rem, 1.5vw, 0.5rem);
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .market-product-card__image {
    aspect-ratio: 4 / 3;
    padding: clamp(0.35rem, 1.2vw, 0.65rem);
  }
}

/* Logo / banner: kırpma yok, kutuda tam görünsün */
.market-product-card__image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  vertical-align: bottom;
  image-rendering: auto;
}

.market-product-card__image--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.2rem, 1.5vw, 0.75rem);
}

.market-product-card__fallback-title {
  font-size: clamp(0.42rem, 2.4vw, 1.15rem);
  font-weight: 900;
  font-style: italic;
  text-align: center;
  color: #fde047;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  line-height: 1.15;
  padding: 0 0.15rem;
  word-break: break-word;
}

.market-product-card__badges {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  left: 0.4rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  pointer-events: none;
}

.market-product-card__image--fallback.viz-navy {
  background: radial-gradient(ellipse at 30% 20%, rgba(96, 165, 250, 0.35), transparent 55%), linear-gradient(145deg, #1e3a5f 0%, #0f172a 100%);
}

.market-product-card__image--fallback.viz-gold {
  background: radial-gradient(circle at 70% 30%, rgba(250, 204, 21, 0.45), transparent 50%), linear-gradient(145deg, #78350f 0%, #1c1917 100%);
}

.market-product-card__image--fallback.viz-red {
  background: radial-gradient(circle at 20% 80%, rgba(248, 113, 113, 0.45), transparent 45%), linear-gradient(145deg, #7f1d1d 0%, #0f172a 100%);
}

.market-product-card__image--fallback.viz-purple {
  background: radial-gradient(circle at 80% 20%, rgba(192, 132, 252, 0.4), transparent 50%), linear-gradient(145deg, #4c1d95 0%, #0f172a 100%);
}

.market-product-card__image--fallback.viz-cash {
  background: radial-gradient(ellipse at 50% 100%, rgba(220, 38, 38, 0.55), transparent 55%), linear-gradient(165deg, #450a0a 0%, #18181b 90%);
}

.market-product-card__image--fallback.viz-amber {
  background: radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.55), transparent 55%), linear-gradient(145deg, #713f12 0%, #0f172a 100%);
}

.market-product-card__image--fallback.viz-teal {
  background: radial-gradient(circle at 30% 70%, rgba(45, 212, 191, 0.35), transparent 50%), linear-gradient(145deg, #134e4a 0%, #0f172a 100%);
}

.market-product-card__image--fallback.viz-emerald {
  background: radial-gradient(circle at 70% 60%, rgba(52, 211, 153, 0.4), transparent 48%), linear-gradient(145deg, #14532d 0%, #0f172a 100%);
}

.market-product-card__bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(0.75rem, 2.2vw, 0.95rem);
  gap: 0;
}

.market-product-card__title {
  margin: 0 0 0.45rem;
  font-size: clamp(0.92rem, 2.5vw, 1.08rem);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.market-product-card__text {
  margin: 0 0 0.7rem;
  font-size: clamp(0.68rem, 2vw, 0.75rem);
  line-height: 1.58;
  color: rgba(203, 213, 225, 0.94);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.market-product-card .market-meta {
  margin: 0 0 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.market-product-card .meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.market-product-card .meta-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  font-size: 0.7rem;
}

.market-product-card .meta-label > span:first-child {
  color: rgba(148, 163, 184, 0.95);
  font-weight: 600;
}

.market-product-card .meta-value {
  color: #86efac;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.market-product-card .meta-item:last-child .meta-value {
  color: rgba(241, 245, 249, 0.95);
}

.market-product-card .stock-bar {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.market-product-card .stock-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e 0%, #4ade80 50%, #86efac 100%);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.35);
  transition: width 0.35s ease;
}

.market-product-card .market-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.35rem;
}

.market-product-card .market-buy-form {
  display: block;
  width: 100%;
  margin: 0;
}

.market-product-card .price-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.market-product-card .price-tag-coin {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #fecaca 0%, #ef4444 45%, #991b1b 100%);
  border: 2px solid rgba(248, 113, 113, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 8px rgba(220, 38, 38, 0.35);
}

.market-product-card .price-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.market-product-card .price-info b {
  font-size: 1rem;
  font-weight: 800;
  color: #f87171;
  letter-spacing: 0.02em;
}

.market-product-card .price-info small {
  font-size: 0.62rem;
  color: rgba(148, 163, 184, 0.95);
  font-weight: 600;
}

.market-product-card .price-tag--disabled .price-info b {
  color: rgba(148, 163, 184, 0.85);
}

.market-product-card .btn-submit.button.primary.block {
  display: block;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  border: none;
  margin: 0;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.55rem;
  font-size: clamp(0.8rem, 2.2vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 42%, #b91c1c 100%);
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}

.market-product-card .btn-submit.button.primary.block:focus-visible {
  outline: 2px solid rgba(251, 113, 133, 0.95);
  outline-offset: 3px;
}

.market-product-card .btn-submit.button.primary.block:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 6px 22px rgba(225, 29, 72, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.market-product-card .btn-submit.button.primary.block:active:not(:disabled) {
  transform: scale(0.985);
}

.market-product-card .btn-submit.button.primary.block:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.market-product-card .btn-submit.button.primary.block.market-btn--owned:disabled {
  opacity: 1;
  filter: none;
  min-height: 2.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 45%, #15803d 100%);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: #052e16;
  cursor: default;
}

.market-product-card .market-balance-warn {
  margin: 0.4rem 0 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(254, 202, 202, 0.98);
  text-align: center;
  background: rgba(127, 29, 29, 0.2);
  border-radius: 0.4rem;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

/* 4 sütun mobil: kompakt tipografi + dokunma hedefi */
@media (max-width: 767px) {
  .market-product-card {
    border-radius: 0.42rem;
  }

  .market-product-card__bottom {
    padding: 0.3rem 0.22rem 0.32rem;
  }

  .market-product-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 0.52rem;
    margin: 0 0 0.18rem;
    line-height: 1.18;
  }

  .market-product-card__text {
    font-size: 0.46rem;
    margin: 0 0 0.28rem;
    line-height: 1.32;
    -webkit-line-clamp: 2;
  }

  .market-product-card .market-meta {
    gap: 0.2rem;
    margin: 0 0 0.3rem;
  }

  .market-product-card .meta-item {
    gap: 0.1rem;
  }

  .market-product-card .meta-label {
    font-size: 0.42rem;
    gap: 0.12rem;
  }

  .market-product-card .stock-bar {
    height: 0.22rem;
  }

  .market-product-card .market-actions {
    gap: 0.28rem;
    padding-top: 0.12rem;
  }

  .market-product-card .price-tag {
    gap: 0.18rem;
  }

  .market-product-card .price-tag-coin {
    width: 0.92rem;
    height: 0.92rem;
    border-width: 1px;
  }

  .market-product-card .price-info b {
    font-size: 0.54rem;
  }

  .market-product-card .price-info small {
    font-size: 0.4rem;
  }

  .market-product-card .btn-submit.button.primary.block {
    min-height: 1.7rem;
    padding: 0.26rem 0.12rem;
    font-size: 0.46rem;
    letter-spacing: 0.02em;
    border-radius: 0.32rem;
  }

  .market-product-card .btn-submit.button.primary.block.market-btn--owned:disabled {
    min-height: 1.7rem;
    font-size: 0.46rem;
  }

  .market-product-card .market-balance-warn {
    font-size: 0.42rem;
    padding: 0.18rem 0.2rem;
    margin-top: 0.22rem;
  }
}

@media (min-width: 1200px) {
  .market-product-card__title {
    font-size: 1.02rem;
  }

  .market-product-card__text {
    font-size: 0.8rem;
    -webkit-line-clamp: 6;
  }

  .market-product-card .meta-label {
    font-size: 0.74rem;
  }

  .market-product-card .price-info b {
    font-size: 1.08rem;
  }
}

.market-page-footnote {
  margin: 1.35rem 0 0;
  padding: 0.65rem 0.75rem;
  font-size: clamp(0.65rem, 1.8vw, 0.72rem);
  line-height: 1.55;
  color: rgba(148, 163, 184, 0.75);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}

.profile-vip-pill {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fef08a;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.35), rgba(180, 83, 9, 0.25));
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 999px;
  vertical-align: middle;
}

/* Üst duyuru (admin → site_announcement_*) */
.site-announcement-strip {
  position: relative;
  z-index: 50;
  background: linear-gradient(105deg, rgba(239, 68, 68, 0.2), rgba(30, 58, 138, 0.35));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0.85rem;
}

.site-announcement-strip__link,
.site-announcement-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 72rem;
  margin: 0 auto;
  color: #f8fafc;
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.site-announcement-strip__link:hover {
  color: #fff;
}

.site-announcement-strip__badge {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fecaca;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.18rem 0.45rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.site-announcement-strip__text {
  flex: 1 1 12rem;
  min-width: 0;
}

body.market-page-body .site-announcement-strip {
  flex-shrink: 0;
}

/* Profil — davet & günlük */
.profile-ref-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.profile-ref-code-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.profile-ref-code {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #bae6fd;
  background: rgba(2, 6, 23, 0.55);
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.profile-ref-url-input {
  font-size: 0.72rem;
}

.profile-daily-hints {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.88);
}

.profile-daily-hints li {
  margin: 0.28rem 0;
}

.profile-daily-footnote {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(251, 191, 36, 0.95);
}

.profile-daily-status {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.92);
}

.profile-daily-form {
  margin-top: 0.65rem;
}

/* Çerez: kompakt bar + ayarlar modali (üst katman) */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20050;
  padding: 0 max(0.5rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom))
    max(0.5rem, env(safe-area-inset-left));
  pointer-events: none;
}

.cookie-consent[hidden] {
  display: none !important;
}

body.cookie-consent-modal-open {
  overflow: hidden;
}

/* —— Alt şerit —— */
.cookie-consent__bar {
  pointer-events: auto;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0.85rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.98) 0%, rgba(7, 13, 24, 0.99) 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.55);
}

.cookie-consent__bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

@media (min-width: 640px) {
  .cookie-consent__bar-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
}

.cookie-consent__bar-copy {
  flex: 1;
  min-width: min(100%, 16rem);
}

.cookie-consent__bar-text {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  line-height: 1.5;
  font-weight: 500;
  color: #f1f5f9;
}

.cookie-consent__bar-policy {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #f87171;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.cookie-consent__bar-policy:hover {
  color: #fca5a5;
  text-decoration: underline;
}

.cookie-consent__bar-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
  align-items: center;
}

.cookie-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 0.5rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease;
}

.cookie-consent__btn:active {
  transform: scale(0.98);
}

.cookie-consent__btn--primary {
  background: #e11d48;
  border-color: #e11d48;
  color: #fff;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.35);
}

.cookie-consent__btn--primary:hover {
  background: #f43f5e;
  border-color: #f43f5e;
}

.cookie-consent__btn--ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
}

.cookie-consent__btn--ghost:hover {
  border-color: rgba(226, 232, 240, 0.55);
  background: rgba(30, 41, 59, 0.5);
}

/* —— Modal —— */
.cookie-consent__modal {
  pointer-events: auto;
  position: fixed;
  inset: 0;
  z-index: 20060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem max(0.5rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom))
    max(0.5rem, env(safe-area-inset-left));
}

.cookie-consent__modal[hidden] {
  display: none !important;
}

.cookie-consent__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.cookie-consent__modal-panel {
  position: relative;
  width: min(100%, 22rem);
  max-height: min(88vh, 32rem);
  overflow: auto;
  padding: 1.15rem 1.1rem 1.1rem;
  background: linear-gradient(165deg, rgba(15, 28, 48, 0.99), rgba(7, 13, 24, 0.99));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.cookie-consent__modal-title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.cookie-consent__modal-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cookie-consent__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
}

.cookie-consent__row:last-of-type {
  border-bottom: none;
}

.cookie-consent__row-text {
  flex: 1;
  min-width: 0;
}

.cookie-consent__row-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f1f5f9;
}

.cookie-consent__row-desc {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #94a3b8;
}

/* Toggle (checkbox gizli) */
.cookie-consent__switch {
  position: relative;
  flex-shrink: 0;
  width: 2.85rem;
  height: 1.55rem;
  cursor: pointer;
}

.cookie-consent__switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-consent__switch-ui {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: background 0.2s ease;
}

.cookie-consent__switch-ui::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #f8fafc;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.cookie-consent__switch input:checked + .cookie-consent__switch-ui {
  background: #e11d48;
  border-color: #fb7185;
}

.cookie-consent__switch input:checked + .cookie-consent__switch-ui::after {
  transform: translate(1.2rem, -50%);
}

.cookie-consent__switch--locked {
  cursor: not-allowed;
  opacity: 0.65;
}

.cookie-consent__switch--locked .cookie-consent__switch-ui {
  background: rgba(30, 41, 59, 0.9);
}

.cookie-consent__switch--locked .cookie-consent__switch-ui::after {
  transform: translate(1.2rem, -50%);
}

.cookie-consent__modal-hint {
  margin: 0.5rem 0 0;
  font-size: 0.65rem;
  line-height: 1.45;
  color: rgba(251, 191, 36, 0.95);
}

.cookie-consent__modal-alert {
  margin: 0.45rem 0 0;
  font-size: 0.68rem;
  line-height: 1.45;
  font-weight: 600;
  color: #fecaca;
}

.cookie-consent__modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: stretch;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.cookie-consent__modal-actions .cookie-consent__btn {
  flex: 1;
  min-height: 2.45rem;
}

.cookie-consent__fab {
  position: fixed;
  left: max(0.5rem, env(safe-area-inset-left));
  bottom: max(0.55rem, env(safe-area-inset-bottom));
  z-index: 20040;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.cookie-consent__fab:hover {
  color: #fff;
  border-color: rgba(226, 232, 240, 0.45);
  background: rgba(30, 41, 59, 0.95);
}

.cookie-consent__fab-icon {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* Mobil alt nav (~3rem + padding) üstünde kalsın; tüm sayfalar (market, profil vb.) */
@media (max-width: 767px) {
  .cookie-consent__fab {
    left: max(0.4rem, env(safe-area-inset-left));
    width: 1.95rem;
    height: 1.95rem;
    bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px));
  }

  .cookie-consent__fab-icon {
    width: 15px;
    height: 15px;
  }
}

.footer-legal {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.85);
  text-align: center;
}

.footer-legal-sep {
  margin: 0 0.35rem;
  opacity: 0.6;
}

.footer-cookie-settings {
  background: none;
  border: none;
  color: rgba(125, 211, 252, 0.95);
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
  padding: 0;
}

.footer-cookie-settings:hover {
  color: #bae6fd;
}

.cookie-policy-page {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at top, rgba(248, 113, 113, 0.14), transparent 50%), #020617;
}

.cookie-policy-wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.cookie-policy-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.9rem;
  padding: 1.25rem 1.2rem 1.4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.cookie-policy-back {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
}

.cookie-policy-back a {
  color: #7dd3fc;
  text-decoration: none;
}

.cookie-policy-back a:hover {
  text-decoration: underline;
}

.cookie-policy-title {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
}

.cookie-policy-updated {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.85);
}

.cookie-policy-section {
  margin-bottom: 1rem;
}

.cookie-policy-section h2 {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
}

.cookie-policy-section p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.88);
}

.cookie-policy-section code {
  font-size: 0.85em;
  background: rgba(30, 41, 59, 0.9);
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
}

/* ——— Rehber sayfaları + onboarding ——— */
.content-guide-wrap {
  min-height: 100vh;
  margin: 0;
  padding: 0 1rem 2.5rem;
  background: radial-gradient(circle at top, rgba(248, 113, 113, 0.12), transparent 45%), #020617;
}

.content-guide-nav {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem 0 0.5rem;
}

.content-guide-back {
  font-size: 0.82rem;
  color: #7dd3fc;
  text-decoration: none;
}

.content-guide-back:hover {
  text-decoration: underline;
}

.content-guide {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
  color: rgba(226, 232, 240, 0.95);
  line-height: 1.65;
  font-size: 0.92rem;
}

.content-guide h1 {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.25;
}

.content-guide h2 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: #e2e8f0;
}

.content-guide p {
  margin: 0 0 0.65rem;
}

.content-guide ul {
  margin: 0.25rem 0 0.75rem 1.2rem;
  padding: 0;
}

.content-guide li {
  margin-bottom: 0.35rem;
}

.content-guide a:not(.btn) {
  color: #7dd3fc;
}

.content-guide-lead {
  font-size: 0.95rem;
  color: rgba(203, 213, 225, 0.92);
}

.content-guide-cta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.content-links-strip {
  max-width: 56rem;
  margin: 0.75rem auto 0;
  padding: 0.55rem 0.85rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.45);
}

.content-links-strip a {
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 500;
}

.content-links-strip a:hover {
  text-decoration: underline;
}

.content-links-strip__sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.onboarding-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
}

.onboarding-lede {
  margin: 0 0 1rem;
  color: rgba(203, 213, 225, 0.92);
  line-height: 1.55;
}

.onboarding-steps {
  display: grid;
  gap: 0.85rem;
}

.onboarding-step {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.65rem;
  padding: 0.95rem 1rem;
  background: rgba(0, 0, 0, 0.28);
}

.onboarding-step h2 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
}

.onboarding-step p {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  color: rgba(203, 213, 225, 0.9);
  line-height: 1.5;
}

.onboarding-links-inline {
  margin: 1.15rem 0 0;
  font-size: 0.82rem;
}

.onboarding-links-inline a {
  color: #7dd3fc;
}

/* Onboarding: site-front + page-root ile aynı hizada okunur kontrast (login-wrapper yerine) */
body.onboarding-page .onboarding-page-root {
  padding: 1rem clamp(0.75rem, 3vw, 1.25rem) calc(2rem + env(safe-area-inset-bottom, 0px));
}

body.onboarding-page .onboarding-main {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.25rem 1.15rem 1.6rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.85rem;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 24px 60px rgba(0, 0, 0, 0.55);
  color: #e2e8f0;
}

body.onboarding-page .onboarding-main h1,
body.onboarding-page .onboarding-main h2,
body.onboarding-page .onboarding-main p {
  color: inherit;
}

body.onboarding-page .onboarding-title {
  color: #f8fafc;
}

body.onboarding-page .onboarding-lede,
body.onboarding-page .onboarding-step p {
  color: rgba(226, 232, 240, 0.95);
}

body.onboarding-page .onboarding-step h2 {
  color: #f1f5f9;
}

body.onboarding-page .onboarding-main a.btn.btn-red,
body.onboarding-page .onboarding-main button.btn-red {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

body.onboarding-page .onboarding-main button.btn-ghost {
  color: rgba(248, 250, 252, 0.95) !important;
  -webkit-text-fill-color: rgba(248, 250, 252, 0.95);
}

body.onboarding-page .onboarding-links-inline a {
  color: #7dd3fc;
}

@media (max-width: 767px) {
  body.onboarding-page.site-front {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

/* Deneme bonusu hub — üst CTA + makaleler */
.deneme-bonusu-page-hero {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  padding: 1.35rem 1.2rem 1.45rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background:
    linear-gradient(145deg, rgba(239, 68, 68, 0.18), rgba(15, 23, 42, 0.92)),
    rgba(15, 23, 42, 0.88);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 20px 50px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.deneme-bonusu-page-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(254, 202, 202, 0.95);
}

.deneme-bonusu-page-hero__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fef2f2;
}

.deneme-bonusu-page-hero__lede {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.deneme-bonusu-page-hero__cta {
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(220, 38, 38, 0.45);
}

.deneme-bonusu-page-hero__hint {
  margin: 0.9rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.78);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* Uzun makale: dar kolon, kart, rahat satır aralığı */
.deneme-bonusu-page-articles.content-guide {
  max-width: 40rem;
  padding-left: clamp(0.75rem, 3vw, 1rem);
  padding-right: clamp(0.75rem, 3vw, 1rem);
}

.deneme-bonusu-page-articles .content-guide-lead {
  margin-bottom: 1.25rem;
  max-width: 65ch;
}

.deneme-bonusu-article-block {
  margin-bottom: 1.35rem;
  padding: 1.2rem clamp(1rem, 3vw, 1.35rem) 1.35rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.8rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.deneme-bonusu-article-block:last-of-type {
  margin-bottom: 0.75rem;
}

.deneme-bonusu-article-block h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1rem, 3.2vw, 1.22rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: #f1f5f9;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.deneme-bonusu-article-body {
  max-width: 65ch;
  font-size: 0.93rem;
  line-height: 1.78;
  color: rgba(226, 232, 240, 0.94);
  -webkit-font-smoothing: antialiased;
}

.deneme-bonusu-article-block p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.deneme-bonusu-article-body p {
  margin: 0 0 1rem;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.deneme-bonusu-article-body p:last-child {
  margin-bottom: 0;
}

.deneme-bonusu-article-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  list-style-position: outside;
}

.deneme-bonusu-article-body .deneme-bonusu-article-list:last-child {
  margin-bottom: 0;
}

/* Admin’den gelen sınırlı HTML gövde */
.deneme-bonusu-article-html {
  max-width: 65ch;
  font-size: 0.93rem;
  line-height: 1.78;
  color: rgba(226, 232, 240, 0.94);
}

.deneme-bonusu-article-html p {
  margin: 0 0 1rem;
}

.deneme-bonusu-article-html p:last-child {
  margin-bottom: 0;
}

.deneme-bonusu-article-html h2,
.deneme-bonusu-article-html h3,
.deneme-bonusu-article-html h4 {
  margin: 1.15rem 0 0.55rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f1f5f9;
}

.deneme-bonusu-article-html h2:first-child,
.deneme-bonusu-article-html h3:first-child,
.deneme-bonusu-article-html h4:first-child {
  margin-top: 0;
}

.deneme-bonusu-article-html ul,
.deneme-bonusu-article-html ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.deneme-bonusu-article-html li {
  margin-bottom: 0.45rem;
}

.deneme-bonusu-article-html blockquote {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid rgba(248, 113, 113, 0.45);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(203, 213, 225, 0.95);
}

.deneme-bonusu-article-html a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.deneme-bonusu-article-html a:hover {
  color: #bae6fd;
}

.deneme-bonusu-article-list li {
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
  line-height: 1.72;
}

.deneme-bonusu-article-list li:last-child {
  margin-bottom: 0;
}

.deneme-bonusu-article-list--ordered {
  padding-left: 1.35rem;
  list-style-type: decimal;
}

.deneme-bonusu-article-block a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.deneme-bonusu-article-block a:hover {
  color: #bae6fd;
}

.deneme-bonusu-page-articles .content-guide-cta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

