::selection {
  background-color: #c5ff9598;
  color: #074173;
}
/* Safari ve eski Firefox sürümleri için */
::-moz-selection {
  background-color: #c5ff95;
  color: #074173;
}
body {
  font-family: "Poppins", sans-serif !important;
}
/*
  font-family: "Poppins", sans-serif !important;
} */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid #eee;
  padding: 15px 30px;

  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  /* Taşmayı engelleyen kritik satır */
  box-sizing: border-box;
}

/* Mobil için paddingi düşürelim ki alan kazanalım */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 15px; /* Mobilde 30px çok geniştir, 15px'e düşürdük */
  }
}
.logo-img {
  height: auto; /* Oranı korumak için yükseklik auto olmalı */
  max-height: 55px; /* Masaüstü için maksimum yükseklik */
  width: auto; /* Genişlik otomatik ayarlanır */
  max-width: 100%; /* Mobilde ekranın dışına taşmasını engeller */
  display: block;
}

.icon-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  color: #1679ab;
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  /* Geçişin yumuşak ve her yöne eşit olması için */
  transition: all 0.25s ease-out;
  -webkit-text-stroke: 0.5px currentColor;
}

.icon-btn:hover {
  background: #c5ff95;
  color: #074173;

  box-shadow: 0 0 15px rgba(197, 255, 149, 0.5);
}

.icon-btn:active {
  /* Tıklama anında geri içeri çekilme efekti */
  transform: scale(1.05);
}

.btn-categories {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 10px 18px;

  border-radius: 999px;

  background: rgba(197, 255, 149, 0.18);
  border: 1px solid rgba(197, 255, 149, 0.45);

  color: #074173 !important;
  font-size: 14px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;

  cursor: pointer;
  user-select: none;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);

  transition: all 0.3s ease;
}

/* ICON */
.btn-categories i {
  font-size: 18px;
  color: #074173 !important;
  transition: transform 0.3s ease;
}

/* HOVER */
.btn-categories:hover {
  transform: translateY(-2px) scale(1.03);
  background: #c5ff95;
  border-color: rgba(197, 255, 149, 0.7);
  box-shadow:
    0 12px 30px rgba(93, 235, 215, 0.25),
    0 0 12px rgba(197, 255, 149, 0.25);
}

.btn-categories:hover i {
  transform: rotate(15deg);
}

/* Yazı İncelmesi (Dokunmadık) */
.categories-text {
  font-weight: 400 !important;
  font-size: 15px;
  -webkit-text-stroke: 0px !important;
  white-space: nowrap;
}
.profile-wrapper {
  position: relative;
}

/* dropdown */
.profile-dropdown {
  position: absolute;
  right: 0;
  top: 120%;
  min-width: 120px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: 0.25s ease;
  right: auto; /* bunu özellikle ekle */
  z-index: 999;
}

/* linkler */
.profile-dropdown a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: #074173;
  border-radius: 10px;
  font-weight: 500;
  transition: 0.2s;
}

.profile-dropdown a:hover {
  background: #c5ff95;
}

/* 🔥 HOVER (desktop) */
.profile-wrapper:hover .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 🔥 CLICK (mobile JS) */
.profile-wrapper.active .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-section {
  padding: 100px 20px;
  background-color: #ffffff;
  height: 910px;
  background-image: url("/images/2.png");
  background-size: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-position: top left;
}
.hero-title {
  color: #1679ab;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 2.4rem;
}

.hero-subtitle {
  color: #666;
  margin-bottom: 40px;
  font-weight: 300;
}

.search-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #eee;
  padding: 10px 20px;
  border-radius: 30px; /* Tam yuvarlak köşeler */
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.search-bar:focus-within {
  border-color: #c5ff95c0;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(5px);
}

.search-icon {
  color: #074173;
  font-size: 22px;
  margin-right: 15px;
}

.search-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 18px;
  font-weight: 400;
  color: #333;
    padding-right: 90px;
}

.search-btn {
  background: #0f5a81;
  color: white;
  border: none;
  /* Sevdiğin o özel ölçüler */
  width: 48px;
  height: 45px;
  border-radius: 80%; /* O özel oval form */

  /* Flexbox yerine alternatif: Grid kullanımı */
  /* Grid, asimetrik kutularda dikey hizalamayı daha "katı" yapar */
  display: grid;
  place-items: center;

  transition: all 0.2s ease;
  cursor: pointer;
  padding: 0;

  /* Kenar pürüzlerini ve kaymaları önlemek için */
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
}

.search-btn:hover {
  background: #1679ab;
  color: #c5ff95;
}

.search-btn i {
  font-size: 20px;
  -webkit-text-stroke: 1px currentColor;

  /* OKUN KAYMASINI ÖNLEYEN KRİTİK AYARLAR */
  display: block; /* inline-block yerine block kutuyu sabitler */
  line-height: 1; /* 0 yerine 1 kullanarak tarayıcıyı zorlamıyoruz */
  margin: 0;
  padding: 0;
  height: 20px; /* İkonun font-size değeriyle aynı yüksekliği veriyoruz */
  pointer-events: none; /* Mouse etkileşiminden ikonu muaf tutuyoruz */
}

.quick-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.badge-tag {
  text-decoration: none;
  color: #074173;
  background: #f1f5f9;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 400; /* Kategoriler yazısı gibi ince ve zarif */
  transition: all 0.2s ease;
}

.badge-tag:hover {
  background: #c5ff95; /* Senin yeşilin */
  color: #000;
  transform: translateY(-2px);
}

/* 1. Navbar'ın alt satıra geçmesini kesin olarak engelleyelim */
.navbar .container,
.navbar {
  display: flex !important;
  flex-wrap: nowrap !important; /* Alt satıra geçmeyi yasaklar */
  align-items: center;
  justify-content: b-between;
}

/* 2. Sağdaki ikon grubunun ayarları */
.ms-auto {
  display: flex;
  align-items: center;
  gap: 10px; /* Masaüstünde boşluğu biraz azaltmak sığmayı kolaylaştırır */
}

