/* Site düzeni ortak stilleri (önceden layout içinde satır içi <style> idi; aynı sırada yüklenir, tarayıcıda önbelleğe alınır) */
/* ==========================================================================
   KAYAN İLETİŞİM BUTONLARI & YUKARI ÇIK ÇAKIŞMA DÜZELTMESİ (60x60 EŞİT ÖLÇÜ)
   ========================================================================== */
/* 18 Saniyede Bir Periyodik Parlama & Dikkat Çekme Efekti */
@keyframes contactPulseGlow {
  0%, 82%, 100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
    transform: scale(1);
  }
  85% {
    transform: scale(1.12);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0.35), 0 0 25px rgba(37, 211, 102, 0.85);
  }
  88% {
    transform: scale(1.02);
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0.15), 0 0 30px rgba(37, 211, 102, 0.65);
  }
  91% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(37, 211, 102, 0.3), 0 0 25px rgba(37, 211, 102, 0.75);
  }
  95% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
  }
}

@keyframes phonePulseGlow {
  0%, 82%, 100% {
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.45);
    transform: scale(1);
  }
  85% {
    transform: scale(1.12);
    box-shadow: 0 0 0 10px rgba(225, 29, 72, 0.35), 0 0 25px rgba(225, 29, 72, 0.85);
  }
  88% {
    transform: scale(1.02);
    box-shadow: 0 0 0 16px rgba(225, 29, 72, 0.15), 0 0 30px rgba(225, 29, 72, 0.65);
  }
  91% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(225, 29, 72, 0.3), 0 0 25px rgba(225, 29, 72, 0.75);
  }
  95% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.45);
  }
}

/* Masaüstü Kayan İletişim Butonları (Tam Eşit 60x60 Boyut) */
@media (min-width: 769px) {
  .floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: contactPulseGlow 18s infinite ease-in-out;
  }
  .floating-whatsapp:hover {
    transform: scale(1.12);
    color: #fff;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.75);
  }
  .floating-phone {
    position: fixed;
    bottom: 98px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 26px;
    box-shadow: 0 4px 18px rgba(225, 29, 72, 0.5);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: phonePulseGlow 18s infinite ease-in-out 1.2s;
  }
  .floating-phone:hover {
    transform: scale(1.12);
    color: #fff;
    box-shadow: 0 6px 25px rgba(225, 29, 72, 0.75);
  }

  /* Masaüstünde #scroll-top iletişim butonlarının soluna taşınır, ASLA çakışmaz! */
  .scroll-top {
    position: fixed !important;
    bottom: 25px !important;
    right: 100px !important;
    width: 48px !important;
    height: 48px !important;
    background-color: rgba(30, 41, 59, 0.9) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 50% !important;
    backdrop-filter: blur(8px) !important;
    z-index: 997 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
  }
  .scroll-top:hover {
    background-color: #e11d48 !important;
    color: #fff !important;
  }
}

/* ==========================================================================
   MOBİL APP BOTTOM BAR & SCROLL TOP DÜZENİ
   ========================================================================== */
.mobile-app-bottom-bar {
  display: none;
}

/* Mobilde Header'ın Asla Kaybolmaması (Sticky) ve Hemen Fiyat Al'ın Gizlenmesi */
.header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1040 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
  transition: none !important;
}

@media (max-width: 1199px) {
  .header .btn-getstarted {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

@media (max-width: 991px) {
  body {
    padding-bottom: 96px !important;
  }
  .floating-whatsapp, .floating-phone {
    display: none !important;
  }
  /* Mobilde #scroll-top alt menünün üstünde durur ve içeriği engellemez */
  .scroll-top {
    position: fixed !important;
    bottom: 74px !important;
    right: 12px !important;
    width: 40px !important;
    height: 40px !important;
    background-color: rgba(15, 23, 42, 0.85) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    z-index: 1040 !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
  }
  .scroll-top i {
    font-size: 1.15rem !important;
  }
  .mobile-app-bottom-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 64px !important;
    background: #0b1120 !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    z-index: 1050 !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 0 4px !important;
    padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6) !important;
    box-sizing: border-box !important;
  }
  .app-tab-item {
    flex: 1 1 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    padding: 4px 2px !important;
    text-align: center !important;
    min-width: 0 !important;
  }
  .app-tab-item span {
    font-size: 0.65rem !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .app-tab-item i {
    font-size: 1.25rem !important;
    margin-bottom: 1px !important;
    transition: transform 0.2s ease;
  }
  .app-tab-item.active {
    color: #e11d48 !important;
  }
  .app-tab-item.active i {
    transform: scale(1.15);
    color: #e11d48 !important;
  }
  .app-tab-item:active {
    transform: scale(0.92);
    color: #fff;
  }
  .app-tab-center-fab {
    flex: 0 0 52px !important;
    width: 52px !important;
    height: 52px !important;
    position: relative !important;
    top: -12px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.6) !important;
    border: 3px solid #0b1120 !important;
    transition: transform 0.2s;
    text-decoration: none !important;
  }
  .app-tab-center-fab i {
    font-size: 1.7rem !important;
    margin-bottom: 0;
  }
  .app-tab-center-fab:active {
    transform: scale(0.9) !important;
  }
}

