/* فونت و پایه */
body {
  margin: 0;
  font-family: 'Vazirmatn', sans-serif;
  background: linear-gradient(135deg, #47091e, #3e0912);
  color: #fff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-attachment: fixed;
  background-size: cover;
}

/* کانتینر اصلی */
.container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  border-radius: 30px;
  padding: 20px;
  margin: 20px;
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 90%;
}

/* تصویر موبایل */
.phone {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone img {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* محتوای متنی */
.content {
  flex: 1 1 400px;
  padding: 20px;
  text-align: center;
  direction: rtl;
}

.content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.content .subtext {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fbe3e8; /* نزدیک به رنگ روشن‌تر از تم جدید */
}

.versian {
  font-size: 0.85rem;
  margin-top: 15px;
  color: #f8dbe2;
}

/* بخش QR و دکمه‌ها */
.dl-part {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0;
}

/* QR */
.qr {
  text-align: center;
}

.qr img {
  width: 120px;
  height: 120px;
  background: #fff;
  padding: 6px;
  border-radius: 16px;
}

button,input,h1,h2,h3,p {
  font-family: 'Vazirmatn', sans-serif;
}

/* دکمه‌ها */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.store-btn {
  display: flex;
  align-items: center;
  background: #b43460;
  color: #fff;
  padding: 10px 16px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
  min-width: 160px;
  max-width: 250px;
}

.store-btn:hover {
  transform: scale(1.05);
  background: #a22b56; /* رنگ تیره‌تر برای hover */
}

.store-btn .icon {
  margin-left: 12px;
  font-size: 1.3rem;
}

.store-btn .text {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.store-btn .text small {
  font-size: 0.75rem;
  color: #f5cbd7;
}

.store-btn .text strong {
  font-size: 1.05rem;
}

/* لینک امکانات */
.more-info-link {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid #fff;
  border-radius: 10px;
  padding: 15px 20px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  display: inline-block;
  margin-top: 20px;
    width: -webkit-fill-available;
    max-width: 400px;
}

.more-info-link:hover {
  background: #fff;
  color: #b43460;
}


.more-info-link2 {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid #fff;
    border-radius: 10px;
    padding: 15px 20px;
    color: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    display: inline-block;
    margin-top: 20px;
    width: -webkit-fill-available;
}

.more-info-link2:hover {
  background: #fff;
  color: #b43460;
}

.callsection{
        display: flex;
    gap: 10px;
    width: 90%;
    max-width:400px;
    margin: 0 auto;
    justify-content: center;
}



/* مودال */
.modal {
  display: none;
  align-items: center;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: flex-start;
  animation: fadeIn 0.4s ease-in-out;
}

.modal-content {
  background: #fff;
  color: #000;
  border-radius: 15px;
  max-width: 800px;
  width: 90%;
  height: 90vh;
  text-align: right;
  font-family: 'Vazirmatn', sans-serif;
  position: relative;
  animation: slideDown 0.4s ease-in-out;
}

.modal_banner {
  overflow: scroll;
  height: 75vh;
}

.modal-text {
  padding: 20px;
  direction: rtl;
}

.close-modal {
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  background-color: #b43460;
  width: 35px;
  height: 35px;
  border-radius: 20px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .content h1 {
    font-size: 2rem;
  }

  .content .subtext {
    font-size: 1rem;
  }

  .dl-part {
    flex-direction: column;
    gap: 24px;
  }

  .store-btn {
    width: 100%;
    max-width: none;
    justify-content: center;
  }
}


/* دکمه ثبت‌نام و شروع بازی */
.main-cta-btn {
  background: #cd5a6e;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 24px;
  text-align: center;
}

.main-cta-btn:hover {
  background: #b43460;
  transform: translateY(-2px);
}

/* دکمه‌های اپلیکیشن در کنار هم */
.buttons-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* اعمال تغییر در دکمه‌ها برای حفظ سازگاری */
.store-btn {
  display: flex;
  align-items: center;
  background: #b43460;
  color: #fff;
  padding: 10px 16px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
  min-width: 180px;
  max-width: 250px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.store-btn:hover {
  transform: scale(1.05);
  background: #a12d54;
}

.main-cta-btn {
  position: relative;
  display: inline-block;
     background: linear-gradient(135deg, #aa0c35, #d51154);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 22px 32px;
  border: none;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
width: -webkit-fill-available;
    max-width: 520px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.main-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(180, 52, 96, 0.5);
}

/* انیمیشن ripple */
.ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.5);
  display: block;
  content: '';
  border-radius: 9999px;
  animation: ripple-effect 0.6s linear;
  pointer-events: none;
  transform: scale(0);
}

@keyframes ripple-effect {
  to {
    transform: scale(15);
    opacity: 0;
  }
}

/* ردیف دکمه‌ها */
.buttons-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 520px;
  width: 100%;
}

.modal-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 1rem;
  direction: rtl;
}

.modal-text th,
.modal-text td {
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  text-align: right;
  vertical-align: middle;
}

.modal-text th {
  background-color: #e51948;
  color: #fff;
  font-weight: bold;
  text-align: center;
}

.modal-text tr:nth-child(even) {
  background-color: #f9f9f9;
}

.modal-text tr:hover {
  background-color: #ffe9ed;
  transition: 0.3s;
}


