/* ===== Fonts ===== */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== Theme Variables ===== */
:root,
[data-theme="light"] {
  --bg: #f7f6f3;
  --bg-soft: #efece6;
  --card: #ffffff;
  --card-soft: #faf9f7;
  --text: #1c1917;
  --muted: #6f6a63;
  --faint: #a29c93;
  --border: #e8e4dc;
  --border-strong: #d8d2c6;
  --primary: #7c3aed;
  --primary-strong: #6d28d9;
  --primary-soft: rgba(124, 58, 237, 0.09);
  --on-primary: #ffffff;
  --pink: #ec4899;
  --success: #059669;
  --warning: #b45309;
  --dot: rgba(28, 25, 23, 0.07);
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 6px 20px rgba(28, 25, 23, 0.05);
  --shadow-lg: 0 14px 40px rgba(28, 25, 23, 0.1);
  --topbar-bg: rgba(247, 246, 243, 0.8);
  --footer-bg: #f2efe9;
  --topbar-h: 64px;
  --font: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  --transition: 0.22s ease;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0e0c13;
  --bg-soft: #171420;
  --card: #16131e;
  --card-soft: #1a1725;
  --text: #f2eff8;
  --muted: #a49db6;
  --faint: #6e6780;
  --border: #272135;
  --border-strong: #393150;
  --primary: #a78bfa;
  --primary-strong: #c4b5fd;
  --primary-soft: rgba(167, 139, 250, 0.13);
  --on-primary: #171126;
  --pink: #f472b6;
  --success: #34d399;
  --warning: #fbbf24;
  --dot: rgba(242, 239, 248, 0.06);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 14px 44px rgba(0, 0, 0, 0.5);
  --topbar-bg: rgba(14, 12, 19, 0.8);
  --footer-bg: #0a080f;
  color-scheme: dark;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--primary); color: var(--on-primary); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Backdrop ===== */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 80%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}
.blob-a {
  width: 480px;
  height: 480px;
  top: -180px;
  inset-inline-start: -120px;
  background: var(--primary);
  opacity: 0.1;
}
.blob-b {
  width: 420px;
  height: 420px;
  bottom: -160px;
  inset-inline-end: -100px;
  background: var(--pink);
  opacity: 0.08;
}

/* ===== Topbar ===== */
.topbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  height: var(--topbar-h);
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition), background-color 0.3s ease;
}
.topbar.scrolled { box-shadow: var(--shadow); }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  flex-shrink: 0;
}
.brand-mark {
  color: var(--primary);
  display: flex;
}
.brand-text { letter-spacing: -0.02em; }

.topnav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topnav-link {
  display: block;
  padding: 7px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.topnav-link:hover,
.topnav-link:focus-visible,
.topnav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--border);
}
.theme-icon { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }
[data-theme="dark"] .theme-icon-sun { display: block; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text);
}
.hamburger {
  position: relative;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background 0.2s;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  right: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.menu-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ===== Shell Layout ===== */
.shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: calc(var(--topbar-h) + 32px);
  padding-bottom: 72px;
}

/* ===== Profile Card ===== */
.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 26px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.avatar-ring {
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, var(--primary), var(--pink), #f59e0b, var(--primary));
  animation: ring-spin 9s linear infinite;
}
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}
.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar svg {
  color: var(--primary);
  animation: ring-spin 9s linear infinite reverse;
}

.profile-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.verified {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-role {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 14px;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 18px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
  50%      { box-shadow: 0 0 0 5px rgba(5, 150, 105, 0); }
}

.profile-bio {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.85;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--border-strong);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 1px;
  padding: 2px 6px;
}
.stat + .stat {
  border-inline-start: 1px solid var(--border);
}
.stat dd {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.stat dt {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--faint);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-bottom: 22px;
}
.tag {
  padding: 4px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color var(--transition), border-color var(--transition);
}
.tag:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.profile-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== بخش‌های کارت پروفایل ===== */
.p-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-strong);
  text-align: right;
}
.p-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--faint);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

/* --- حلقه‌های عملکرد --- */
.skills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.skill-ring {
  position: relative;
  width: 72px;
  height: 72px;
  transition: transform var(--transition);
}
.skill:hover .skill-ring {
  transform: translateY(-3px);
}
.skill-ring svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.gs-a { stop-color: var(--primary); }
.gs-b { stop-color: var(--pink); }
.ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 6.5;
}
.ring-fg {
  fill: none;
  stroke-width: 6.5;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 0.9, 0.3, 1);
}
.ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}
.ring-num i {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--faint);
  margin-top: 4px;
}
.skill-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

/* --- نوارهای تخصص فنی --- */
.p-bars .bar-block + .bar-block {
  margin-top: 12px;
}
.bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.bar-head b {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
}
.bar {
  height: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--pink));
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.25, 0.9, 0.3, 1);
}
.p-bars.in .bar i {
  width: var(--w);
}

