@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: bold;
  src: url('fonts/IRANSans.woff2') format('woff2'); 
}
@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: normal;
  src: url('fonts/IRANSans.woff') format('woff');
}

.faq-wrapper { max-width: 900px; margin: 20px auto; direction: rtl; font-family: inherit; line-height: 1.6; }
.faq-title {  background: var(--secondary-color); text-align: center; color:  var(--primary-color); margin-bottom: 30px; }

/* استایل تب‌ها */
.faq-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.tab-btn { padding: 10px 25px; border: none; background: #eee; cursor: pointer; border-radius: 25px; transition: 0.3s; font-weight: bold; }
.tab-btn.active { background: #007bff; color: white; }

/* استایل سوالات آکاردئونی */
.tab-content { display: none; animation: fadeIn 0.5s; }
.faq-item { background: var(--primary-color); border: 1px solid #eee; margin-bottom: 10px; border-radius: 8px; overflow: hidden; color: var(--secondary-color);}
.faq-question { padding: 15px; background: var(--secondary-color); cursor: pointer; font-weight: bold; position: relative;  color: var(--primary-color);}
.faq-question::after { content: '+'; position: absolute; left: 15px; }
.faq-answer { padding: 15px; display: none; border-top: 1px solid #eee; color: var(--primary-color); background: #424242}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.container {
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

:root {
  --primary-color: #faf9f9;
  --secondary-color: black;
  --text-color: #ffffff;
  --border-color: #faf7f7; 
  --menu-bg: #black;
  --menu-text-color: #ffffff;
  --header-color: #black;
}

.light-mode {
  --primary-color: #0c0c0c;
  --secondary-color: #ffffff;
  --text-color: #1a1919; 
  --border-color: #121312; 
  --menu-bg: #f0f0f0;
  --menu-text-color:  #1b1b1b;
  --header-color: #eee7e7;
}

.dark-mode {
  --primary-color: #fdfdfd;
  --secondary-color: black;
  --text-color: #ffffff;
  --border-color: #fdfdfd; 
  --menu-bg: #black;
  --menu-text-color: #ffffff;
  --header-color: #black;
}

.profile-info{
  justify-content: space-between;
  padding: 10px 20px;
  background-color:  #5a5757; 
  color: var(--text-color);
  position: relative;
  top: 0;
 
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(252, 251, 251, 0.1);
  width: 85%;
}


  .form-group.captcha {
    display: flex;
    flex-direction: column;
    width: fit-content;
  }
  .form-group.captcha label {
    margin-bottom: 8px;
  }
  .input-captcha-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #10a50b;
    border-radius: 4px;
    overflow: hidden; 
  }
  #captcha-container {
    width: 100px; 
    height: 30px; 
    background: #17bd40; 
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #1ca03d; 
  }
  .form-group.captcha input {
    border: none; 
    padding: 8px;

    outline: none; 
    flex: 1; 
  }
  .form-group.captcha input:focus {
    box-shadow: inset 0 0 0 1px #007bff; 
  }

html {
  scroll-behavior: smooth;
}

body {
  direction: rtl;
  font-family: 'IRANSans', 'Tahoma', sans-serif; 
  background-color: var(--secondary-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  overflow-y: auto;

}




.iframe-container {
    position: fixed;
  
    left: 0;
    width: 100%;
    height:100%;
    overflow: scroll;
}

 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
        overflow: scroll;
        scrollbar-width: thin; 
  scrollbar-color: #1a1a1a #1a1a1a; 
}



iframe::-webkit-scrollbar {
  width: 8px; 
}

iframe::-webkit-scrollbar-track {
  background: #1a1a1a; 
}

iframe::-webkit-scrollbar-thumb {
  background: #1a1a1a; 
  border-radius: 4px; 
}

iframe::-webkit-scrollbar-thumb:hover {
  background: #1a1a1a; 
}


header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: var(--header-color); 
  color: var(--text-color);
  position: sticky;
  top: 0;
  z-index: 10;
  border-radius: 10px;
box-shadow: 0 4px 15px rgba(252, 251, 251, 0.1);
}

.logo {
  color:var(--primary-color);
  margin-bottom: 5px;
}
.logo img{
  width: 40px;
  height: 40px;
}


.search-user {
    display: flex;
    justify-content: left; 
    padding-inline: inherit;
    align-items: baseline;       
    height: 30px;
    width: 100%;
    padding-right: 20px;
    gap: 5px; 
}

.search-user input {
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: inherit;
    height: 30px;
    max-width: 150px;
    top: 0px;
}


.header-row {
    direction: rtl;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    gap: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  background-color: var(--menu-bg);
  padding: 10px 20px;
  margin: 0;
box-shadow: 0 4px 15px rgba(252, 251, 251, 0.1);
  border-radius: 10px;
}

nav ul li {
  margin: 0;
  padding: 0;
}

nav ul li a {
box-shadow: 0 4px 15px rgba(252, 251, 251, 0.1);
  border-radius: 10px;
  position: relative;
  text-decoration: none;
  padding: 10px 15px;
  display: inline-block;
  transition: color 0.3s ease;
  color: var(--menu-text-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--border-color);
  visibility: hidden;
  transition: width 0.3s ease, visibility 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
  visibility: visible;
}

.error-message {
  color: red;
  margin-bottom: 15px;
  min-height: 20px;
  text-align: center;
}


.slider {
  width: 100%;
  height: 700px;
  overflow: visible;
  position: relative;
box-shadow: 0 4px 15px rgba(252, 251, 251, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/images/b2.webp");
  padding: 0px ;
  background-size: cover;
  background-position: 50% 50%; 
   border-radius: 10px;
  box-shadow: 0 4px 15px rgba(252, 251, 251, 0.1);
 
  
}



.hero-slide {
    position: relative;
    width: 100%;
    height: 100%; /* یا ارتفاع دلخواه شما مثلاً 500px */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000; /* رنگ رزرو برای زمان بارگذاری ویدیو */
    border-radius: 20px;
}

/* ۱. ویدیوی تار شده در پس‌زمینه (طرفین را پر می‌کند) */
.hero-video-bg {
  border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(25px) brightness(0.7); /* افکت تاری و کمی تیره‌تر کردن برای جذابیت بیشتر */
    transform: scale(1.1); /* برای جلوگیری از سفید شدن یا پیدا شدن لبه‌های blur */
    z-index: 1;
    pointer-events: none;
}

/* ۲. ویدیوی اصلی در وسط */
.hero-video-main {
  border-radius: 20px;
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ۳. قرارگیری دکمه روی ویدیوها */
.sound-button {
    position: absolute;
    z-index: 3;
    /* ادامه استایل‌های دکمه شما */
}



/* افکت درخشش عبوری */
.hero-slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.25) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
}

.hero-slide:hover .hero-slide::after {
    animation: shine 1.2s ease forwards;
}

@keyframes shine {
    100% {
        left: 150%;
    }
}





/* موج پایین */
.wave-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    pointer-events: none;
    background: radial-gradient(
        ellipse at 50% 100%,
        rgba(0,150,255,0.3) 0%,
        rgba(0,100,255,0.15) 40%,
        rgba(0,50,255,0) 80%
    );
    filter: blur(25px);
    opacity: 0.6;
    animation: waveFlow 5s infinite ease-in-out;
}