.literacy-section {
  background-color: #ffffff;
  padding: 80px 0;
  min-height: 550px; /* Sabit height yerine min-height kullan ki içerik sığmazsa uzayabilsin */
  height: auto; /* Mobilde içeriğin taşmasını engeller */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.literacy-title {
  color: #074173;
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 30px;
}

.literacy-subtitle {
  font-size: 1.09rem;
  color: #888;
  line-height: 1.5;
}

.literacy-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 10px 30px rgba(7, 65, 115, 0.05);
  height: 100%;
  transition: transform 0.3s ease;

  /* Ortalamak için eklenen kısımlar */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.literacy-card:hover {
  transform: scale(1.03); /* Her yöne %3 oranında eşit büyür */
  box-shadow: 0 15px 45px rgba(7, 65, 115, 0.12); /* Gölge her yöne daha dolgun yayılır */
  border-color: #c5ff95; /* Kenarlık rengi de senin yeşiline dönerse çok şık olur */
}

.lit-icon-wrap {
  width: 45px;
  height: 45px;
  background: #c5ff9591;
  color: #074173;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 15px;
  font-size: 20px;

  /* İkon kutusunun kendisini de ortalamayı garantileyelim */
  margin-left: auto;
  margin-right: auto;
}

.literacy-card h6 {
  font-weight: 700;
  color: #074173;
  margin-bottom: 8px;
}

.literacy-card p {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 0;
}

.literacy-card-custom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; /* Grid sistemine uyması için */
  border-radius: 24px;
  line-height: 1.6;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* Ortalamak istediğin için merkezi yaptık */
  text-align: center;
  gap: 15px;
  padding: 35px;
  border-radius: 22px;
  color: #ffffff;
  overflow: hidden;
  background: #074173; /* Ana renk: Turkuaz */
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Arkadaki 1. Katman (Hafif Turkuaz/Mavi) */
.card-content::before {
  position: absolute;
  content: "";
  top: -4%;
  left: 50%;
  width: 90%;
  height: 90%;
  transform: translate(-50%);
  background: #1679ab;
  z-index: -1;
  transform-origin: bottom;
  border-radius: inherit;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Arkadaki 2. Katman (Senin Yeşilin) */
.card-content::after {
  position: absolute;
  content: "";
  top: -8%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%);
  background: #c5ff95;
  z-index: -2;
  transform-origin: bottom;
  border-radius: inherit;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.lit-icon-wrap-custom i {
  font-size: 40px;
  color: #c5ff95; /* İkonlar yeşil parlasın */
}

.card-heading-custom {
  font-weight: 500;
  margin-bottom: 5px;
}

.card-content .para {
  z-index: 1;
  opacity: 0.9;
  font-size: 14px;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Otomatik Yelpaze Animasyonu */
@keyframes autoFan {
  0%,
  100% {
    transform: translate(0, 0);
  }
  10%,
  30% {
    transform: translate(0, -12px);
  }
}

@keyframes autoBefore {
  0%,
  100% {
    rotate: 0deg;
    top: -4%;
    width: 90%;
    height: 90%;
  }
  10%,
  30% {
    rotate: -8deg;
    top: 0;
    width: 100%;
    height: 100%;
  }
}

@keyframes autoAfter {
  0%,
  100% {
    rotate: 0deg;
    top: -8%;
    width: 80%;
    height: 80%;
  }
  10%,
  30% {
    rotate: 8deg;
    top: 0;
    width: 100%;
    height: 100%;
  }
}

/* --- SIRALI OTOMATİK ANİMASYON AYARLARI --- */

/* 1. KART: Hemen başlar (0s gecikme) */
.anim-1 .literacy-card-custom {
  animation: sequenceFan 6s infinite;
}
.anim-1 .card-content::before {
  animation: sequenceBefore 6s infinite;
}
.anim-1 .card-content::after {
  animation: sequenceAfter 6s infinite;
}

/* 2. KART: 2 saniye sonra başlar */
.anim-2 .literacy-card-custom {
  animation: sequenceFan 6s infinite 2s;
}
.anim-2 .card-content::before {
  animation: sequenceBefore 6s infinite 2s;
}
.anim-2 .card-content::after {
  animation: sequenceAfter 6s infinite 2s;
}

/* 3. KART: 4 saniye sonra başlar */
.anim-3 .literacy-card-custom {
  animation: sequenceFan 6s infinite 4s;
}
.anim-3 .card-content::before {
  animation: sequenceBefore 6s infinite 4s;
}
.anim-3 .card-content::after {
  animation: sequenceAfter 6s infinite 4s;
}

/* --- YUMUŞAK SIRALI OTOMATİK ANİMASYON --- */

/* Animasyon geçiş hızını ve yumuşaklığını tanımlayan ortak ayarlar */
.literacy-card-custom,
.card-content::before,
.card-content::after {
  animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* --- İDEAL SIRALI ANİMASYON (6 Saniyelik Dengeli Döngü) --- */

/* 1. KART: Hemen başlar (0s) */
.anim-1 .literacy-card-custom {
  animation: pureSequenceFan 6s infinite;
}
.anim-1 .card-content::before {
  animation: pureSequenceBefore 6s infinite;
}
.anim-1 .card-content::after {
  animation: pureSequenceAfter 6s infinite;
}

/* 2. KART: 2 saniye sonra başlar */
.anim-2 .literacy-card-custom {
  animation: pureSequenceFan 6s infinite 2s;
}
.anim-2 .card-content::before {
  animation: pureSequenceBefore 6s infinite 2s;
}
.anim-2 .card-content::after {
  animation: pureSequenceAfter 6s infinite 2s;
}

/* 3. KART: 4 saniye sonra başlar */
.anim-3 .literacy-card-custom {
  animation: pureSequenceFan 6s infinite 4s;
}
.anim-3 .card-content::before {
  animation: pureSequenceBefore 6s infinite 4s;
}
.anim-3 .card-content::after {
  animation: pureSequenceAfter 6s infinite 4s;
}

/* --- KESİN DURAKLAMALI KEYFRAMES --- */

@keyframes pureSequenceFan {
  0% {
    transform: translate(0, 0);
  }
  10%,
  20% {
    transform: translate(0, -16px);
  } /* %10'da açılır, %20'ye kadar bekler */
  30%,
  100% {
    transform: translate(0, 0);
  } /* %30'da tamamen kapanır, geri kalan sürede taş gibi durur */
}

@keyframes pureSequenceBefore {
  0% {
    rotate: 0deg;
    top: -4%;
    width: 90%;
    height: 90%;
  }
  10%,
  20% {
    rotate: -8deg;
    top: 0;
    width: 100%;
    height: 100%;
  }
  30%,
  100% {
    rotate: 0deg;
    top: -4%;
    width: 90%;
    height: 90%;
  }
}

@keyframes pureSequenceAfter {
  0% {
    rotate: 0deg;
    top: -8%;
    width: 80%;
    height: 80%;
  }
  10%,
  20% {
    rotate: 8deg;
    top: 0;
    width: 100%;
    height: 100%;
  }
  30%,
  100% {
    rotate: 0deg;
    top: -8%;
    width: 80%;
    height: 80%;
  }
}

/* Yumuşaklık ayarı */
.literacy-card-custom,
.card-content::before,
.card-content::after {
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.label-scanner-section {
  padding: 100px 20px;
  background: #074173; /* Ana Turkuaz */
  color: white;
  font-family: "Poppins", sans-serif;
}

.scanner-title {
  text-align: center;
  margin-bottom: 50px;
  font-weight: 800;
  font-size: 2.5rem;
}
.neon-green {
  color: #c5ff95;
  text-shadow: 0 0 10px #c5ff95;
}

.scanner-wrapper {
  display: flex;
  gap: 40px;
  max-width: 1150px;
  margin: 0 auto;
  align-items: stretch;
}

/* --- SOL TARAF: ETİKET KUTUSU --- */
.product-label-box {
  flex: 1;
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 25px;
  color: #334155;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.scanner-instruction {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #d45e5e;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.label-text-area p {
  line-height: 2.4;
  font-size: 1.1rem;
  color: rgba(51, 65, 85, 0.35); /* Flu/Sönük etki */
}

/* --- PASTEL KIRMIZI KELİMELER --- */
/* .decypher-target {
  color: #b91c1c;
  font-weight: 800;
  cursor: pointer;
  padding: 0 4px;
  border-bottom: 2px dashed #5debd7;
  background: #5debd7;
  transition: all 0.3s ease;
  border-radius: 4px;
} */

/* --- DEDEKTİF PANELİ --- */
.decypher-panel {
  flex: 0.8; /* Biraz daha geniş durması için 0.8 yapabilirsin */
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(197, 255, 149, 0.2);
  border-radius: 35px;
  padding: 40px;

  /* TAM ORTALAMA SİHRİ */
  display: flex;
  flex-direction: column;
  align-items: center; /* Yatayda ortala */
  justify-content: flex-start;

  backdrop-filter: blur(10px);
  overflow: hidden;
  height: 400px;
  position: relative;
  text-align: center;
}
.decypher-panel.active-mode .panel-icon img {
  transform: scale(0.8);
}

.panel-content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* İçerik kendi içinde de dikeyde ortalansın */
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Başlangıç durumunda ikon ve başlığın altındaki rapor alanı yer kaplamasın diye */
.panel-bottom-report {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  margin-top: 0;
}

/* AKTİF MOD: Kelimeye gelince yukarı kayar ve rapor alanı genişler */
.decypher-panel.active-mode .panel-content-wrapper {
  transform: translateY(
    -20px
  ); /* Kayma miktarını ihtiyaca göre azaltıp artırabilirsin */
}

.decypher-panel.active-mode .panel-bottom-report {
  max-height: 200px; /* İçeriğin sığacağı kadar yer aç */
  opacity: 1;
  margin-top: 30px;
}

.panel-content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* AKTİF MOD: Kelimeye dokunulduğunda yukarı kayar */
.decypher-panel.active-mode .panel-content-wrapper {
  transform: translateY(-30px);
}

.panel-top-group {
  text-align: center;
  transition: all 0.5s ease;
}
.panel-icon {
  font-size: 4rem;
  margin-bottom: 10px;
}
.panel-top-group h3 {
  color: #c5ff95;
  font-size: 1.7rem;
  margin: 0;
}

.panel-bottom-report {
  margin-top: 35px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease;
  text-align: center;
  pointer-events: none;
}

/* Rapor aktifken görünür olur */
.decypher-panel.active-mode .panel-bottom-report {
  opacity: 1;
  transform: translateY(0);
}

/* PASTEL KIRMIZI RAPOR YAZISI */
#decypher-report-text {
  color: #ff8a8a;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}

@keyframes scan {
  0% {
    top: 0%;
  }
  100% {
    top: 100%;
  }
}

/* --- ANALİZ LABORATUVARI GENEL --- */
.label-scanner-section {
  padding: 100px 20px;
  background: #052c4d; /* Derin lacivert zemin */
  position: relative;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
}

/* --- 1. BELİRGİN VE PARLAK IZGARA (GRID) --- */
.label-scanner-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  /* Neon yeşili belirgin çizgiler (Görünürlük artırıldı) */
  background-image:
    linear-gradient(rgba(197, 255, 149, 0.25) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(197, 255, 149, 0.25) 1.5px, transparent 1.5px);
  background-size: 50px 50px; /* Karelerin boyutu */

  /* Çizgilere hafif bir parlama (Glow) */
  filter: drop-shadow(0 0 5px rgba(197, 255, 149, 0.3));

  /* Kenarlarda çizgileri silen merkeze odaklanma maskesi */
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 20%,
    transparent 90%
  );

  pointer-events: none;
  z-index: 0;
}

/* --- 2. HAREKETLİ NEON IŞIK HÜZMESİ (BG LIGHT) --- */
.scanner-bg-light {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(197, 255, 149, 0.08),
    transparent
  );
  transform: skewX(-25deg);
  animation: scan-light-neon 10s infinite linear;
  z-index: 1;
}

@keyframes scan-light-neon {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

/* --- 3. SİSTEM ANALİZ YAZISI (Sağ Alt Köşe) --- */
.label-scanner-section::after {
  content: "DECYPHER_MODE: ACTIVE // TRACE_ID: DTCT-8801 // SYSTEM_SCAN: 100%";
  position: absolute;
  bottom: 25px;
  right: 40px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #c5ff95;
  letter-spacing: 2px;
  opacity: 0.6;
  text-shadow: 0 0 8px rgba(197, 255, 149, 0.6);
  z-index: 1;
}

.scanner-title,
.scanner-wrapper {
  position: relative;
  z-index: 5;
}

.scanner-title {
  text-align: center;
  margin-bottom: 50px;
  font-weight: 800;
  font-size: 2.5rem;
  color: white;
}

.neon-green {
  color: #c5ff95;
  text-shadow: 0 0 15px rgba(197, 255, 149, 0.8);
}

.scanner-wrapper {
  display: flex;
  gap: 40px;
  max-width: 1150px;
  margin: 0 auto;
  align-items: stretch;
}

/* --- SOL TARAF: ÜRÜN ETİKETİ --- */
.product-label-box {
  flex: 1.2;
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 25px;
  color: #334155;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.scanner-instruction {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #ff8a8a;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.label-text-area p {
  line-height: 2.4;
  font-size: 1.1rem;
  color: rgba(51, 65, 85, 0.4);
  margin: 0;
}

/* --- PASTEL KIRMIZI KELİMELER --- */
.decypher-target {
  color: #b91c1c;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 6px;
  background: rgba(255, 138, 138, 0.1);
  transition: all 0.3s ease;
  border-radius: 4px;
}

/* --- SAĞ TARAF: DEDEKTİF PANELİ --- */
.decypher-panel {
  flex: 0.8;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(197, 255, 149, 0.3);
  border-radius: 35px;
  padding: 40px;
  display: flex;
  align-items: center; /* Dikeyde tam ortalama */
  justify-content: center; /* Yatayda tam ortalama */
  backdrop-filter: blur(12px);
  overflow: hidden;
  min-height: 380px;
  position: relative;
  box-shadow: inset 0 0 30px rgba(197, 255, 149, 0.05);
}

.panel-content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* İçeriği merkeze kilitler */
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* AKTİF MOD: Kelimeye dokunulduğunda yukarı kayar */
.decypher-panel.active-mode .panel-content-wrapper {
  transform: translateY(-40px);
}

.panel-top-group {
  text-align: center;
  transition: all 0.5s ease;
}

.panel-icon {
  font-size: 4rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.panel-top-group h3 {
  color: #c5ff95;
  font-size: 1.7rem;
  margin: 0;
  font-weight: 700;
}

.panel-bottom-report {
  margin-top: 35px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease;
  text-align: center;
  width: 100%;
}

.decypher-panel.active-mode .panel-bottom-report {
  opacity: 1;
  transform: translateY(0);
}

/* RAPOR YAZISI PASTEL KIRMIZI */
#decypher-report-text {
  color: #5debd7;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 138, 138, 0.2);
}

.calorie-fuel-section {
  /* Üst ve alt boşluğu 50px'den 120px'e çıkardık */
  padding: 80px 50px;
  height: 700px;
  background: #052c4d;
  color: white;
  position: relative;
  overflow: hidden;
  font-family: "Poppins", sans-serif;

  /* İçeriğin her zaman merkezde kalması için ekleyebilirsin */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.fuel-title {
  text-align: center;
  margin-bottom: 60px;
  font-weight: 800;
  font-size: 2.5rem;
}
.orange-neon {
  color: #c5ff95;
  text-shadow: 0 0 15px rgba(255, 159, 67, 0.6);
  font-weight: 600;
  font-size: 2.1rem;
}

.fuel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

/* ÜRÜN VİTRİNİ */
.fuel-product-display {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 159, 67, 0.2);
  border-radius: 30px;
  padding: 40px;
  text-align: center;
  position: relative;
}

.product-placeholder {
  font-size: 5rem;
  margin-bottom: 20px;
  display: block;
}
.product-badge {
  background: #5debd7;
  color: #052c4d;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 15px;
}

/* DEV SAYAC */
.main-counter-box {
  text-align: center;
  border-radius: 50%;
  width: 300px;
  height: 300px;
  border: 10px double rgba(255, 159, 67, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  background: radial-gradient(
    circle,
    rgba(255, 159, 67, 0.05) 0%,
    transparent 70%
  );
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.counter-label {
  font-size: 12px;
  letter-spacing: 3px;
  opacity: 0.6;
}
.counter-value {
  font-size: 5rem;
  font-weight: 900;
  color: #5debd7;
  line-height: 1;
  margin: 10px 0;
}
.counter-unit {
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0.8;
}

/* EFOR ÇUBUKLARI */
.effort-stats {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.effort-item {
  width: 100%;
}
.effort-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.effort-time {
  color: #c5ff95;
  font-weight: 700;
}

.effort-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.fill.orange {
  height: 100%;
  background: linear-gradient(90deg, #074173, #1679ab);
  width: 0; /* JS ile dolacak */
  transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(255, 159, 67, 0.5);
}

/* 1. Kapsayıcı Kutu (Dış çerçeve duruyor) */
.product-label-box {
  flex: 1.2;
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 25px;
  color: #334155;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);

  /* DIŞ ÇERÇEVE DURUYOR - İsteğe bağlı,
       etiketin kendisinin bir kutu gibi durmasını sağlar */
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* 2. Resmin Kapsayıcısı (Kutu - İÇ ÇERÇEVE KALDIRILDI) */
.product-placeholder {
  margin-bottom: 20px;
  display: flex; /* İçindeki resmi ortalamak için */
  justify-content: center;
  align-items: center;

  /* Kutunun kendisinin patlamasını engeller */
  width: 100%;
  min-height: 150px; /* Görsel için minimum bir alan ayırır */

  /* SİBER TASARIMIN KALDIRILAN İÇ ÇERÇEVESİ */
  /* background: rgba(255, 255, 255, 0.02); -- Bu satırı sil/yorumla */
  /* border: 1px solid rgba(197, 255, 149, 0.1); -- Bu satırı sil/yorumla */
  /* padding: 15px; -- Bu satırı sil/yorumla */
}

/* 3. Resmin Kendisi (İçerideki img etiketi) */
.product-placeholder img {
  /* BU SATIR SORUNU ÇÖZER: Resim kapsayıcısından asla daha geniş olamaz */
  max-width: 100%;

  /* Yüksekliği otomatik ayarlar, resim bozulmaz */
  height: auto;

  /* Kutunun içinde çok büyük durmaması için estetik bir sınır */
  max-height: 180px;

  /* Resmin net durması için */
  object-fit: contain;

  /* Siber laboratuvar temasına uygun bir neon parlama efekti (İsteğe bağlı) */
  /* Goftet resminin etrafındaki çerçeveyi kaldıran kilit nokta */
  box-shadow: none; /* Varsa, gölgeyi kaldırır */
  border: none; /* Varsa, çizgiyi kaldırır */

  /* Hafif bir neon yeşili parlama (Süslenme, çerçeve değil) */
  filter: drop-shadow(0 0 10px rgba(211, 140, 7, 0.3));
}
.fuel-subtext {
  text-align: center;
  max-width: 500px;
  margin: -40px auto 45px; /* Başlığa yaklaştırıp arama barına mesafe bıraktık */
  color: #ffffff; /* Soft gri-mavi, çok göze batmaz */
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.8;
  position: relative;
  z-index: 5;
}

/* Yazının önüne küçük bir analiz ikonu efekti (opsiyonel) */
.fuel-subtext::before {
  display: block;
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: #c5ff95; /* Çok sönük neon yeşil */
  margin-bottom: 5px;
  letter-spacing: 2px;
}
/* --- SAYAÇ MERKEZİ VE DÖNEN HALKALAR --- */
.main-counter-box {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  z-index: 10;
}

/* İçerik Yazıları (Halkaların üstünde durması için) */
.counter-content {
  text-align: center;
  z-index: 15;
  pointer-events: none;
}

/* GENEL HALKA YAPISI */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* 1. DIŞ HALKA (Saat Yönü - Kesikli) */
.ring-1 {
  width: 100%;
  height: 100%;
  border: 2px dashed #5debd7;
  animation: rotateClockwise 15s linear infinite;
}

/* 2. İÇ HALKA (Ters Saat Yönü - Neon Yeşil Vurgu) */
.ring-2 {
  width: 85%;
  height: 85%;
  border: 3px solid transparent;
  border-top: 3px solid #c5ff95;
  border-bottom: 3px solid #c5ff95;
  opacity: 0.6;
  filter: blur(1px);
  animation: rotateCounterClockwise 8s linear infinite;
}

/* ANİMASYONLAR */
@keyframes rotateClockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateCounterClockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@keyframes pulseCore {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* --- DİĞER DETAYLAR --- */
.counter-value {
  font-size: 4.5rem;
  font-weight: 900;
  color: #5debd7;
  line-height: 1;
  text-shadow: 0 0 20px rgba(67, 255, 130, 0.6);
}

.counter-label {
  font-size: 11px;
  letter-spacing: 3px;
  color: #94a3b8;
  margin-bottom: 5px;
}

.counter-unit {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}

.counter-desc {
  font-size: 11px;
  max-width: 180px;
  margin: 15px auto 0;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.panel-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 120px; /* Görsel için dikey alan bırakır */

  /* Etraftaki çizgileri ve kutu görüntüsünü temizledik */
  background: transparent;
  border: none;
  padding: 0;
}

/* 2. Resmin Kendisi (İçerideki img etiketi) */
.panel-icon img {
  /* Sayfayı kaplamasını engelleyen kilit satırlar */
  max-width: 140px; /* Büyütecin genişliğini buradan kontrol edebilirsin */
  height: auto;

  /* Paneli çok uzatmaması için yükseklik sınırı */
  max-height: 140px;

  /* Resmin kalitesini korur */
  object-fit: contain;

  /* Sadece objenin kendisine hafif bir neon yeşil parlama verir (Çerçeve yapmaz) */
  filter: drop-shadow(0 0 15px rgba(197, 255, 149, 0.4));

  /* Varsa tarayıcı varsayılanlarını sıfırla */
  border: none;
  outline: none;
}

/* Izgara Katmanı */
.calorie-fuel-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(197, 255, 149, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 255, 149, 0.04) 1px, transparent 1px);
  background-size: 40px 40px; /* Karelerin boyutu */
  z-index: 1;
}

/* Hareketli Tarama Çizgisi */
.calorie-fuel-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(197, 255, 149, 0.05) 50%,
    transparent 100%
  );
  animation: scanLine 8s linear infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes scanLine {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
} /* ==========================================================================
GIDA SÖZLÜĞÜÜ
   ========================================================================== */
:root {
  --turquoise: #1679ab;
  --safe: #2ecc71;
  --warning: #f1c40f;
  --danger: #e74c3c;
  --text-dark: #2d3436;
  --text-gray: #64748b;
  /* Premium Gölgeler */
  --shadow-light:
    0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-heavy: 0 20px 50px -12px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 10px 10px rgba(22, 121, 171, 0.2);
}

/* Ana Bölüm (Section) */
.food-lookup-section {
  padding: 100px 20px;
  /* Sayfayı dikeyde tam ortalamak için 'vh' birimi kullanıyoruz.
     Böylece ekran ne kadar büyük olursa olsun içerik hep dengeli durur. */
  min-height: 70vh;
  background: #ffffff;
  display: flex;
  align-items: center; /* İçeriği dikeyde tam merkezle */
  justify-content: center;
  position: relative;
}

/* Kapsayıcı (Container) */
.lookup-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px; /* Header ile Kartlar arasındaki boşluğu biraz açtık (modern durur) */
}

/* Başlık ve Arama Alanı (Header) */
.lookup-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  min-height: 100px; /* Header'ın yüksekliğini rezerve ediyoruz */
}

.lookup-header h2 {
  font-size: 2rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: -1px;
  color: #1679ab;
}

.lookup-header p {
  color: var(--text-gray);
  margin: 8px 0 0 0;
  font-size: 1.1rem;
}

/* Arama Kutusu */
.search-box-modern {
  display: flex;
  position: relative;
    z-index: 50;
  background: #ffffff;
  padding: 8px;
  border-radius: 60px;
  border: none;
  width: 400px;
  box-shadow: var(--shadow-light);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-box-modern:focus-within {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

.search-box-modern input {
  flex: 1;
  border: none;
  background: none;
  padding: 10px 25px;
  outline: none;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.search-btn2 {
  background: linear-gradient(135deg, var(--turquoise), #0f5a81);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(22, 121, 171, 0.3);
}

.search-btn2:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 20px rgba(22, 121, 171, 0.4);
}

/* Keşif Kartları */
.discovery-grid {
    position: relative;
    z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.discovery-card {
  background: #074173;
  padding: 35px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.discovery-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(22, 121, 171, 0.05) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: 0.3s;
}

.discovery-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-heavy);
}

.discovery-card:hover::after {
  opacity: 1;
}

.disc-code {
  background: #c5ff95;
  color: #074173;
  padding: 6px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.9rem;
}

.discovery-card h4 {
  margin: 20px 0 12px 0;
  color: #b2dcf1;
  font-size: 1.3rem;
  font-weight: 600;
}

.discovery-card p {
  font-size: 0.95rem;
  color: #fffafa;
  line-height: 1.6;
  margin-bottom: 20px;
}

.learn-more {
  color: #fffafa;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* SONUÇ KARTI (Hizalamalar Düzeltildi) */
.lookup-result-wrapper {
  display: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
  /* Başlangıç animasyonu için: */
  opacity: 0;
  transform: translateY(20px);
  animation: premiumFade 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.result-main-info {
  padding: 30px 40px; /* Üst başlık alanını da biraz daralttık */
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.code-and-name {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.code-and-name h3 {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin: 5px 0 0 0;
  font-weight: 800;
}

/* Risk ve Kapatma Butonu Kapsayıcısı */
.result-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Sağ tarafa yasla */
  gap: 15px; /* Üst üste binmeyi önleyen boşluk */
}

.badge-e {
  background: linear-gradient(135deg, var(--turquoise), #0f5a81);
  color: white;
  padding: 8px 20px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1.2rem;
  width: fit-content;
  box-shadow: 0 10px 20px rgba(22, 121, 171, 0.2);
}

.tag-cat {
  color: var(--text-gray);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.risk-pill {
  padding: 10px 25px;
  border-radius: 50px;
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.risk-safe {
  background: var(--safe);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
}
.risk-warning {
  background: var(--warning);
  box-shadow: 0 6px 20px rgba(241, 196, 15, 0.3);
}
.risk-danger {
  background: var(--danger);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

/* Kapatma Butonu */
.close-result-btn {
  background: white;
  border: 1px solid #eee;
  color: #94a3b8;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.close-result-btn:hover {
  background: #fdfdfd;
  color: var(--danger);
  transform: scale(1.1);
  border-color: #fee2e2;
}

/* Detay Tablosu (Emoji ve Metin Hizalaması Düzeltildi) */
.result-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: transparent;
  border-top: 1px solid #f1f5f9; /* Üstten bir ayırıcı çizgi */
}
.detail-item:first-child {
  border-right: 1px solid #f1f5f9;
}

.detail-item {
  padding: 25px 35px;
  height: auto; /* Sabit height varsa iptal et */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.detail-item label {
  display: flex;
  align-items: center; /* Emojiyi metinle dikeyde ortalar */
  gap: 8px;
  font-weight: 800;
  font-size: 0.8rem;
  color: #b2bec3;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.detail-item p {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.full-width {
  grid-column: span 2;
}

.warning-area {
  background: linear-gradient(135deg, #fffafa, #ffffff) !important;
  border-top: 1px solid #fee2e2;
}

.warning-area p {
  color: #b91c1c;
  font-weight: 600;
}

/* Animasyonlar */
@keyframes premiumFade {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99); /* 30px'den 10px'e çektik, daha az zıplar */
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Arama Butonu Görünümü */
.search-btn2 {
  background: linear-gradient(135deg, var(--turquoise), #0f5a81);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px; /* İkonun buton içindeki boyutu için */
}

.search-btn2 svg {
  width: 20px;
  height: 20px;
}

.search-btn2:hover {
  transform: scale(1);
  box-shadow: 0 0 15px rgba(22, 121, 171, 0.4);
}

/* BOŞLUKLARI DARALTAN KOMPAKT DÜZEN */
.result-main-info {
  padding: 25px 35px; /* Boşlukları daralttık */
}

.detail-item {
  padding: 20px 35px; /* Devasa boşluk hissi gitti */
  border-right: 1px solid #f1f5f9;
}

.detail-item:last-child {
  border-right: none;
}

.detail-item label {
  margin-bottom: 6px; /* Başlık metne yaklaştı */
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.detail-item p {
  line-height: 1.4; /* Satır arası daraldı, daha toplu duruyor */
  font-size: 1rem;
}

/* Yan Etkiler Alanı */
.warning-area {
  padding: 20px 35px !important;
}

/* ==========================================================================
   MAIN FOOTER - TÜM CSS (EKSİKSİZ)
   ========================================================================== */

.main-footer {
  background: linear-gradient(135deg, #052c4d);
  color: #cbd5f5;
  padding: 80px 0 20px;
  position: relative;
  overflow: hidden;
  font-family: "Poppins", sans-serif; /* Projenizdeki fonta uygun */
}

/* Arka Plan İkon Deseni */
.main-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/images/footer1.png");
  background-repeat: repeat;
  background-size: 435px;
  opacity: 0.07;
  mix-blend-mode: luminosity;
  pointer-events: none;
  z-index: 0;
}

.footer-links h4 {
    text-align: center;
}

.footer-links ul {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
    column-gap: 40px;
    row-gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;   /* grid'i de ortala */
}

@media (max-width: 768px) {
    .footer-links ul {
        grid-auto-flow: row;
        grid-template-rows: auto;
        row-gap: 10px;
        text-align: center;     /* mobilde linkleri de ortala */
    }
}

/* --- KONTEYNER VE HİZALAMA (NAVIS TARZI) --- */
.footer-container {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

/* Sütun Genişlikleri */
.footer-about {
  flex: 1.5;
  min-width: 280px;
}

.footer-links {
  flex: 1;
  min-width: 150px;
}

.footer-contact {
  flex: 1;
  min-width: 200px;
}

/* --- LOGO, RESİM VE NOKTA HİZALAMASI --- */
.footer-logo {
  display: flex;
  align-items: center; /* Resim, nokta ve metni ipe dizer gibi hizalar */
  margin-bottom: 25px;
}

.footer-logo img {
  height: 40px; /* Logo boyutunu buradan sabitledik */
  width: auto;
  display: block;
  object-fit: contain;
  margin-right: 15px;
}

.footer-logo h3 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  line-height: 1; /* Yazı altındaki boşluğu silerek tam hizalama sağlar */
}

/* --- METİNLER VE BAŞLIKLAR --- */
.footer-about p {
  color: #94a3b8;
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.95rem;
}

/* Link Hover Efekti */
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #c5ff95;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-links a:hover::after {
  width: 100%;
}

/* --- İLETİŞİM VE SOSYAL MEDYA --- */
.footer-contact p {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-email {
  display: inline-block;
  margin-top: 10px;
  color: #c5ff95;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: 0.3s;
}

.footer-email:hover {
  color: #ffffff;
  transform: scale(1.01);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  color: #c5ff95;
  display: flex;
  align-items: center; /* Dikeyde merkezleme */
  justify-content: center; /* Yatayda merkezleme */
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(197, 255, 149, 0.2);
  line-height: 1; /* İkonun kaymasını önler */
}

.footer-social a i {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  background: #c5ff95;
  color: #052c4d;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(197, 255, 149, 0.3);
}

/* --- COPYRIGHT (ALT ÇİZGİ) --- */
.footer-bottom {
  position: relative;
  z-index: 10;
  text-align: center;
  margin: 60px auto 0;
  width: 90%;
  max-width: 1200px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 0.9rem;
  color: #c5ff95a4;
}

.effort-info i {
  font-size: 24px;
  margin-right: 10px;
  vertical-align: middle;
}
.effort-bar .fill {
  width: 0%;
  transition: width 2s ease-in-out;
}
/* ============================================
   KATEGORİLER — Buton + Mega Dropdown
   ============================================ */

.category-wrapper {
    position: relative;
    display: inline-block;
    font-family: "Poppins", sans-serif;
}

/* Buton */
.category-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #c5ff95;
    border: 1px solid rgba(197, 255, 149, 0.45);
    color: #074173;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.category-btn i { font-size: 20px; }
.category-btn .arrow { font-size: 15px; transition: transform 0.3s ease; }

.category-wrapper:hover .category-btn { transform: translateY(-2px); }
.category-wrapper:hover .arrow { transform: rotate(180deg); }

/* Dropdown container */
.category-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    left: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 999;
    padding: 0;
}

/* GENEL link stili — mavi/altı çizili'yi engeller */
.category-dropdown a {
    color: #052c4d;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}
.category-dropdown a:hover {
    background: #c5ff95;
}

/* AÇILMA */
.category-wrapper:hover .category-dropdown,
.category-dropdown.active-click {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================================
   MEGA İÇERİK
   ============================================ */

.dropdown-grid {
    display: flex;
    gap: 14px;
    padding: 14px;
    min-width: 380px;
}

.dropdown-categories {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.dropdown-pages {
    width: 160px;
    flex-shrink: 0;
    border-left: 1px solid rgba(7, 65, 115, 0.1);
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.category-item {
    position: relative;
}

.category-dropdown .category-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
}

.category-item > a i {
    font-size: 11px;
    opacity: 0.4;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.category-item:hover > a i {
    transform: translateX(-3px);
    opacity: 1;
}

/* Submenu — sola açılır */
.category-submenu {
    position: absolute;
    top: 0;
    right: calc(100% + 8px);
    min-width: 180px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1001;
}

.category-item:hover .category-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.category-dropdown .category-submenu a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
}

.category-dropdown .dropdown-pages > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.dropdown-pages a i {
    color: #074173;
    width: 16px;
    flex-shrink: 0;
    font-size: 14px;
}

/* ============================================
   KATEGORİ DROPDOWN — MOBİL (≤768px)
   ============================================ */
@media (max-width: 768px) {

    /* --- Ana dropdown: viewport'a göre konumlandır --- */
    .category-dropdown {
        position: fixed !important;
        top: 72px !important;
        left: 12px !important;
        right: 12px !important;
        bottom: auto !important;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        border-radius: 16px;
        padding: 0;
    }

    /* --- Grid: dikey akış, kenara yapışsın --- */
    .dropdown-grid {
        flex-direction: column;
        padding: 10px;
        min-width: 0;
        max-width: none;
        width: 100%;
        gap: 8px;
    }

    /* --- Sol blok: kategoriler --- */
    .dropdown-categories {
        width: 100%;
        gap: 2px;
    }

    /* --- Sağ blok: sayfa linkleri --- */
    .dropdown-pages {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(7, 65, 115, 0.08);
        padding-left: 0;
        padding-top: 10px;
        margin-top: 4px;
        gap: 2px;
    }

    .category-dropdown .dropdown-pages > a {
        padding: 11px 14px;
        font-size: 14px;
    }

    /* --- Üst kategori link satırı --- */
    .category-dropdown .category-item > a {
        padding: 12px 14px;
        font-size: 14px;
        position: relative;
    }

    /* --- Chevron: büyük tap alanı + sol ayraç çizgi --- */
    .category-item > a i.bi-chevron-left {
        font-size: 14px !important;
        padding: 12px 14px;
        margin: -12px -14px -12px 0;
        margin-left: 6px;
        opacity: 0.55;
        transform: rotate(-90deg);
        transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
        border-left: 1px solid rgba(7, 65, 115, 0.1);
    }
    .category-item > a i.bi-chevron-left:active {
        background: rgba(7, 65, 115, 0.06);
        opacity: 1;
    }

    /* Açık durumda chevron yukarı baksın */
    .category-item.is-open > a i.bi-chevron-left {
        transform: rotate(90deg);
        opacity: 1;
        color: #074173;
    }

    /* --- Submenu: inline (parent'ın altına açılır) --- */
    .category-submenu {
        position: static;
        right: auto;
        left: auto;
        box-shadow: none;
        background: rgba(7, 65, 115, 0.05);
        transform: none;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        padding: 0 8px;
        border-radius: 10px;
        margin: 0;
        transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    }

    .category-item.is-open .category-submenu {
        max-height: 600px;
        padding: 6px 8px;
        margin: 4px 8px 6px;
    }

    /* --- Submenu içindeki linkler: girintili + bullet --- */
    .category-dropdown .category-submenu a {
        position: relative;
        display: block;
        padding: 9px 12px 9px 26px;
        font-size: 13px;
        color: #052c4d;
        opacity: 0.85;
        border-radius: 8px;
        white-space: normal;
    }
    .category-dropdown .category-submenu a::before {
        content: '';
        position: absolute;
        left: 12px;
        top: 50%;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: rgba(7, 65, 115, 0.35);
        transform: translateY(-50%);
        transition: background 0.2s ease;
    }
    .category-dropdown .category-submenu a:active {
        background: rgba(197, 255, 149, 0.4);
        color: #074173;
        opacity: 1;
    }
    .category-dropdown .category-submenu a:active::before {
        background: #074173;
    }
}

/* vssssssssssssssssssssssssssssssssssssssssssssssssssss*/

.vs-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 100px;
  z-index: 10;
}

/* --- STATİK VE KESKİN ŞİMŞEK --- */
/* Ana kapsayıcı */
.vs-strike-static {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif; /* Örnek kalın yazı tipi */
  font-size: 80px; /* Yazı boyutu */
  font-weight: 900; /* Çok kalın yazı */
  color: #1a3c5a; /* "VS" rengi (lacivert) */
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(0, 150, 255, 0.4); /* Arka plan ışıltısı */
  overflow: visible; /* Şimşek taşabilir */
}

.vs-strike-static::before {
  content: "";
  position: absolute;
  /* Şimşek görselinizi buraya ekleyin */
  background-image: url("/images/simsek.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  /* Konum ve Boyutlandırma - Şimşeği büyütür ve merkeze alır */
  width: 1.5em; /* Yazı boyutuyla orantılı genişlik (daha büyük) */
  height: 1.2em; /* Yazı boyutuyla orantılı yükseklik */
  top: 50%;
  left: 50%;
  transform: translate(-75%, -50%); /* Tam merkeze hizalar */

  /* Görünüm Efekti */
  z-index: -1; /* Şimşek yazının arkasında kalsın */
  opacity: 0.9; /* Hafif transparanlık */
  filter: drop-shadow(0 0 10px rgba(0, 150, 255, 0.8)); /* Şimşek ışıltısı */
}

.vs-bolt {
  font-size: 60px;
  font-weight: 900;
  color: #052c4d;
  position: relative;
  font-style: italic; /* Agresif karakteri koruyoruz */
}

.dynamic-vs-arena {
  padding: 50px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1) 0%,
      /* Üst taraf çok hafif aydınlık (parlama efekti) */
      rgba(255, 255, 255, 0.2) 100%
        /* Alt taraf masanın kendi renginde çok hafif bir ton */
    ),
    url("/images/arkaplan.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: soft-light;
}

.arena-header {
  font-size: 1.09rem;
  color: #ffffff;
  line-height: 1.5;
}
.vs-summary {
  font-size: 1rem;
  color: #c2cfd4;
  line-height: 1.5;
}
.diff-kcal {
  color: #c5ff95;
}

/* VS WRAPPER */
.vs-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  position: relative;
  z-index: 2;
}

/* KARTLAR */
.side {
  width: 260px;
  padding: 25px;
  border-radius: 20px;
  background: linear-gradient(145deg, #1679ab, #020617);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 0 20px #074173;
  opacity: 0;
  transform: none;
}
/* HOVER EFEKTİ */
.side:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0 30px #074173;
}

.side h4 {
  font-size: 18px; /* Boyutu 16px'e düşürerek kibarlaştırdık */
  font-weight: 500; /* Çok kalın (800) yerine orta kalınlıkta (500) yaptık */
  line-height: 1.4; /* Satır aralığını açarak ferahlık kattık */
  color: #f1f5f9; /* Saf beyaz yerine çok hafif kirli beyaz (daha profesyonel) */
  margin: 15px 0 10px 0; /* Boşlukları dengeledik */
  max-width: 90%; /* Kenarlara çok yapışmasın */
  letter-spacing: 0.3px; /* Harf arasını çok hafif açarak okunurluğu artırdık */
}

/* SOL KART BAŞLANGIÇ */
.target-product {
  transform: translateX(-400px) scale(0.9);
}

/* SAĞ KART BAŞLANGIÇ */
.suggest-product {
  transform: translateX(400px) scale(0.9);
}

/* --- ÇARPIŞMA ANİMASYONLARI (TETİKLENDİĞİNDE) --- */
.start-animation .target-product {
  animation: crashLeft 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.start-animation .suggest-product {
  animation: crashRight 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Sol kart: Merkeze sert vurur (40px içeri girer), sonra yerine döner */
@keyframes crashLeft {
  0% {
    transform: translateX(-400px) scale(0.9);
    opacity: 0;
  }
  70% {
    transform: translateX(40px) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* Sağ kart: Merkeze sert vurur (-40px içeri girer), sonra yerine döner */
@keyframes crashRight {
  0% {
    transform: translateX(400px) scale(0.9);
    opacity: 0;
  }
  70% {
    transform: translateX(-40px) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* ÜRÜN RESİM */
.fighter-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fighter-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* VS ORTA */
.vs-center {
  position: relative;
  text-align: center;
}

@keyframes flicker {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

/* ENERJİ PATLAMASI */
.vs-center::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: blast 1.5s infinite;
}

@keyframes blast {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* SCAN LINE */
.scan-line {
  width: 2px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #1679ab, transparent);
  margin: 10px auto;
  animation: scanMove 2s infinite;
}

@keyframes scanMove {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

/* KCAL TAG */
.energy-tag {
  margin: 15px auto 0 auto; /* Üstten 15px boşluk, yanlardan OTOMATİK (ortalama) */
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  display: table; /* Block gibi davranır ama sadece içeriği kadar yer kaplar */
  text-align: center;
  width: auto;
}

.energy-tag.high {
  background: #0f5a81;
  color: #fffafa;
}
.energy-tag.low {
  background: #0f5a81;
  color: #fffafa;
}

/* ALT METİN */
.arena-info {
  margin-top: 60px;
  text-align: center;
  color: #052c4d;
  position: relative;
  z-index: 3;
}

.vs-highlight {
  color: #c5ff95;
}

.btn-compare-detail {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, #1679ab, #c5ff95);
  color: #052c4d;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  z-index: 10;
  border: none;
}

.btn-compare-detail:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 5px 15px rgba(7, 65, 115, 0.2);
  filter: brightness(1.1);
}

.btn-compare-detail:active {
  transform: scale(0.98);
}

/* STATS PANEL GENEL TASARIMI */
.stats-panel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  background: linear-gradient(
    145deg,
    #020617,
    #1679ab
  ); /* Kartla uyumlu gradient */
  border: 1px solid #5debd7;
  border-radius: 15px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Yaylanma efekti */
  z-index: -1; /* Kartın arkasında durur */
}

/* Sol panel sola doğru fırlar */
.left-panel {
  right: 0;
}
.target-product:hover .left-panel {
  right: 105%; /* Kartın dışına iter */
  opacity: 1;
  visibility: visible;
}

/* Sağ panel sağa doğru fırlar */
.right-panel {
  left: 0;
}
.suggest-product:hover .right-panel {
  left: 105%; /* Kartın dışına iter */
  opacity: 1;
  visibility: visible;
}

/* PANEL İÇERİĞİ */
.stat-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #fff;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(93, 235, 215, 0.2);
}

.stat-item span:last-child {
  color: #c5ff95; /* Değerleri neon yeşil yapar */
  font-weight: bold;
}

.arena-hint {
  /* Konumlandırma */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  margin-bottom: 75px;
  padding: 12px 28px;
  z-index: 20;

  /* Yazı Stili */
  color: #052c4d;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;

  /* Arka Plan ve Buğu */
  background: rgba(
    197,
    255,
    149,
    0.9
  ); /* Şeffaflığı bir tık azalttık ki renk daha doygun dursun */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* Border Yumuşatma: Çizgisel border yerine çok şeffaf bir sınır */
  border: 1px solid rgba(197, 255, 149, 0.2);
  border-radius: 50px;

  /* Gölge ve Yumuşak Işıma */
  /* İlk gölge derinlik verir, ikinci gölge (yeşil olan) border etkisini yumuşatır */
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.1),
    0 0 15px rgba(197, 255, 149, 0.3);

  text-transform: none;
}

.arena-hint::before {
  content: "\f05a"; /* Bilgi ikonu */
  font-family: "Font Awesome 6 Free";
  font-weight: 600;
  margin-right: 10px;
  font-size: 16px;
  color: #052c4d;
}

/* --- SADECE MOBİL GÖRÜNÜM (768px ve altı) MOBİLLLLLLLLLLLLLLLLLLLLLLLL --- */
/* --- HERO SECTION MOBİL TAM KOD (768px ve altı) --- */
@media (max-width: 768px) {
  .hero-section {
    /* Boşlukları tıraşladık */
    padding: 150px 15px !important;
    min-height: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .hero-title {
    font-size: 1.8rem !important;
    margin-bottom: 10px !important;
    line-height: 1.2 !important;
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 25px !important;
  }

  /* Arama Çubuğu Konteynırı */
  .search-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .search-bar {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important; /* İkon, input ve butonu yan yana dizmek için */
    align-items: center !important;
    padding: 5px 5px 5px 12px !important; /* Sol boşluğu yazı için biraz kısalttık */
    box-sizing: border-box !important; /* Taşmayı önler */
    border-radius: 50px !important;
  }

  /* YAZININ SIĞMASINI SAĞLAYAN KRİTİK ALAN */
  .search-input {
    flex: 1 !important; /* Butondan kalan tüm boşluğu inputa ver */
    min-width: 0 !important; /* Yazı uzun olsa bile kutuyu genişletip taşırmaz */
    font-size: 0.85rem !important; /* Mobilde yazıyı hafif küçülterek daha fazla kelime sığdırdık */
    border: none !important;
    outline: none !important;
    background: transparent !important;
    width: 100% !important;
  }

  /* Popüler Etiketler */
  .quick-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 15px !important;
  }

  .badge-tag {
    font-size: 0.75rem !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
  }
  /* Arama Çubuğu Ana Kutu */
  .search-bar {
    display: flex !important;
    align-items: center !important;
    padding: 2px 2px 2px 15px !important; /* Butonun dışa taşmaması için padding'i sıfıra yakın tuttuk */
    height: 48px !important; /* Çubuğun yüksekliğini sabitledik */
    border-radius: 50px !important;
    box-sizing: border-box !important;
  }

  /* Yazı Alanı */
  .search-input {
    flex: 1 !important;
    min-width: 0 !important;
    font-size: 0.85rem !important;
    height: 100% !important;
  }

  /* ARAMA BUTONU (Boyut Sabitleme) */
  .search-btn,
  .search-btn2 {
    width: 40px !important; /* Buton genişliği */
    height: 40px !important; /* Buton yüksekliği (Çubuktan biraz küçük olmalı) */
    min-width: 40px !important; /* Küçülmesini engeller */
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important; /* İç boşluğu sıfırlayarak taşmayı önledik */
    margin-left: 5px !important;
  }

  /* Butonun İçindeki İkon/Ok */
  .search-btn i,
  .search-btn svg,
  .search-btn2 svg {
    font-size: 14px !important; /* İkonu butonla orantılı küçülttük */
    width: 16px !important;
    height: 16px !important;
  }
}
/* --- GIDA SÖZLÜĞÜ SECTION MOBİL TAM KOD (768px ve altı) --- */

@media (max-width: 768px) {
  /* 1. Section: Kenarlardan hafif boşluk (15px) vererek taşmayı önler */
  .food-lookup-section {
    padding: 75px 15px !important;
    height: auto !important;
    min-height: auto !important;
    overflow-x: hidden; /* Her ihtimale karşı yatay taşmayı engeller */
  }

  /* 2. Header: Başlık ve alt metin */
  .lookup-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1px !important;
    margin-bottom: 2px !important;
      position: relative;
      z-index: 50;
  }

  .text-side h2 {
    font-size: 1.4rem !important;
    line-height: 1.2 !important;
  }

  .text-side p {
    font-size: 0.85rem !important;
    max-width: 90% !important; /* Ekranın %90'ını geçmesin */
    margin-top: 50% auto !important;
  }

  /* 3. ARAMA KISMI (SIĞMA SORUNU ÇÖZÜMÜ) */
  .input-side {
    width: 100% !important; /* Tüm genişliği kullan */
    max-width: 100% !important;
    margin-top: 50px;
      position: relative;
      z-index: 50;
    display: flex !important;
    justify-content: center !important;
  }

  .search-box-modern {
    width: 100% !important; /* Ekrana tam otursun */
    max-width: 100% !important;
    box-sizing: border-box !important; /* Kenarlıkları genişliğe dahil et */
    display: flex !important;
    align-items: center !important;
    height: 50px !important;
    border-radius: 50px !important;
    padding: 0 5px 0 15px !important;
  }

  .search-box-modern input {
    flex: 1 !important; /* Butondan kalan tüm boşluğu input kullansın */
    min-width: 0 !important; /* Inputun taşmasını önleyen kritik kod */
    font-size: 0.9rem !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
  }

  /* 4. Discovery Grid: 2'li düzen ve 3. kartı ortalama */
  .discovery-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
  }

  /* 5. Kart Tasarımı ve İçerik */
  .discovery-card {
    /* 2 kart arası boşluk (12px) düşülmüş genişlik */
    width: calc(50% - 6px) !important;
    background-color: #0b426e !important;
    border-radius: 20px !important;
    padding: 15px 8px !important;
    min-height: 180px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .disc-code {
    background-color: #d4ff91 !important;
    color: #0b426e !important;
    font-size: 0.65rem !important;
    padding: 2px 8px !important;
  }

  .discovery-card h4 {
    font-size: 0.8rem !important;
    color: #ffffff !important;
    margin-bottom: 6px !important;
  }

  .discovery-card p {
    display: -webkit-box !important;
    font-size: 0.65rem !important;
    line-height: 1.3 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    -webkit-line-clamp: 3; /* 3 satırda keser */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px !important;
  }

  .learn-more {
    font-size: 0.7rem !important;
    color: #d4ff91 !important;
    margin-top: auto;
  }
}
/* --- CALORIE FUEL SECTION MOBİL (768px ve altı) --- */

@media (max-width: 768px) {
  .fuel-title {
    /* 1. Boyut ve Hizalama */
    /* Mobilde taşmayacak ideal boyut */
    text-align: center !important;
    display: block !important;
    width: 100% !important;

    /* 2. Kesilmeyi Önleyen Kritik Ayarlar */
    line-height: 1.3 !important; /* Yazının üstten/alttan kırpılmasını engeller */
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin: 0 auto 15px auto !important;

    /* 3. Diğer Elemanlarla Çakışmayı Önleme */
    position: relative !important;
    z-index: 10 !important;
  }

  .fuel-title .orange-neon {
    display: inline-block !important; /* Efektlerin (glow/neon) görünür kalmasını sağlar */
    max-width: 100% !important;
    word-wrap: break-word !important; /* Yazı çok uzunsa alt satıra geçer, ekranı yırtmaz */
    font-size: 1.5rem !important;
  }
}
@media (max-width: 768px) {
  .calorie-fuel-section {
    padding: 60px 15px !important;
    width: 100% !important;
    overflow: hidden !important; /* Dışarı sarkan her şeyi gizler */
    box-sizing: border-box !important;
  }

  /* Grid'i tamamen bozup dikey akışa geçiyoruz */
  .fuel-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important; /* Kutular arasına nefes payı */
    align-items: center !important;
    width: 100% !important;
  }

  /* Üstteki Ürün Kartı */
  .fuel-product-display {
    width: 95% !important; /* Ekrana tam dayansın ama az pay kalsın */
    max-width: 100% !important;
    padding: 15px !important;
    background: rgba(
      255,
      255,
      255,
      0.05
    ) !important; /* Hafif bir kart zemini */
    border-radius: 15px !important;
    box-sizing: border-box !important;
  }

  .product-placeholder img {
    max-width: 280px !important; /* Görseli mobilde makul boyuta çek */
    height: auto !important;
  }

  /* Orta Kısımdaki Yuvarlak Sayaç (Orbit) */
  .main-counter-box {
    width: 280px !important; /* Halka çapı */
    height: 280px !important;
    margin: 3px auto !important;
    position: relative !important;
    transform: scale(0.9); /* Eğer hala sığmazsa hafifçe küçültür */
  }

  /* Halkanın içindeki yazılar */
  .counter-content {
    width: 100% !important;
  }

  .counter-value {
    font-size: 4rem !important;
  }

  /* Alt Kısımdaki İstatistik Barları */
  .effort-stats {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  .effort-item {
    background: rgba(0, 0, 0, 0.2) !important;
    padding: 15px !important;
    border-radius: 10px !important;
  }

  .effort-info {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.9rem !important;
  }

  /* Bar genişliğinin taşmasını engelle */
  .effort-bar {
    height: 8px !important;
    width: 100% !important;
    border-radius: 4px !important;
  }

  /* Başlık ve Alt Metin */
  .fuel-title {
    font-size: 1.8rem !important;
    margin-bottom: 15px !important;
  }

  .fuel-subtext {
    font-size: 0.95rem !important;
    padding: 0 10px !important;
    margin-bottom: 10px !important;
  }
}
/* --- CALORIE FUEL SECTION DİKEY KESİLME ÇÖZÜMÜ --- */
@media (max-width: 768px) {
  .calorie-fuel-section {
    /* Sabit yükseklik varsa iptal ediyoruz */
    height: auto !important;
    min-height: 100vh !important;
    padding: 30px 10px !important; /* Üstten ve alttan kesilmeyi önlemek için geniş padding */
    display: block !important; /* Flex bazen dikeyde sıkıştırabilir, block daha güvenli */
    overflow: visible !important; /* İçeriğin görünür olmasını sağlar */
  }

  .container {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
  }

  /* Orta Kısımdaki Yuvarlak Sayaç (Orbit) */
  .main-counter-box {
    position: relative !important; /* Absolute varsa mutlaka bozmalısın */
    width: 300px !important;
    height: 300px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    left: auto !important;
    top: auto !important;
    transform: none !important; /* Merkeze almak için transform gereksizleşti */
  }

  /* Data Stream gibi arka plan efektleri dikeyde taşma yapıyorsa gizle */
  .data-stream {
    display: none !important;
  }
}
/* ============================================================
   ARENA SECTION - TAM EKRAN MOBİL REVİZE (768px ve altı)
   ============================================================ */

@media (max-width: 768px) {
  /* 1. Bölümü ve Konteynırı Sıfırla */
  .dynamic-vs-arena {
    padding: 50px 10px !important;
    overflow: hidden !important;
  }

  .arena-container {
    width: 100% !important;
    padding: 0 !important;
  }

  /* 2. Kartları Yan Yana Getir (Görünürlüğü Zorla) */
  .vs-wrapper {
    display: flex !important;
    flex-direction: row !important; /* Yan yana */
    justify-content: center !important;
    align-items: stretch !important;
    gap: 20px !important;
    width: 100% !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* 3. Modern Oval Kart Yapısı */
  .side {
    width: calc(50% - 6px) !important; /* Kartları %50'ye yayar */
    padding: 12px 8px !important;
    border-radius: 25px !important; /* Modern oval köşeler */
    background: #0b426e !important; /* Sabit koyu mavi zemin */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
    min-height: auto !important; /* Uzunluğu bitirir */
    transform: none !important; /* Masaüstü kaymalarını iptal eder */
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
  }

  /* 4. İçerik Elemanları (Hepsi Sabit ve Görünür) */
  .fighter-img {
    display: block !important;
    margin-bottom: 8px !important;
  }

  .fighter-img img {
    max-width: 60px !important; /* Yan yana sığması için ideal boyut */
    height: auto !important;
  }

  .side h6 {
    font-size: 0.8rem !important;
    color: #fff !important;
    margin-bottom: 8px !important;
    text-align: center !important;
    line-height: 1.2 !important;
    min-height: 2.4em; /* İsimlerin hizasını korur */
    display: block !important;
    opacity: 1 !important;
  }

  .side-label {
    font-size: 0.6rem !important;
    margin-bottom: 5px !important;
    opacity: 0.8;
  }

  /* 5. Kalori Balonu */
  .energy-tag {
    position: relative !important;
    display: inline-block !important;
    margin: 0 auto 12px auto !important;
    font-size: 0.7rem !important;
    padding: 4px 12px !important;
    border-radius: 50px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    color: #fff !important;
    opacity: 1 !important;
  }

  /* 6. İstatistik Tablosu (Kartın Altına Gömülü ve Sabit) */
  .stats-panel {
    position: relative !important; /* Havada asılı kalmasını engeller */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 15px !important;
    padding: 8px !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  .stat-item {
    display: flex !important;
    justify-content: space-between !important;
    padding: 4px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  .stat-item:last-child {
    border-bottom: none !important;
  }

  .stat-item span {
    font-size: 0.6rem !important;
    color: #eee !important;
  }

  .stat-item span:last-child {
    font-weight: 700 !important;
    color: #d4ff91 !important;
  }

  /* 7. VS İkonu (Kartların Arasında Küçük ve Şık) */
  .vs-center {
    position: absolute !important;
    left: 50% !important;
    top: 20% !important;
    transform: translate(-50%, -50%) scale(0.6) !important;
    z-index: 10;
  }

  .vs-bolt {
    font-size: 2.5rem !important;
    color: #052c4d !important;
    margin-top: -300px;
  }

  /* 8. Temizlik: Mobilde gereksiz öğeleri gizle */
  .arena-hint,
  .vs-strike-static,
  .vs-center::after {
    display: none !important;
  }

  /* Alt yazı alanı */
  .arena-info {
    margin-top: 15px !important;
  }

  .arena-header h3 {
    font-size: 1.5rem !important;
  }
}
/* --- SADECE VS ARENA RESİM BOYUTU AYARI --- */
@media (max-width: 768px) {
  .fighter-img {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;

    opacity: 1 !important;
    visibility: visible !important;
  }

  .fighter-img img {
    max-width: 200px !important;

    height: auto !important;
    display: block !important;
    object-fit: contain !important;
  }
}
/* ============================================================
   KARTLARIN BİRBİRİNİ ETKİLEMESİNİ ENGELLEYEN KESİN ÇÖZÜM
   ============================================================ */
@media (max-width: 768px) {
  /* 1. Kapsayıcının içindeki tüm fare/dokunma etkileşimlerini temizle */
  .vs-wrapper {
    pointer-events: none !important; /* Tüm etkileşimi önce bir kapatıyoruz */
  }

  .side {
    pointer-events: auto !important; /* Sadece kartların kendisi tıklanabilir olsun ama bir şey yapmasın */
    cursor: default !important;
    user-select: none !important;
  }

  /* 2. Tıklayınca veya basılı tutunca tetiklenen TÜM sınıfları pasifize et */
  .side.active,
  .side.show-stats,
  .side:active,
  .side:focus,
  .side:hover {
    transform: none !important;
    z-index: 1 !important; /* Kartların birbirinin üstüne binmesini engeller */
  }

  /* 3. Paneldeki tüm hareketli (absolute) yerleşimleri iptal et */
  .stats-panel {
    position: relative !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    pointer-events: none !important; /* Panel içindeki yazıların tıklanıp kartı bozmasını engeller */
  }

  /* 4. Resim ve Başlıkların kaybolmasını engelle */
  .fighter-img,
  .side h6,
  .energy-tag {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: flex !important;
  }

  /* 5. VS ikonunun dokunmayı engellememesi için */
  .vs-center {
    pointer-events: none !important;
  }
}
/* ============================================================
   SOL KARTTAKİ (SENİN SEÇİMİN) ÖZEL SORUNU ÇÖZEN KOD
   ============================================================ */
@media (max-width: 768px) {
  /* 1. Sol karttaki (target-product) o özel "gizleme" kuralını mobilde öldür */
  .target-product:hover .fighter-img,
  .target-product:active .fighter-img,
  .target-product.active .fighter-img,
  .target-product:hover h6,
  .target-product:active h6,
  .target-product.active h6,
  .target-product:hover .energy-tag {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    transform: none !important;
  }

  /* 2. Sol karttaki besin değerlerinin kaybolmasını veya yer değiştirmesini engelle */
  .target-product .stats-panel,
  .target-product:hover .stats-panel,
  .target-product:active .stats-panel,
  .target-product.active .stats-panel {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
  }

  /* 3. Tüm tıklama (click) olaylarını mobilde sağırlaştır */
  .side {
    -webkit-tap-highlight-color: transparent !important; /* Mobildeki mavi tıklama gölgesini siler */
    pointer-events: none !important; /* Karta tıklanmasını tamamen engeller (Böylece JS çalışamaz) */
  }

  /* İstatistik satırları içindeki metinlerin kaybolmadığından emin olalım */
  .target-product .stat-item span {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ============================================================
   LITERACY SECTION - SADECE BOYUT KÜÇÜLTME (ÖLÇEKLENDİRME)
   ============================================================ */

@media (max-width: 768px) {
  /* 1. Kartın dış sınırlarını ve iç boşluğunu daraltıyoruz */
  .literacy-card-custom {
    max-width: 280px !important; /* Kartın genişliğini sınırladık */
    margin: 0 auto !important; /* Kartı ortaladık */
    padding: 15px !important; /* İçerideki kaba boşluğu kıstık */
    min-height: auto !important; /* Gereksiz yüksekliği sildik */
    border-radius: 15px !important;
  }

  /* 2. İkon Haznesini Küçültüyoruz */
  .lit-icon-wrap-custom {
    width: 40px !important; /* 60px civarı olan boyutu 40px'e çektik */
    height: 40px !important;
    font-size: 1.1rem !important; /* İkonun kendi boyutu */
    margin-bottom: 25px !important;
  }

  /* 3. Yazıları orantılı olarak küçültüyoruz */
  .card-heading-custom {
    font-size: 0.9rem !important; /* Başlık artık daha kibar */
    margin-bottom: 5px !important;
    line-height: 1.2 !important;
  }

  .para {
    font-size: 0.75rem !important; /* Paragrafı minyatürleştirdik */
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
  }

  /* 4. Kartlar arasındaki dev boşluğu kapatıyoruz */
  .literacy-section .row.g-5 {
    gap: 15px !important; /* Kartların arasındaki mesafeyi azalttık */
  }

  /* Başlık kısmını da bir tık kibarlaştıralım */
  .literacy-title {
    font-size: 1.4rem !important;
    margin-bottom: 8px !important;
  }

  .literacy-subtitle {
    font-size: 0.85rem !important;
    margin-bottom: 25px !important;
  }
}
/* ============================================================
   MAIN FOOTER - MODERN MOBİL DÜZENLEME (768px ve altı)
   ============================================================ */

@media (max-width: 768px) {
  .main-footer {
    padding: 40px 20px 20px 20px !important;
    text-align: center !important; /* Tüm içeriği ortalayarak daha dengeli bir görünüm sağlıyoruz */
  }

  .footer-container {
    display: flex !important;
    flex-direction: column !important; /* Elemanları alt alta diz */
    gap: 35px !important; /* Bölümler arası nefes alma alanı */
    align-items: center !important;
  }

  /* 1. Logo ve Hakkında Bölümü */
  .footer-logo {
    justify-content: center !important;
    margin-bottom: 15px !important;
  }

  .footer-logo img {
    max-width: 40px !important; /* Logoyu mobilde kibarlaştırdık */
  }

  .footer-logo h3 {
    font-size: 1.3rem !important;
  }

  .footer-text {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    max-width: 300px !important; /* Metnin çok yayılmasını engelleyerek okumayı kolaylaştırdık */
    margin: 0 auto !important;
  }

  /* 2. Hızlı Erişim ve Linkler */
  .footer-links h4,
  .footer-contact h4 {
    font-size: 1.1rem !important;
    margin-bottom: 15px !important;
    position: relative;
    display: inline-block;
  }

  .footer-links ul {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .footer-links ul li a {
    font-size: 0.9rem !important;
    padding: 5px 0 !important; /* Tıklama alanını genişlettik */
    display: block;
  }

  /* 3. İletişim ve Sosyal Medya */
  .footer-contact p {
    font-size: 0.85rem !important;
    margin-bottom: 10px !important;
  }

  .footer-email {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    display: block;
    margin-bottom: 20px !important;
  }

  .footer-social {
    justify-content: center !important;
    gap: 20px !important;
  }

  .footer-social a {
    font-size: 1.4rem !important; /* İkonları mobilde kolay tıklanması için büyüttük */
  }

  /* 4. En Alt Telif Hakları Kısmı */
  .footer-bottom {
    margin-top: 40px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .footer-bottom p {
    font-size: 0.75rem !important;
    opacity: 0.7;
  }
}
/* ============================================================
   FOOTER LİNKLERİ SIKIŞTIRMA VE DÜZENLEME
   ============================================================ */

@media (max-width: 768px) {
  /* 1. Liste kapsayıcısındaki tüm varsayılan boşlukları sıfırla */
  .footer-links ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important; /* Linkler arasındaki dikey mesafeyi buradan ayarla */
    align-items: center !important; /* Linkleri ortala */
  }

  /* 2. Liste elemanlarındaki (li) dış boşlukları sil */
  .footer-links ul li {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 3. Linklerin (a) kendi iç boşluğunu kontrol et */
  .footer-links ul li a {
    display: inline-block !important;
    padding: 4px 0 !important; /* Tıklama alanı için çok az bir dikey pay */
    line-height: 1.2 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
  }

  /* 4. "Hızlı Erişim" başlığı ile liste arasındaki boşluğu daralt */
  .footer-links h4 {
    margin-bottom: 12px !important;
  }
}
html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Sağ tarafa taşan her şeyi kesin olarak budar */
  position: relative;
}
/* header ----------------------------*/
/* Logonun ezilmesini engelle */
.navbar-brand {
  flex-shrink: 0;
}

.logo-img {
  height: 40px; /* Mobilde logonun boyutu */
  width: auto;
}

/* MOBİL AYARLAR (768px altı ekranlar için) */
@media (max-width: 768px) {
  .navbar {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* Kategoriler butonundaki yazıyı gizle, sadece ikonu kalsın */
  .category-btn span,
  .category-btn .arrow {
    display: none;
  }

  /* Butonu daha küçük ve yuvarlak yap */
  .category-btn {
    padding: 8px 12px;
    min-width: auto;
  }

  /* Aradaki boşlukları daralt */
  .gap-3 {
    gap: 0.5rem !important;
  }
}
/* E-kodu autocomplete dropdown */
.additive-suggest-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 9909; !important;
    box-shadow: 0 8px 24px rgba(14, 61, 107, 0.12);
    display: none;
}
.additive-suggest-dropdown.is-open { display: block; }

.suggest-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.15s;
}
.suggest-item:hover,
.suggest-item.is-active {
    background: #f8f9fa;
}
.suggest-item:last-child { border-bottom: none; }

.suggest-code {
    font-weight: 700;
    color: #0e3d6b;
    min-width: 64px;
    font-size: 14px;
}
.suggest-name {
    color: #333;
    font-size: 14px;
    flex: 1;
}
.suggest-empty {
    padding: 16px;
    text-align: center;
    color: #888;
    font-style: italic;
    font-size: 14px;
}

/* Profil dropdown — genişletilmiş ve responsive */
.profile-dropdown {
    min-width: 220px;
    right: 0;
    padding: 6px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    white-space: nowrap;     /* alt alta sarılmasın */
    font-size: 14px;
    transition: background 0.15s;
}

.profile-dropdown a:hover {
    background: #f8f9fa;
}

.profile-dropdown a i {
    width: 18px;             /* ikon hizalama */
    font-size: 15px;
}

.profile-greeting {
    background: #f8f9fa;
    font-size: 13px;
    color: #555;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
}
.profile-greeting strong { color: #0e3d6b; }

/* Mobil responsive */
@media (max-width: 576px) {
    .profile-dropdown {
        position: fixed;
        top: 70px;            /* header yüksekliğine göre ayarla */
        right: 12px;
        left: auto;
        min-width: 200px;
        max-width: calc(100vw - 24px);
    }

    .profile-dropdown a {
        padding: 12px 16px;   /* mobilde dokunma alanı büyük */
    }
}


/* ============================================
   ANASAYFA SEARCH DROPDOWN
   ============================================ */

.search-bar {
    position: relative;
    z-index: 100;
}

.search-bar .search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(7, 65, 115, 0.15),
    0 0 0 1px rgba(7, 65, 115, 0.05);
    max-height: 420px;
    overflow-y: auto;
    z-index: 1000;
    padding: 8px;
    animation: searchFadeIn 0.25s ease;
    font-family: "Poppins", sans-serif;
    text-align: left;
}

@keyframes searchFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-section + .search-section {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(7, 65, 115, 0.06);
}

.search-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #074173;
    opacity: 0.55;
    letter-spacing: 1.2px;
    padding: 8px 12px 6px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:hover,
.search-result-item.active {
    background: #c5ff95;
    transform: translateX(4px);
}

.search-result-item .result-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(7, 65, 115, 0.08);
    color: #074173;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.search-result-item:hover .result-icon,
.search-result-item.active .result-icon {
    background: #074173;
    color: #c5ff95;
}

.search-result-item .result-content {
    flex: 1;
    min-width: 0;
}

.search-result-item .result-name {
    font-size: 14px;
    font-weight: 500;
    color: #052c4d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item .result-meta {
    font-size: 11px;
    color: rgba(5, 44, 77, 0.5);
    margin-top: 2px;
}

.search-result-item .result-arrow {
    color: #074173;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}

.search-result-item:hover .result-arrow,
.search-result-item.active .result-arrow {
    opacity: 1;
    transform: translateX(0);
}

.search-empty {
    padding: 30px 20px;
    text-align: center;
    color: rgba(5, 44, 77, 0.5);
}

.search-empty i {
    font-size: 32px;
    opacity: 0.4;
    margin-bottom: 8px;
    display: block;
}

.search-empty p { font-size: 13px; margin: 0; }
.search-empty strong { color: #074173; }

.search-bar .search-dropdown::-webkit-scrollbar { width: 6px; }
.search-bar .search-dropdown::-webkit-scrollbar-thumb {
    background: rgba(7, 65, 115, 0.15);
    border-radius: 999px;
}

/* ============================================
   MOBİL PLACEHOLDER FIX
   ============================================ */
@media (max-width: 768px) {
    .search-bar .search-input {
        font-size: 14px;
        padding-right: 90px !important;
    }
    .search-bar .search-input::placeholder {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .search-bar .search-input::placeholder {
        font-size: 11px;
    }
}


/* Avatar resmi gösterimi */
.profile-btn.has-avatar {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    overflow: hidden;
    border: 3px solid #f1f5f9;
    border-radius: 50%;
    transition: transform 0.3s ease;
    background: transparent !important;
}

.profile-btn.has-avatar:hover,
.profile-btn.has-avatar:focus,
.profile-btn.has-avatar:active {
    background: transparent !important;
    color: inherit !important;
    border-color: #f1f5f9 !important;
    transform: scale(1.04);
    box-shadow: none; !important;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Anasayfa search-bar X butonu */
.search-bar .clear-btn {
    position: absolute;
    top: 50%;
    right: 70px;                        /* search-btn'in solunda — biraz daha sol */
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: #074173;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    background: rgba(7, 65, 115, 0.08);
    border-radius: 50%;
    transition: all 0.2s ease;
    user-select: none;
    z-index: 3;
}

.search-bar .clear-btn:hover {
    background: #c6d6f3;
    color: #074173;
    transform: translateY(-50%) scale(1.1);
}

/* Mobilde search-btn 40px olduğu için X biraz daha yakına */
@media (max-width: 768px) {
    .search-bar .clear-btn {
        right: 55px;
    }
}
