
/* فقط برای سافاری - فقط z-index رو تغییر میدیم */
@supports (-webkit-touch-callout: none) {
    #mainFloatingBtn {
        z-index: 10000;
    }
    
    .secondary-btn {
        z-index: 9999;
    }
    
    .modal {
        z-index: 10001;
    }
}

/* بقیه استایل‌ها دقیقاً همون چیزی که شما فرستادید میمونه */
/* استایل‌های پایه پاپ‌آپ */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    direction: rtl;
    opacity: 0;
    transition: opacity 0.3s ease;
}
 

.modal::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}
  .modal.show {
    opacity: 1;
  }

  /* محتوای مدال - نسخه دسکتاپ */
  .modal-content {
    background-color: #1E1E2D;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 12px;
    width: auto;
    max-width: 320px; /* عرض مناسب برای حالت عمودی */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #7D4FE7;
    animation: modalFadeIn 0.4s ease-out;
  }

  @keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: translate(-50%, -60%);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
  }

  /* استایل کاور ویدیو */
  .video-cover-container {
    position: relative;
    width: 280px; /* عرض ثابت برای حالت عمودی */
    height: 500px; /* ارتفاع ثابت برای حالت عمودی */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
  }

  .video-cover-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .video-cover-container:hover img {
    transform: scale(1.03);
  }

  /* استایل دکمه پلی */
  .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(125, 79, 231, 0.7);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .play-button i {
    color: white;
    font-size: 24px;
  }

  .play-button:hover {
    background-color: rgba(125, 79, 231, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
  }

  /* استایل ویدیو */
  #guideVideo {
    width: 280px; /* هماندازه با کاور */
    height: 500px; /* هماندازه با کاور */
    margin: 0 auto;
    display: none;
    border-radius: 12px;
    background-color: #000;
  }

  /* استایل هدر */
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #7D4FE7;
  }

  .modal-header h3 {
    color: #A695CF;
    margin: 0;
    font-size: 16px;
  }

  .modal-header button {
   display: none !important;
  }
  .modal-header h3 {
  color: #A695CF;
  margin: 0;
  font-size: 16px;
}
@media (max-width: 768px) {
  .modal-header h3 {

  font-size: 15px;
}
}
  /* استایل فوتر */
  
 
  .modal-footer button {
    margin-top: 7px;
    padding: 8px 16px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    background-image: linear-gradient(42deg, var(--e-global-color-accent) 8%, #8750F7 100%);
    color: white;
    transition: all 0.3s ease;
  }

  .modal-footer button:hover {
    transform: translateY(-2px);
  }

  /* استایل دکمه راهنما */
  .mini-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-image: linear-gradient(42deg, var(--e-global-color-accent) 8%, #8750F7 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(125, 79, 231, 0.3);
    z-index: 1000;
    transform: scale(0);
    animation: miniBtnAppear 0.5s ease-out 0.3s forwards;
    transition: all 0.3s ease;
  }

  .mini-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(125, 79, 231, 0.4);
  }

  @keyframes miniBtnAppear {
    from {
      transform: scale(0);
    }
    to {
      transform: scale(1);
    }
  }

  .mini-btn i {
    font-size: 18px;
  }

  .mini-btn span {
    font-size: 14px;
  }

  /* استایل‌های مخصوص موبایل */
  @media (max-width: 768px) {
    .modal-content {
      width: 90%;
      max-width: 320px;
      max-height: 90vh;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      animation: modalFadeIn 0.4s ease-out;
    }
    
    .video-cover-container,
    #guideVideo {
      width: 100%;
      height: auto;
      max-height: 70vh;
      aspect-ratio: 9/16;
    }
    
    .mini-btn span {
      display: none;
    }
    
    .mini-btn {
      padding: 12px;
    }
  }

  @media (max-width: 768px) {
    .secondary-btn {
        padding: 12px;
       right: 20px !important ; 
    }
}

@media (max-width: 768px) {
  #mainFloatingBtn {
      width: 50px;
      height: 50px;
      bottom: 10px;
      right: 15px;
  }
}
  /* استایل‌های مخصوص دسکتاپ بزرگ */
@media (min-width: 1200px) {
  .modal-content {
      max-width: 500px; /* افزایش عرض پاپ‌آپ */
      padding: 30px; /* افزایش padding */
  }
  
  .modal-header h3 {
      font-size: 29px; /* افزایش سایز عنوان */
  }
  
  .video-cover-container,
  #guideVideo {
      width: 460px; /* افزایش عرض ویدیو */
      height: 800px; /* افزایش ارتفاع ویدیو */
  }
  
  .play-button {
      width: 80px; /* افزایش سایز دکمه پلی */
      height: 80px;
  }
  
  .play-button i {
      font-size: 32px; /* افزایش سایز آیکون پلی */
  }
  
  .modal-footer button {
      padding: 12px 24px; /* افزایش سایز دکمه */
      font-size: 16px; /* افزایش سایز متن دکمه */
      margin-right: auto;
  }
  
  .mini-btn {
      padding: 12px 20px; /* افزایش سایز دکمه راهنما */
  }
  
  .mini-btn i {
      font-size: 22px; /* افزایش سایز آیکون */
  }
  
  .mini-btn span {
      font-size: 16px; /* افزایش سایز متن */
  }
}

