/* ============================================================
   SMDD - استایل اختصاصی (بدون Tailwind)
   تم دارک / لایت با CSS Variables
   ============================================================ */

/* ---------- توکن‌های طراحی ---------- */
:root {
  /* رنگ اصلی: بنفش-آبی */
  --primary: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-50: #eef2ff;
  --accent: #8b5cf6;
  --accent-600: #7c3aed;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 60%, #a855f7 100%);

  /* سطح‌ها - تم روشن */
  --bg: #f4f5fb;
  --bg-gradient: radial-gradient(1200px 600px at 80% -10%, rgba(99, 102, 241, 0.10), transparent 60%),
                 radial-gradient(900px 500px at 0% 10%, rgba(139, 92, 246, 0.08), transparent 55%);
  --surface: #ffffff;
  --surface-2: #f1f2f8;
  --surface-3: #e9eaf4;
  --border: #e5e7ef;
  --border-strong: #d4d6e3;

  /* متن */
  --text: #1e2438;
  --text-muted: #66708c;
  --text-faint: #98a0b8;

  /* وضعیت‌ها */
  --success: #10b981;
  --success-bg: #d1fae5;
  --success-text: #047857;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --danger-text: #b91c1c;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --warning-text: #b45309;
  --info: #3b82f6;
  --info-bg: #dbeafe;
  --info-text: #1d4ed8;

  /* سایه و گوشه */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow: 0 4px 16px -2px rgba(16, 24, 40, 0.08), 0 2px 6px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 18px 40px -12px rgba(16, 24, 40, 0.18), 0 8px 18px rgba(16, 24, 40, 0.06);

  /* ابعاد */
  --header-h: 68px;
  --bottom-nav-h: 62px;
  --container: 1200px;

  --font: 'Vazirmatn', 'Segoe UI', Tahoma, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- تم دارک ---------- */
[data-theme="dark"] {
  --primary: #818cf8;
  --primary-600: #6366f1;
  --primary-700: #4f46e5;
  --primary-50: #252b4d;
  --accent: #a78bfa;
  --accent-600: #8b5cf6;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 60%, #a855f7 100%);

  --bg: #0d101d;
  --bg-gradient: radial-gradient(1200px 600px at 80% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
                 radial-gradient(900px 500px at 0% 10%, rgba(139, 92, 246, 0.12), transparent 55%);
  --surface: #171b2e;
  --surface-2: #1e2440;
  --surface-3: #2a3050;
  --border: #262c4a;
  --border-strong: #333a5e;

  --text: #e8eaf6;
  --text-muted: #a2aacb;
  --text-faint: #717aa0;

  --success: #34d399;
  --success-bg: #0f3d31;
  --success-text: #6ee7b7;
  --danger: #f87171;
  --danger-bg: #4c1d26;
  --danger-text: #fca5a5;
  --warning: #fbbf24;
  --warning-bg: #44331a;
  --warning-text: #fcd34d;
  --info: #60a5fa;
  --info-bg: #1e3a5f;
  --info-text: #93c5fd;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 18px 40px -12px rgba(0, 0, 0, 0.5), 0 8px 18px rgba(0, 0, 0, 0.3);
}

/* ---------- پایه ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* ---------- جلوگیری از بیرون زدن متن از کادرها ---------- */
html { overflow-x: hidden; }

body {
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* شکستن کلمات بلند و بدون فاصله داخل کادرهای متنی */
p, h1, h2, h3, h4, h5, h6, a, li, td, th, label,
.card, .type-card, .post-card, .work-card, .feature-card,
.check-item, .pay-reason-card, .alert, .badge, .brand-sub,
.footer-about, .footer-contact, .footer-links, .article-content,
.invoice, .member-bio, .summary-table, .stat-card, .member-card,
.mobile-menu-link, .admin-nav-link, .post-title, .post-excerpt,
.type-desc, .check-desc, .work-desc, .result-desc {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* جلوگیری از بیرون زدن ستون‌های گرید و فلکس */
.grid > *, .d-flex > *, .form-grid > * { min-width: 0; }

.table-wrap { max-width: 100%; }

svg { max-width: 100%; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
  min-height: 100vh;
}

a { color: var(--primary-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-700); }

img { max-width: 100%; display: block; }

button { font-family: var(--font); }

::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* اسکرول‌بار */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ---------- کانتینر ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.page { padding-top: calc(var(--header-h) + 24px); padding-bottom: calc(var(--bottom-nav-h) + 32px); }
@media (min-width: 900px) {
  .page { padding-bottom: 64px; }
}

/* ---------- هدر ---------- */
.app-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color .3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
  min-width: 0;
  flex-shrink: 1;
}

.brand > span:last-child {
  min-width: 0;
  overflow: hidden;
}

.brand:hover { color: var(--text); }

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 14px -4px var(--primary-600);
  flex-shrink: 0;
}

.brand-logo svg { width: 20px; height: 20px; }

.brand-sub {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* در موبایل منوی دسکتاپ مخفی و از منوی همبرگری استفاده می‌شود */
@media (max-width: 899px) {
  .nav { display: none; }
  .brand-sub { display: none; }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  transition: all .18s ease;
}

.nav-link svg { width: 17px; height: 17px; }

.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active {
  color: var(--primary-600);
  background: var(--primary-50);
}

.nav-link.cta {
  background: var(--gradient);
  color: #fff;
  padding: 10px 18px;
  box-shadow: 0 8px 18px -6px var(--primary-600);
}

.nav-link.cta:hover { color: #fff; filter: brightness(1.05); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .18s ease;
}

.icon-btn:hover { color: var(--primary-600); border-color: var(--primary); background: var(--primary-50); }
.icon-btn svg { width: 19px; height: 19px; }

/* منوی موبایل */
.mobile-menu-toggle { display: grid; }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  inset-inline: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 99;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.mobile-menu.open { display: block; }

.mobile-menu-nav { padding: 12px; display: flex; flex-direction: column; gap: 4px; }

.mobile-menu-link {
  padding: 13px 16px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-link:hover { background: var(--surface-2); color: var(--primary-600); }

@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none; }
}

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
  line-height: 1.4;
  white-space: nowrap;
}

.btn svg { width: 17px; height: 17px; }

.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 20px -6px var(--primary-600);
}