/* انیمیشن موج */
@keyframes waveFlow {
    0%   { transform: translateX(0) scaleY(1); }
    25%  { transform: translateX(-5%) scaleY(1.1); }
    50%  { transform: translateX(5%) scaleY(0.9); }
    75%  { transform: translateX(-3%) scaleY(1.05); }
    100% { transform: translateX(0) scaleY(1); }
}


/* افکت زوم هنگام هاور */
.hero-card:hover img {
    transform: scale(1.05);
}




/* افکت درخشش عبوری */
.card-slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.25) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
}

.hero-card:hover .card-slide::after {
    animation: shine 1.2s ease forwards;
}



.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: crossfade 5s infinite;
  text-align: center;
  top: 15px;

  
}

.slide img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.6s ease;
 
}

@keyframes crossfade {
  0%   { opacity: 0; z-index: 0; }
  18%  { opacity: 1; z-index: 1; }
  20%  { opacity: 1; z-index: 1; }
  38%  { opacity: 0; z-index: 1; }
  40%  { opacity: 0; z-index: 0; }
  100% { opacity: 0; z-index: 0; }
}



/* تنظیم کانتینر برای نمایش افقی کارت‌ها */
.game-carousel {
    user-select: none; 
  -webkit-user-select: none; /* برای سافاری */
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 10px;
  flex-wrap: nowrap;
  position: relative;
  /* مخفی کردن نوار اسکرول در فایرفاکس */
  scrollbar-width: none; 
  /* مخفی کردن نوار اسکرول در IE و Edge */
  -ms-overflow-style: none; 
}