/* --- وضعیت سرویس‌ها --- */
.svc-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.svc-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  font-size: 0.78rem;
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  transition: border-color var(--transition), transform var(--transition);
}
.svc-list li:hover {
  border-color: var(--primary);
  transform: translateX(-2px);
}
.svc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.svc-dot.ok {
  background: var(--success);
  animation: blink 2.2s ease-in-out infinite;
}
.svc-dot.dev {
  background: #f59e0b;
}
.svc-name {
  font-weight: 500;
  color: var(--text);
}
.svc-badge {
  margin-inline-start: auto;
  padding: 2px 9px;
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 99px;
  flex-shrink: 0;
}
.svc-badge.ok {
  color: var(--success);
  background: rgba(5, 150, 105, 0.1);
}
.svc-badge.dev {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.12);
}

/* --- نشان‌ها --- */
.badges-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}
.pbadge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}
.pbadge svg {
  color: var(--primary);
  flex-shrink: 0;
}
.pbadge:hover {
  color: var(--text);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* --- آخرین فعالیت‌ها --- */
.act-list {
  display: flex;
  flex-direction: column;
}
.act-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
}
.act-list li + li {
  border-top: 1px solid var(--border);
}
.act-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
  margin-top: 7px;
}
.act-dot.live {
  background: var(--success);
  animation: blink 2.2s ease-in-out infinite;
}
.act-list span {
  flex: 1;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}
.act-list time {
  font-size: 0.62rem;
  color: var(--faint);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- اطلاعات تکمیلی --- */
.p-info {
  padding-top: 6px;
  border-top: none;
}
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  padding: 9px 2px;
}
.info-row + .info-row {
  border-top: 1px dashed var(--border);
}
.info-row span {
  color: var(--muted);
}
.info-row b {
  font-weight: 700;
  color: var(--text);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 12px;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-solid {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 6px 18px -6px var(--primary);
}
.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--primary-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -6px var(--primary);
}
.btn-line {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-line:hover,
.btn-line:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px);
}

/* ===== Page Blocks ===== */
.block {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.block-head { margin-bottom: 28px; }
.block-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.block-kicker::after {
  content: '';
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  opacity: 0.45;
}
.block-title {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.block-desc {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ===== Steps (تایم‌لاین خدمات) ===== */
.steps { position: relative; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 16px;
}
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  inset-inline-start: 23px;
  top: 54px;
  bottom: 2px;
  width: 2px;
  border-radius: 2px;
  background: var(--border);
}

.step-dot {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1.5px solid var(--border-strong);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 16px;
  position: relative;
  z-index: 1;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.step:hover .step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 6px 16px -6px var(--primary);
}

.step-body {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.step:hover .step-body {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateX(-3px);
}
.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}
.step-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}
.step-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 12px;
}
.step-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ===== Source Grid (منابع داده) ===== */
.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.source-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 118px;
  padding: 16px 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.source-tile:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.tile-well {
  width: 110px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
}
.tile-well img {
  max-width: 104px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.1);
  opacity: 0.9;
  transition: filter var(--transition), opacity var(--transition), transform var(--transition);
}
.source-tile:hover .tile-well img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.06);
}
[data-theme="dark"] .tile-well img {
  filter: grayscale(0.1) brightness(1.2);
}
[data-theme="dark"] .source-tile:hover .tile-well img {
  filter: grayscale(0) brightness(1.12);
}
.tile-fallback {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fb, var(--primary));
  border: 1.5px solid currentColor;
  border-radius: 12px;
}
.tile-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--transition);
}
.source-tile:hover .tile-name {
  color: var(--primary);
}

/* ===== Offer (سایت رایگان — ساختار پله‌ای تمام‌عرض) ===== */
.offer {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* --- سربرگ --- */
.offer-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px;
  background: linear-gradient(135deg, var(--primary-soft), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.offer-head::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--pink));
}
.offer-head-text { min-width: 0; }
.offer-flag {
  display: inline-block;
  padding: 4px 13px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 12px;
}
.offer-head-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.5;
  margin-bottom: 6px;
}
.offer-head-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
}
.offer-head-desc b {
  color: var(--text);
}
.price-flag {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 15px 28px;
  background: var(--card);
  border: 1.5px dashed var(--primary);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.price-flag span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.price-flag b {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

/* --- متن‌های دو ستونه --- */
.offer-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.offer-col {
  padding: 28px 34px;
}
.offer-col + .offer-col {
  border-inline-start: 1px solid var(--border);
}
.offer-col-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.offer-col-title::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  flex-shrink: 0;
}
.offer-col p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.95;
}
.offer-col p + p {
  margin-top: 10px;
}