.btn-primary:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary-600); background: var(--primary-50); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover { filter: brightness(1.06); }

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-soft {
  background: var(--primary-50);
  color: var(--primary-600);
}

.btn-soft:hover { filter: brightness(0.97); }

.btn-block { width: 100%; }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 30px; font-size: 15px; border-radius: 14px; }
.btn-icon { padding: 10px; }
.btn-icon.btn-sm { padding: 7px; }

/* ---------- کارت‌ها ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.card-hover:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-body { padding: 22px; }
.card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title { font-size: 16px; font-weight: 800; margin: 0; }
.card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ---------- فرم‌ها ---------- */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.form-label .req { color: var(--danger); }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control::placeholder { color: var(--text-faint); }

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2366708c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; padding-left: 38px; }

textarea.form-control { min-height: 110px; resize: vertical; }

.form-error { color: var(--danger-text); font-size: 12.5px; margin-top: 5px; }
.form-help { color: var(--text-faint); font-size: 12.5px; margin-top: 5px; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .form-grid.three { grid-template-columns: 1fr 1fr 1fr; } }

/* چک‌باکس و رادیو سفارشی */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all .16s ease;
  background: var(--surface);
  position: relative;
}

.check-item:hover { border-color: var(--primary); }

.check-item.selected {
  border-color: var(--primary);
  background: var(--primary-50);
  box-shadow: 0 0 0 3px var(--primary-50);
}