/* مخفی کردن نوار اسکرول در کروم، سافاری و مرورگرهای بر پایه WebKit */
.game-carousel::-webkit-scrollbar {
  display: none;


}

/* تنظیم عرض ثابت برای هر کارت بازی تا در حالت افقی باقی بمانند */
.game-card {
  flex: 0 0 auto; /* این خط باعث می‌شود کارت‌ها فشرده نشوند و پشت سر هم قرار بگیرند */
  max-width: 220px; /* عرض ثابت کارت */
  width: 220px; /* عرض ثابت کارت */
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}




/* تنظیم سایز دقیق و یکپارچه برای همه عکس‌ها */
.game-card img {
  -webkit-user-drag: none; /* برای کروم و سافاری */
  pointer-events: auto; /* برای اینکه کلیک روی عکس همچنان کار کند */
  width: 100%;
  height: 250px; /* ارتفاع ثابت برای همه عکس‌ها */
  object-fit: cover; /* این ویژگی باعث می‌شود عکس‌ها بدون دفرمه شدن، کل کادر را پر کنند */
  border-radius: 10px 10px 0 0;
  
  /* افکت محو شدن تصویر به سمت پایین که در درخواست اولتان بود */
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  
  cursor: pointer; /* تبدیل نشانگر ماوس به دست برای کلیک */
}


.game-card img:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
  
}

.game-card img::after {
  transform: scale(1.9);
  transition: transform 0.3s ease;
  
}

.game-card h3 {
  direction: ltr;
  font-size: 15px;
  color: #fff;
  text-transform: uppercase; 
  letter-spacing: 1px;
  text-shadow: 
    0 0 5px #00d4ff, 
    0 0 10px #00d4ff, 
    0 0 20px #00d4ff; 
}

.game-card:hover h3 {
  text-shadow: 
    0 0 10px #00d4ff, 
    0 0 20px #00d4ff, 
    0 0 40px #00d4ff; 
}


.game-card p {
  font-size: 14px;
}

.game-card button {
  font-size: 14px;
  padding: 8px 12px;
}

