/* --- استایل‌های عمومی پایه --- */
.gn-app-download-section {
  direction: rtl;
  background: #1b1d2f;
  padding: 50px 20px;
  font-family: Vazirmatn, IRANSans, sans-serif;
  overflow-x: hidden;
}

.gn-app-download-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.gn-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* --- استایل کارت‌ها --- */
.gn-app-card {
  position: relative;
  border-radius: 26px;
  padding: 2px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  min-width: 0;
}

.gn-app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  pointer-events: none;
  border: 1px solid transparent;
  opacity: 1;
}

/* افکت‌های سایه نئونی دور کارت‌ها */
.gn-android {
  box-shadow: 0 0 0 1px rgba(135, 197, 39, 0.22), 0 0 28px rgba(135, 197, 39, 0.12);
}
.gn-android::before {
  box-shadow: inset 0 0 0 1px rgba(135, 197, 39, 0.36);
}

.gn-windows {
  box-shadow: 0 0 0 1px rgba(52, 143, 255, 0.22), 0 0 28px rgba(52, 143, 255, 0.12);
}
.gn-windows::before {
  box-shadow: inset 0 0 0 1px rgba(52, 143, 255, 0.36);
}

.gn-tv {
  box-shadow: 0 0 0 1px rgba(255, 194, 45, 0.22), 0 0 28px rgba(255, 194, 45, 0.12);
}
.gn-tv::before {
  box-shadow: inset 0 0 0 1px rgba(255, 194, 45, 0.36);
}

.gn-ios {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 0 28px rgba(255,255,255,0.08);
}
.gn-ios::before {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28);
}

/* بدنه کارت */
.gn-card-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(140px, 0.85fr);
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 26px;
  background: linear-gradient(180deg, rgba(15,18,30,0.98), rgba(10,12,20,0.98));
  border-radius: 24px;
  min-width: 0;
}

/* هدر کارت (موقعیت آیکون‌ها) */
.gn-card-top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
  pointer-events: none;
}

.gn-platform-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.gn-platform-icon svg {
  width: 44px;
  height: 44px;
  max-width: 100%;
  max-height: 100%;
}

/* استایل کپسول‌های ۳خط مورب SVG با افکت رنگ اختصاصی و درخشش نئون */
.gn-card-decor {
  display: flex;
  align-items: center;
  width: 52px;
  height: 24px;
  flex: 0 0 auto;
}

.gn-decor-svg {
  width: 100%;
  height: 100%;
}

/* تنظیم رنگ‌های هماهنگ با بدنه باکس به صورت نئونی خیره‌کننده */
.gn-android .gn-card-decor {
  color: #87c527;
  filter: drop-shadow(0 0 6px rgba(135, 197, 39, 0.85));
  opacity: 0.85;
}

.gn-windows .gn-card-decor {
  color: #348fff;
  filter: drop-shadow(0 0 6px rgba(52, 143, 255, 0.85));
  opacity: 0.85;
}

.gn-tv .gn-card-decor {
  color: #ffc22d;
  filter: drop-shadow(0 0 6px rgba(255, 194, 45, 0.85));
  opacity: 0.85;
}

.gn-ios .gn-card-decor {
  color: #a855f7; /* بنفش زیبای آیفون */
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.85));
  opacity: 0.85;
}

/* بخش متون کارت */
.gn-card-text {
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.gn-card-text h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 900;
}

.gn-card-text p {
  margin: 0 0 22px;
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  line-height: 1.9;
  max-width: 28ch;
}

/* دکمه دانلود */
.gn-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: 0.25s ease;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.gn-android .gn-download-btn { color: #87c527; }
.gn-windows .gn-download-btn { color: #348fff; }
.gn-tv .gn-download-btn { color: #ffc22d; }
.gn-ios .gn-download-btn { color: #ffffff; }

.gn-btn-dl-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: transform 0.25s ease;
  flex: 0 0 auto;
}

.gn-download-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.04);
}

.gn-download-btn:hover .gn-btn-dl-icon {
  transform: translateY(2px);
}

/* بخش QR Code */
.gn-qr-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.gn-qr-bg {
  width: 170px;
  height: 170px;
  padding: 16px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
}

.gn-qr-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
}