.check-item input[type="checkbox"],
.check-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: all .15s ease;
  margin-top: 2px;
}

.check-item input[type="radio"] + .check-box { border-radius: 50%; }

.check-item.selected .check-box {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.check-box svg { width: 14px; height: 14px; opacity: 0; transform: scale(.5); transition: all .15s ease; }
.check-item.selected .check-box svg { opacity: 1; transform: scale(1); }

.check-label { font-weight: 700; font-size: 14.5px; color: var(--text); }
.check-desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.check-price { margin-inline-start: auto; font-weight: 800; color: var(--primary-600); font-size: 14px; white-space: nowrap; padding-inline-start: 10px; }

/* ---------- انتخاب‌کارت نوع سایت ---------- */
.type-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all .18s ease;
  background: var(--surface);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.type-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }

.type-card.selected {
  border-color: var(--primary);
  background: var(--primary-50);
  box-shadow: 0 0 0 3px var(--primary-50);
}

.type-card input { position: absolute; opacity: 0; pointer-events: none; }

.type-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--primary-600);
  display: grid;
  place-items: center;
}

.type-card.selected .type-icon { background: var(--gradient); color: #fff; }
.type-icon svg { width: 22px; height: 22px; }

.type-title { font-weight: 800; font-size: 15px; }
.type-desc { font-size: 13px; color: var(--text-muted); flex: 1; }
.type-price { font-weight: 800; color: var(--primary-600); font-size: 15px; }

.badge-type {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------- بج‌ها ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-danger { background: var(--danger-bg); color: var(--danger-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-info { background: var(--info-bg); color: var(--info-text); }
.badge-muted { background: var(--surface-3); color: var(--text-muted); }
.badge-primary { background: var(--primary-50); color: var(--primary-600); }

/* ---------- ویزارد مراحل ---------- */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 30px;
  padding: 8px 4px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 0 8px;
}

.step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  color: var(--text-faint);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  transition: all .2s ease;
  flex-shrink: 0;
}

.step.active .step-dot { border-color: var(--primary); color: var(--primary-600); box-shadow: 0 0 0 4px var(--primary-50); }
.step.done .step-dot { background: var(--gradient); border-color: transparent; color: #fff; }

.step-line {
  width: 44px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 4px;
}

.step-line.done { background: var(--gradient); }

.step-label { font-size: 11.5px; font-weight: 700; color: var(--text-faint); white-space: nowrap; }
.step.active .step-label { color: var(--primary-600); }
.step.done .step-label { color: var(--text-muted); }

@media (max-width: 640px) {
  .step-label { display: none; }
  .step-line { width: 26px; }
  .step-dot { width: 36px; height: 36px; }
}

/* ---------- جدول خلاصه فاکتور ---------- */
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table th, .summary-table td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--border); font-size: 14px; }
.summary-table th { font-weight: 800; color: var(--text-muted); background: var(--surface-2); font-size: 12.5px; }
.summary-table tr:last-child td { border-bottom: none; }
.summary-table .total-row td { font-weight: 800; font-size: 15px; color: var(--primary-600); }

/* ---------- هیرو ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 48px 0 30px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 14px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 16.5px;
  max-width: 640px;
  margin: 0 auto 26px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.section { padding: 34px 0; }

.section-head { text-align: center; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; margin: 0 0 8px; }
.section-head p { color: var(--text-muted); margin: 0 auto; max-width: 560px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- ویژگی‌ها ---------- */
.feature-card { padding: 22px; }
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--primary-50);
  color: var(--primary-600);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 13.5px; }

/* ---------- آمار ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat-card { padding: 18px; text-align: center; }
.stat-value { font-size: 26px; font-weight: 900; color: var(--primary-600); }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* ---------- هشدارها ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 13px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.alert-success { background: var(--success-bg); color: var(--success-text); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.alert-danger { background: var(--danger-bg); color: var(--danger-text); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.alert-info { background: var(--info-bg); color: var(--info-text); border-color: color-mix(in srgb, var(--info) 30%, transparent); }

/* ---------- صفحات عمومی ---------- */
.page-head { text-align: center; padding: 26px 0 8px; }
.page-head h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; margin: 0 0 8px; }
.page-head p { color: var(--text-muted); margin: 0; }