/* استایل‌های مخصوص دسکتاپ بسیار بزرگ */
@media (min-width: 1600px) {
  .modal-content {
      max-width: 600px; /* افزایش بیشتر عرض پاپ‌آپ */
  }
  
  
  #guideVideo {
      width: 560px; /* افزایش بیشتر عرض ویدیو */
      height: 900px; /* افزایش بیشتر ارتفاع ویدیو */
     
  }
  .video-cover-container
   {
      width: 560px; /* افزایش بیشتر عرض ویدیو */
      height: 900px; /* افزایش بیشتر ارتفاع ویدیو */
      margin-right: -10px
  }
}


 /* دکمه اصلی */
 #mainFloatingBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-image: linear-gradient(42deg, var(--e-global-color-accent) 8%, #8750F7 100%);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgb(125 79 231 / 19%);
  z-index: 1000;
  transition: all 0.3s ease;
}

#mainFloatingBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(125, 79, 231, 0.4);
}

#mainFloatingBtn i {
  font-size: 24px;
  transition: transform 0.3s ease;
}

#mainFloatingBtn.active i {
  transform: rotate(45deg);
}

/* دکمه‌های ثانویه */
.secondary-btn {
  position: fixed;
  right: 20px;
  background-image: linear-gradient(42deg, var(--e-global-color-accent) 8%, #8750F7 100%);
  color: white;
  padding: 10px 15px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(125, 79, 231, 0.3);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px) scale(0.5);
  transition: all 0.3s ease;
}

.secondary-btn.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.secondary-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(125, 79, 231, 0.4);
}

.secondary-btn i {
  font-size: 18px;
}

.secondary-btn span {
  font-size: 14px;
}

/* موقعیت‌های خاص برای هر دکمه */
#videoGuideMiniBtn {
  bottom: 100px;
}

#songRequestMiniBtn {
  bottom: 160px;
}

/* استایل‌های فرم */
.request-form {
  padding: 15px 0;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #A695CF;
  font-size: 18px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #7D4FE7;
  border-radius: 8px;
  font-size: 16px;
  background-color: #2D2D40;
  color: #FFFFFF;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #8750F7;
  box-shadow: 0 0 0 2px rgba(125, 79, 231, 0.3);
}

.form-submit-btn {
  background-image: linear-gradient(42deg, var(--e-global-color-accent) 8%, #8750F7 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  text-align: center;
  font-size: 16px;
  margin: 20px 0 5px;
  cursor: pointer;
  border-radius: 50px;
  width: 100%;
  transition: all 0.3s ease;
  font-weight: bold;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(125, 79, 231, 0.4);
}

.form-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  display: none;
  text-align: center;
  font-size: 14px;
}

.success {
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
}

.error {
  background-color: #f2dede;
  color: #a94442;
  border: 1px solid #ebccd1;
}

.request-form p {
color: #A695CF;
text-align: center;
margin-bottom: 25px;
font-size: 19px;
line-height: 1.8;
}

/* برای دکمه بستن پاپ‌آپ فرم */
#songRequestModal .close-modal {
background: none;
border: none;
color: #A695CF;
font-size: 30px;
cursor: pointer;
padding: 0;
width: 30px;
height: 30px;
display: flex
;
align-items: center;
justify-content: center;
position: absolute;
left: 15px;
top: 15px;
margin-top: 15px; 
}


#songRequestModal .close-modal:hover {
  color: #8750F7;
}

#songRequestModal .modal-header {
  position: relative;
  padding-right: 40px;
}

/* responsive */
@media (max-width: 768px) {
  #mainFloatingBtn {
      width: 50px;
      height: 50px;
      bottom: 10px;
      right: 15px;
  }
  
  #mainFloatingBtn i {
      font-size: 20px;
  }
  
  .secondary-btn {
      padding: 12px;
      right: 15px;
  }
  
  .secondary-btn span {
      display: none;
  }
  
  #videoGuideMiniBtn {
      bottom: 80px;
  }
  
  #songRequestMiniBtn {
      bottom: 137px;
  }
  #songRequestModal .close-modal {

margin-top: 0px; 
}

.form-group label {

  font-size: 16px;
}
.form-group input {
 
  font-size: 14px;
 
}
}