/* گرادینت‌های زیبای پشت QR کدها */
.gn-android-bg {
  background: linear-gradient(135deg, #1f640a, #87c527);
}
.gn-windows-bg {
  background: linear-gradient(135deg, #2f8cff, #6f5bff);
}
.gn-tv-bg {
  background: linear-gradient(135deg, #ffc61f, #ff6a3d);
}
.gn-ios-bg {
  background: linear-gradient(135deg, #0070f3 0%, #7928ca 100%);
  box-shadow: 0 10px 20px rgba(121, 40, 202, 0.25);
}

/* ========================================== */
/*   استایل‌های کاملاً شخصی‌سازی‌شده و لوکس پاپ‌آپ   */
/* ========================================== */
.gn-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* کلاس کمکی نمایش پاپ‌آپ */
.gn-modal-visible {
  opacity: 1;
  visibility: visible;
}

.gn-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gn-modal-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  background: #141627;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(121, 40, 202, 0.15);
  border-radius: 30px;
  padding: 36px;
  color: #ffffff;
  transform: scale(0.9) translateY(20px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  direction: rtl;
  max-height: 90vh;
  overflow-y: auto;
}

/* افکت باز شدن روان پاپ‌آپ */
.gn-modal-visible .gn-modal-wrapper {
  transform: scale(1) translateY(0);
}

/* دکمه ضربدر بستن */
.gn-modal-close-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.25s ease;
}

.gn-modal-close-btn:hover {
  background: rgba(255, 0, 0, 0.15);
  color: #ff4a4a;
  border-color: rgba(255, 0, 0, 0.25);
  transform: rotate(90deg);
}

.gn-modal-close-btn svg {
  width: 16px;
  height: 16px;
}

/* هدر پاپ‌آپ */
.gn-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.gn-modal-apple-badge {
  background: linear-gradient(135deg, #0070f3, #7928ca);
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(121, 40, 202, 0.35);
  color: #fff;
}

.gn-modal-header h2 {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

/* بدنه پاپ‌آپ */
.gn-modal-intro {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.85;
  text-align: justify;
  margin: 0 0 24px 0;
}

.gn-modal-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* هر ردیف گام آموزشی */
.gn-step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.gn-step-num {
  background: linear-gradient(135deg, #7928ca, #ff007a);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(121, 40, 202, 0.3);
}

.gn-step-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gn-step-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

/* آیکون‌های درون خطی برای راهنما */
.gn-icon-inline {
  display: inline-flex;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 4px;
  color: #0070f3;
  margin: 0 4px;
}

/* باکس کپی آدرس */
.gn-url-copy-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.gn-target-url {
  font-family: monospace, sans-serif;
  font-size: 13px;
  color: #0070f3;
  letter-spacing: 0.5px;
}

.gn-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.25s ease;
  font-weight: 700;
}

.gn-copy-btn:hover {
  background: #0070f3;
  border-color: #0070f3;
}

/* فوتر پاپ‌آپ */
.gn-modal-footer {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.gn-modal-primary-btn {
  background: linear-gradient(135deg, #0070f3, #7928ca);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 12px 36px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 10px 25px rgba(121, 40, 202, 0.3);
  width: 100%;
}

.gn-modal-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(121, 40, 202, 0.45);
}

/* --- تبلت --- */
@media (max-width: 1024px) {
  .gn-app-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --- سازگاری کامل موبایل --- */
@media (max-width: 768px) {
  .gn-app-download-section {
    padding: 32px 12px;
  }

  .gn-app-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .gn-app-card {
    min-height: auto !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .gn-card-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 76px 16px 26px 16px !important;
    width: 100% !important;
  }

  .gn-card-top {
    position: absolute !important;
    top: 18px !important;
    left: 18px !important;
    right: 18px !important;
    width: auto !important;
  }

  .gn-platform-icon {
    width: 36px !important;
    height: 36px !important;
  }

  .gn-platform-icon svg {
    width: 36px !important;
    height: 36px !important;
  }

  .gn-card-decor {
    width: 44px !important;
    height: 20px !important;
  }

  .gn-card-text {
    padding-top: 0 !important;
    align-items: center !important;
    width: 100% !important;
  }

  .gn-card-text h3 {
    font-size: 22px !important;
    margin-bottom: 8px !important;
  }

  .gn-card-text p {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
  }

  .gn-download-btn {
    width: 100% !important;
    max-width: 260px !important;
    margin-bottom: 12px !important;
  }

  .gn-qr-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .gn-qr-bg {
    width: 138px !important;
    height: 138px !important;
    padding: 10px !important;
  }

  .gn-qr-bg img {
    padding: 4px !important;
  }

  /* تنظیمات پاپ‌آپ برای موبایل‌های کوچک */
  .gn-modal-wrapper {
    padding: 24px 20px;
  }
  .gn-modal-header h2 {
    font-size: 18px;
  }
}

/* ===== AnimeNub App Manager additions ===== */
.gn-mac{box-shadow:0 0 0 1px rgba(255,255,255,.18),0 0 28px rgba(255,255,255,.08)}
.gn-mac::before{box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)}
.gn-mac .gn-card-decor{color:#d8dde8;filter:drop-shadow(0 0 6px rgba(255,255,255,.42));opacity:.85}
.gn-mac .gn-download-btn{color:#e4e7ed}
.gn-mac-bg{background:linear-gradient(135deg,#4b5563,#d1d5db)}
.gn-donation{box-shadow:0 0 0 1px rgba(255,105,135,.22),0 0 28px rgba(255,105,135,.12)}
.gn-donation::before{box-shadow:inset 0 0 0 1px rgba(255,105,135,.36)}
.gn-donation .gn-card-decor{color:#ff6b8a;filter:drop-shadow(0 0 6px rgba(255,107,138,.7));opacity:.85}
.gn-donation .gn-platform-icon{color:#ff6b8a}
.gn-donation .gn-download-btn{color:#ff6b8a}
.gn-donation-bg{background:linear-gradient(135deg,#9f1239,#fb7185)}

/* حالت «به‌زودی»: کارت همچنان قابل تشخیص است، اما محتوای آن عمداً از دسترس خارج می‌شود */
.gn-coming-soon{cursor:default;isolation:isolate}
.gn-coming-soon:after{content:"";position:absolute;z-index:5;inset:2px;border-radius:24px;background:linear-gradient(135deg,rgba(7,10,18,.18),rgba(8,10,18,.56));pointer-events:none}
.gn-coming-soon .gn-card-body{filter:blur(3.4px);opacity:.48;transform:scale(.995);transition:.25s ease}
.gn-coming-soon .gn-card-top{opacity:.55}
.gn-coming-soon .gn-platform-icon,.gn-coming-soon .gn-card-decor{filter:grayscale(.35);}
.gn-coming-soon-badge{position:absolute;z-index:10;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:10px;padding:9px 13px 9px 18px;border:1px solid rgba(255,255,255,.19);border-radius:18px;background:linear-gradient(135deg,rgba(19,23,38,.94),rgba(12,15,26,.88));backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 18px 42px rgba(0,0,0,.42),0 0 32px rgba(255,255,255,.06);white-space:nowrap;color:#fff;direction:rtl}
.gn-coming-soon-badge .gn-coming-soon-icon{width:29px;height:29px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.08);color:#c9d0df;font-size:14px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.gn-coming-soon-badge .gn-coming-soon-label{font-size:11px;font-weight:700;color:rgba(255,255,255,.56);line-height:1.2}
.gn-coming-soon-badge strong{display:block;font-size:18px;line-height:1;color:#fff;font-weight:950;letter-spacing:-.2px}
.gn-disabled-btn{cursor:not-allowed;pointer-events:none}
.gn-qr-placeholder{color:#fff;font-size:15px;font-weight:900;text-align:center}
.gn-qr-placeholder span{filter:none!important;opacity:1!important}
.gn-donation .gn-qr-bg{box-shadow:0 10px 24px rgba(251,113,133,.2)}
.gn-donation .gn-card-text p{max-width:31ch}
@media(max-width:768px){
  .gn-coming-soon .gn-card-body{filter:blur(2.7px)}
  .gn-coming-soon-badge{gap:8px;padding:8px 11px 8px 14px;border-radius:16px}
  .gn-coming-soon-badge .gn-coming-soon-icon{width:25px;height:25px;border-radius:8px}
  .gn-coming-soon-badge .gn-coming-soon-label{font-size:10px}
  .gn-coming-soon-badge strong{font-size:16px}
}
