/**
 * بنرِ پایانی (CTA) — pga-*  (۳.۷.۱۹)
 * طرحِ ۲۰۲۶: کارتِ رنگیِ برند با نورهای نرم و شبکهٔ محو، یک اقدامِ اصلی + فرعی، جملهٔ انتظار،
 * نشان‌های اعتماد و پنلِ شیشه‌ایِ آمار. رنگ از --bm-primary (تنظیماتِ رنگِ قالب).
 * ۳.۷.۲۰: ابعادِ فشرده (استاندارد). تبلت/موبایل (≤۹۰۰): تک‌ستون + آمار در یک ردیف؛ موبایل (≤۶۴۰): دو دکمه کنارِ هم.
 */
.pga {
  --pga-primary: var(--bm-primary, #5659f5);
  --pga-ink: #151340;
  position: relative;
  padding: 0 32px clamp(56px, 6.4vw, 82px);
  font-family: var(--bm-font, "Vazirmatn", Tahoma, Arial, sans-serif);
  font-size: 16px;
  line-height: normal;
  text-align: right;
  direction: rtl;
}
.pga *, .pga *::before, .pga *::after { box-sizing: border-box; }
.pga-container { width: min(1136px, 100%); margin-inline: auto; }

.pga .pga-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: center;
  gap: clamp(24px, 3.4vw, 44px);
  overflow: hidden;
  padding: clamp(24px, 2.8vw, 36px) clamp(24px, 3.4vw, 44px);
  color: #fff;
  background: linear-gradient(125deg, var(--pga-primary) 0%, color-mix(in srgb, var(--pga-primary) 58%, var(--pga-ink)) 56%, var(--pga-ink) 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 26px;
  box-shadow: 0 34px 80px -30px color-mix(in srgb, var(--pga-primary) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.pga .pga-card--solo { grid-template-columns: minmax(0, 1fr); }
:root[data-theme="dark"] .pga .pga-card {
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* پس‌زمینهٔ کارت: نورهای نرم + شبکهٔ محو (بدونِ blur → سبک) */
.pga-bg { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.pga-orb { position: absolute; border-radius: 50%; }
.pga-orb--1 { top: -180px; right: -120px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(56, 189, 248, .38), transparent 66%); }
.pga-orb--2 { bottom: -200px; left: -140px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(192, 132, 252, .34), transparent 66%); }
.pga-orb--3 { top: 20%; left: 34%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(255, 255, 255, .1), transparent 68%); }
.pga-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center;
  -webkit-mask-image: radial-gradient(60% 90% at 18% 50%, #000, transparent 75%);
  mask-image: radial-gradient(60% 90% at 18% 50%, #000, transparent 75%);
}

/* ---------- متن ---------- */
.pga-copy { min-width: 0; }
.pga .pga-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 12px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pga .pga-badge svg { flex: none; width: 15px; height: 15px; color: #fde68a; }
.pga .pga-title {
  margin: 12px 0 8px;
  color: #fff;
  font-family: var(--bm-font-heading, inherit);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.035em;
}
.pga .pga-title span {
  display: inline-block;
  white-space: nowrap;
  color: #bae6fd;
  background: linear-gradient(90deg, #7dd3fc, #c4b5fd 55%, #fbcfe8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pga .pga-sub {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(13.5px, 1.1vw, 14.5px);
  font-weight: 500;
  line-height: 1.9;
}

.pga-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pga .pga-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}
.pga .pga-btn--primary,
.pga .pga-btn--primary:hover { color: color-mix(in srgb, var(--pga-primary) 78%, #0b0a2a); }
.pga .pga-btn--primary {
  padding: 6px 18px 6px 7px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(8, 6, 40, .28);
}
.pga .pga-btn-arrow {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--pga-primary);
  border-radius: 10px;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.pga .pga-btn-arrow svg { width: 17px; height: 17px; }
.pga .pga-btn--ghost,
.pga .pga-btn--ghost:hover { color: #fff; }
.pga .pga-btn--ghost {
  padding: 6px 18px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .34);
  font-weight: 800;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pga .pga-btn--ghost svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .pga .pga-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 40px rgba(8, 6, 40, .34); }
  .pga .pga-btn--primary:hover .pga-btn-arrow { transform: translateX(-4px); }
  .pga .pga-btn--ghost:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .55); transform: translateY(-2px); }
}
.pga .pga-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.pga .pga-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
}
.pga .pga-note svg { flex: none; width: 15px; height: 15px; color: #a7f3d0; }

.pga .pga-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.pga .pga-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
}
.pga .pga-points svg {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 3.5px;
  color: #a7f3d0;
  background: rgba(52, 211, 153, .22);
  border-radius: 50%;
}

/* ---------- پنلِ شیشه‌ایِ آمار ---------- */
.pga-proof { position: relative; min-width: 0; padding-top: 12px; }
.pga-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  box-shadow: 0 22px 46px rgba(8, 6, 40, .24), inset 0 1px 0 rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.pga-rating,
.pga-stat {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
}
.pga-rating { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; }
.pga-rating-num { display: grid; gap: 2px; }
.pga .pga-rating-num strong { font-size: 22px; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; }
.pga .pga-rating-num span,
.pga .pga-stat span { color: rgba(255, 255, 255, .8); font-size: 11px; font-weight: 600; line-height: 1.5; }
.pga .pga-stars { position: relative; display: inline-flex; flex: none; line-height: 0; }
.pga .pga-stars-base,
.pga .pga-stars-fill { display: flex; gap: 2px; }
.pga .pga-stars-base { color: rgba(255, 255, 255, .26); }
.pga .pga-stars-fill { position: absolute; inset-block: 0; inset-inline-start: 0; overflow: hidden; color: #fcd34d; white-space: nowrap; }
.pga .pga-stars svg { flex: none; width: 15px; height: 15px; fill: currentColor; }
.pga-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pga-stats[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.pga-stats[data-count="3"] .pga-stat:last-child { grid-column: 1 / -1; }
.pga-stat { display: grid; gap: 1px; min-width: 0; padding: 9px 12px; }
.pga .pga-stat strong { overflow: hidden; font-size: 19px; font-weight: 900; line-height: 1.2; letter-spacing: -.02em; white-space: nowrap; text-overflow: ellipsis; }
.pga-join {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.pga-faces { display: flex; flex: none; }
.pga .pga-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  margin-inline-start: -9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: var(--pga-primary);
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
}
.pga .pga-face:first-child { margin-inline-start: 0; }
.pga .pga-face img { width: 100%; height: 100% !important; object-fit: cover; }
.pga .pga-face--more { color: var(--pga-primary); background: #fff; font-size: 15px; font-weight: 900; }
.pga .pga-join-text { font-size: 12.5px; font-weight: 700; line-height: 1.6; }

/* نشانِ شناور */
.pga .pga-float {
  position: absolute;
  top: -10px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px 6px 7px;
  color: var(--bm-text, #10172a);
  background: var(--bm-surface, #fff);
  border-radius: 13px;
  box-shadow: 0 14px 30px rgba(8, 6, 40, .3);
  animation: pga-bob 6s ease-in-out infinite;
}
.pga-float-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: linear-gradient(145deg, #f59e0b, #f97316);
  border-radius: 9px;
}
.pga-float-icon svg { width: 16px; height: 16px; }
.pga-float-text { display: grid; gap: 1px; }
.pga .pga-float-text strong { font-size: 12px; font-weight: 900; line-height: 1.45; }
.pga .pga-float-text small { color: var(--bm-text-sub, #64748b); font-size: 10.5px; font-weight: 600; line-height: 1.5; }
@keyframes pga-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.pga.is-paused .pga-float { animation-play-state: paused; }

/* ============ تبلت ============ */
@media (max-width: 900px) {
  .pga { padding-inline: 24px; }
  .pga .pga-card { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pga-proof { padding-top: 0; }
  .pga .pga-float { display: none; }
  /* کارتِ آمار: یک ردیفِ فشرده */
  .pga-panel { grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; align-items: stretch; padding: 8px; }
  .pga-panel > .pga-stats { display: contents; }
  .pga-panel > .pga-join { display: none; }
  .pga-rating { display: grid; gap: 1px; }
  .pga-rating .pga-stars { display: none; }
  .pga-stats[data-count="3"] .pga-stat:last-child { grid-column: auto; }
}
/* ============ موبایل ============ */
@media (max-width: 640px) {
  .pga { padding-inline: 16px; }
  .pga .pga-card { gap: 16px; padding: 22px 18px 18px; border-radius: 22px; }
  .pga .pga-title { margin-top: 10px; font-size: clamp(22px, 6.4vw, 26px); }
  .pga .pga-sub { font-size: 13.5px; line-height: 1.85; }
  .pga-actions { gap: 8px; margin-top: 14px; }
  .pga .pga-btn { flex: 1 1 0; min-width: 0; min-height: 44px; padding-inline: 10px; font-size: 13.5px; }
  .pga .pga-btn--primary { padding-inline-start: 12px; padding-inline-end: 6px; justify-content: space-between; }
  .pga .pga-btn-arrow { width: 30px; height: 30px; }
  .pga .pga-btn--ghost svg { display: none; }
  .pga .pga-note { font-size: 11.5px; }
  .pga .pga-points { gap: 6px 14px; margin-top: 12px; padding-top: 10px; }
  .pga .pga-points li { font-size: 12px; }
  .pga-panel { gap: 6px; padding: 6px; border-radius: 16px; }
  .pga-rating, .pga-stat { padding: 7px 8px; border-radius: 11px; text-align: center; }
  .pga .pga-rating-num strong, .pga .pga-stat strong { font-size: 16px; }
  .pga .pga-rating-num span, .pga .pga-stat span { font-size: 10.5px; }
}
@media (max-width: 360px) {
  .pga .pga-btn--primary .pga-btn-arrow { display: none; }
  .pga .pga-btn--primary { justify-content: center; padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .pga .pga-float { animation: none; }
  .pga .pga-btn, .pga .pga-btn-arrow { transition: none; }
}

/* ---------- خنثی‌سازیِ قوانینِ سراسریِ چیدمانِ آکادمی (v3-mobile.css) ---------- */
.pg-home > section.pga > .pga-container { padding-left: 0 !important; padding-right: 0 !important; }
@media (max-width: 900px) { .pg-home section.pga { padding-top: 0 !important; padding-bottom: 56px !important; } }
@media (max-width: 640px) { .pg-home section.pga { padding-bottom: 44px !important; } }
