/* =====================================================================
   گیمیروید — دکمه‌های دانلود، کارت‌های فارسی‌ساز/چیت/ویژه و پاپ‌آپ‌ها
   روشن: با border — تیره: بدون border (طبق استایل سایت)
   ===================================================================== */
.gr-dl,.gr-pm,.gr-dl-removed{
  --g-tx:#1d1f22;--g-mut:#6a707a;--g-mut2:#3f444b;--g-row:#f6f7f8;--g-tile:#eceef1;--g-chip:rgba(0,0,0,.05);
  --g-bd:rgba(0,0,0,.07);--g-bd2:rgba(0,0,0,.14);--g-green:#3f8a35;--g-gold:#9a6500;--g-red:#c0392b;
  --g-fa:#f3faf1;--g-fa-ghost:rgba(84,178,71,.10);--g-ch:#fff4f1;--g-ch-ghost:rgba(232,85,59,.08);--g-vip:#fffaf0;
  --g-cta-tx:#fff;--g-a:.07;--g-b:.28;--g-c:.12
}
.dark-mode .gr-dl,.dark-mode .gr-pm,.dark-mode .gr-dl-removed{
  --g-tx:#fff;--g-mut:#a9adb4;--g-mut2:#d3d6db;--g-row:rgba(255,255,255,.035);--g-tile:rgba(255,255,255,.06);--g-chip:rgba(255,255,255,.07);
  --g-bd:transparent;--g-bd2:rgba(255,255,255,.14);--g-green:#6ccf5c;--g-gold:#F5C542;--g-red:#ef8a80;
  --g-fa:#2c332d;--g-fa-ghost:rgba(108,207,92,.07);--g-ch:#33292a;--g-ch-ghost:rgba(255,107,74,.07);--g-vip:#33302a;
  --g-cta-tx:#fff;--g-a:.10;--g-c:.18
}
.gr-dl *,.gr-pm *{box-sizing:border-box}
.gr-dl [dir="ltr"],.gr-pm [dir="ltr"]{direction:ltr;unicode-bidi:isolate}
.gr-dl button,.gr-pm button{font-family:inherit}
.gr-dl strong,.gr-pm strong,.gr-pm b,.gr-pm h3{color:var(--g-tx)}
.gr-dl .gr-ic,.gr-pm .gr-ic{display:block;flex:0 0 auto}

/* QR حذف و ستون دکمه‌ها تمام‌عرض */
.box-download-contents .rt-download-file .qr-box{display:none !important}
.box-download-contents .rt-download-file .inside{width:100%}

