body {
      font-family: "Vazirmatn", sans-serif;
      background: #0f0f0f;
      color: #eee;
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      height: 100%;
      overflow: auto; 
      overflow-x: hidden;
      direction: rtl;
      user-select: none;
    }
.main{
      display: none;
    }
button, a {
  -webkit-tap-highlight-color: transparent;

}

    header {
      background: linear-gradient(90deg, #4e54c8, #8f94fb);
      padding: 20px;
      text-align: center;
      border-bottom: 1px solid #222;
    }
    header h1 {
      margin: 0;
      font-size: 28px;
      font-weight: 700;
      text-align: center;
    }
    header p {
      margin: 5px 0 0;
      font-size: 15px;
      color: #ddd;
    }
    .container {
      max-width: 1000px;
      margin: 30px auto;
      padding: 15px;
      display: grid;
      gap: 20px;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .card {
      background: #1a1a1a;
      border-radius: 16px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.4);
      padding: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: all 0.3s ease;
      border: 1px solid #2a2a2a;
      position: relative;

     
    }
    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 28px rgba(0,0,0,0.6);
    }
    .card h3 {
      margin: 0;
      font-size: 20px;
      color: #fff;
    }
    .features {
      list-style: none;
      padding: 0;
      margin: 15px 0;
    }
    .features li {
      margin: 8px 0;
      font-size: 14px;
      color: #bbb;
      position: relative;
      padding-right: 20px;
    }
    .features li::before {
      content: "✔";
      position: absolute;
      right: 0;
      color: #4ecca3;
      font-size: 14px;
    }
    .price {
      font-size: 22px;
      font-weight: bold;
      color: #4ecca3;
      margin: 10px 0;
    }
    .add-to-cart {
      border: none;
      color: white;
      padding: 12px 20px;
      border-radius: 12px;
      font-size: 15px;
      cursor: pointer;
      transition: 0.3s;
      font-weight: 600;
    }
    .add-to-cart:hover {
      opacity: 0.85;
      transform: scale(1.05);
    }
   
.bottom-menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #111; /* پس زمینه تیره */
  padding: 16px 0;
  border-top: 1px solid #222;
  position: fixed; /* همیشه پایین */
  bottom: -5px;
  left: 0;
  width: 100%;
  z-index: 100;
}

.menu-btn {
  background: linear-gradient(135deg, #1abcfe, #8e44ad); /* آبی فیروزه‌ای → بنفش */
  font-family: "Vazirmatn", sans-serif;
  color: #fff;
  border: none;
  border-radius: 14px;       /* گردی بیشتر */
  padding: 12px 30px;        /* بزرگتر */
  font-size: 15px;           /* فونت بزرگتر */
  line-height: 1.8;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5); /* سایه برجسته */
  transition: all 0.3s ease;  
  font-family: "Vazirmatn", sans-serif;
  white-space: nowrap;
}
.menu-btn:hover {
  transform: scale(1.12);
  opacity: 0.95;
}
.active {
  background: linear-gradient(135deg, #353636, #353636);
}
.active:disabled {
  opacity: 0.5;
  transition: none !important; /* انیمیشن کاملاً غیرفعال */
  transform: none !important; /* جلوگیری از بزرگ شدن */
  transition: none !important;/* غیر فعال کردن تمام انیمیشن‌ها */
}
.cart-link{
    display: flex;
    justify-content: flex-end;
    position: absolute;
    top: 0;
    left: 0px;
    margin: 25px;
}
.cart-link button{
    background: transparent;
  color: #fff;
  border: none;
  border-radius: 14px;       /* گردی بیشتر */
  font-size: 16px;           /* فونت بزرگتر */
  font-weight: 700;          /* ضخیم‌تر */
  cursor: pointer;
  transition: all 0.3s ease;  
}
.support-link{
    position: absolute;
    top: 0;
    right: 0px;
    margin: 25px;
}
.support-link button{
   background: transparent;
  color: #fff;
  border: none;
  border-radius: 14px;       /* گردی بیشتر */
  font-size: 16px;           /* فونت بزرگتر */
  font-weight: 700;          /* ضخیم‌تر */
  cursor: pointer;
  transition: all 0.3s ease;  
}
.google-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #3c4043;
  text-decoration: none;
  transition: all 0.2s ease;
  width: fit-content;
}

.google-btn img {
  width: 20px;
  height: 20px;
}

.google-btn:hover {
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}


.loading{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.spinner {
   width: 57.6px;
   height: 57.6px;
   animation: spinner-y0fdc1 2s infinite ease;
   transform-style: preserve-3d;
   
}

.spinner > div {
   background-color: rgba(234,59,108,0.2);
   height: 100%;
   position: absolute;
   width: 100%;
   border: 2.9px solid #ea3b6c;
}

.spinner div:nth-of-type(1) {
   transform: translateZ(-28.8px) rotateY(180deg);
}

.spinner div:nth-of-type(2) {
   transform: rotateY(-270deg) translateX(50%);
   transform-origin: top right;
}

.spinner div:nth-of-type(3) {
   transform: rotateY(270deg) translateX(-50%);
   transform-origin: center left;
}

.spinner div:nth-of-type(4) {
   transform: rotateX(90deg) translateY(-50%);
   transform-origin: top center;
}

.spinner div:nth-of-type(5) {
   transform: rotateX(-90deg) translateY(50%);
   transform-origin: bottom center;
}

.spinner div:nth-of-type(6) {
   transform: translateZ(28.8px);
}

@keyframes spinner-y0fdc1 {
   0% {
      transform: rotate(45deg) rotateX(-25deg) rotateY(25deg);
   }

   50% {
      transform: rotate(45deg) rotateX(-385deg) rotateY(25deg);
   }

   100% {
      transform: rotate(45deg) rotateX(-385deg) rotateY(385deg);
   }
}
 .accordion {
      width: 100%;
      border: 1px solid #ddd;
      border-radius: 8px;
      overflow: hidden;
      background: #222222;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      color: #fff;
      margin-top: 20px;
    }
    .accordion-item {
      border-bottom: 1px solid #ddd;
    }
    .accordion-header {
      background: #222222;
      color: #fff;

      padding: 12px;
      cursor: pointer;
      font-weight: bold;
      transition: background 0.3s;
    }
    .accordion-header:hover {
      background: #1c1c1c;
      color: #fff;
    }
    .accordion-content {
      display: none;
      padding: 12px;
      background: #fff;
      animation: fadeIn 0.3s ease-in-out;
      background: #222222;
      color: #eaeaea;
    }
    .accordion-content.show {
      display: block;
    }
    .accordion-icon {
      transition: transform 0.3s;
    }
    .accordion-icon.rotate {
      transform: rotate(180deg);
    }
    @keyframes fadeIn {
      from {opacity: 0;}
      to {opacity: 1;}
    }
 .payment-gateway {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%; /* درست زیر دکمه */
  background: #1a1a1a;
  border-radius: 8px;
  padding: 12px;
  display: none;
  z-index: 10;
  margin-top: 10px;
  text-align: center;
}

.payment-gateway.show {
  display: block;
}
@media (max-width: 768px) {
  .payment-gateway {
    position: static;
    display: none;
    text-align: center;
  }
  .payment-gateway.show {
    display: block;
  }
}

.messages {
  margin-top: 20px;
  width: fit-content;
  

}

.alert {
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-family: 'Vazirmatn', sans-serif;
}

.alert.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #22c55e;
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.alert.warning {
  background-color: #FFF3CD; /* زرد ملایم */
  color: #856404;
      border: 1px solid #FFEEBA;

}