/* مقالات و نمونه‌کار */
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-cover { aspect-ratio: 16/10; background: var(--surface-3); display: grid; place-items: center; color: var(--text-faint); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover svg { width: 40px; height: 40px; }
.post-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-cat { font-size: 12px; font-weight: 800; color: var(--primary-600); }
.post-title { font-size: 16.5px; font-weight: 800; margin: 0; line-height: 1.5; }
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--primary-600); }
.post-excerpt { color: var(--text-muted); font-size: 13.5px; flex: 1; margin: 0; }
.post-meta { display: flex; gap: 14px; color: var(--text-faint); font-size: 12.5px; align-items: center; }
.post-meta svg { width: 14px; height: 14px; }
.post-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* مقاله تکی */
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; max-height: 420px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-content { font-size: 15.5px; line-height: 2.1; }
.article-content h2, .article-content h3 { margin: 26px 0 10px; }
.article-content p { margin: 0 0 14px; }

/* اعضا */
.member-card { text-align: center; padding: 24px 18px; }
.member-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 10px 22px -8px var(--primary-600);
  overflow: hidden;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-weight: 800; font-size: 16px; }
.member-role { color: var(--primary-600); font-size: 13px; font-weight: 700; margin-top: 3px; }
.member-bio { color: var(--text-muted); font-size: 13px; margin-top: 10px; }

/* نمونه‌کار */
.work-card { overflow: hidden; display: flex; flex-direction: column; }
.work-cover { aspect-ratio: 16/11; background: var(--surface-3); overflow: hidden; position: relative; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-card:hover .work-cover img { transform: scale(1.05); }
.work-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.work-title { font-weight: 800; font-size: 15.5px; }
.work-desc { color: var(--text-muted); font-size: 13px; flex: 1; }

/* ---------- فرم پرداخت ---------- */
.pay-reason-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all .16s ease;
  position: relative;
  background: var(--surface);
}

.pay-reason-card:hover { border-color: var(--primary); }
.pay-reason-card.selected { border-color: var(--primary); background: var(--primary-50); }

.pay-reason-card input { position: absolute; opacity: 0; pointer-events: none; }

.pay-reason-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--primary-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pay-reason-icon svg { width: 19px; height: 19px; }
.pay-reason-title { font-weight: 700; font-size: 14.5px; }
.pay-reason-amount { color: var(--text-muted); font-size: 13px; }

/* ---------- فاکتور ---------- */
.invoice {
  max-width: 780px;
  margin: 0 auto;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.invoice-logo { display: flex; align-items: center; gap: 10px; }
.invoice-logo .brand-logo { width: 44px; height: 44px; }
.invoice-meta { color: var(--text-muted); font-size: 13px; }

/* ---------- ناوبری پایین موبایل ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--bottom-nav-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-faint);
  font-size: 10.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 12px;
  transition: all .18s ease;
  min-width: 58px;
}

.bottom-nav svg { width: 21px; height: 21px; transition: transform .18s ease; }

.bottom-nav a.active { color: var(--primary-600); }
.bottom-nav a.active svg { transform: translateY(-1px) scale(1.08); }
.bottom-nav a.active span { color: var(--primary-600); }

@media (min-width: 900px) { .bottom-nav { display: none; } }

/* ---------- فوتر ---------- */
.footer {
  display: none;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-top: 1px solid var(--border);
  padding: 46px 0 24px;
  margin-top: 30px;
}

@media (min-width: 900px) { .footer { display: block; } }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }

.footer h4 { font-size: 14.5px; font-weight: 800; margin: 0 0 14px; }