/* --- گرید تحویل‌ها --- */
.quality {
  padding: 26px 34px 30px;
  border-bottom: 1px solid var(--border);
  background: var(--card-soft);
}
.quality-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--faint);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}
.quality-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 15px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.quality-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.quality-card svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.quality-card b {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.4;
}
.quality-card span {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- پایین: تضمین‌ها + مسیر --- */
.offer-foot {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.foot-checks {
  padding: 26px 34px 30px;
}
.foot-path {
  background: var(--card-soft);
  border-inline-start: 1px solid var(--border);
  padding: 26px 30px 30px;
  display: flex;
  flex-direction: column;
}
.foot-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--faint);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.offer-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.offer-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  transition: border-color var(--transition);
}
.offer-list li:hover {
  border-color: var(--primary);
}
.offer-check {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 50%;
  margin-top: 1px;
}
.path {
  counter-reset: path;
  position: relative;
  flex: 1;
}
.path li {
  counter-increment: path;
  position: relative;
  padding: 0 40px 18px 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}
.path li:last-child { padding-bottom: 0; }
.path li::before {
  content: counter(path);
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.path li:not(:last-child)::after {
  content: '';
  position: absolute;
  inset-inline-start: 13px;
  top: 34px;
  bottom: 4px;
  width: 2px;
  background-image: linear-gradient(var(--border-strong) 55%, transparent 55%);
  background-size: 2px 8px;
}
.path-note {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
}

/* ===== FAQ ===== */
.faq {
  margin-top: 22px;
}
.faq-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover {
  border-color: var(--border-strong);
}
.faq-item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item[open] summary {
  color: var(--primary);
}
.faq-item p {
  padding: 0 18px 17px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.95;
}

/* ===== Footer ===== */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2px;
}
.footer-mark { color: var(--primary); display: flex; }
.footer-tag {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.7;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--faint);
  margin-top: 8px;
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-d1 { transition-delay: 0.07s; }
.fade-up-d2 { transition-delay: 0.14s; }
.fade-up-d3 { transition-delay: 0.21s; }

/* ===== Responsive ===== */
@media (max-height: 880px) {
  .profile-card { padding-top: 26px; }
  .avatar-ring {
    width: 84px;
    height: 84px;
    margin-bottom: 12px;
  }
  .profile-bio {
    padding-bottom: 14px;
    margin-bottom: 14px;
  }
  .profile-stats { margin-bottom: 12px; }
  .profile-tags { margin-bottom: 16px; }
  .p-section {
    margin-top: 13px;
    padding-top: 12px;
  }
  .skill-ring {
    width: 56px;
    height: 56px;
  }
  .ring-num { font-size: 0.72rem; }
  .skills-row { gap: 6px; }
  .p-label { margin-bottom: 9px; }
  .bar-block + .bar-block { margin-top: 9px; }
  .svc-list li { padding: 6px 10px; }
  .pbadge { padding: 6px 8px; }
  .act-list li { padding: 6px 0; }
  .info-row { padding: 7px 2px; }
}

@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
    padding-top: calc(var(--topbar-h) + 24px);
  }
  .profile { order: -1; }
  .profile-card {
    max-width: 480px;
    margin: 0 auto;
  }
  .source-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .offer-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .offer-body { grid-template-columns: 1fr; }
  .offer-col + .offer-col {
    border-inline-start: none;
    border-top: 1px solid var(--border);
  }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-foot { grid-template-columns: 1fr; }
  .foot-path {
    border-inline-start: none;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .topnav {
    position: fixed;
    top: var(--topbar-h);
    right: 0; left: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 18px;
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
    box-shadow: var(--shadow-lg);
  }
  .topnav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .topnav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .topnav-link { padding: 12px 14px; font-size: 1rem; }
}

@media (max-width: 600px) {
  .source-grid { grid-template-columns: repeat(2, 1fr); }
  .source-tile { min-height: 108px; }
  .tile-well {
    width: 96px;
    height: 46px;
  }
  .tile-well img {
    max-width: 90px;
    max-height: 40px;
  }
  .offer-head { padding: 24px 22px; }
  .offer-col { padding: 22px; }
  .quality { padding: 22px 22px 24px; }
  .foot-checks { padding: 22px 22px 24px; }
  .foot-path { padding: 22px; }
  .price-flag {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .profile-card { padding: 30px 20px 24px; }
  .avatar-ring { width: 92px; height: 92px; }
  .avatar svg { width: 38px; height: 38px; }
  .profile-cta .btn { width: 100%; }
  .skill-ring {
    width: 62px;
    height: 62px;
  }
  .skills-row { gap: 6px; }
  .badges-row { gap: 6px; }
  .quality-grid { grid-template-columns: 1fr; }
  .offer-list { grid-template-columns: 1fr; }
  .step {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }
  .step-dot {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 0.9rem;
  }
  .step:not(:last-child)::before {
    inset-inline-start: 20px;
    top: 48px;
  }
  .step-body { padding: 15px 16px; }
  .step-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .stat dd { font-size: 1rem; }
  .stat dt { font-size: 0.64rem; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .avatar-ring,
  .avatar,
  .status-dot,
  .svc-dot.ok,
  .act-dot.live { animation: none; }
  .ring-fg,
  .bar i { transition: none; }
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ===== Focus ===== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.btn:focus-visible { outline-offset: 3px; }
.faq-item summary:focus-visible {
  outline-offset: -2px;
}