.header-custom-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 140px;
  height: 48px;
  padding: 0 12px;
  box-sizing: border-box;
  background-color: #25b93e;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  font-size: 14px;
  cursor: pointer;
  order: 1;
  overflow: hidden;
}

/* Hover efekti: Zoom + gölge */
.header-custom-button:hover {
  background-color: #1e9d34;
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(37, 185, 62, 0.7), 0 0 40px rgba(30, 157, 52, 0.5);
}

/* Parlama efekti */
.header-custom-button::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: shineGreen 3s infinite;
  pointer-events: none;
  z-index: 1;
}

/* Hafif parazit (static flicker) efekti */
.header-custom-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.04;
  animation: staticFlicker 0.3s infinite;
  z-index: 0;
}

@keyframes shineGreen {
  0% {
    transform: rotate(25deg) translateX(-150%);
  }
  100% {
    transform: rotate(25deg) translateX(150%);
  }
}

@keyframes staticFlicker {
  0%, 100% { opacity: 0.02; }
  50% { opacity: 0.07; }
}

.header-custom-button i {
  font-size: 20px;
  z-index: 2;
}

.text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  z-index: 2;
}

@media (max-width: 768px) {
  .header-custom-button {
    width: 90px; /* Buton genişliğini küçültüyoruz */
    height: 38px; /* Buton yüksekliğini küçültüyoruz */
    padding: 0 10px; /* İçerik alanını azaltıyoruz */
    font-size: 12px; /* Font boyutunu küçültüyoruz */
    margin: 0 !important;
  }

  .header-custom-button i {
    font-size: 14px; /* İkon boyutunu küçültüyoruz */
  }

  .text-container {
    font-size: 10px; /* Metin font boyutunu küçültüyoruz */
    line-height: 1.1; /* Satır yüksekliğini biraz daha daraltıyoruz */
  }
}

@media (max-width: 480px) {
  .header-custom-button {
    width: 100px; /* Daha küçük ekranlarda buton daha da küçülür */
    height: 40px;
    padding: 0 8px;
    font-size: 10px;
  }

  .header-custom-button i {
    font-size: 16px; /* İkon boyutunu daha da küçültüyoruz */
  }

  .text-container {
    font-size: 9px; /* Metin font boyutunu daha da küçültüyoruz */
  }
}


/* Modal CSS */
 .custom-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }



  .modal__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .modal__title {
    font-size: 18px;
    color: #fff;
    margin: 0;
  }

  .modal__close {
    color: #fff;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .custom-modal-content {
    display: flex;
    margin-top: 20px;
  }

  .howto-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-right: 20px;
    min-width: 150px;
  }

  .howto-button {
    background-color: #3c3c3c;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    text-align: left;
  }

  .howto-button:hover,
  .howto-button.selected {
    background-color: #25b93e;
  }

  .howto-content {
    flex: 1;
    background-color: #2a2a2a;
    padding: 10px;
    border-radius: 10px;
  }

  .howto-page {
    display: none;
  }

  .howto-page.active {
    display: block;
  }

  .howto-page iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
  }

  @media (max-width: 768px) {
    .custom-modal-content {
      flex-direction: column;
    }

    .howto-buttons {
      flex-direction: row;
      flex-wrap: wrap;
      margin-bottom: 15px;
    }

    .howto-button {
      flex: 1 1 auto;
      text-align: center;
    }
  }


@media (max-width: 768px) {
  .custom-modal-content {
    display: flex;
    flex-direction: row; /* İçeriği yatay hizala */
    align-items: flex-start; /* Elemanları üstten hizala */
    justify-content: space-between; /* Butonlar ve video arasına boşluk bırak */
    width: 90%;
    padding: 15px;
  }

  .howto-buttons {
    flex-direction: column; /* Butonları dikey hizala */
    gap: 8px;
    min-width: 180px; /* Buton grubu genişliğini belirle */
  }

  .howto-content {
    flex: 1; /* Video alanını genişlet */
    padding: 10px;
  }

  .howto-page iframe {
    width: 100%; /* Videoyu tam genişlikte göster */
    height: 280px; /* Yüksekliği uygun şekilde ayarla */
  }
}


