/* ─── متن سئو — استایل کامل RTL (روشن/تاریک) ─── */

/* فونت وزیرمتن — self-hosted تا در همه هاست‌ها (حتی با محدودیت دسترسی به Google Fonts) یکسان نمایش داده شود */
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-var.woff2") format("woff2-variations"),
       url("fonts/Vazirmatn-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* اتریبیوت hidden همیشه برنده باشد — بدون این قاعده، display:flex کلاس‌ها
   (مثل modal-overlay) باعث می‌شود مودال‌های بسته در لود اولیه نمایش داده شوند */
[hidden] { display: none !important; }

:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #d1fae5;
  --primary-soft: rgba(5, 150, 105, 0.1);
  --amber: #f59e0b;
  --rose: #e11d48;
  --sky: #0284c7;
  --bg: #f8fafc;
  --card: #ffffff;
  --muted: #64748b;
  --border: #e2e8f0;
  --text: #0f172a;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 32px rgba(5, 150, 105, 0.18);
  --radius: 16px;
}
[data-theme="dark"] {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #064e3b;
  --primary-soft: rgba(16, 185, 129, 0.12);
  --bg: #0b1220;
  --card: #111a2c;
  --muted: #94a3b8;
  --border: #24314b;
  --text: #e2e8f0;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
a { color: var(--primary); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.ltr { direction: ltr; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ─── زوم بصری محتوای اصلی: بزرگ‌تر، جمع‌وجورتر و واضح‌تر ───
   عرض داخلی ۱۰۰۰px × زوم ۱.۱۲ ≈ ۱۱۲۰px بصری = دقیقاً هم‌عرض هدر → تراز حفظ می‌شود */
#app { zoom: 1.12; }
#app.container { max-width: 1000px; }
@media (max-width: 640px) {
  #app { zoom: 1.06; }
}

/* ─── هدر ─── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--text); }
.logo-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: var(--primary); box-shadow: var(--shadow-lg); font-size:19px; }
.logo-text { font-size:19px; font-weight: 800; }
.nav-desktop { display: flex; gap: 4px; }
.nav-mobile { display: none; gap: 4px; overflow-x: auto; border-top: 1px solid var(--border); padding: 6px 12px; }
.nav-btn {
  background: none; border: 0; color: var(--text);
  padding: 7px 12px; border-radius: 10px; font-size:14.5px; font-weight: 700;
  transition: all 0.2s; white-space: nowrap;
}
.nav-btn:hover { background: var(--primary-soft); }
.nav-btn.active { background: var(--primary-soft); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.wallet-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 99px; padding: 6px 14px; font-size:13.5px; font-weight: 800;
  color: var(--text); transition: background 0.2s;
}
.wallet-chip:hover { background: var(--primary-soft); }
.icon-btn {
  background: none; border: 0; width: 38px; height: 38px; border-radius: 10px;
  font-size:18px; color: var(--text); transition: background 0.2s;
}
.icon-btn:hover { background: var(--primary-soft); }

/* ─── دکمه‌ها ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 10px 20px; font-size:15.5px; font-weight: 800;
  transition: all 0.2s; text-decoration: none;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(5, 150, 105, 0.3); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: none; color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: var(--primary-soft); }
.btn-danger { background: var(--rose); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(0.92); }
.btn-sm { padding: 7px 14px; font-size:14px; border-radius: 10px; }
.btn-lg { padding: 13px 26px; font-size:16.5px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ─── کارت‌ها ─── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-hover { transition: all 0.25s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1); border-color: var(--primary); }

/* ─── منوی کاربر ─── */
.dropdown {
  position: fixed; z-index: 60; min-width: 210px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); padding: 6px; overflow: hidden;
}
.dropdown-label { padding: 10px 12px; font-size:14.5px; font-weight: 800; border-bottom: 1px solid var(--border); margin-bottom: 4px; display: flex; justify-content: space-between; gap: 8px; }
.dropdown-item {
  display: block; width: 100%; text-align: right; background: none; border: 0;
  padding: 9px 12px; border-radius: 9px; font-size:14.5px; font-weight: 700; color: var(--text);
}
.dropdown-item:hover { background: var(--primary-soft); }
.dropdown-item.danger { color: var(--rose); }
.dropdown hr { border: 0; border-top: 1px solid var(--border); margin: 4px 8px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; font-size:12.5px; font-weight: 800; background: var(--primary-soft); color: var(--primary); }
.badge.amber { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.badge.rose { background: rgba(225, 29, 72, 0.12); color: var(--rose); }
.badge.emerald { background: rgba(16, 185, 129, 0.14); color: #047857; }
.badge.sky { background: rgba(2, 132, 199, 0.14); color: var(--sky); }
.badge.gray { background: var(--primary-soft); color: var(--muted); }
[data-theme="dark"] .badge.amber { color: #fbbf24; }
[data-theme="dark"] .badge.rose { color: #fb7185; }
[data-theme="dark"] .badge.emerald { color: #34d399; }
[data-theme="dark"] .badge.sky { color: #38bdf8; }

/* ─── فرم‌ها ─── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size:14px; font-weight: 800; margin-bottom: 6px; }
.input, textarea.input {
  width: 100%; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); color: var(--text);
  padding: 10px 14px; font-size:15.5px; outline: none; transition: border 0.2s, box-shadow 0.2s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea.input { resize: vertical; min-height: 110px; }
.hint { font-size:12.5px; color: var(--muted); margin-top: 4px; line-height: 1.8; }
.alert { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; font-size:14px; line-height: 1.9; margin-bottom: 12px; }
.alert.info { border-color: rgba(5, 150, 105, 0.35); background: var(--primary-soft); }
.alert.ok { border-color: rgba(5, 150, 105, 0.4); background: var(--primary-soft); }
.alert.warn { border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.07); }
.alert.error { border-color: rgba(225, 29, 72, 0.4); background: rgba(225, 29, 72, 0.06); color: var(--rose); }
.alert b { display: block; margin-bottom: 2px; }

/* ─── اسلایدر کلمات ─── */
.slider-wrap { border: 1px solid var(--border); background: var(--card); border-radius: 14px; padding: 16px; }
.slider-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size:15px; font-weight: 800; }
.slider-val { background: var(--primary-soft); color: var(--primary); border-radius: 10px; padding: 3px 12px; font-size:14.5px; font-weight: 800; }
input[type="range"].sn-range { width: 100%; accent-color: var(--primary); height: 28px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.preset {
  border: 1px solid var(--border); background: var(--bg); color: var(--muted);
  border-radius: 10px; padding: 4px 12px; font-size:13.5px; font-weight: 800; transition: all 0.15s;
}
.preset:hover { border-color: var(--primary); color: var(--primary); }
.preset.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.slider-cost { display: flex; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; font-size:15px; }
.slider-cost b { color: var(--primary); }

/* ─── هیرو ─── */
.hero { text-align: center; padding: 64px 16px 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 640px; height: 380px; border-radius: 50%;
  background: var(--primary-soft); filter: blur(80px); pointer-events: none;
}
.hero > * { position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(5, 150, 105, 0.3); background: var(--primary-soft);
  color: var(--primary); border-radius: 99px; padding: 6px 16px; font-size:14px; font-weight: 700; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(26px, 5vw, 46px); font-weight: 900; line-height: 1.6; }
.hero h1 .hl { color: var(--primary); }
.hero p.lead { max-width: 640px; margin: 18px auto 0; color: var(--muted); font-size:16.5px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.hero-feats { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; margin-top: 30px; color: var(--muted); font-size:13.5px; }
.hero-feats span::before { content: "✔ "; color: var(--primary); font-weight: 900; }

/* ─── بخش‌های لندینگ ─── */
.section { padding: 38px 0; }
.section-title { text-align: center; font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.section-sub { text-align: center; color: var(--muted); font-size:15px; margin-bottom: 30px; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.plan-card { display: flex; flex-direction: column; position: relative; }
.plan-icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; color: #fff; }
.plan-icon.normal { background: var(--primary); }
.plan-icon.master { background: var(--amber); }
.plan-icon.custom { background: var(--rose); }
.plan-pop { position: absolute; top: -12px; right: 16px; background: var(--amber); color: #fff; }
.plan-card.popular { border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 10px 28px rgba(245, 158, 11, 0.12); }
.plan-card h3 { font-size:18px; font-weight: 900; }
.plan-card .plan-desc { color: var(--muted); font-size:14.5px; margin: 4px 0 14px; }
.plan-card ul { list-style: none; margin-bottom: 16px; flex: 1; }
.plan-card li { display: flex; gap: 8px; font-size:14.5px; padding: 5px 0; }
.plan-card li::before { content: "✔"; color: var(--primary); font-weight: 900; flex-shrink: 0; }
.plan-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 14px; }
.plan-price { font-size:18px; font-weight: 900; }
.plan-rate { font-size:12.5px; color: var(--muted); }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.how-card { text-align: center; padding: 22px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.how-icon { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 16px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.how-card h3 { font-size:16px; font-weight: 900; margin-bottom: 6px; }
.how-card p { font-size:13.5px; color: var(--muted); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item-x { border: 1px solid var(--border); border-radius: 12px; background: var(--card); margin-bottom: 10px; overflow: hidden; }
.faq-item-x summary { cursor: pointer; padding: 14px 18px; font-size:15.5px; font-weight: 800; list-style: none; position: relative; padding-left: 44px; }
.faq-item-x summary::-webkit-details-marker { display: none; }
.faq-item-x summary::after { content: "+"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; background: var(--primary-light); color: var(--primary-dark); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.faq-item-x[open] summary::after { content: "−"; }
.faq-item-x .faq-body { padding: 0 18px 14px; color: var(--muted); font-size:14.5px; }

/* ─── ناوبری صفحه ─── */
.page { flex: 1; width: 100%; padding: 26px 0 60px; }
.page-loading { text-align: center; padding: 80px 0; color: var(--muted); }
.back-btn { background: none; border: 0; color: var(--muted); font-size:14.5px; font-weight: 700; margin-bottom: 14px; }
.back-btn:hover { color: var(--primary); }

/* ─── انتخاب پلن ─── */
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.mode-card { text-align: right; position: relative; padding: 22px; }
.mode-card .mode-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; margin-bottom: 14px; transition: transform 0.2s; }
.mode-card:hover .mode-icon { transform: scale(1.1); }
.mode-card h3 { font-size:17.5px; font-weight: 900; margin-bottom: 6px; }
.mode-card p { font-size:13.5px; color: var(--muted); }
.mode-card .mode-rate { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; font-size:13.5px; font-weight: 800; color: var(--primary); }
.mode-badge { position: absolute; top: -10px; left: 16px; background: var(--amber); color: #fff; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.cat-btn {
  display: flex; align-items: center; gap: 8px; text-align: right;
  border: 1px solid var(--border); background: var(--bg); border-radius: 12px;
  padding: 9px 11px; transition: all 0.15s; color: var(--text);
}
.cat-btn:hover { border-color: var(--primary); }
.cat-btn.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: var(--shadow); }
.cat-btn .cat-emoji { font-size:19px; }
.cat-btn .cat-name { display: block; font-size:13.5px; font-weight: 800; }
.cat-btn .cat-desc { display: block; font-size:11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }

/* ─── رصد سفارش ─── */
.progress-track { height: 9px; background: var(--primary-soft); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(to left, var(--primary), #34d399); border-radius: 99px; transition: width 0.7s; }
.stepper { display: flex; justify-content: space-between; gap: 4px; list-style: none; }
.stepper li { flex: 1; text-align: center; }
.stepper .dot {
  width: 32px; height: 32px; margin: 0 auto 5px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--card);
  display: flex; align-items: center; justify-content: center; font-size:13.5px; font-weight: 900; color: var(--muted);
}
.stepper li.active .dot { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); animation: pulse 1.6s infinite; }
.stepper li.done .dot { border-color: var(--primary); background: var(--primary); color: #fff; }
.stepper .dot-label { font-size:12px; font-weight: 800; color: var(--muted); }
.stepper li.active .dot-label, .stepper li.done .dot-label { color: var(--text); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.stage-text { text-align: center; font-size:16px; font-weight: 900; margin: 16px 0; }
.big-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 18px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 26px; animation: pulse 1.6s infinite; }

/* ─── بازبینی هدینگ ─── */
.research-box { border: 1px solid rgba(245, 158, 11, 0.4); border-radius: var(--radius); background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), transparent); padding: 20px; margin-bottom: 16px; }
.research-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.research-cell { border: 1px solid var(--border); border-radius: 12px; background: var(--bg); padding: 14px; }
.research-cell h4 { font-size:13.5px; font-weight: 900; color: #b45309; margin-bottom: 6px; }
.research-cell p, .research-cell li { font-size:13.5px; color: var(--muted); line-height: 1.9; }
.research-cell ul { list-style: none; }
.research-cell li::before { content: "✔ "; color: #10b981; font-weight: 900; }
.kw-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.kw-chip { border: 1px solid var(--border); background: var(--card); border-radius: 99px; padding: 2px 12px; font-size:12.5px; }
.kw-chip.lsi { background: var(--primary-soft); color: var(--primary); border: 0; }
.title-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.title-suggest button { border: 1px dashed var(--border); background: none; border-radius: 10px; padding: 4px 10px; font-size:12.5px; color: var(--muted); }
.title-suggest button:hover { border-color: var(--primary); color: var(--primary); }
.section-row { border: 1px solid var(--border); border-radius: 12px; background: var(--bg); padding: 12px; margin-bottom: 8px; }
.section-row .row-head { display: flex; align-items: center; gap: 8px; }
.section-row .row-num { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size:12.5px; font-weight: 900; }
.section-row input.heading { flex: 1; border: 0; background: none; color: var(--text); font-size:14.5px; font-weight: 800; outline: none; }
.section-row .row-actions { display: flex; gap: 2px; flex-shrink: 0; }
.icon-sm { background: none; border: 0; width: 28px; height: 28px; border-radius: 8px; color: var(--muted); font-size:14.5px; }
.icon-sm:hover { background: var(--primary-soft); color: var(--primary); }
.icon-sm.danger:hover { background: rgba(225, 29, 72, 0.1); color: var(--rose); }
.section-row input.summary { width: 100%; margin-top: 8px; border: 1px dashed var(--border); background: none; border-radius: 8px; padding: 5px 10px; font-size:13px; color: var(--text); outline: none; }

/* ─── نتیجه ─── */
.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; border: 1px solid rgba(16, 185, 129, 0.4); border-radius: var(--radius); background: linear-gradient(135deg, rgba(16, 185, 129, 0.07), transparent); padding: 18px; }
.result-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size:13px; margin-top: 4px; }
.tabs { display: flex; gap: 4px; border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 4px; max-width: 430px; }
.tab-btn { flex: 1; border: 0; background: none; color: var(--muted); border-radius: 9px; padding: 8px; font-size:14px; font-weight: 800; }
.tab-btn.active { background: var(--primary-soft); color: var(--primary); }
.code-box { background: #0f172a; color: #6ee7b7; border-radius: 14px; padding: 16px; overflow: auto; max-height: 520px; direction: ltr; text-align: left; }
.code-box pre { white-space: pre-wrap; word-break: break-all; font-family: ui-monospace, Menlo, monospace; font-size:12.5px; line-height: 1.7; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px; list-style: none; }
.check-grid li { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size:13.5px; background: var(--bg); }
.check-ok { color: #10b981; font-weight: 900; }
.check-warn { color: var(--amber); font-weight: 900; }

/* پیش‌نمایش مقاله داخل سایت */
.article-body { max-width: 800px; margin: 0 auto; }
.article-body .sn-article { font-size:15.5px; }
.article-body h2 { color: var(--primary-dark); font-size:1.4rem; margin: 26px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); }
[data-theme="dark"] .article-body h2 { color: #34d399; border-bottom-color: rgba(16, 185, 129, 0.25); }
.article-body h3 { font-size:1.2rem; margin: 20px 0 8px; padding-right: 12px; border-right: 4px solid #5eead4; color: #0f766e; }
[data-theme="dark"] .article-body h3 { color: #5eead4; }
.article-body p { margin-bottom: 12px; text-align: justify; }
.article-body ul, .article-body ol { margin: 0 22px 14px 0; }
.article-body li { margin-bottom: 6px; text-align: justify; }
.article-body ul li::marker { color: var(--primary); }
.article-body mark { background: #fef08a; color: #854d0e; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.article-body blockquote { background: #fffbeb; border-right: 5px solid #f59e0b; border-radius: 12px; padding: 16px 20px; margin: 16px 0; color: #78350f; font-style: italic; }
[data-theme="dark"] .article-body blockquote { background: rgba(245, 158, 11, 0.08); color: #fcd34d; }
.article-body .tip-box { background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.14)); border: 1px solid rgba(16, 185, 129, 0.35); border-radius: 14px; padding: 16px 20px; margin: 16px 0; }
.article-body .tip-title { font-weight: 900; color: var(--primary-dark); margin-bottom: 4px; }
[data-theme="dark"] .article-body .tip-title { color: #34d399; }
.article-body .table-wrap { overflow-x: auto; margin: 16px 0; border-radius: 12px; border: 1px solid var(--border); }
.article-body table { width: 100%; border-collapse: collapse; font-size:14.5px; }
.article-body th { background: var(--primary); color: #fff; padding: 11px 13px; text-align: right; white-space: nowrap; }
.article-body td { padding: 10px 13px; border-top: 1px solid var(--border); }
.article-body .faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: var(--card); }
.article-body .faq-item summary { cursor: pointer; padding: 13px 18px; font-weight: 800; font-size:15px; list-style: none; position: relative; padding-left: 44px; }
.article-body .faq-item summary::-webkit-details-marker { display: none; }
.article-body .faq-item summary::after { content: "+"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; background: var(--primary-light); color: var(--primary-dark); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 900; }
[data-theme="dark"] .article-body .faq-item summary::after { background: var(--primary-soft); color: #34d399; }
.article-body .faq-item[open] summary::after { content: "−"; }
.article-body .faq-answer { padding: 2px 18px 14px; color: var(--muted); }

/* ─── کیف پول ─── */
.balance-hero {
  border-radius: 22px; padding: 26px; color: #fff;
  background: linear-gradient(105deg, #047857, #10b981);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.25); position: relative; overflow: hidden;
}
.balance-hero::before { content: ""; position: absolute; top: -50px; left: -30px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); filter: blur(30px); }
.balance-hero .bh-label { font-size:14.5px; opacity: 0.9; }
.balance-hero .bh-value { font-size: clamp(26px, 5vw, 36px); font-weight: 900; margin-top: 6px; }
.balance-hero .bh-user { font-size:13.5px; opacity: 0.8; margin-top: 4px; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.pkg-card { text-align: center; position: relative; padding: 18px 14px; }
.pkg-bonus { position: absolute; top: -11px; right: 12px; background: var(--amber); color: #fff; }
.pkg-card .pkg-icon { font-size: 24px; margin-bottom: 6px; }
.pkg-card .pkg-label { font-size:15.5px; font-weight: 900; }
.pkg-card .pkg-sub { font-size:12.5px; color: var(--muted); margin-top: 4px; }
.tx-list { list-style: none; max-height: 380px; overflow-y: auto; }
.tx-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.tx-item:last-child { border-bottom: 0; }
.tx-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size:16px; }
.tx-icon.pos { background: rgba(16, 185, 129, 0.12); }
.tx-icon.neg { background: rgba(225, 29, 72, 0.1); }
.tx-desc { font-size:14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.tx-date { font-size:12.5px; color: var(--muted); }
.tx-amount { font-size:15px; font-weight: 900; flex-shrink: 0; }
.tx-amount.pos { color: #059669; }
.tx-amount.neg { color: var(--rose); }
.card-display { border: 1px solid var(--border); border-radius: 14px; background: var(--bg); padding: 18px; text-align: center; }
.card-display .card-number { direction: ltr; font-family: ui-monospace, Menlo, monospace; font-size: 21px; font-weight: 900; letter-spacing: 2px; margin-top: 10px; }
.empty-box { text-align: center; padding: 40px 16px; color: var(--muted); font-size:14.5px; }

/* ─── تاریخچه ─── */
.job-list { list-style: none; max-height: 60vh; overflow-y: auto; }
.job-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--border); }
.job-item:last-child { border-bottom: 0; }
.job-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.job-title { font-size:15px; font-weight: 800; margin-top: 6px; }
.job-sub { font-size:12.5px; color: var(--muted); margin-top: 2px; }

/* ─── مدیریت ─── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 16px; }
.stat-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--primary-soft); }
.stat-icon.amber { background: rgba(245, 158, 11, 0.12); }
.stat-icon.emerald { background: rgba(16, 185, 129, 0.12); }
.stat-icon.rose { background: rgba(225, 29, 72, 0.1); }
.stat-label { font-size:13px; color: var(--muted); }
.stat-value { font-size:20px; font-weight: 900; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 4px; border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 4px; width: fit-content; max-width: 100%; }
.table-wrap-x { overflow: auto; max-height: 520px; border-radius: var(--radius); }
table.sn-table { width: 100%; border-collapse: collapse; font-size:14px; background: var(--card); }
.sn-table th { position: sticky; top: 0; background: var(--card); text-align: right; padding: 11px 13px; border-bottom: 1px solid var(--border); font-size:13px; color: var(--muted); white-space: nowrap; z-index: 5; }
.sn-table td { padding: 10px 13px; border-bottom: 1px solid var(--border); vertical-align: top; }
.sn-table tr:hover td { background: var(--primary-soft); }
.search-box { position: relative; max-width: 380px; }
.search-box .input { padding-right: 36px; }
.search-box .search-ic { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size:15.5px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; border-radius: 99px; background: var(--border); transition: 0.2s; cursor: pointer; }
.switch .track::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(-20px); }

/* ─── دیالوگ‌ها ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  position: relative; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); padding: 24px;
  animation: modalIn 0.22s ease;
}
.modal.wide { max-width: 560px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; left: 14px; width: 32px; height: 32px;
  border: 0; border-radius: 10px; background: var(--primary-soft); color: var(--muted); font-size:15.5px;
}
.modal-close:hover { color: var(--text); }
.modal-title { font-size:18px; font-weight: 900; margin-bottom: 6px; text-align: center; }
.modal-sub { font-size:14px; color: var(--muted); text-align: center; margin-bottom: 18px; }
.or-divider { position: relative; text-align: center; margin: 14px 0; }
.or-divider::before { content: ""; position: absolute; top: 50%; right: 0; left: 0; border-top: 1px solid var(--border); }
.or-divider span { position: relative; background: var(--card); padding: 0 12px; font-size:13.5px; color: var(--muted); }
.otp-inputs { display: flex; gap: 8px; direction: ltr; justify-content: center; margin: 8px 0; }
.otp-inputs input {
  width: 52px; height: 56px; text-align: center; font-size: 22px; font-weight: 900;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); outline: none;
}
.otp-inputs input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.auth-icon { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 18px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 26px; }

/* تغییر موجودی */
.quick-amts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.quick-amts button { border: 0; background: var(--primary-soft); color: var(--primary); border-radius: 99px; padding: 4px 12px; font-size:12.5px; font-weight: 800; }
.amount-preview { border: 1px solid var(--border); background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size:14.5px; }
.amount-preview .row { display: flex; justify-content: space-between; padding: 3px 0; }
.amount-preview .sep { border-top: 1px solid var(--border); margin: 6px 0; }
.pos { color: #059669; }
.neg { color: var(--rose); }

/* ─── توست‌ها ─── */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 32px)); }
.toast {
  border-radius: 14px; padding: 12px 18px; font-size:14.5px; font-weight: 700; color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); animation: toastIn 0.25s ease;
  display: flex; align-items: center; gap: 8px;
}
.toast.success { background: #059669; }
.toast.error { background: #e11d48; }
.toast.info { background: #334155; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ─── فوتر ─── */
.site-footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--card); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size:15px; }
.footer-logo { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 9px; background: var(--primary-soft); font-size:15.5px; }
.footer-nav { display: flex; gap: 16px; font-size:13.5px; color: var(--muted); }
.footer-nav button { background: none; border: 0; color: inherit; font-size:13.5px; }
.footer-nav button:hover { color: var(--primary); }

/* ─── ریسپانسیو ─── */
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: flex; }
  .modal { padding: 20px 16px; }
  .otp-inputs input { width: 46px; height: 50px; font-size:20px; }
}
@media (max-width: 520px) {
  .hero { padding: 44px 8px 36px; }
  .wallet-chip .lbl-full { display: none; }
}

/* ═══════════════════════════════════════════
   افزودنی‌های نسخه «متن سئو»
   ═══════════════════════════════════════════ */

/* ─── رنگ پلن لیستینگ ─── */
.plan-icon.listing { background: var(--sky); }
.mode-card .mode-icon.listing { background: var(--sky); }

/* ─── ویدیوی صفحه اصلی (iframe embed) ─── */
.video-frame-wrap { max-width: 880px; margin: 0 auto; }
.video-frame {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: 18px; overflow: hidden; background: #000;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ─── کنترل انتخابی (لیستینگ: دستی / خودکار) ─── */
.seg-group {
  display: flex; gap: 0; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: var(--bg); max-width: 440px;
}
.seg-group .seg {
  flex: 1; border: 0; background: none; padding: 10px 12px; cursor: pointer;
  font-family: inherit; font-size:14px; font-weight: 800; color: var(--muted);
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.seg-group .seg + .seg { border-inline-start: 1px solid var(--border); }
.seg-group .seg:hover { color: var(--primary); }
.seg-group .seg.active { background: var(--primary); color: #fff; }
@media (max-width: 520px) {
  .seg-group { flex-direction: column; }
  .seg-group .seg + .seg { border-inline-start: 0; border-top: 1px solid var(--border); }
}

/* ─── ردیف‌های لیست کسب‌وکارها (لیستینگ) ─── */
.list-row .li-name { flex: 1; min-width: 0; }
.list-row .li-note { color: var(--muted); }

/* ─── تنظیمات نمایش پیش‌نمایش (حذف نیم‌فاصله) ─── */
.display-settings {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border: 1px dashed var(--border); background: var(--bg); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 12px;
}
.display-settings .ds-label { font-size:14px; font-weight: 900; color: var(--muted); }
.display-settings .ds-item {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size:14px; font-weight: 700; user-select: none;
}
.display-settings .ds-item:hover { color: var(--primary); }

/* ═══════════════════════════════════════════
   افزودنی‌های نسخه جدید: کپچا، تیکت، پشتیبانی شناور
   ═══════════════════════════════════════════ */

/* ─── کپچای امنیتی ─── */
.captcha-box {
  border: 1px dashed var(--amber);
  background: rgba(245, 158, 11, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
}
.captcha-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.captcha-badge { font-size: 12px; font-weight: 900; color: var(--amber); }
.captcha-q { font-size: 17px; font-weight: 900; letter-spacing: 2px; }

/* ─── دکمه تیکت کنار تنظیمات نمایش ─── */
.ds-ticket-btn {
  border: 1px solid var(--sky);
  color: var(--sky);
  background: none;
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
  margin-inline-start: auto;
}
.ds-ticket-btn:hover { background: rgba(2, 132, 199, 0.1); transform: translateY(-1px); }

/* ─── تیکت‌ها ─── */
.tk-thread {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px;
}
.tk-msg { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: var(--bg); }
.tk-msg.tk-admin { border-color: rgba(5, 150, 105, 0.35); background: var(--primary-soft); }
.tk-msg-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; font-size: 12px; }
.tk-msg-head b { font-size: 12.5px; }
.tk-msg-text { font-size: 13.5px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }

/* ─── پشتیبانی شناور ─── */
.support-fab { position: fixed; bottom: 18px; left: 18px; z-index: 90; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.support-btn-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.support-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(5, 150, 105, 0.4);
  transition: transform 0.18s, box-shadow 0.18s;
}
.support-btn:hover { transform: scale(1.07); box-shadow: 0 14px 32px rgba(5, 150, 105, 0.5); }
.support-caption {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 10px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.support-pop {
  position: absolute;
  bottom: 76px;
  left: 0;
  width: 300px;
  max-width: calc(100vw - 28px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  animation: sn-pop 0.18s ease-out;
}
@keyframes sn-pop { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
.support-head { font-size: 14.5px; font-weight: 900; margin-bottom: 8px; }
.support-note { font-size: 12px; line-height: 1.9; color: var(--text); margin-bottom: 10px; }
.support-note.muted { color: var(--muted); font-size: 11px; margin: -4px 0 10px; }
.support-links { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.support-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s;
}
.support-links a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.support-links a b { font-weight: 800; font-size: 12px; }
.support-ticket-btn {
  width: 100%;
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}
.support-ticket-btn:hover { background: var(--primary-dark); }
@media (max-width: 640px) {
  .support-fab { bottom: 14px; left: 12px; }
  .support-btn { width: 50px; height: 50px; font-size: 23px; }
  .support-pop { bottom: 72px; }
}

/* ══════════════ سایت وردپرسی (افزونهٔ کانکتور) ══════════════ */

/* کلید اتصال */
.key-box {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 10px;
}
.key-box code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  word-break: break-all;
  direction: ltr;
}

/* چک‌باکس لینک‌سازی داخلی در فرم سفارش */
.sn-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.9;
}
.sn-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* کارت‌های سرویس */
.site-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.site-service-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-service-card h3 { font-size: 14.5px; font-weight: 900; margin: 0; }
.service-price { font-weight: 900; font-size: 15px; margin: 2px 0; }

/* فهرست محتوای سایت */
.content-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  scrollbar-width: thin;
}
.content-list::-webkit-scrollbar { width: 6px; }
.content-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.content-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.content-row:last-child { border-bottom: 0; }
.content-row:hover { background: rgba(125, 125, 125, 0.05); }

/* صفحه‌بندی */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

/* جدول لینک‌مپ */
.sn-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.sn-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sn-table th {
  text-align: right;
  padding: 10px 12px;
  background: var(--bg);
  font-weight: 900;
  font-size: 12.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.sn-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.sn-table tr:last-child td { border-bottom: 0; }
.sn-table a { color: var(--primary); font-weight: 700; }

/* ردیف‌های تقویم محتوایی */
.cal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
}
.cal-day {
  flex-shrink: 0;
  background: rgba(56, 189, 248, 0.14);
  color: var(--sky);
  font-weight: 900;
  font-size: 12px;
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .content-row { flex-wrap: wrap; }
  .cal-row { flex-wrap: wrap; }
  .site-services { grid-template-columns: 1fr; }
}
