/* ═══════════════════════════════════════════════
   Default Methods VPN - Public Styles v1.1
   Dark Premium Theme | RTL Persian
   Elementor Pro Full-Width Compatible
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ──────────────────────────── */
:root {
  --dm-bg:        #0a0e1a;
  --dm-surface:   #111827;
  --dm-card:      #1a2235;
  --dm-border:    #2a3550;
  --dm-primary:   #6366f1;
  --dm-primary-h: #4f46e5;
  --dm-accent:    #818cf8;
  --dm-green:     #10b981;
  --dm-red:       #ef4444;
  --dm-yellow:    #f59e0b;
  --dm-text:      #f1f5f9;
  --dm-muted:     #94a3b8;
  --dm-radius:    14px;
  --dm-shadow:    0 4px 24px rgba(0,0,0,.45);
}

/* ══════════════════════════════════════════════
   FIX: المنتور پرو - تمام‌صفحه
   این بخش مهم‌ترین قسمت برای رفع مشکل است
══════════════════════════════════════════════ */

/*
  المنتور پرو container و section را محدود می‌کند.
  با این کدها، صفحه‌ای که dm-wrap دارد
  از محدودیت‌های المنتور خارج می‌شود.
*/

/* پدر مستقیم المنتور را full-width کن */
.elementor-section:has(.dm-wrap),
.elementor-container:has(.dm-wrap),
.elementor-column:has(.dm-wrap),
.elementor-widget-container:has(.dm-wrap),
.e-con:has(.dm-wrap),
.e-con-inner:has(.dm-wrap) {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* section والد را full-width کن */
.elementor-section:has(.dm-wrap) {
  padding: 0 !important;
}

/* ── dm-wrap: ظرف اصلی افزونه ──────────────── */
.dm-wrap * { box-sizing: border-box; }

.dm-wrap {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  direction: rtl;
  color: var(--dm-text);
  background: var(--dm-bg);
  min-height: 100vh;
  min-height: 100dvh;
  /* تمام عرض صفحه - بدون max-width محدودکننده */
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  /* خروج از جریان عادی و پوشش کامل عرض */
  position: relative;
  left: 0;
  right: 0;
  -webkit-tap-highlight-color: transparent;
}

/* محتوای داخلی dm-wrap را محدود و متمرکز کن */
.dm-wrap > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* hero و steps نیازی به padding جانبی ندارند */
.dm-wrap > .dm-hero {
  max-width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.dm-wrap > .dm-steps {
  max-width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}

/* ── Reset تداخل قالب/المنتور ─────────────── */
.dm-wrap ul, .dm-wrap ol { margin: 0; padding: 0; list-style: none; }
.dm-wrap a { text-decoration: none; }
.dm-wrap button, .dm-wrap input, .dm-wrap textarea, .dm-wrap select {
  font-family: inherit; line-height: normal;
}
.dm-wrap img { max-width: 100%; }
.dm-wrap p { margin: 0; }

/* ── Typography ─────────────────────────────── */
.dm-wrap h1 { font-size: clamp(1.5rem, 4vw + .5rem, 2.2rem); font-weight: 800; margin: 0; }
.dm-wrap h2 { font-size: clamp(1.15rem, 2vw + .7rem, 1.4rem); font-weight: 700; margin: 0 0 16px; }
.dm-wrap h3 { font-size: 1.1rem; font-weight: 600; margin: 0; }

/* ══════════════════════════════════════════════
   HERO SECTION - قالب جدید ممتاز
══════════════════════════════════════════════ */
.dm-hero {
  text-align: center;
  padding: clamp(48px, 10vw, 80px) 20px clamp(32px, 6vw, 52px);
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%,
      rgba(99,102,241,.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 80%,
      rgba(129,140,248,.08) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

/* دایره‌های تزئینی پس‌زمینه hero */
.dm-hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle,
    rgba(99,102,241,.06) 0%, transparent 70%);
  pointer-events: none;
}

.dm-hero .dm-logo {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--dm-primary), #a78bfa);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; margin: 0 auto 24px;
  box-shadow: 0 8px 40px rgba(99,102,241,.45),
              0 0 0 1px rgba(255,255,255,.08);
  position: relative; z-index: 1;
}

.dm-hero h1 {
  background: linear-gradient(135deg, #fff 20%, var(--dm-accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative; z-index: 1;
  margin-bottom: 12px;
}

.dm-hero p {
  color: var(--dm-muted);
  font-size: clamp(.92rem, 1vw + .7rem, 1.1rem);
  margin: 0;
  position: relative; z-index: 1;
}

/* برچسب‌های ویژگی زیر توضیح hero */
.dm-hero-badges {
  display: flex; gap: 10px;
  justify-content: center; flex-wrap: wrap;
  margin-top: 20px;
  position: relative; z-index: 1;
}
.dm-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: .82rem; color: var(--dm-muted);
}

/* ── Steps bar ─────────────────────────────── */
.dm-steps {
  display: flex; align-items: center;
  justify-content: center; gap: 6px;
  margin: 0;
  padding: 20px 16px 28px;
  flex-wrap: wrap;
  background: linear-gradient(to bottom,
    rgba(99,102,241,.04), transparent);
  border-bottom: 1px solid var(--dm-border);
}
.dm-step {
  display: flex; align-items: center; gap: 8px;
  color: var(--dm-muted); font-size: .88rem; font-weight: 500;
}
.dm-step.active { color: var(--dm-text); }
.dm-step-num {
  width: 30px; height: 30px;
  background: var(--dm-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700;
  transition: all .3s;
  flex-shrink: 0;
}
.dm-step.active .dm-step-num {
  background: var(--dm-primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,.25);
}
.dm-step.done .dm-step-num {
  background: var(--dm-green);
}
.dm-step-sep { color: var(--dm-border); font-size: 1.1rem; }

/* ── Alert ──────────────────────────────────── */
#dm-alert { padding: 0 24px; max-width: 1200px; margin: 0 auto; }

/* ── Panels ─────────────────────────────────── */
.dm-panel {
  padding: 32px 24px;
  display: none;
}
.dm-panel.active { display: block; }

/* ── Cards ──────────────────────────────────── */
.dm-card {
  background: var(--dm-card);
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius);
  padding: 28px;
  box-shadow: var(--dm-shadow);
}

/* ══════════════════════════════════════════════
   PLAN CARDS - قالب جدید ممتاز
══════════════════════════════════════════════ */
.dm-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.dm-plan-card {
  background: var(--dm-card);
  border: 2px solid var(--dm-border);
  border-radius: 20px;
  padding: 32px 28px;
  cursor: pointer;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  position: relative;
  overflow: hidden;
}

.dm-plan-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(99,102,241,.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}

.dm-plan-card:hover {
  border-color: var(--dm-primary);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(99,102,241,.2);
}
.dm-plan-card:hover::after { opacity: 1; }

.dm-plan-card.selected {
  border-color: var(--dm-primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,.2),
              0 16px 40px rgba(99,102,241,.18);
}
.dm-plan-card.featured {
  border-color: var(--dm-primary);
  background: linear-gradient(160deg,
    rgba(99,102,241,.14) 0%, var(--dm-card) 60%);
}

.dm-plan-badge {
  position: absolute; top: 16px; left: 16px;
  background: linear-gradient(135deg, var(--dm-primary), #a78bfa);
  color: #fff; font-size: .75rem; font-weight: 700;
  padding: 5px 12px; border-radius: 99px;
  box-shadow: 0 4px 12px rgba(99,102,241,.4);
}

/* تیک انتخاب */
.dm-plan-card.selected::before {
  content: '✓';
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px;
  background: var(--dm-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
}

.dm-plan-icon { font-size: 2.5rem; margin-bottom: 14px; }
.dm-plan-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.dm-plan-price {
  font-size: 1.9rem; font-weight: 800;
  color: var(--dm-primary); margin-bottom: 20px;
  letter-spacing: -1px;
}
.dm-plan-price span {
  font-size: .9rem; font-weight: 500;
  color: var(--dm-muted); letter-spacing: 0;
}

.dm-plan-features { list-style: none; padding: 0; margin: 0; }
.dm-plan-features li {
  color: var(--dm-muted); font-size: .9rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex; align-items: center; gap: 10px;
}
.dm-plan-features li:last-child { border-bottom: none; }
.dm-plan-features li::before {
  content: '✓';
  color: var(--dm-green); font-weight: 700;
  width: 20px; height: 20px;
  background: rgba(16,185,129,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; flex-shrink: 0;
}

/* دکمه انتخاب پلن */
.dm-plan-select-btn {
  display: block; width: 100%;
  margin-top: 24px;
  padding: 13px;
  background: rgba(99,102,241,.12);
  border: 1.5px solid rgba(99,102,241,.3);
  border-radius: 10px;
  color: var(--dm-accent);
  font-family: inherit; font-size: .95rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
  text-align: center;
}
.dm-plan-card:hover .dm-plan-select-btn,
.dm-plan-card.selected .dm-plan-select-btn {
  background: var(--dm-primary);
  border-color: var(--dm-primary);
  color: #fff;
}

/* ── Location grid ──────────────────────────── */
.dm-locations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  max-width: 700px;
  margin: 0 auto;
}
.dm-loc-btn {
  background: var(--dm-card);
  border: 2px solid var(--dm-border);
  border-radius: 14px;
  padding: 22px 14px;
  text-align: center; cursor: pointer;
  transition: all .25s; color: var(--dm-text);
  font-family: inherit;
}
.dm-loc-btn:hover {
  border-color: var(--dm-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99,102,241,.15);
}
.dm-loc-btn.selected {
  border-color: var(--dm-primary);
  background: rgba(99,102,241,.12);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
.dm-loc-flag { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.dm-loc-name { font-size: .88rem; font-weight: 600; }

/* ── Form ───────────────────────────────────── */
.dm-field { margin-bottom: 20px; }
.dm-label {
  display: block; font-size: .9rem; font-weight: 600;
  margin-bottom: 8px; color: var(--dm-muted);
}
.dm-input {
  width: 100%; padding: 14px 16px;
  background: var(--dm-surface);
  border: 1.5px solid var(--dm-border);
  border-radius: 10px; color: var(--dm-text);
  font-family: inherit; font-size: 1rem;
  direction: ltr; text-align: left;
  transition: border-color .2s;
  outline: none;
}
.dm-input:focus { border-color: var(--dm-primary); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.dm-hint { font-size: .82rem; color: var(--dm-muted); margin-top: 6px; }

/* ── Auth block ─────────────────────────────── */
.dm-auth-page { max-width: 440px; margin: 0 auto 40px; }
.dm-auth-card { padding: 28px; }
.dm-auth-block { margin-top: 8px; }
.dm-auth-tabs {
  display: flex; gap: 6px;
  background: var(--dm-surface);
  border-radius: 10px; padding: 4px;
  margin-bottom: 20px;
}
.dm-auth-tab {
  flex: 1; padding: 10px 12px;
  border: none; border-radius: 8px;
  background: transparent; color: var(--dm-muted);
  font-family: inherit; font-size: .92rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.dm-auth-tab.active { background: var(--dm-primary); color: #fff; }
.dm-auth-form { display: none; }
.dm-auth-form.active { display: block; animation: dmFadeIn .2s ease; }
@keyframes dmFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dm-auth-alert:empty { display: none; }

/* ── Buttons ─────────────────────────────────── */
.dm-btn {
  display: inline-flex; align-items: center;
  justify-content: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 10px; border: none;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
  min-height: 48px;
}
.dm-btn-primary {
  background: linear-gradient(135deg, var(--dm-primary), #4f46e5);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,.35);
}
.dm-btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,.45);
}
.dm-btn-outline {
  background: transparent;
  color: var(--dm-muted);
  border: 1.5px solid var(--dm-border);
}
.dm-btn-outline:hover { border-color: var(--dm-primary); color: var(--dm-text); }
.dm-btn-danger { background: var(--dm-red); color: #fff; }
.dm-btn-green  { background: var(--dm-green); color: #fff; }
.dm-btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.dm-btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.dm-btn-full { width: 100%; }

/* ── Payment box ─────────────────────────────── */
.dm-payment {
  background: linear-gradient(135deg,
    rgba(99,102,241,.1), rgba(16,185,129,.05));
  border: 1px solid rgba(99,102,241,.25);
  border-radius: var(--dm-radius);
  padding: 28px;
}
.dm-payment-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 12px 0;
  border-bottom: 1px solid var(--dm-border);
  font-size: .95rem;
}
.dm-payment-row:last-child { border-bottom: none; }
.dm-payment-row .label { color: var(--dm-muted); }
.dm-payment-row .value { font-weight: 700; color: var(--dm-text); }
.dm-card-number {
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: 3px; direction: ltr;
  color: var(--dm-accent); text-align: center;
  background: var(--dm-surface);
  border: 1px dashed rgba(99,102,241,.4);
  border-radius: 10px; padding: 16px;
  cursor: pointer; margin: 16px 0;
  transition: background .2s;
}
.dm-card-number:hover { background: var(--dm-card); }

/* ── Upload zone ─────────────────────────────── */
.dm-upload {
  border: 2px dashed var(--dm-border);
  border-radius: 14px; padding: 40px;
  text-align: center; cursor: pointer;
  transition: all .2s; position: relative;
}
.dm-upload:hover, .dm-upload.drag {
  border-color: var(--dm-primary);
  background: rgba(99,102,241,.05);
}
.dm-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dm-upload-icon { font-size: 3rem; margin-bottom: 12px; }
.dm-upload p { color: var(--dm-muted); margin: 4px 0; }
.dm-upload-preview {
  max-width: 240px; border-radius: 10px;
  margin: 16px auto 0; display: none;
}

/* ── Order summary ───────────────────────────── */
.dm-summary {
  background: var(--dm-surface);
  border-radius: 12px; padding: 20px;
  margin-bottom: 20px;
}
.dm-summary-row {
  display: flex; justify-content: space-between;
  padding: 10px 0; font-size: .92rem;
  border-bottom: 1px solid var(--dm-border);
}
.dm-summary-row:last-child { border-bottom: none; font-weight: 700; font-size: 1rem; }
.dm-summary-row .k { color: var(--dm-muted); }

/* ── Alert / Notice ─────────────────────────── */
.dm-alert, #dm-alert > * {
  padding: 14px 18px; border-radius: 10px;
  margin-bottom: 16px; font-size: .92rem; font-weight: 500;
}
.dm-alert-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }
.dm-alert-error   { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.dm-alert-info    { background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.3); color: var(--dm-accent); }

/* ── Dashboard tabs ─────────────────────────── */
.dm-tabs {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--dm-border);
  margin-bottom: 28px;
}
.dm-tab {
  padding: 12px 20px; border: none;
  background: none; color: var(--dm-muted);
  font-family: inherit; font-size: .95rem;
  font-weight: 600; cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all .2s;
  min-height: 44px;
}
.dm-tab.active { color: var(--dm-primary); border-bottom-color: var(--dm-primary); }

/* ── Orders table ────────────────────────────── */
.dm-table { width: 100%; border-collapse: collapse; }
.dm-table th, .dm-table td {
  padding: 14px 16px; text-align: right;
  border-bottom: 1px solid var(--dm-border);
  font-size: .9rem;
}
.dm-table th { color: var(--dm-muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; }
.dm-table tr:hover td { background: rgba(255,255,255,.02); }
.dm-badge {
  display: inline-block; padding: 4px 10px;
  border-radius: 99px; font-size: .78rem; font-weight: 700;
}
.dm-badge-green  { background: rgba(16,185,129,.15); color: #34d399; }
.dm-badge-yellow { background: rgba(245,158,11,.15); color: #fbbf24; }
.dm-badge-red    { background: rgba(239,68,68,.15);  color: #f87171; }
.dm-badge-gray   { background: rgba(148,163,184,.1); color: var(--dm-muted); }

/* ── Config cards ────────────────────────────── */
.dm-configs { display: grid; gap: 16px; }
.dm-config-card {
  background: var(--dm-surface);
  border: 1px solid var(--dm-border);
  border-radius: 12px; padding: 20px;
  display: flex; gap: 20px; align-items: center;
}
.dm-config-qr {
  flex-shrink: 0; width: 100px; height: 100px;
  background: #fff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.dm-config-info { flex: 1; min-width: 0; }
.dm-config-name { font-weight: 700; margin-bottom: 8px; }
.dm-config-link {
  font-size: .75rem; color: var(--dm-muted);
  word-break: break-all; direction: ltr;
  background: var(--dm-card); border-radius: 6px;
  padding: 8px; margin: 8px 0;
  cursor: pointer; transition: background .2s;
}
.dm-config-link:hover { background: var(--dm-border); }
.dm-config-copy { font-size: .8rem; color: var(--dm-primary); cursor: pointer; font-weight: 600; }

/* ── Sub URL box ─────────────────────────────── */
.dm-sub-box {
  background: linear-gradient(135deg,
    rgba(99,102,241,.12), rgba(129,140,248,.06));
  border: 1px solid rgba(99,102,241,.3);
  border-radius: 12px; padding: 20px;
  margin-bottom: 20px;
}
.dm-sub-box h3 { color: var(--dm-accent); margin-bottom: 12px; font-size: 1rem; }
.dm-sub-url {
  font-size: .8rem; direction: ltr; word-break: break-all;
  color: var(--dm-muted); background: var(--dm-surface);
  border-radius: 8px; padding: 10px 12px;
  cursor: pointer; transition: background .2s;
}
.dm-sub-url:hover { background: var(--dm-card); color: var(--dm-text); }
.dm-sub-qr { text-align: center; margin-top: 16px; }

/* ── Ticket ─────────────────────────────────── */
.dm-ticket-list { display: grid; gap: 12px; }
.dm-ticket-item {
  background: var(--dm-card);
  border: 1px solid var(--dm-border);
  border-radius: 12px; padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; transition: border-color .2s;
}
.dm-ticket-item:hover { border-color: var(--dm-primary); }
.dm-ticket-subject { font-weight: 600; margin-bottom: 4px; }
.dm-ticket-meta { font-size: .82rem; color: var(--dm-muted); }
.dm-chat { display: grid; gap: 12px; margin: 20px 0; }
.dm-msg {
  max-width: 80%; padding: 12px 16px;
  border-radius: 12px; font-size: .92rem; line-height: 1.6;
}
.dm-msg-user {
  background: rgba(99,102,241,.15); margin-left: auto;
  border-radius: 12px 12px 4px 12px;
}
.dm-msg-admin {
  background: var(--dm-surface);
  border: 1px solid var(--dm-border);
  border-radius: 12px 12px 12px 4px;
}
.dm-msg-time { font-size: .75rem; color: var(--dm-muted); margin-top: 4px; text-align: left; }

/* ── Loading spinner ─────────────────────────── */
.dm-loading {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 32px; color: var(--dm-muted);
}
.dm-spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--dm-border);
  border-top-color: var(--dm-primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Notice ─────────────────────────────────── */
.dm-notice {
  text-align: center; padding: 40px 20px;
  color: var(--dm-muted);
}
.dm-notice a { color: var(--dm-primary); }

/* ══════════════════════════════════════════════
   RESPONSIVE - همه دیوایس‌ها
══════════════════════════════════════════════ */

/* لپ‌تاپ بزرگ */
@media (min-width: 1280px) {
  .dm-panel { padding: 40px 40px; }
  .dm-plans { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
}

/* تبلت و لپ‌تاپ کوچک */
@media (max-width: 1024px) {
  .dm-panel { padding: 28px 20px; }
  .dm-plans { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* تبلت عمودی */
@media (max-width: 768px) {
  .dm-wrap > * { padding-left: 16px; padding-right: 16px; }
  .dm-card, .dm-auth-card { padding: 20px; }
  .dm-steps { gap: 4px; }
  .dm-step span { font-size: .8rem; }
  .dm-tabs {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .dm-tabs::-webkit-scrollbar { display: none; }
  .dm-tab { flex: 0 0 auto; white-space: nowrap; }
  .dm-table { display: block; overflow-x: auto; white-space: nowrap; }
  .dm-panel { padding: 24px 16px; }
}

/* موبایل */
@media (max-width: 640px) {
  .dm-wrap > * { padding-left: 12px; padding-right: 12px; }
  .dm-plans { grid-template-columns: 1fr; }
  .dm-locations { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .dm-config-card { flex-direction: column; align-items: stretch; }
  .dm-config-qr { width: 100%; height: auto; aspect-ratio: 1; }
  .dm-hero h1 { font-size: 1.5rem; }
  .dm-btn { padding: 12px 20px; }
  .dm-msg { max-width: 90%; }
  .dm-ticket-item { flex-wrap: wrap; gap: 8px; }
  .dm-panel { padding: 20px 12px; }
}

/* موبایل کوچک */
@media (max-width: 480px) {
  .dm-hero { padding: 32px 12px 24px; }
  .dm-hero .dm-logo { width: 64px; height: 64px; font-size: 1.8rem; border-radius: 18px; }
  .dm-card, .dm-auth-card { padding: 16px; border-radius: 12px; }
  .dm-plan-card { padding: 22px 18px; border-radius: 16px; }
  .dm-loc-btn { padding: 16px 10px; }
  .dm-plan-icon { font-size: 2rem; }
  .dm-plan-price { font-size: 1.5rem; }
  .dm-steps { padding: 16px 10px 20px; }
  .dm-step span { display: none; }
  .dm-step-sep { font-size: .9rem; }
  .dm-summary-row, .dm-payment-row {
    flex-direction: column; align-items: flex-start; gap: 2px;
  }
  .dm-upload { padding: 28px 12px; }
  .dm-config-link { font-size: .7rem; }
  .dm-auth-tab { font-size: .85rem; padding: 9px 8px; }
  .dm-hero-badges { gap: 6px; }
  .dm-hero-badge { font-size: .76rem; padding: 5px 10px; }
}

/* موبایل بسیار کوچک */
@media (max-width: 360px) {
  .dm-hero h1 { font-size: 1.3rem; }
  .dm-plans, .dm-locations { gap: 10px; }
  .dm-btn { font-size: .9rem; padding: 11px 14px; }
  .dm-panel { padding: 16px 10px; }
}

/* صفحه‌های لمسی */
@media (hover: none) and (pointer: coarse) {
  .dm-btn, .dm-tab, .dm-loc-btn, .dm-auth-tab { min-height: 48px; }
  .dm-config-link, .dm-sub-url { padding: 12px; }
  .dm-plan-card:hover { transform: none; }
  .dm-loc-btn:hover { transform: none; }
  .dm-plan-card:active { transform: scale(.98); }
  .dm-loc-btn:active { transform: scale(.97); }
}

/* حالت landscape موبایل */
@media (max-height: 500px) and (orientation: landscape) {
  .dm-hero { padding: 20px 16px 16px; }
  .dm-hero .dm-logo { width: 52px; height: 52px; font-size: 1.5rem; margin-bottom: 12px; }
}