.search-results {
  position: absolute;
  font-size: small;
  left: 0;
  top: 45px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  width: 300px;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-results li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.search-results li:last-child {
  border-bottom: none;
}

.search-results a {
  color: #0a2e5d;
  text-decoration: none;
  display: block;
}

.search-results a:hover {
  background-color: #f0f0f0;
}

.dropdown {
  position: absolute;
  top: 60px;
  left: 0;
  min-width: 180px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;

  /* hidden state */
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  pointer-events: none;
  visibility: hidden;

  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease;
}

/* show state */
.dropdown.showdrop {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

/* menu items */
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

/* light mode */
body.light .dropdown {
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

body.light .dropdown a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* dark mode */
body.dark .dropdown {
  background: rgba(20, 20, 20, 0.92);
  color: #f3f4f6;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.dark .dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* optional divider */
.dropdown hr {
  border: none;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  margin: 6px 0;
}


    #toast-container {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 120;
      max-width: 400px;
    }

 
    .toast {
      background-color: #4f3cfc;
      color: rgb(253, 253, 252);
      padding: 12px 20px;
      margin-top: 10px;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.3);
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.4s ease;

      direction: rtl;
    }


    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }
    .toast.success { background-color: #28a745; }
    .toast.error { background-color: #dc3545; }
    .toast.info { background-color: #17a2b8; }
    

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  
  color:#110000
  
}

.auth-container {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  margin: 20px;

  color:#000a00
}

.auth-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #000a00;
}

.form-group {
  margin-bottom: 15px;
  background-color: (var var(--primary-color));
}

.form-group-pay {
  margin-bottom: 15px;
  background-color:#424242;
  width: 300px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color:(var var(--primary-color));;
}

.label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color:#00cc00;
}


.form-group input {
  width: 85%;
  padding: 8px;
  border: 1px solid #533696;
  border-radius: 5px;
  font-size: 16px;
}

.input-with-button {
  width: 55%;
  padding: 8px;
  border: 1px solid #533696;
  border-radius: 5px;
  font-size: 16px;
}

.captcha {
  position: relative;
  
  width: 95%;
}

.generate-captcha {
  position: absolute;
  top: 31px;
  left: -17px;
  cursor: pointer;
  padding: 5px 10px;
  background: #00ff00;
  border-radius: 5px;
  color: #08bb44;
  font-weight: bold;
}

button {
  width: 100%;
  padding: 10px;
  background-color:  #00cc00;
  border: none;
  color: #0a2e5d;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  font-family: IRANSans;
  transition: background 0.3s;
}

.erorr-message{

  visibility: visible;
}

.btn-view {
  width: 100%;
  padding: 10px;
  background-color:  #4700cc;
  border: none;
  color: #f0f2f5;
  font-size: 12px;
  border-radius: 5px;
  cursor: pointer;
  font-family: IRANSans;
  transition: background 0.3s;
}


button:hover {
  background-color: #8cee8c; 
}

.form-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 5px;
  display: none;
}

.form-message.show {
  display: block;
}

.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 5px;
}


.packages-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 10px;
}

.package-card {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 5px;
  width: 400px;
  background: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.package-card:hover {
  transform: scale(1.05);
}

.tooltip-actions {
  display: flex;
  flex-direction: row;       /* کنار هم */
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
}

/* بخش مخصوص دکمه‌ها */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 40%;
  max-width: 180px;
}

/* باکس نظر */
.comment-box {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  color: #fff;
  width: 300px;
}
    


.comment-box-title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 8px;
}

.comment-textarea {
  width: 90%;
  resize: none;
  border-radius: 10px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: #222;
  border: none;
  outline: none;
  margin-bottom: 8px;
}

.btn-comment {
  width: 50%;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  cursor: pointer;
}

.comment-hint {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #ffd6d6;
  display: none;
}


.package-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.package-card h3 {
  font-size: 18px;
  margin: 10px 0;
  color: var(--text-color);
}

.package-card p {
  font-size: 14px;
  margin: 5px 0;
  color: var(--text-color);
}