.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: var(--text-muted); font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; }
.footer-links a:hover { color: var(--primary-600); }
.footer-links a svg { width: 15px; height: 15px; }

.footer-about { color: var(--text-muted); font-size: 13.5px; line-height: 1.9; }

.footer-contact { display: flex; flex-direction: column; gap: 10px; color: var(--text-muted); font-size: 13.5px; }
.footer-contact div { display: flex; align-items: center; gap: 9px; }
.footer-contact svg { width: 16px; height: 16px; color: var(--primary-600); flex-shrink: 0; }

.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: all .18s ease;
}
.footer-social a:hover { background: var(--gradient); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 30px;
  padding-top: 18px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}

/* ---------- پنل مدیریت ---------- */
.admin-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--surface);
  border-inline-end: 1px solid var(--border);
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar .brand { padding: 6px 8px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: all .15s ease;
}

.admin-nav-link svg { width: 18px; height: 18px; }

.admin-nav-link:hover { background: var(--surface-2); color: var(--text); }
.admin-nav-link.active { background: var(--primary-50); color: var(--primary-600); }

.admin-nav-group { margin-top: 14px; padding-inline-start: 12px; font-size: 11.5px; font-weight: 800; color: var(--text-faint); text-transform: uppercase; letter-spacing: .5px; }

.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-inline: 24px;
}

.admin-content { padding: 26px 24px 60px; }

@media (max-width: 900px) {
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed;
    inset-inline-start: 0;
    top: var(--header-h);
    bottom: 0;
    width: 260px;
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 90;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { padding: 20px 14px 80px; }
}

/* جداول ادمین */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th, .table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--border); font-size: 13.5px; white-space: nowrap; }
.table th { background: var(--surface-2); font-weight: 800; font-size: 12.5px; color: var(--text-muted); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: var(--surface-2); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }

/* کارت آمار داشبورد */
.dash-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
@media (min-width: 640px) { .dash-stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .dash-stats { grid-template-columns: repeat(4, 1fr); } }

.dash-stat { padding: 18px; display: flex; align-items: center; gap: 14px; }
.dash-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--primary-50);
  color: var(--primary-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dash-stat-icon svg { width: 21px; height: 21px; }
.dash-stat-value { font-size: 21px; font-weight: 900; line-height: 1.2; }
.dash-stat-label { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }

/* ---------- صفحه ورود ادمین ---------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background-image: var(--bg-gradient);
  background-color: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 410px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 26px; text-align: center; }
.auth-logo .brand-logo { width: 54px; height: 54px; border-radius: 16px; }
.auth-logo h1 { font-size: 20px; margin: 0; }
.auth-logo p { color: var(--text-muted); font-size: 13.5px; margin: 0; }

/* ---------- صفحه نتیجه پرداخت ---------- */
.result-card { text-align: center; padding: 40px 26px; max-width: 460px; margin: 20px auto; }
.result-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: #fff;
}
.result-icon svg { width: 40px; height: 40px; }
.result-icon.success { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 14px 30px -8px rgba(16,185,129,.5); }
.result-icon.fail { background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 14px 30px -8px rgba(239,68,68,.5); }
.result-title { font-size: 22px; font-weight: 900; margin: 0 0 8px; }
.result-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; }

/* ---------- pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 700;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary-600); }
.pagination .active span, .pagination span[aria-current="page"] { background: var(--gradient); color: #fff; border-color: transparent; }
.pagination .disabled span { opacity: .5; }

/* ---------- حالت‌های کمکی ---------- */
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-600); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 26px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 26px; }
.gap-1 { gap: 6px; } .gap-2 { gap: 12px; } .gap-3 { gap: 18px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; min-width: 0; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.text-end { text-align: end; }
.nowrap { white-space: nowrap; }

/* ---------- اسکلت لودینگ ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- انیمیشن ورود ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp .45s ease both; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