/* حذف‌شده */
.gr-dl-removed{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;gap:6px;padding:30px 24px;margin-bottom:15px;border-radius:22px;background:linear-gradient(160deg,#f0706b,#e0524f);color:#fff;text-align:center;box-shadow:0 12px 30px rgba(224,82,79,.25)}
.gr-dl-removed-ic{width:72px;height:72px;margin-bottom:10px;border-radius:50%;background:rgba(255,255,255,.14);box-shadow:0 0 0 8px rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center}
.gr-dl-removed-ic > span{width:52px;height:52px;border-radius:50%;background:#fff;color:#e0524f;display:flex;align-items:center;justify-content:center}
.gr-dl-removed strong{font-family:var(--font),var(--fontb),Tahoma,sans-serif;font-size:19px;font-weight:700}
.gr-dl-removed > span:last-child{font-size:15px;line-height:1.8;font-weight:700;color:rgba(255,255,255,.92)}

/* لیست */
.gr-dl{display:flex;flex-direction:column;gap:12px;width:100%;color:var(--g-tx);font-family:var(--fontb),Tahoma,sans-serif;margin-bottom:6px}
.gr-dl-label{font-size:12.5px;font-weight:700;color:var(--g-mut);margin-top:2px}
.gr-dl-label + .gr-dl-item,.gr-dl-label + .gr-sp{margin-top:-2px}
.gr-dl-item ~ .gr-dl-label,.gr-sp ~ .gr-dl-label{margin-top:8px}

/* ردیف عادی */
.gr-dl-item{display:flex;flex-direction:column}
.gr-dl-row{position:relative;overflow:hidden;display:flex;align-items:center;gap:12px;width:100%;min-height:68px;padding:10px 14px 10px 12px;margin:0;border-radius:18px;text-align:right;text-decoration:none !important;color:var(--g-tx) !important;
  background:rgba(var(--ac-rgb),var(--g-a));border:1px solid rgba(var(--ac-rgb),var(--g-b));cursor:pointer;font:inherit;transition:background .2s,transform .2s}
.dark-mode .gr-dl-row{border-color:transparent}
.gr-dl-row:before{content:"";position:absolute;right:0;top:14px;bottom:14px;width:3px;border-radius:3px 0 0 3px;background:var(--ac)}
.gr-dl-row:hover{background:rgba(var(--ac-rgb),calc(var(--g-a) + .05))}
.gr-dl-row:active{transform:scale(.995)}
.gr-dl-tile{flex:0 0 44px;width:44px;height:44px;border-radius:13px;background:var(--ac);color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;letter-spacing:.5px;box-shadow:0 6px 16px rgba(var(--ac-rgb),.30);font-family:Tahoma,sans-serif}
.gr-dl-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.gr-dl-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.gr-dl-title strong{font-size:15px;font-weight:700;line-height:1.6;color:var(--g-tx)}
.gr-dl-badge{padding:1px 8px;border-radius:20px;background:rgba(var(--ac-rgb),var(--g-c));color:var(--ink-l);font-size:11px;font-weight:700;white-space:nowrap}
.dark-mode .gr-dl-badge{color:var(--ink-d)}
.gr-dl-sub{font-size:12px;line-height:1.7;color:var(--g-mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gr-dl-msize{display:none}
.gr-dl-size{flex:0 0 auto;padding:4px 10px;border-radius:10px;background:rgba(var(--ac-rgb),var(--g-c));color:var(--ink-l);font-size:12.5px;font-weight:700;white-space:nowrap;direction:ltr;unicode-bidi:isolate}
.dark-mode .gr-dl-size{color:var(--ink-d)}
.gr-dl-btn{flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:var(--ac);color:#fff;display:flex;align-items:center;justify-content:center}
/* بزودی / حذف / فیلتر */
.gr-dl-row.is-off{background:var(--g-row);border:1px dashed var(--g-bd2);opacity:.85}
.dark-mode .gr-dl-row.is-off{border-color:transparent}
.gr-dl-row.is-off .gr-dl-tile{box-shadow:none}
.gr-dl-row.is-off .gr-dl-btn{background:var(--g-tile);color:var(--g-mut)}
.gr-dl-row.is-off .gr-dl-size{background:var(--g-chip);color:var(--g-mut)}
.gr-dl-row.is-off .gr-dl-badge{background:var(--g-chip);color:var(--g-mut)}

/* برچسب و پنل آپدیت */
.gr-dl-upchip{display:inline-flex;align-items:center;gap:3px;padding:1px 7px;border-radius:20px;font-size:11px;font-weight:700;white-space:nowrap;--u:217,69,43;--uc:#d9452b;background:rgba(var(--u),.12);color:var(--uc)}
.gr-dl-upd{--u:217,69,43;--uc:#d9452b}
.u-fix{--u:31,165,142;--uc:#0f7a68}
.u-mod{--u:155,95,230;--uc:#7a3fc7}
.u-link{--u:79,143,247;--uc:#2a62c9}
.dark-mode .gr-dl-upchip,.dark-mode .gr-dl-upd{--uc:#ff8a70}
.dark-mode .u-fix{--uc:#5fd6bf}
.dark-mode .u-mod{--uc:#c49bff}
.dark-mode .u-link{--uc:#8db4ff}
.dark-mode .gr-dl-upchip{background:rgba(var(--u),.18)}
.gr-dl-item.has-upd .gr-dl-row{border-radius:18px 18px 0 0}
.gr-dl-upd{padding:0 14px;border-radius:0 0 18px 18px;background:rgba(var(--ac-rgb),var(--g-a));border:1px solid rgba(var(--ac-rgb),var(--g-b));border-top:0}
.dark-mode .gr-dl-upd{border-color:transparent}
.gr-dl-upd-btn{width:100%;border:0;background:transparent;padding:11px 0;cursor:pointer;display:flex;align-items:center;gap:8px;color:var(--g-tx);text-align:right;border-top:1px solid rgba(var(--ac-rgb),.18)}
.dark-mode .gr-dl-upd-btn{border-top-color:rgba(255,255,255,.06)}
.gr-dl-upd-btn > svg:first-child{color:var(--uc);flex:0 0 auto}
.gr-dl-upd-btn strong{font-size:13px;font-weight:700;white-space:nowrap}
.gr-dl-upd-date{font-size:11.5px;color:var(--g-mut);white-space:nowrap}
.gr-dl-upd-btn i{flex:1}
.gr-dl-upd-what{font-size:12px;font-weight:700;color:var(--uc);white-space:nowrap}
.gr-dl-upd-btn .gr-ic{color:var(--uc);transition:transform .2s}
.gr-dl-upd-btn[aria-expanded="true"] .gr-ic:last-child{transform:rotate(180deg)}
.gr-dl-upd-notes{display:none;list-style:none;margin:0;padding:0 0 12px}
.gr-dl-upd.is-open .gr-dl-upd-notes{display:flex;flex-direction:column;gap:6px}
.gr-dl-upd-notes li{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.8;color:var(--g-mut2)}
.gr-dl-upd-notes li:before{content:"";flex:0 0 5px;width:5px;height:5px;margin-top:9px;border-radius:50%;background:var(--uc)}

/* ===== کارت‌های ویژه ===== */
.gr-chip{display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:20px;background:var(--g-chip);color:var(--g-mut2);font-size:11.5px;font-weight:700;white-space:nowrap;line-height:1.7}
.gr-chip.is-green{background:rgba(84,178,71,.16);color:var(--g-green)}
.gr-chip.is-gold{background:rgba(245,179,1,.16);color:var(--g-gold)}
.gr-chip.is-red{background:rgba(225,60,45,.10);color:var(--g-red)}
.dark-mode .gr-chip.is-red{background:rgba(255,90,70,.12)}
.gr-chip .dot{width:6px;height:6px;border-radius:50%;background:currentColor;display:inline-block}
.gr-chip.is-green .dot{background:#54B247}
.gr-chip.is-gold .dot{background:#F5C542}

.gr-sp{position:relative;border-radius:22px;padding:1px;background:linear-gradient(120deg,#54B247,#2fb59a 45%,#54B247 70%,#9be38f)}
.gr-sp-cheat{background:linear-gradient(120deg,#ff6b4a,#c2361f 45%,#ff6b4a 70%,#ffb199)}
.gr-sp-vip{background:linear-gradient(120deg,#F5C542,#a8741a 40%,#F5C542 70%,#fff0b8)}
.dark-mode .gr-sp{padding:0;background:none}
.gr-sp-in{position:relative;overflow:hidden;border-radius:21px;background:var(--g-fa);padding:18px 18px 18px 16px;display:flex;align-items:center;gap:16px}
.dark-mode .gr-sp-in{border-radius:22px}
.gr-sp-cheat .gr-sp-in{background:var(--g-ch)}
.gr-sp-vip .gr-sp-in{background:var(--g-vip);flex-direction:column;align-items:stretch;gap:14px;padding:18px}
.gr-sp-ghost{position:absolute;left:-10px;top:-26px;font-family:var(--font),var(--fontb),Tahoma,sans-serif;font-size:150px;line-height:1;font-weight:700;color:var(--g-fa-ghost);pointer-events:none}
.gr-sp-ghost.is-svg{left:-34px;top:-44px;color:var(--g-ch-ghost)}
.gr-sp-tile{position:relative;flex:0 0 60px;width:60px;height:60px;border-radius:18px;display:flex;align-items:center;justify-content:center}
.gr-sp-tile.is-fa{background:#54B247;color:#fff;font-family:var(--font),var(--fontb),Tahoma,sans-serif;font-size:26px;font-weight:700;line-height:1;padding-top:.3em;box-shadow:0 8px 22px rgba(84,178,71,.35)}
.gr-sp-tile.is-cheat{background:linear-gradient(160deg,#ff7a5a,#d9442a);color:#fff;box-shadow:0 8px 22px rgba(232,85,59,.35)}
.gr-sp-tile.is-vip{background:linear-gradient(160deg,#F5C542,#c98d12);color:#fff;box-shadow:0 8px 22px rgba(245,179,1,.3)}
.gr-sp-row{position:relative;display:flex;align-items:center;gap:16px}
.gr-sp-note{position:relative;display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:14px;background:rgba(245,179,1,.12);color:#8a5a00;font-size:13px;font-weight:600;line-height:1.8}
.gr-sp-note i{flex:0 0 28px;width:28px;height:28px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:rgba(245,179,1,.2);color:#b07a00;font-style:normal}
.gr-sp-note svg{display:block}
.dark-mode .gr-sp-note{background:rgba(245,197,66,.08);color:#f1d27a}
.dark-mode .gr-sp-note i{background:rgba(245,197,66,.14);color:#F5C542}
.gr-sp-body{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.gr-sp-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gr-sp-head strong{font-family:var(--font),var(--fontb),Tahoma,sans-serif;font-size:19px;font-weight:700;line-height:1.5;color:var(--g-tx)}
.gr-sp-sub{font-size:12.5px;line-height:1.8;color:var(--g-mut)}
.gr-sp-team{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--g-mut);flex-wrap:wrap}
.gr-sp-avs{display:flex}
.gr-sp-avs i{width:22px;height:22px;border-radius:50%;border:2px solid var(--g-fa);display:block}
.gr-sp-avs i + i{margin-right:-7px}
.gr-sp-avs .a0{background:rgba(84,178,71,.35)}
.gr-sp-avs .a1{background:rgba(90,150,255,.4)}
.gr-sp-avs .a2{background:rgba(245,179,1,.4)}
.gr-sp-link{border:0;background:none;padding:0;cursor:pointer;font-size:12px;font-weight:700;color:var(--color)}
.gr-sp-pre{position:relative;display:flex;flex-direction:column;gap:8px;margin-top:4px;padding:12px 14px;border-radius:14px;background:rgba(84,178,71,.08)}
/* دسکتاپ: پیشرفت ترجمه در یک خط جمع‌وجور */
.gr-sp-pre.is-m{display:none}
/* دسکتاپ در حالت پیش‌خرید: فقط عنوان و پیشرفت ترجمه */
.gr-sp-fa.is-pre .gr-sp-sub,.gr-sp-fa.is-pre .gr-sp-team{display:none}
.gr-sp-pre.is-d{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:6px;padding:8px 12px;border-radius:12px;max-width:560px}
.gr-sp-pre.is-d .gr-sp-pre-h{flex:0 0 auto;gap:6px}
.gr-sp-pre.is-d .gr-sp-bar{flex:1 1 90px;min-width:90px}
.gr-sp-pre.is-d .gr-sp-pre-f{flex:0 0 auto}
.gr-sp-pre.is-d .gr-sp-pre-f .gr-chip{padding:2px 8px}
.gr-sp-pre-h{display:flex;align-items:center;justify-content:space-between;font-size:12.5px;color:var(--g-mut2)}
.gr-sp-pre-h b{color:var(--g-green);font-weight:700}
.gr-sp-bar{display:block;height:7px;border-radius:7px;background:rgba(84,178,71,.16);overflow:hidden}
.gr-sp-bar i{display:block;height:100%;border-radius:7px;background:linear-gradient(270deg,#54B247,#9be38f)}
.gr-sp-pre-f{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11.5px;color:var(--g-mut)}
.gr-sp-pre-f > span{display:inline-flex;align-items:center;gap:4px}
.gr-sp-ctas{position:relative;flex:0 0 auto;display:flex;align-items:center;gap:8px}
.gr-sp-cta{position:relative;flex:0 0 auto;height:52px;padding:0 20px;border:0;border-radius:16px;background:#54B247;color:var(--g-cta-tx) !important;display:inline-flex;align-items:center;gap:10px;font-size:15px;font-weight:700;text-decoration:none !important;white-space:nowrap;cursor:pointer;box-shadow:0 10px 26px rgba(84,178,71,.30);transition:filter .2s,transform .2s}
.gr-sp-cta:hover{filter:brightness(1.06)}
.gr-sp-cta:active{transform:scale(.98)}
.gr-sp-cta.is-red{background:#E8553B;color:#fff !important;box-shadow:0 10px 26px rgba(232,85,59,.30)}
.gr-sp-cta.is-pre{background:#F5C542;color:#1e1f22 !important;box-shadow:0 10px 26px rgba(245,179,1,.25)}
.dark-mode .gr-sp-cta.is-pre{background:linear-gradient(160deg,#F2BC2E,#d39a12);color:#fff !important}
.gr-sp-cta.is-gold{background:linear-gradient(160deg,#F2BC2E,#d39a12);color:#fff !important;box-shadow:0 10px 26px rgba(245,179,1,.25)}
.gr-sp-cta.is-wait,.gr-sp-cta[disabled]{background:var(--g-tile);color:var(--g-mut) !important;box-shadow:none;cursor:default}
.gr-sp-chip{padding:2px 8px;border-radius:8px;background:rgba(0,0,0,.14);font-size:12px;font-weight:700}
.gr-sp-cta.is-wait .gr-sp-chip{background:var(--g-chip)}
.gr-sp-renew{white-space:nowrap;height:52px;padding:0 16px;border:0;border-radius:16px;background:rgba(232,85,59,.12);color:#c2361f;font-size:14px;font-weight:700;cursor:pointer}
.dark-mode .gr-sp-renew{color:#ff9a85}
.gr-sp-renew.is-green{background:rgba(84,178,71,.14);color:#3f8a35}
.dark-mode .gr-sp-renew.is-green{color:#8fe07f}
.gr-sp-cta-m{display:none !important}
.gr-sp-parts{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.gr-sp-parts.is-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.gr-sp-parts.is-one{grid-template-columns:minmax(0,1fr)}
.gr-sp-part{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:56px;padding:8px 14px 8px 8px;border-radius:14px;text-decoration:none !important;text-align:right;cursor:pointer;font:inherit;
  background:#fff;border:1px solid rgba(245,197,66,.45);color:var(--g-tx) !important;transition:background .15s}
.gr-sp-part:hover{background:#fffdf6}
.dark-mode .gr-sp-part{background:rgba(255,255,255,.045);border:0}
.dark-mode .gr-sp-part:hover{background:rgba(255,255,255,.07)}
.gr-sp-part > span{display:flex;flex-direction:column;gap:2px;min-width:0}
.gr-sp-part strong{font-size:13.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--g-tx)}
.gr-sp-part-t{display:flex;align-items:center;gap:6px;min-width:0}
.gr-sp-part-type{flex:0 0 auto;font-style:normal;font-size:10.5px;font-weight:700;line-height:1;padding:4px 6px;border-radius:6px;background:rgba(245,179,1,.16);color:var(--g-gold);letter-spacing:.3px}
.gr-sp-part.is-locked .gr-sp-part-type{background:var(--g-tile);color:var(--g-mut)}
.gr-sp-part small{font-size:11.5px;color:var(--g-mut);text-align:right}
.gr-sp-part-ic{flex:0 0 38px;width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:rgba(245,179,1,.14);color:var(--g-gold);font-style:normal}
.gr-sp-part.is-locked{background:transparent;border:1px dashed var(--g-bd2);color:var(--g-mut) !important}
.gr-sp-part.is-locked strong{color:var(--g-mut2)}
.dark-mode .gr-sp-part.is-locked{background:rgba(255,255,255,.03);border:0}
.gr-sp-part.is-locked .gr-sp-part-ic{background:var(--g-tile);color:var(--g-mut)}

/* ===================== پاپ‌آپ‌ها ===================== */
.gr-pm{
  --p-bg:#fff;--p-foot:#f7f8f9;--p-card:#f6f7f8;--p-bd:rgba(0,0,0,.08);--p-tint:rgba(84,178,71,.07);--p-handle:rgba(0,0,0,.14);--p-shadow:0 40px 90px rgba(0,0,0,.25);
  position:fixed;inset:0;z-index:999999999999999;display:flex;align-items:center;justify-content:center;padding:20px;visibility:hidden;transition:visibility 0s linear .35s;font-family:var(--fontb),Tahoma,sans-serif;color:var(--g-tx);direction:rtl}
.dark-mode .gr-pm{--g-mut:#a8a8a8;--g-mut2:#d6d6d6;--g-tile:rgba(255,255,255,.07);--g-chip:rgba(255,255,255,.08);--p-bg:#2e2e2e;--p-foot:#272727;--p-card:rgba(255,255,255,.05);--p-bd:transparent;--p-tint:rgba(84,178,71,.10);--p-handle:rgba(255,255,255,.18);--p-shadow:0 40px 90px rgba(0,0,0,.6)}
.gr-fm{background:none !important;width:auto;height:auto}
.gr-pm.is-open,body.modal-buygame-active .gr-fm{visibility:visible;transition:visibility 0s}
/* بلور و تیرگی روی لایه پس‌زمینه (نه روی خود پاپ‌اپ) تا محتوای اسکرولی در iOS درست رندر شود */
.gr-pm-scrim{position:absolute;inset:0;background:rgba(0,0,0,.7);cursor:pointer;opacity:0;-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0);transition:opacity .35s ease,backdrop-filter .35s ease,-webkit-backdrop-filter .35s ease}
.gr-pm.is-open .gr-pm-scrim,body.modal-buygame-active .gr-fm .gr-pm-scrim{opacity:1;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.gr-pm.is-dragging .gr-pm-scrim{transition:none}
.gr-pm-dialog{position:relative;width:880px;max-width:100%;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;border-radius:28px;background:var(--p-bg);border:1px solid var(--p-bd);box-shadow:var(--p-shadow);overflow:hidden;opacity:0;transform:translateY(16px) scale(.98);transition:transform .3s ease,opacity .3s ease;isolation:isolate}
.gr-fm .gr-pm-dialog{width:840px}
.gr-pm.is-open .gr-pm-dialog,body.modal-buygame-active .gr-fm .gr-pm-dialog{transform:none;opacity:1}
.gr-pm-handle{display:none}
.gr-pm-close{position:absolute;top:16px;left:16px;z-index:3;width:44px;height:44px;border:0;border-radius:50%;background:rgba(0,0,0,.45);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.gr-pm-grid{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:minmax(0,1fr) 410px;overscroll-behavior:contain}
.gr-cm .gr-pm-grid{grid-template-columns:minmax(0,1fr) 430px}
.gr-pm-grid.no-media{grid-template-columns:minmax(0,1fr)}
.gr-pm-grid.no-media .gr-pm-media{padding:0 28px 20px}
.gr-pm-info{padding:28px 28px 20px;display:flex;flex-direction:column;gap:16px;min-width:0}
.gr-pm-chips{display:flex;flex-wrap:wrap;gap:6px}
.gr-pm-chips .gr-chip{padding:4px 10px;font-size:12px}
.gr-pm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.gr-pm-title{display:flex;flex-direction:column;gap:2px}
.gr-pm-title h3{margin:0;text-align:right;font-family:var(--fontb),Tahoma,sans-serif;font-size:24px;line-height:1.4;font-weight:700;color:var(--g-tx);unicode-bidi:plaintext}
.gr-pm-title > span{font-size:13px;color:var(--g-mut)}
.gr-pm-desc{margin:0;font-size:13.5px;line-height:2;color:var(--g-mut2);white-space:pre-line}
.gr-pm-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.gr-pm-stats > div{padding:10px;border-radius:14px;background:var(--p-card);border:1px solid var(--p-bd);display:flex;flex-direction:column;gap:2px;min-width:0}
.gr-pm-stats span{font-size:11.5px;color:var(--g-mut)}
.gr-pm-stats strong{font-size:13px;font-weight:700;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;unicode-bidi:plaintext}
.gr-fm-lic,.gr-fm-own{display:flex;align-items:center;gap:12px;padding:10px 12px 10px 10px;border-radius:16px;background:var(--p-tint);border:1px solid rgba(84,178,71,.22)}
.dark-mode .gr-fm-lic,.dark-mode .gr-fm-own{border-color:transparent}
.gr-fm-lic[hidden],.gr-fm-own[hidden]{display:none !important}
.gr-fm-lic-ic{flex:0 0 40px;width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(84,178,71,.14);color:var(--g-green)}
.gr-fm-lic-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.gr-fm-lic-t strong{font-size:13.5px;font-weight:700;color:var(--g-tx)}
.gr-fm-lic-t strong b{color:var(--g-green)}
.gr-fm-lic-t > span{font-size:11.5px;line-height:1.7;color:var(--g-mut)}
.gr-qty{flex:0 0 auto;display:flex;align-items:center;gap:4px;padding:4px;border-radius:14px;background:var(--p-bg)}
.gr-qty-b{width:34px;height:34px;padding:0;border:0;border-radius:10px;background:#54B247;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:opacity .15s,transform .1s}
.gr-qty-b:active{transform:scale(.94)}
.gr-qty-b[disabled]{background:var(--g-tile);color:var(--g-mut);cursor:default}
.gr-qty-n{min-width:30px;text-align:center;font-size:17px;font-weight:700;color:var(--g-tx)}
.gr-fm-more{flex:0 0 auto;height:38px;padding:0 14px;border:0;border-radius:12px;background:#54B247;color:#fff;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;white-space:nowrap}
.gr-fm-more:hover,.gr-qty-b:not([disabled]):hover{filter:brightness(1.06)}
.gr-pm-pre{padding:14px 16px;border-radius:16px;background:rgba(245,179,1,.07);border:1px solid rgba(214,160,20,.35);display:flex;flex-direction:column;gap:10px}
.dark-mode .gr-pm-pre{background:rgba(245,179,1,.05);border-color:transparent}
.gr-pm-pre-h{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:700}
.gr-pm-pre-h strong{font-family:var(--font),var(--fontb),Tahoma,sans-serif;font-size:18px;color:var(--g-gold)}
.gr-pm-bar{height:8px;border-radius:6px;background:rgba(0,0,0,.08);overflow:hidden}
.dark-mode .gr-pm-bar{background:rgba(255,255,255,.08)}
.gr-pm-bar i{display:block;height:100%;border-radius:6px;background:#F5C542}
.gr-pm-pre-f{display:flex;align-items:center;justify-content:space-between;font-size:12.5px;color:var(--g-mut)}
.gr-pm-team{display:flex;flex-direction:column;gap:10px;margin-top:auto}
.gr-pm-team-h{display:flex;align-items:center;justify-content:space-between}
.gr-pm-team-h strong{font-size:14px;font-weight:700}
.gr-pm-team-h span{font-size:12px;color:var(--g-mut)}
.gr-pm-team-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.gr-pm-mem{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:14px;background:var(--p-card);border:1px solid var(--p-bd);min-width:0}
.gr-pm-mem > span:last-child{display:flex;flex-direction:column;min-width:0}
.gr-pm-mem strong{display:block;font-size:13px;font-weight:700;line-height:1.8;padding:1px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gr-pm-mem small{display:block;line-height:1.7}
.gr-pm-mem small{font-size:11.5px;color:var(--g-mut)}
.gr-pm-av{flex:0 0 36px;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700}
.gr-pm-av.c0{background:rgba(84,178,71,.18);color:var(--g-green)}
.gr-pm-av.c1{background:rgba(90,150,255,.18);color:#2a62c9}
.gr-pm-av.c2{background:rgba(245,179,1,.18);color:var(--g-gold)}
.gr-pm-av.c3{background:rgba(200,110,255,.18);color:#8a3dc4}
.gr-pm-av.c4{background:rgba(232,85,59,.16);color:#c2361f}
.gr-pm-av.c5{background:rgba(20,184,166,.16);color:#0f8478}
.dark-mode .gr-pm-av.c1{color:#8db4ff}
.dark-mode .gr-pm-av.c3{color:#d3a6ff}
.dark-mode .gr-pm-av.c4{color:#ff9a85}
.dark-mode .gr-pm-av.c5{color:#6fe3d3}
.gr-pm-feats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.gr-pm-feat{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border-radius:14px;background:var(--p-card);border:1px solid var(--p-bd);min-width:0}
.gr-pm-feat > span:last-child{display:flex;flex-direction:column;min-width:0}
.gr-pm-feat strong{font-size:13px;font-weight:700}
.gr-pm-feat small{font-size:11.5px;color:var(--g-mut)}
.gr-pm-check{flex:0 0 18px;width:18px;height:18px;margin-top:2px;border-radius:6px;background:#54B247;color:#fff;display:flex;align-items:center;justify-content:center}
.gr-pm-plans-wrap{display:flex;flex-direction:column;gap:8px}
.gr-pm-label{font-size:14px;font-weight:700}
.gr-pm-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:6px}
.gr-pm-plans.is-one{grid-template-columns:minmax(0,1fr)}
.gr-pm-plan{position:relative;min-width:0;text-align:right;cursor:pointer;color:var(--g-tx);border:0;border-radius:16px;padding:14px;display:flex;align-items:center;gap:10px;background:var(--p-card);box-shadow:inset 0 0 0 1px var(--p-bd)}
.gr-pm-plan.is-on{background:var(--p-tint);box-shadow:inset 0 0 0 1.5px #54B247}
.gr-pm-tag{position:absolute;top:-9px;left:10px;height:20px;padding:0 8px;border-radius:7px;background:#F5C542;color:#1e1f22;font-size:10.5px;font-weight:700;display:flex;align-items:center}
.gr-pm-radio{flex:0 0 20px;width:20px;height:20px;border-radius:50%;border:2px solid #cfd2d7}
.dark-mode .gr-pm-radio{border-color:rgba(255,255,255,.2)}
.gr-pm-plan.is-on .gr-pm-radio{border:6px solid #54B247}
.gr-pm-plan-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.gr-pm-plan-txt > span{display:flex;align-items:baseline;gap:6px}
.gr-pm-plan-txt strong{font-size:14px;font-weight:700}
.gr-pm-plan-txt small{font-size:11.5px;font-weight:400;color:var(--g-mut)}
.gr-pm-plan-txt b{font-size:14px;font-weight:700;white-space:nowrap}
.gr-pm-media{padding:76px 0 20px 20px;display:flex;flex-direction:column;justify-content:flex-start;gap:10px;min-width:0}
.gr-cm .gr-pm-media{padding-top:72px;justify-content:flex-start}
.gr-pm-viewer{position:relative;height:240px;border-radius:20px;overflow:hidden;background:#232323;border:1px solid var(--p-bd)}
.gr-cm .gr-pm-viewer{height:258px}
.gr-pm-slide{position:absolute;inset:0;display:none}
.gr-pm-slide.is-on{display:block}
.gr-pm-slide img,.gr-pm-slide video{width:100%;height:100%;object-fit:cover;display:block;background:#111}
.gr-pm-count{position:absolute;bottom:10px;right:10px;z-index:2;padding:3px 9px;border-radius:20px;background:rgba(0,0,0,.55);color:#fff;font-size:11.5px;pointer-events:none}
/* دسکتاپ: یک ردیف با ۷ تصویر، بقیه با اسکرول افقی */
.gr-pm-thumbs,.gr-pm-thumbs.is-five{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;padding-bottom:6px;scrollbar-width:thin;scrollbar-color:rgba(127,127,127,.35) transparent}
.gr-pm-thumbs::-webkit-scrollbar{height:5px}
.gr-pm-thumbs::-webkit-scrollbar-thumb{background:rgba(127,127,127,.35);border-radius:5px}
.gr-pm-thumbs::-webkit-scrollbar-track{background:transparent}
.gr-pm-thumbs > .gr-pm-thumb,.gr-pm-thumbs.is-five > .gr-pm-thumb{flex:0 0 calc((100% - 48px) / 7);height:auto;aspect-ratio:4 / 3;scroll-snap-align:start}
.gr-pm-thumb{height:58px;padding:0;border-radius:12px;cursor:pointer;background:#262626 center/cover no-repeat;border:2px solid transparent;opacity:.7;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.85)}
.gr-pm-thumbs.is-five .gr-pm-thumb{height:58px}
.gr-pm-thumb.is-on{border-color:#54B247;opacity:1}
.gr-pm-thumb.is-video{background:linear-gradient(135deg,#2a2a2a,#161616)}
.gr-pm-note{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;background:var(--p-card);border:1px solid var(--p-bd);font-size:12px;color:var(--g-mut) !important;text-decoration:none !important}
.gr-pm-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 28px;border-top:1px solid var(--p-bd);background:var(--p-foot)}
.gr-pm-price{display:flex;flex-direction:column;gap:1px}
.gr-pm-plead{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--g-mut)}
.gr-pm-off{display:none;padding:2px 9px;border-radius:20px;background:#F5C542;color:#1e1f22;font-size:11.5px;font-weight:700}
.gr-pm-off.is-on{display:inline-block}
.gr-pm-pval{display:flex;align-items:baseline;gap:6px}
.gr-pm-pval b{font-family:var(--font),var(--fontb),Tahoma,sans-serif;font-size:26px;font-weight:700;color:var(--g-tx)}
.gr-pm-pval small{font-size:13px;color:var(--g-mut)}
.gr-pm-full{font-size:12.5px;color:var(--g-mut)}
.gr-pm-buy{height:52px;padding:0 26px;border-radius:16px;background:#54B247;color:var(--g-cta-tx) !important;display:flex;align-items:center;justify-content:center;gap:10px;font-size:16px;font-weight:700;text-decoration:none !important;white-space:nowrap;box-shadow:0 10px 28px rgba(84,178,71,.28)}
.gr-pm-buy:hover{filter:brightness(1.06)}
.gr-pm-buy.is-pre{background:#F5C542;color:#1e1f22 !important;box-shadow:0 10px 28px rgba(245,179,1,.25)}
.dark-mode .gr-pm-buy.is-pre{background:linear-gradient(160deg,#F2BC2E,#d39a12);color:#fff !important}
.gr-pm-buy.is-disabled{background:#d9dce1;color:var(--g-mut) !important;box-shadow:none;pointer-events:none}
.dark-mode .gr-pm-buy.is-disabled{background:#3a3a3a}
.gr-fm .gr-fm-pre-only{display:none}
.gr-fm.is-pre .gr-fm-pre-only{display:flex}
.gr-fm.is-pre .gr-chip.gr-fm-pre-only{display:inline-flex}
.gr-fm.no-price .gr-pm-price{visibility:hidden}

/* ===================== موبایل ===================== */
@media only screen and (max-width:920px){
  .gr-dl{gap:10px}
  .gr-dl-row{min-height:64px;padding:10px 12px 10px 10px;gap:10px;border-radius:16px}
  .gr-dl-item.has-upd .gr-dl-row{border-radius:16px 16px 0 0}
  .gr-dl-upd{border-radius:0 0 16px 16px;padding:0 12px}
  .gr-dl-tile{flex-basis:40px;width:40px;height:40px;border-radius:12px;font-size:10.5px}
  .gr-dl-title strong{font-size:14px}
  .gr-dl-size{display:none}
  .gr-dl-msize{display:inline}
  .gr-dl-btn{flex-basis:40px}
  .gr-dl-upd-date{display:none}
  .gr-sp-in{flex-wrap:wrap;padding:16px 14px;gap:12px;align-items:flex-start}
  /* موبایل: پیشرفت ترجمه تمام‌عرض زیر عنوان */
  .gr-sp-pre.is-d{display:none}
  .gr-sp-pre.is-m{display:flex;flex:1 1 100%;margin-top:0;order:2}
  .gr-sp-fa .gr-sp-in > .gr-sp-cta,.gr-sp-fa .gr-sp-in > .gr-sp-ctas,.gr-sp-cheat .gr-sp-in > .gr-sp-cta,.gr-sp-cheat .gr-sp-in > .gr-sp-ctas{order:3}
  /* موبایل: توضیحات و «ترجمه توسط» تمام‌عرض از سمت راست کارت، نه کنار آیکون */
  .gr-sp-fa .gr-sp-body,.gr-sp-cheat .gr-sp-body{display:contents}
  .gr-sp-fa .gr-sp-head,.gr-sp-cheat .gr-sp-head{flex:1 1 calc(100% - 64px);min-width:0;align-self:center;order:0}
  .gr-sp-fa .gr-sp-sub,.gr-sp-fa .gr-sp-team,.gr-sp-cheat .gr-sp-sub{flex:1 1 100%;order:1;margin-top:-6px}
  .gr-sp-fa.is-pre .gr-sp-sub{display:block}
  .gr-sp-fa.is-pre .gr-sp-team{display:flex}
  .gr-sp-tile{flex-basis:52px;width:52px;height:52px;border-radius:16px}
  .gr-sp-tile.is-fa{font-size:23px}
  .gr-sp-body{flex:1 1 calc(100% - 64px)}
  .gr-sp-head strong{font-size:17px}
  .gr-sp-ghost{font-size:120px}
  .gr-sp-ctas,.gr-sp-in > .gr-sp-cta{flex:1 1 100%}
  .gr-sp-in > .gr-sp-cta,.gr-sp-ctas .gr-sp-cta{justify-content:center;width:100%}
  .gr-sp-ctas .gr-sp-cta{flex:1;min-width:0}
  .gr-sp-fa .gr-sp-ctas:has(.gr-sp-renew) .gr-sp-chip{display:none}
  .gr-sp-row{flex-wrap:wrap;gap:12px}
  .gr-sp-row .gr-sp-cta{order:3;flex:1 1 100%;justify-content:center}
  .gr-sp-vip .gr-sp-in{padding:16px 14px}
  .gr-sp-parts{grid-template-columns:minmax(0,1fr) !important}
  .gr-sp-vip .gr-sp-row{flex-wrap:nowrap}
  .gr-sp-vip .gr-sp-row .gr-sp-cta{display:none}
  .gr-sp-vip .gr-sp-cta.gr-sp-cta-m{display:flex !important;flex:0 0 52px;width:100%;justify-content:center}

  .gr-pm{align-items:flex-end;padding:0}
  .gr-pm-dialog,.gr-fm .gr-pm-dialog{width:100%;max-height:92vh;max-height:92dvh;border-radius:28px 28px 0 0;border:0;border-top:1px solid var(--p-bd);transform:translateY(100%);opacity:1;box-shadow:0 -20px 60px rgba(0,0,0,.5)}
  .gr-pm-handle{display:block;position:absolute;top:0;left:0;right:0;height:30px;z-index:4;cursor:grab;touch-action:none}
  .gr-pm-handle:before{content:"";position:absolute;top:10px;left:50%;margin-left:-20px;width:40px;height:5px;border-radius:4px;background:var(--p-handle)}
  .gr-pm.is-dragging .gr-pm-dialog{transition:none !important}
  .gr-pm.is-dragging .gr-pm-handle{cursor:grabbing}
  /* column-reverse در کروم/اندروید اسکرول را خراب می‌کرد؛ ترتیب با order */
  .gr-pm-grid,.gr-cm .gr-pm-grid{display:flex;flex-direction:column;justify-content:flex-start;-webkit-overflow-scrolling:touch}
  .gr-pm-grid > .gr-pm-media{order:-1}
  .gr-pm-grid > .gr-pm-info{flex:0 0 auto}
  .gr-pm-grid > .gr-pm-media{flex:0 0 auto}
  .gr-pm-media,.gr-cm .gr-pm-media{padding:26px 16px 0;gap:8px;justify-content:flex-start}
  .gr-pm-grid.no-media .gr-pm-media{padding:0 16px 14px}
  .gr-pm-grid.no-media .gr-pm-info{padding-top:30px}
  .gr-pm-viewer,.gr-cm .gr-pm-viewer{height:196px;border-radius:18px}
  .gr-pm-thumbs,.gr-pm-thumbs.is-five{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
  .gr-pm-thumbs{padding-bottom:0;scrollbar-width:none}
  .gr-pm-thumbs::-webkit-scrollbar{display:none}
  .gr-pm-thumbs > .gr-pm-thumb,.gr-pm-thumbs.is-five > .gr-pm-thumb{flex:0 0 64px;height:42px;aspect-ratio:auto;border-radius:10px}
  .gr-pm-media .gr-pm-note{display:none}
  .gr-pm-close{top:36px;left:26px;width:40px;height:40px;background:rgba(0,0,0,.5)}
  .gr-pm-info{padding:12px 16px 14px;gap:12px}
  .gr-pm-chips .gr-chip{padding:3px 9px;font-size:11.5px}
  .gr-pm-title{margin-top:-4px}
  .gr-pm-title h3{font-size:20px}
  .gr-pm-title > span{font-size:12.5px}
  .gr-pm-desc{font-size:13px;line-height:1.95}
  .gr-pm-stats{gap:6px}
  .gr-pm-stats > div{padding:8px 10px;border-radius:12px}
  .gr-pm-stats span{font-size:11px}
  .gr-pm-stats strong{font-size:12.5px}
  .gr-pm-team-list{display:flex;gap:8px;margin:0 -16px;padding:0 16px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;-webkit-transform:translateZ(0);transform:translateZ(0)}
  .gr-pm-team-list::-webkit-scrollbar{display:none}
  .gr-pm-mem{-webkit-transform:translateZ(0);transform:translateZ(0)}
  .gr-pm-mem{flex:0 0 auto;padding:7px 12px 7px 9px}
  .gr-pm-mem strong{white-space:nowrap;overflow:visible;text-overflow:clip}
  .gr-pm-feats{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .gr-pm-feat{padding:9px 10px;gap:6px;border-radius:12px}
  .gr-pm-feat strong{font-size:12.5px;line-height:1.6}
  .gr-pm-feat small{font-size:11px;line-height:1.6}
  /* انتخاب ماهانه/هفتگی موقع اسکرول پایین پاپ‌آپ می‌چسبد */
  .gr-cm .gr-pm-plans-wrap{position:sticky;bottom:0;z-index:2;margin:0 -16px -14px;padding:10px 16px 12px;background:var(--p-bg);box-shadow:0 -12px 20px -12px rgba(0,0,0,.18)}
  .dark-mode .gr-cm .gr-pm-plans-wrap{box-shadow:0 -14px 22px -12px rgba(0,0,0,.6)}
  .gr-pm-plan{padding:12px}
  .gr-pm-foot{padding:12px 16px 16px;gap:12px}
  .gr-pm-pval b{font-size:23px}
  .gr-pm-buy{flex:1;max-width:220px;padding:0 14px;font-size:15.5px}
  .gr-pm-full{display:none}
}
@media only screen and (max-width:360px){
  .gr-fm-own{flex-wrap:wrap}
  .gr-fm-own .gr-fm-more{flex:1 1 100%}
  .gr-fm-lic-t > span{display:none}
  .gr-pm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gr-dl-upd-what{display:none}
}


/* ===================== باکس اکشن زیر دانلودها ===================== */
.box-download-contents .rt-download-file .inside .action-box .abtn{display:inline-flex;align-items:center}
.box-download-contents .action-box .follow-in-google{clear:both;float:none;width:100%;margin-top:6px;padding:0 !important;background:none !important;-webkit-backdrop-filter:none;backdrop-filter:none;border-radius:0}
.box-download-contents .action-box .follow-in-google .g-text{width:auto !important;max-width:none !important;padding:0 !important}
.box-download-contents .action-box .follow-in-google .g-text span{width:auto;float:none;margin:0;font-family:inherit}
.box-download-contents .action-box .follow-in-google .game-dl-icon{margin-top:0}
.box-download-contents .action-box .follow-in-google .f-btn{margin:0 !important}
.box-download-contents .action-box .follow-in-google a{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px 10px 10px;border-radius:14px;background:#f6f7f8;border:1px solid rgba(0,0,0,.06);text-decoration:none !important;box-sizing:border-box;transition:background .15s}
.box-download-contents .action-box .follow-in-google a:hover{background:#f1f3f4}
.dark-mode .box-download-contents .action-box .follow-in-google a{background:rgba(255,255,255,.04);border:0}
.dark-mode .box-download-contents .action-box .follow-in-google a:hover{background:rgba(255,255,255,.07)}
.box-download-contents .action-box .follow-in-google .game-dl-icon{float:none;flex:0 0 40px;width:40px;height:40px;padding:10px;margin:0;border-radius:12px;background:#fff;box-sizing:border-box}
.dark-mode .box-download-contents .action-box .follow-in-google .game-dl-icon{background:rgba(255,255,255,.07)}
.box-download-contents .action-box .follow-in-google .g-text{float:none;flex:1;min-width:0;font-size:12px;font-weight:400;line-height:1.8;color:#6a707a}
.box-download-contents .action-box .follow-in-google .g-text .rt-bold{display:block;font-size:13.5px;color:#1d1f22}
.dark-mode .box-download-contents .action-box .follow-in-google .g-text{color:#a9adb4}
.dark-mode .box-download-contents .action-box .follow-in-google .g-text .rt-bold{color:#fff}
.box-download-contents .action-box .follow-in-google .f-btn{float:none;flex:0 0 auto;display:inline-flex;align-items:center;height:38px;padding:0 16px;border-radius:11px;background:var(--color,#54B247);color:#fff !important;font-size:13px;white-space:nowrap}
@media (max-width:520px){
  .box-download-contents .action-box .follow-in-google a{flex-wrap:wrap}
  .box-download-contents .action-box .follow-in-google .g-text{flex-basis:calc(100% - 52px)}
  .box-download-contents .action-box .follow-in-google .f-btn{flex:1 1 100%;justify-content:center}
}

/* فاصله خط‌چین پایین باکس دانلود */
.box-download-contents .rt-download-file .inside .action-box{margin-top:18px;padding-top:14px}

/* ===================== پاپ‌آپ بزودی / حذف شده (tg-modal) ===================== */
.tg-modal.gr-tg{--t-bg:#fff;--t-card:#f6f7f8;--t-tx:#1d1f22;--t-mut:#5f6670;--t-bd:rgba(0,0,0,.07);position:fixed;inset:0;width:auto;height:auto;z-index:2147483647;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.7) !important;opacity:0;visibility:hidden;-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0);transition:opacity .35s ease,backdrop-filter .35s ease,-webkit-backdrop-filter .35s ease,visibility 0s linear .35s;font-family:inherit;direction:rtl}
.dark-mode .tg-modal.gr-tg{--t-bg:#2e2e2e;--t-card:rgba(255,255,255,.05);--t-tx:#fff;--t-mut:#a8a8a8;--t-bd:transparent}
body.tg-modal-active .tg-modal.gr-tg{opacity:0;visibility:hidden}
body.tg-modal-active .tg-modal.gr-tg.is-on{opacity:1;visibility:visible;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:opacity .35s ease,backdrop-filter .35s ease,-webkit-backdrop-filter .35s ease,visibility 0s}
.gr-tg *{box-sizing:border-box}
.gr-tg-scrim{position:absolute;inset:0;cursor:pointer}
.gr-tg-dialog{position:relative;width:400px;max-width:100%;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;padding:26px 24px 10px;border-radius:28px;background:var(--t-bg);border:1px solid var(--t-bd);box-shadow:0 30px 80px rgba(0,0,0,.35);color:var(--t-tx);text-align:center;transform:translateY(16px) scale(.98);transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.gr-tg.is-on .gr-tg-dialog{transform:none}
.gr-tg-handle{display:none}
.gr-tg-close{position:absolute;top:16px;left:16px;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:var(--t-card);color:var(--t-mut);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2}
.gr-tg-close:hover{color:var(--t-tx)}
.gr-tg-head{display:flex;flex-direction:column;align-items:center;gap:8px}
.gr-tg-pic{display:block;width:96px;height:96px;border-radius:24px;overflow:hidden;background:var(--t-card);box-shadow:0 10px 26px rgba(0,0,0,.18)}
.gr-tg-pic img{display:block;width:100%;height:100%;object-fit:cover}
.gr-tg-chip{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 10px;margin-top:6px;border-radius:9px;font-size:12px;font-weight:700}
.gr-tg-chip.is-gold{background:rgba(245,179,1,.16);color:#9a6500}
.dark-mode .gr-tg-chip.is-gold{color:#F5C542}
.gr-tg-chip.is-red{background:rgba(232,85,59,.14);color:#c2361f}
.dark-mode .gr-tg-chip.is-red{color:#ff9a85}
.gr-tg-title{display:block;font-size:19px;font-weight:700;line-height:1.6;color:var(--t-tx)}
.gr-tg-game{display:block;margin-top:-6px;font-size:13px;color:var(--t-mut);unicode-bidi:isolate}
.gr-tg-text{margin:14px 0 0;font-size:13.5px;line-height:2.1;color:var(--t-mut)}
.gr-tg-channel{display:flex;align-items:center;gap:12px;margin-top:18px;padding:12px 14px 12px 12px;border-radius:18px;background:linear-gradient(120deg,#2aabee,#1d7ed7);color:#fff !important;text-decoration:none !important;text-align:right;box-shadow:0 10px 24px rgba(29,126,215,.25);transition:filter .15s}
.gr-tg-channel:hover{filter:brightness(1.06)}
.gr-tg-channel-ic{flex:0 0 44px;width:44px;height:44px;border-radius:14px;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center}
.gr-tg-channel-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.gr-tg-channel-t strong{font-size:14.5px;font-weight:700}
.gr-tg-channel-t small{font-size:12px;opacity:.85}
.gr-tg-channel-go{flex:0 0 auto;opacity:.9}
.gr-tg-later{display:block;width:100%;height:42px;margin-top:8px;border:0;border-radius:14px;background:var(--t-card);color:var(--t-mut);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.gr-tg-later:hover{color:var(--t-tx)}
@media only screen and (max-width:920px){
  .tg-modal.gr-tg{align-items:flex-end;padding:0}
  .gr-tg-dialog{width:100%;max-height:90vh;max-height:90dvh;border-radius:28px 28px 0 0;border:0;padding:30px 18px 8px;padding-bottom:calc(8px + env(safe-area-inset-bottom));transform:translateY(100%)}
  .gr-tg-handle{display:block;position:absolute;top:0;left:0;right:0;height:30px;z-index:3;cursor:grab;touch-action:none}
  .gr-tg-handle:before{content:"";position:absolute;top:10px;left:50%;margin-left:-20px;width:40px;height:5px;border-radius:4px;background:rgba(127,127,127,.35)}
  .gr-tg-close{top:18px;left:14px}
}
.gr-tg bdi,.gr-tg [dir=ltr]{direction:ltr;unicode-bidi:isolate}

.gr-tg.is-dragging .gr-tg-dialog{transition:none !important}