.package-actions {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.selectbazi {
  align-items: center;
  background-image: linear-gradient(144deg, #AF40FF, #5B42F3 50%, #00DDEB);
  border: 0;
  border-radius: 8px;
  box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;

  color: #0e0000;

  justify-content: center;
  line-height: 1em;


  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s;

     font-family: inherit;
     font-size: medium;
     top: 10px; 
     right: 350px;
     z-index: 110;
     opacity: 50%;
    width: 300px;
}

.video-container {
  display: flex;
  justify-content: center;
  align-items: center;

  object-fit: contain; 
  background-color: black;
  overflow: hidden;
}

#video1 {
  width:70%;
  height: auto;
  object-fit: contain; 
  z-index: 20;
  filter: contrast(110%) saturate(105%);
}


.Select {
  padding: 10px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-family: IRANSans;

}

 


.buy-button,
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-family: IRANSans, sans-serif;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* دکمه خرید */
.buy-button {
  background: linear-gradient(135deg, #00c853, #43a047);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 200, 83, 0.35);
}

/* افکت نور */
.buy-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: rgba(255,255,255,0.35);
  transform: skewX(-25deg);
  transition: 0.6s;
}

.buy-button:hover::before {
  left: 130%;
}

/* Hover */
.buy-button:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(0, 200, 83, 0.5);
}

/* کلیک */
.buy-button:active {
  transform: scale(0.96);
}

/* فوکوس */
.buy-button:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.25);
}
.back-button {
  background-color: var(--border-color);
  color: #0a2e5d;
}

.back-button:hover {
  background-color: #00cc00;
}




.footer {
  background:  var(--secondry-color);
  color: #ccc;
  padding: 10px 0 10px;
  font-family: sans-serif;
  border-radius: 10px;
}

.container {
  width: 100%;
  max-width: 1366px;
  margin: auto;
}

.footer-col{
  line-height: 1.8;
  font-size: 14px;
  text-justify:inter-word;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.footer-col h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 18px;
}



.footer-col p {
  line-height: 1.8;
  font-size: 14px;
  text-justify:inter-word;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color:var(--primary-color);
  text-decoration: none;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: var(--primary-color);
  padding-right: 5px;
}

/* Social Icons */
.social-links {
  margin-top: 1px;
}

.icon{
  font-size: xx-large;
  color: #007bff;
}

.social-links a {
  display: inline-block;
  margin-left: 10px;
  font-size: 20px;
  color: #ccc;
  transition: 0.3s;
}

.social-links a:hover {
  color: #ff9800;
  transform: translateY(-3px);
}

/* Newsletter */
.newsletter {
  display: flex;
  margin-top: 10px;
}

.newsletter input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  border-radius: 5px 0 0 5px;
}

.newsletter button {
  padding: 10px 15px;
  border: none;
  background: #ff9800;
  color: #fff;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
  transition: 0.3s;
}

.newsletter button:hover {
  background: #e68900;
}

/* Bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 5px;
  font-size: 14px;
  color: #777;
}






.full-overlay {
  position: fixed;
  top: 0;
  left: 0%;
  width: 100%;
  height: 100%; 
  background-color: rgba(0, 0, 0, 0.7); 
  display: none; 
  justify-content: flex-start;
  align-items: center;
  z-index: 80;
 opacity: 0;
   transition:
    opacity 0.55s cubic-bezier(.2,.8,.2,1),
    transform 0.55s cubic-bezier(.2,.8,.2,1),
    filter 0.55s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.55s ease;
}

@keyframes tooltipPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tooltipGlow {
  0%, 100% {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  }
  50% {
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
  }
}



#full-overlay.show {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}



.tooltip-imageBack {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* تصویر کل کانتینر را پر می‌کند */
  z-index: 100;        /* پشت محتوای دیگر قرار می‌گیرد */
}



.tooltip-content {
    position: relative;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px;
    border-radius: 10px;
    width: 70%;
    height: 100%;
    overflow-y: auto;
    direction: rtl;
    top:0%;
    right: 15%;
    z-index: 90;
    overflow: hidden; 

}



.close-btn {
    position: absolute;
    right: 15px;
    top: 5px;
    font-size: 48px;
    cursor: pointer;
    color: rgb(156, 13, 13);
}


.tooltip-title {
    font-size: x-large;
    font-weight: bold;
    text-align: center;
    top: 20px;    
    margin-bottom: 20px;
}