/* Eski template menüsünün açılmasını ve beyaz kartı tamamen engelle */
@media (max-width: 1199px) {
  .mobile-nav-active,
  .mobile-nav-active #navmenu,
  .mobile-nav-active .navmenu,
  .mobile-nav-active .navmenu ul,
  .mobile-nav-active #navmenu ul,
  .mobile-nav-toggle,
  #navmenu ul {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
.drawer-open-trigger:hover {
  color: #e11d48 !important;
  transform: scale(1.05);
}
.btn-mobile-hamburger,
.drawer-open-trigger {
  background: linear-gradient(135deg, #1e293b, #0f172a) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(225, 29, 72, 0.45) !important;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  padding: 0;
  outline: none;
}
.btn-mobile-hamburger i {
  font-size: 1.85rem;
  line-height: 1;
  color: #ffffff !important;
  transition: color 0.2s ease, transform 0.2s ease;
}
.btn-mobile-hamburger:hover,
.btn-mobile-hamburger:focus,
.btn-mobile-hamburger:active {
  background: #e11d48 !important;
  border-color: #f43f5e !important;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.5);
  transform: scale(1.06);
}
.btn-mobile-hamburger:hover i,
.btn-mobile-hamburger:active i {
  color: #ffffff !important;
}
.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1070;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.mobile-drawer-backdrop.show {
  opacity: 1;
  visibility: visible;
}
.mobile-app-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  background: #0f172a;
  z-index: 1080;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.75);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-left: none;
}
.mobile-app-drawer.show {
  transform: translateX(0);
}
.mobile-drawer-header {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-close-drawer {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-close-drawer:active {
  background: #e11d48;
}
.mobile-drawer-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex-grow: 1;
}
.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}
.drawer-link i {
  font-size: 1.2rem;
}
.drawer-link:hover, .drawer-link:active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(3px);
}
.mobile-drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}
/* Koyu Zemin Kontrast ve Başlık Beyazlık Garantisi */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.dark-background h1, .dark-background h2, .dark-background h3, .dark-background h4, .dark-background h5, .dark-background h6 {
  color: #ffffff !important;
}
.bg-dark p, .dark-background p {
  color: #e2e8f0 !important;
}

/* Sayfa metinleri: çok satırlı metinlerde satır sonları korunur */
.text-pre-line { white-space: pre-line; }

/* Mobil menü: bulunulan sayfa belirgin */
.drawer-link.active {
  background: rgba(225, 29, 72, 0.14);
  color: #ffffff;
}

/* Dokunma hedefleri en az 40px (mobil menü alt bağlantıları, footer bağlantıları) */
.drawer-sublink {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
}
.footer-legal-link { min-height: 40px; }
@media (max-width: 991px) {
  .footer .footer-links ul li { padding: 0; }
  .footer .footer-links ul a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    line-height: 1.3;
  }
}

/* Gizlilik penceresi (koyu): uzun metin pencere içinde kayar, kapat düğmesi görünür kalır */
.privacy-modal-body {
  max-height: 58vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #cbd5e1;
  overflow-wrap: anywhere;
}
.privacy-modal-body h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin: 1rem 0 0.4rem;
}
.privacy-modal-body p { margin-bottom: 0.75rem; }
.privacy-modal-body ul { padding-left: 1.1rem; margin-bottom: 0.75rem; }
.privacy-modal-body li { margin-bottom: 0.25rem; }
.privacy-modal-body a { color: #67e8f9; text-decoration: none; }
.privacy-modal-body a:hover { text-decoration: underline; }
