/* === Base (updated for mobile URL & queue layout) === */
.rgdd-hidden{display:none;}
.rgdd-card{background:#fff;border:1px solid #e6e6e6;border-radius:14px;padding:16px;margin:14px 0;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.rgdd-card-title{display:flex;align-items:center;gap:8px;font-weight:600;margin-bottom:10px}
.rgdd-label{display:block;margin-bottom:8px;font-weight:600}
.rgdd-input{width:100%;border:1px solid #d7d7d7;border-radius:10px;padding:10px;font-size:14px}
.rgdd-textarea{min-height:110px;font-family:inherit;resize:vertical}
.rgdd-capacity-row{display:grid;grid-template-columns:1fr;gap:10px}
.rgdd-capacity-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.rgdd-capacity-title{display:flex;align-items:center;gap:8px;font-weight:600}
.rgdd-capacity-numbers{display:flex;gap:14px;color:#555;flex-wrap:wrap}
.rgdd-capacity-bar{position:relative;height:10px;background:#f1f1f4;border-radius:999px;overflow:hidden}
.rgdd-capacity-bar-fill{height:100%;width:0;background:linear-gradient(90deg,#22c55e,#16a34a);transition:width .4s ease}
.rgdd-capacity-bar-text{text-align:right;color:#333;font-size:12px}
.rgdd-actions{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.rgdd-btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:10px;padding:9px 14px;cursor:pointer;font-size:13px}
.rgdd-btn svg{display:block}
.rgdd-btn-primary{background:#2563eb;color:#fff}.rgdd-btn-primary:hover{background:#1e40af}
.rgdd-btn-ghost{background:#f4f4f5}.rgdd-btn-ghost:hover{background:#eaeaec}
.rgdd-btn-ghost-delete{background:#ffecee;color:#b91c1c;border:1px solid #ffd5d5}.rgdd-btn-ghost-delete:hover{background:#ffdede}
.rgdd-btn-sm{padding:6px 10px;border-radius:8px;font-size:12px}
.rgdd-btn-xs{padding:4px 8px;border-radius:8px;font-size:12px}
.rgdd-btn,.rgdd-btn-sm,.rgdd-btn-xs{width:auto!important;min-width:0!important;max-width:fit-content!important;flex:0 0 auto!important;white-space:nowrap!important}

.rgdd-queue{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.rgdd-queue-item{
  border:1px solid #eee;border-radius:12px;padding:10px;
  display:grid;gap:8px;grid-template-columns:minmax(0,1fr) auto;align-items:center
}

/* ➜ لینکِ صف: جلوگیرى از «ستونی/عمودی» شدن در موبایل */
.rgdd-queue-item .rgdd-url{
  font-size:13px;color:#555;
  /* قبلاً break-all باعث ستونى شدن می‌شد */
  word-break:normal; overflow-wrap:anywhere;
  /* نمایش خواناتر لینک‌های لاتین در متن RTL */
  direction:ltr; unicode-bidi:plaintext;
  /* تک‌خط + ellipsis؛ با فوکوس/هاور چندخط می‌شود (پایین) */
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* با فوکوس/هاور اجازه‌ی چندخط برای کپی کامل */
.rgdd-queue-item .rgdd-url:focus,
.rgdd-queue-item .rgdd-url:hover{
  white-space:normal; max-height:5.4em; line-height:1.35;
}

.rgdd-pbar{grid-column:1/-1;height:8px;background:#f3f3f4;border-radius:999px;overflow:hidden}
.rgdd-pbar-fill{height:100%;width:0;background:linear-gradient(90deg,#06b6d4,#0891b2);transition:width .2s ease}

.rgdd-item-meta{ display:none; gap:8px; align-items:center; flex-wrap:wrap; font-size:12px; color:#374151; }
.rgdd-chip-mini{ display:inline-flex; flex-direction:column; gap:2px; background:#f3f4f6; border:1px solid #e5e7eb; border-radius:10px; padding:6px 10px; min-width:128px; white-space:nowrap; }
.rgdd-chip-label{font-size:11px;color:#6b7280;line-height:1;}
.rgdd-chip-value{font-weight:400;font-size:9px;color:#374151;line-height:1.15;}
.rgdd-item-status{font-weight:600}
.rgdd-item-status.queued{color:#16a34a;font-size:12px}
.rgdd-item-status.running{color:#1e40af}
.rgdd-item-status.done{color:#15803d}
.rgdd-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px}
.rgdd-badge-warn{background:#fff7ed;color:#c2410c}

.rgdd-queue-summary{margin-top:12px}
.rgdd-queue-progress{height:10px;background:#efefef;border-radius:999px;overflow:hidden}
.rgdd-queue-progress-bar{height:100%;width:0;background:#10b981;transition:width .2s ease}
.rgdd-queue-meta{display:flex;justify-content:space-between;color:#555;font-size:12px;margin-top:6px;gap:8px;align-items:center;flex-wrap:wrap}

.rgdd-file-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.rgdd-file-item{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;
  gap:10px;align-items:center;border:1px solid #eee;border-radius:12px;padding:8px 10px
}
.rgdd-select-wrap{display:flex !important;align-items:center !important;justify-content:center !important;min-width:22px !important}
.rgdd-file-list input[type="checkbox"].rgdd-select-file{
  display:inline-block !important;visibility:visible !important;opacity:1 !important;
  appearance:auto !important;-webkit-appearance:auto !important;-moz-appearance:auto !important;
  width:16px !important;height:16px !important;min-width:16px !important;min-height:16px !important;
  margin:0 !important;padding:0 !important;position:static !important;accent-color:#2563eb;pointer-events:auto !important;
}
.rgdd-file-name{font-weight:600;color:#555;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; min-width:0;}
.rgdd-file-meta{font-size:12px;color:#666;white-space:nowrap}
.rgdd-file-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;justify-content:flex-end}
.rgdd-file-actions .rgdd-btn-xs{padding:4px 8px}
.rgdd-size-badge{display:inline-flex;align-items:center;gap:6px;background:#eff6ff;color:#1e3a8a;padding:4px 8px;border-radius:8px;font-size:12px;border:1px solid #dbeafe}

.rgdd-done-card{border:1px dashed #d9ead3;background:#fafff7;border-radius:10px;padding:10px;margin-top:6px}
.rgdd-done-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.rgdd-done-name{font-size:12px;color:#555;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.rgdd-pagination{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-top:12px}
.rgdd-page{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 10px;border-radius:8px;background:#f4f4f5;color:#333;text-decoration:none;font-size:13px;border:1px solid #e7e7e7}
.rgdd-page:hover{background:#eaeaec}
.rgdd-page.active{background:#2563eb;color:#fff;border-color:#2563eb}

.rgdd-store .rgdd-card-title svg{color:#2563eb}
.rgdd-store-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:10px}
.rgdd-product-card{border:1px solid #eaeaea;border-radius:14px;background:#fff;overflow:hidden;transition:box-shadow .2s,border-color .2s}
.rgdd-product-card:hover{border-color:#dfe7ff;box-shadow:0 6px 14px rgba(37,99,235,.08)}
.rgdd-product-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px dashed #eee;background:linear-gradient(180deg,#f8fbff,transparent)}
.rgdd-product-icon{width:40px;height:40px;border-radius:12px;background:#eff6ff;display:flex;align-items:center;justify-content:center;color:#2563eb}
.rgdd-product-title{font-weight:700;color:#1f2937}
.rgdd-product-body{padding:12px 14px}
.rgdd-product-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.rgdd-chip{display:inline-flex;align-items:center;gap:6px;background:#f4f7ff;color:#1e3a8a;padding:6px 10px;border:1px solid #e3e8ff}
.rgdd-price{font-weight:800;color:#111827}
.rgdd-product-actions{display:flex;justify-content:flex-end}
.rgdd-buy-btn{box-shadow:0 2px 6px rgba(37,99,235,.2)}

/* ====== Batch Modal ====== */
.rgdd-modal{position: fixed; inset: 0; display: none; place-items: center; z-index: 9999; padding: 24px; background: radial-gradient(40% 60% at 80% 10%, rgba(37,99,235,.18), transparent 60%), radial-gradient(50% 50% at 20% 90%, rgba(16,185,129,.15), transparent 60%), rgba(17,24,39,.55); backdrop-filter: blur(3px);}
.rgdd-modal-inner{width: min(880px, 96vw); max-height: 88vh; overflow-y: auto; overflow-x: hidden; border-radius: 18px; border: 1px solid rgba(0,0,0,.06); box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 2px 10px rgba(0,0,0,.08) inset; background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%); padding: 0; animation: rgddModalIn .28s ease-out;}
@keyframes rgddModalIn{from{ transform: translateY(8px) scale(.98); opacity:.0 } to{ transform: translateY(0) scale(1); opacity:1 }}
.rgdd-modal-head{display:flex; align-items:center; justify-content:space-between; gap:10px; padding: 14px 16px; border-bottom: 1px solid #ececec; background: linear-gradient(180deg, #f8fbff 0%, #f2f6ff 100%); position: sticky; top: 0; z-index: 2; border-top-left-radius: 18px; border-top-right-radius: 18px;}
.rgdd-modal-head h3{margin:0; font-size:16px; font-weight:800; color:#0f172a; letter-spacing:.2px; display:flex; align-items:center; gap:8px;}
.rgdd-modal-head h3::before{content:""; width:10px; height:10px; border-radius:999px; background: linear-gradient(135deg,#2563eb,#10b981); box-shadow: 0 0 0 3px rgba(37,99,235,.12);}
.rgdd-modal-actions{display:flex; gap:8px; align-items:center}
.rgdd-inline-btn{appearance:none;border:1px solid #e5e7eb;background:#f9fafb;color:#374151;padding:6px 10px;border-radius:10px;font-size:12.5px;font-weight:600;cursor:pointer;transition: background .15s, border-color .15s, transform .05s;}
.rgdd-inline-btn:hover{ background:#f3f4f6; border-color:#dbeafe; transform: translateY(-1px); }
.rgdd-batch-textarea{width: calc(100% - 32px); margin: 14px 16px; padding: 12px 14px; border:1px solid #e5e7eb; border-radius:14px; background:#f9fafb; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size:13px; line-height:1.7; direction:ltr; resize: vertical; min-height: 160px; max-height: 60vh; overflow-y: auto; overflow-x: hidden; white-space: pre-wrap; word-break: break-all; -webkit-user-select:text; user-select:text;}
.rgdd-idm-note{margin: 0 16px 16px; padding: 12px 14px; color:#0f172a; font-size:13px; line-height:1.6; background: linear-gradient(180deg,#f7fee7 0%,#eefce2 100%); border: 1px solid #d9f99d; border-radius: 14px; box-shadow: 0 1px 0 rgba(0,0,0,.03) inset;}

/* ========================= Responsive: Queue & "Your files" ========================= */

/* Queue: در موبایل، آيتم‌ها ستونی می‌شوند و اکشن‌ها به پایین می‌روند */
@media (max-width: 640px){
  .rgdd-queue-item{
    grid-template-columns:1fr;
    grid-auto-rows:auto;
  }
  .rgdd-actions{
    justify-content:flex-start;
    gap:8px;
  }
  /* URL: اندکی کوچک‌تر برای جا شدن بهتر */
  .rgdd-queue-item .rgdd-url{ font-size:12.5px; }
}

.rgdd-file-actions{ flex-wrap: nowrap; }
@media (max-width: 640px){
  .rgdd-file-item{
    grid-template-columns: 24px minmax(0,1fr);
    grid-template-areas:
      "chk  name"
      "meta meta"
      "actions actions";
    row-gap: 6px;
  }
  .rgdd-select-wrap{ grid-area: chk; }
  .rgdd-file-name{ grid-area: name; }
  .rgdd-file-meta{
    grid-area: meta;
    font-size: 11.5px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rgdd-file-actions{
    grid-area: actions;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px 8px;
  }
  .rgdd-file-actions .rgdd-btn-xs{
    padding: 6px 10px;
    font-size: 12px;
  }
  .rgdd-size-badge{ order: 9; }
}
@media (max-width: 480px){
  .rgdd-file-name{ font-size: 13px; }
  .rgdd-file-actions .rgdd-btn-xs{
    padding: 6px 8px;
    font-size: 11.5px;
  }
  .rgdd-size-badge{ display: none; }
}
@media (max-width: 360px){
  .rgdd-file-actions .rgdd-btn-xs{
    padding: 5px 7px;
    font-size: 11px;
  }
}

/* ===== Info ("درباره") ===== */
.rgdd-card.rgdd-info{ background:#f8fbff; border-color:#dbeafe; }
.rgdd-card.rgdd-info .rgdd-card-title{ background:linear-gradient(180deg,#f8fbff,transparent); }
.rgdd-card.rgdd-info .rgdd-info-body p{ margin:8px 0; color:#0f172a; }
.rgdd-card.rgdd-info .rgdd-info-body code{ background:#eef2ff; color:#1e3a8a; padding:2px 6px; border-radius:6px; font-size:12px; }
.rgdd-card.rgdd-info .rgdd-info-body a{ color:#1e40af; text-decoration:none; border-bottom:1px dashed #93c5fd; }
.rgdd-card.rgdd-info .rgdd-info-body a:hover{ color:#1d4ed8; border-bottom-color:#60a5fa; }

/* ===== Store note ===== */
.rgdd-store-note{
  margin-top:12px; padding:10px 12px;
  background:#f0f9ff; border:1px solid #bae6fd; color:#0c4a6e;
  border-radius:10px; font-size:13px; line-height:1.7; display:flex; align-items:center; gap:8px;
}

/* ======================= Host button & dropdown ======================= */
.rgdd-host-dropdown{ position:relative; display:inline-flex; }
.rgdd-btn-host{ display:inline-flex; align-items:center; gap:8px; border:0; border-radius:10px; padding:9px 14px; cursor:pointer; font-size:13px; }
.rgdd-btn-host svg{ display:block; }

/* رنگ متمایز برای حالت‌ها */
.rgdd-btn-host.auto{ background:#0ea5e9; color:#fff; }       /* آبی فیروزه‌ای برای خودکار */
.rgdd-btn-host.auto:hover{ background:#0284c7; }
.rgdd-btn-host.iran{ background:#16a34a; color:#fff; }       /* سبز برای ایران */
.rgdd-btn-host.iran:hover{ background:#15803d; }
.rgdd-btn-host.germany{ background:#f59e0b; color:#111827; } /* کهربایی برای آلمان */
.rgdd-btn-host.germany:hover{ background:#d97706; color:#111827; }

/* نوار زیر دکمه (بدون جا‌به‌جایی سایر دکمه‌ها) */
.rgdd-host-menu{
  position:absolute; inset-inline-start:0; top:calc(100% + 6px);
  min-width:220px; padding:8px; border-radius:12px; border:1px solid #e5e7eb;
  background:#fff; box-shadow:0 10px 20px rgba(0,0,0,.08);
  z-index:50; display:none; /* با کلاس is-open نمایش داده می‌شود */
}
.rgdd-host-dropdown.is-open .rgdd-host-menu{ display:block; }

.rgdd-host-item{
  appearance:none; width:100%; text-align:start; border:0;
  background:#f9fafb; color:#111827; padding:8px 10px; border-radius:10px; font-size:13px; cursor:pointer;
}
.rgdd-host-item+[class]{ margin-top:6px; }
.rgdd-host-item[aria-checked="true"]{ outline:2px solid #93c5fd; background:#eff6ff; }
.rgdd-host-item:hover{ background:#f3f4f6; }

/* ====== Host badge (ایران/آلمان/unknown) ====== */
.rgdd-host-badge{ display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border-radius:999px; font-size:11px; line-height:1; border:1px solid #e5e7eb; background:#f9fafb; color:#334155; white-space:nowrap; }
.rgdd-host-badge::before{ content:""; width:6px;height:6px;border-radius:999px; background:currentColor;opacity:.65; }
.rgdd-host-badge.host-iran{ background:#ecfdf5; border-color:#a7f3d0; color:#065f46; }
.rgdd-host-badge.host-germany{ background:#fff7ed; border-color:#fed7aa; color:#7c2d12; }
.rgdd-host-badge.host-unknown{ background:#f3f4f6; border-color:#e5e7eb; color:#374151; }

@media (max-width: 640px){ .rgdd-host-badge{ order:8; } }

/* هایلایت لطیف آیتم‌های لیست براساس هاست */
.rgdd-file-item[data-host="iran"]{ box-shadow: inset 0 0 0 1px #a7f3d066; }
.rgdd-file-item[data-host="germany"]{ box-shadow: inset 0 0 0 1px #fed7aa66; }
.rgdd-file-item[data-host=""], .rgdd-file-item:not([data-host]){ box-shadow: inset 0 0 0 1px #e5e7eb66; }

/* === Uniform columns in "Your files" (desktop) === */
@media (min-width: 641px){
  :root{
    /* می‌تونی اعداد رو بسته به طول متن‌هات کم/زیاد کنی */
    --rgdd-col-size: 60px; /* جا برای "116.15 MB" */
    --rgdd-col-host: 60px;  /* "ایران 2" یا "آلمان" */
  }

  /* پنج ستون: چک‌باکس | نام | حجم | هاست | اکشن‌ها */
  .rgdd-file-item{
    grid-template-columns: 24px minmax(0,1fr) var(--rgdd-col-size) var(--rgdd-col-host) auto;
  }

  /* بچه‌های .rgdd-file-meta را به گرید والد «بالا می‌آریم» */
  .rgdd-file-meta{
    display: contents;
  }

  /* حجم همیشه ستون سوم؛ هاست ستون چهارم */
  .rgdd-size-badge{
    grid-column: 3;
    min-inline-size: var(--rgdd-col-size);
    justify-self: start;
    text-align: center;
    font-variant-numeric: tabular-nums; /* اعداد یکنواخت‌تر */
  }
  .rgdd-host-badge{
    grid-column: 4;
    min-inline-size: var(--rgdd-col-host);
    justify-self: start;
    text-align: center;
  }

  /* اکشن‌ها همیشه ستون پنجم */
  .rgdd-file-actions{
    grid-column: 5;
  }

  /* چک‌باکس کمی ثابت‌تر شود */
  .rgdd-select-wrap{ min-width: 24px; }
}

/* Force LTR for size badge to keep "116 MB" order in RTL layouts */
.rgdd-size-badge{
  direction: ltr;
  unicode-bidi: plaintext;
}

/* --- Title split: header layout --- */
/* پیش‌فرض همه کارت‌ها: عنوان کنار هم، بدون کشیده شدن دو سر */
.rgdd-card .rgdd-card-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: flex-start; /* ✅ برگشت به حالت عادی */
}
.rgdd-card-title .rgdd-title-left {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

/* فقط کارت «درباره»: عنوان و دکمه دو سر */
.rgdd-card.rgdd-info .rgdd-card-title {
  justify-content: space-between; /* فقط برای درباره */
}

/* کارت «فایل‌های شما»: دکمه دانلود گروهی برود لبه مقابل در RTL */
#rgdd-myfiles-card .rgdd-card-title { justify-content: flex-start; }
#rgdd-myfiles-card #rgdd-batch-btn {
  margin-inline-start: auto; /* دکمه برود سمت چپ در RTL */
  display: inline-flex;
}

/* دکمه «فیلم آموزش» — بزرگ‌تر، کم‌رنگ‌تر، گردتر (pill) و بدون آیکون */
.rgdd-btn.rgdd-btn-ghost.rgdd-tutorial-btn {
  padding: .75rem 1.1rem;              /* بزرگ‌تر */
  min-height: 44px;                    /* تاچ‌تارگت مناسب */
  border-radius: 9999px;               /* گوشه‌های خیلی گرد (pill) */
  border: 1px solid rgba(37, 99, 235, .35);
  background: rgba(37, 99, 235, .12);  /* آبی کم‌رنگ‌تر */
  color: #1e40af;                      /* آبی تیره برای متن */
  cursor: pointer;
  font-size: 1.0625rem;                /* ~17px */
  line-height: 1.2;
  transition: transform .06s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.rgdd-btn.rgdd-btn-ghost.rgdd-tutorial-btn:hover {
  background: rgba(37, 99, 235, .18);
  border-color: rgba(37, 99, 235, .45);
}
.rgdd-btn.rgdd-btn-ghost.rgdd-tutorial-btn:active {
  transform: scale(0.98);
}

/* --- Modal base --- */
.rgdd-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none; /* کنترل با aria-hidden */
}
.rgdd-modal[aria-hidden="false"] { display: block; }

.rgdd-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
}

.rgdd-modal-dialog {
  position: relative;
  max-width: min(900px, 92vw);
  width: 92vw;
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 15px 55px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;                    /* جلوگیری از سرریز */
  max-height: 90vh;                    /* کمی فشرده‌تر */
}

.rgdd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem .85rem;               /* هدر فشرده‌تر */
  border-bottom: 1px solid #eee;
}
.rgdd-modal-title { font-size: 1rem; margin: 0; }

.rgdd-modal-close {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  padding: .25rem .4rem;
  cursor: pointer;
  border-radius: 8px;
}
.rgdd-modal-close:hover { background: #f3f4f6; }

/* بدنه پاپ‌آپ: بدون padding تا ارتفاع نزدیک به ارتفاع واقعی ویدیو باشد */
.rgdd-modal-body { padding: 0 !important; }

/* ====== ویدیو: فیت پایدار حتی وقتی مودال ابتدا hidden بوده ====== */
.rgdd-video-body { line-height: 0; }   /* حذف فاصله عمودی ناخواسته */

/* کانتینرهای وردپرس/MEJS: با نسبت 16:9 تا ارتفاع صفر نشود */
.rgdd-video-body .wp-video,
.rgdd-video-body .wp-video-shortcode,
.rgdd-video-body .mejs-container {
  width: 100% !important;
  aspect-ratio: 16 / 9;                /* کلید حل مشکل «بدون ارتفاع» */
  height: auto !important;
  margin: 0 !important;
  display: block;
}

/* خود ویدیو داخل MEJS/HTML5 */
.rgdd-video-body video,
.rgdd-video-body .mejs-container video,
.rgdd-video-body .mejs-mediaelement video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;             /* با aspect-ratio همخوان */
  object-fit: cover;                    /* پرکردن بدون نوارهای اضافی */
}

/* جلوگیری از اسکرول پس‌زمینه هنگام باز بودن مودال */
.rgdd-modal-open { overflow: hidden; }

/* موبایل بهینه */
@media (max-width: 640px) {
  .rgdd-modal-dialog {
    width: 96vw;
    margin: 8vh auto 0;
    border-radius: 12px;
    max-height: 92vh;
  }
  .rgdd-modal-header { padding: .55rem .75rem; }
}

/* دسترس‌پذیری فوکوس */
.rgdd-modal-close:focus,
.rgdd-btn.rgdd-btn-ghost.rgdd-tutorial-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