.image-buttons-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}


.tooltip-image {
    width: 40%;
    max-width: 250px;
    display: block;
    margin-bottom: 20px;
    border-radius: 18px;
    border: 2px solid rgba(255,255,255,.25);

 
    box-shadow:
        0 12px 30px rgba(0,0,0,.45),
        0 6px 12px rgba(255,255,255,.15) inset,
        0 -4px 8px rgba(0,0,0,.2) inset,
        0 0 20px rgba(0,180,255,.35),
        0 0 45px rgba(0,180,255,.2);

    
    filter:
        drop-shadow(0 0 8px rgba(0,180,255,.5))
        drop-shadow(0 0 18px rgba(0,180,255,.35));

    transition: all .4s ease;
}


.tooltip-image:hover{
    transform: translateY(-5px) scale(1.03);

    box-shadow:
        0 20px 40px rgba(0,0,0,.55),
        0 8px 15px rgba(255,255,255,.18) inset,
        0 -5px 10px rgba(0,0,0,.25) inset,
        0 0 35px rgba(0,255,255,.55),
        0 0 70px rgba(0,150,255,.45);

    filter:
        brightness(1.08)
        drop-shadow(0 0 12px rgba(0,255,255,.8))
        drop-shadow(0 0 30px rgba(0,150,255,.6));
}


.tooltip-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 40%;
    max-width: 150px;
}

.tooltip-text {
    margin-top: 20px;
    font-size: medium;
    color: #fff;
    text-align: justify;
}



.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
    font-size: 1.5rem;
    color: gold;
    cursor: pointer;
}

   .dialog-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(121, 116, 116, 0.5);
            justify-content: center;
            align-items: center;
            z-index: 100;
        }



        .dialog-box {
            top: 30%;
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            width: 80%;
            max-width: 600px;
            text-align: center;
            animation: fadeIn 0.3s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.8); }
            to { opacity: 1; transform: scale(1); }
        }

        .dialog-box h2 {
            margin: 0 0 15px;
            font-size: 24px;
            color: #333;
        }

        .dialog-box p {
            margin: 0 0 20px;
            color: #555;
        }

        .dialog-box button {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            background-color: #007bff;
            color: white;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .dialog-box button:hover {
            background-color: #a1acb8;
        }

        .open-dialog-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            background-color: #28a745;
            color: white;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .open-dialog-btn:hover {
            background-color: #218838;
        }

        .inputfee{
           
           direction: rtl;  
           text-align: left;
           font-weight: bold;
           border-width: 1;
           font-family:inherit;
           border-color: #864040; 
           border-radius: 10px;
           width: 100px;
        }


        
  #channelPopup{
    font-family: inherit;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    padding: 16px;
    font-family: sans-serif;
    display: none;
    z-index: 2147483647;
    color: #000a00;
}

.join-btn{
    background:#0088cc;
    color:white;
    padding:8px 12px;
    border-radius:16px;
    text-decoration:none;
    margin: 10px;
    font-family: iransans;
    width: 100px;
}
.join-btn :hover{
    background-color: #81abd8;

}

.bale {

 width:50px;

}
.bale:hover {
 transform: scale(1.3);
  
}



/* کدهای قبلی شما */
.reviews-home { margin: 50px 0; }
.reviews-home h2 { text-align: center; margin-bottom: 25px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; }
.review-card { background: #111827; border-radius: 12px; padding: 20px; color: white; border: 1px solid rgba(255, 255, 255, .08); }
.review-game { color: #60a5fa; font-weight: bold; margin-bottom: 10px; }
.review-text { line-height: 1.9; min-height: auto; }
.review-user { margin-top: 15px; color: #94a3b8; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pagination a { padding: 10px 14px; text-decoration: none; border-radius: 8px; background: #1f2937; color: white; }
.pagination a.active { background: #2563eb; }


.replies-container {
    margin-right: 20px;
    padding-right: 15px;
    margin-top: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.1); 
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reply-card {
    background: #1f2937;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.reply-card .review-user {
    margin-top: 10px;
    font-size: 0.9em;
    color: #64748b; 
}


/*-------------------------------------------------------Mobile-------------------------------------------*/


@media (max-width: 768px) {


  

  #channelPopup{
    font-family: inherit;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    padding: 16px;
    font-family: sans-serif;
    display: none;
    z-index: 2147483647;
    color: #000a00;
}

.join-btn{
    background:#0088cc;
    color:white;
    padding:8px 12px;
    border-radius:16px;
    text-decoration:none;
     margin: 10px;
     font-family: iransans;
     width: 100px;
}

.join-btn :hover{
    transform: scale(1.1);

}






  nav ul {
    flex-direction: column;
    align-items: flex-start  !important;
    background-color: var(--menu-bg);
    padding: 10px 20px;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    width: 100%;
    text-align: right;
    margin: 5px 0;
  }

  nav ul li a {
    display: block;
    padding: 10px 15px;
    width: 100%;
  }


  .auth-container {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 90%;
    margin: 20px;
  }


  .slider {
    height: 300px;
  }

  .game-carousel {
    flex-wrap: nowrap;
  }








  .game-card h3 {
    font-size: 14px;
  }

  .game-card p {
    font-size: 12px;
  }

  .game-card button {
    font-size: 12px;
    padding: 5px;
  }

  .search-user {
    display: flex;
    justify-content: left;
    justify-items: baseline;
    
    width: 100%;
    padding-right: 20px;
  }

  .search-user input {
    max-width: 100px;

    font-family: inherit;
    height: 30px;

  }

  .auth-container {
    max-width: 90%;
    padding: 15px;
  }

  .package-card {
    width: 100%;
    max-width: 300px;
  }

  .buy-button,
  .back-button {
    font-size: 12px;
    padding: 8px;
  }







    .full-overlay {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }


        .dialog-overlay {
            display: none;
            position: fixed;
            top: 0px;
            left: 0px;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
            z-index: 100;
        }



        .dialog-box {
            top: 0px;
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            width: 300px;
            text-align: center;
            animation: fadeIn 0.3s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.8); }
            to { opacity: 1; transform: scale(1); }
        }

        .dialog-box h2 {
            margin: 0 0 15px;
            font-size: 24px;
            color: #333;
        }

        .dialog-box p {
            margin: 0 0 20px;
            color: #555;
        }

        .dialog-box button {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            background-color: #007bff;
            color: white;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .dialog-box button:hover {
            background-color: #0056b3;
        }

        .open-dialog-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            background-color: #28a745;
            color: white;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .open-dialog-btn:hover {
            background-color: #218838;
        }

        .inputfee{
           

           direction: rtl;  
           text-align: left;
           font-weight: bold;
           border-width: 1;
           font-family:inherit;
           border-color: #eee; 
           border-radius: 10px;
           width: 50%;
        }


  .imagebutton {
  width: 40px;
  padding: 1px;
  background-color: var(--border-color);
  border: none;
  color: #0a2e5d;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  font-family: IRANSans;
  transition: width 0.3s;
  vertical-align: middle;
}

.imagebutton:hover {
   transform: scale(1.1);

}



.support-section {
  margin-top: 30px;
  padding: 20px;
  background: var(--menu-bg);
  border-radius: 10px;
box-shadow: 0 4px 15px rgba(252, 251, 251, 0.1);
}

.support-section h3 {
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 18px;
}

.ticket-item {
  background: var(--secondary-color);
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  border-right: 4px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.ticket-item:hover {
  transform: translateX(5px);
  background: #3a3a3a;
}

.ticket-item.open .ticket-replies {
  display: block;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-color);
  font-weight: bold;
  font-size: 15px;
}

.ticket-status {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 10px;
  background: #444;
  color: #ccc;
}

.ticket-status.open { background: #ff9800; color: white; }
.ticket-status.closed { background: #f44336; color: white; }
.ticket-status.resolved { background: #4caf50; color: white; }

.ticket-body {
  margin-top: 8px;
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
}

.ticket-replies {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  display: none;
}

.reply-item {
  background: rgba(0, 255, 0, 0.1);
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 5px;
  font-size: 13px;
  color: #eee;
}

.reply-item.user {
  background: rgba(0, 0, 255, 0.1);
  text-align: left;
}

.reply-item.admin {
  background: rgba(255, 193, 7, 0.1);
}

.reply-item .sender {
  font-weight: bold;
  color: #00ff00;
}
 

 .newsletter {
    flex-direction: column;
  }

  .newsletter input {
    border-radius: 5px;
    margin-bottom: 10px;
  }

  .newsletter button {
    border-radius: 5px;
  }




  .tooltip-content {
    position: relative;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0px;
    border-radius: 10px;
    width: 90%;
    height: 100%;
    overflow-y: auto;
    direction: rtl;
    top:0%;
    right: 0%;
    z-index: 90;
}
  
.btn-comment {
  width: 40%;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 500;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  cursor: pointer;
}

 

  
  .image-buttons-wrapper {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    width: 100%;
  }


  

  .comment-box {
    width: 80vw; 
    margin-left: calc(-40vw + 50%); 
    margin-right: calc(-40vw + 50%);
    padding: 20px; 
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 0 0;
    box-sizing: border-box;
  }



  .comment-textarea {
    width: 100%; 
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: white;
    box-sizing: border-box; 
    margin-bottom: 10px;
  }

 }

@keyframes gentlePulse {
    0% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.65; 
        transform: scale(0.7); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

.tooltip-comment {
    animation: gentlePulse 3s ease-in-out infinite;
    background-color: #f8f418; 
    color: #991b1b; 
    border: 1px solid #f85757; 
    padding: 8px 16px; 
    border-radius: 6px; 
    display: inline-block; 
    font-family: 'IRANSans';
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 2px 6px rgba(153, 27, 27, 0.08); 
    backdrop-filter: blur(4px); 
    cursor: default;
}



.carousel-wrapper {
  position: relative;
}

.carousel-wrapper {
  position: relative;
}

.fade-btn-left {
  position: absolute;
  top: 8px;
  left: 0;
  bottom: 15px;
  width: 30px;
  z-index: 2;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;

  border-top-right-radius: 12000px;
  border-bottom-right-radius: 1200px;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12000px;

  background: radial-gradient(
    circle at left center,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.85) 25%,
    rgba(255, 255, 255, 0.4) 55%,
    rgba(255, 255, 255, 0) 80%
  );

  box-shadow: 0 0 25px 8px rgba(255, 255, 255, 0.55);
  filter: blur(1.5px);

  animation: haloPulse 1.4s ease-in-out infinite;
}

@keyframes haloPulse {
  0%, 100% {
    opacity: 0.85;
    box-shadow: 0 0 20px 6px rgba(255, 255, 255, 0.45);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 32px 12px rgba(255, 255, 255, 0.65);
  }
}

.video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #111;
}

.video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.sound-button {
    position: absolute;
    right: 20px;
    bottom: 20px;

    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.48);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.sound-button:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.sound-button:active {
    transform: scale(0.95);
}

.sound-button:focus-visible {
    outline: 3px solid #5db7ff;
    outline-offset: 3px;
}

.sound-button svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.speaker-off {
    display: none;
}

.sound-button.is-muted .speaker-on {
    display: none;
}

.sound-button.is-muted .speaker-off {
    display: block;
}

@media (max-width: 768px) {
    .sound-button {
        right: 12px;
        bottom: 12px;
        width: 42px;
        height: 42px;
    }

}
