/* ══════════════════════════════════════════════════════════════════
   company.css — طراحی اصلی سایت «رویشا / RAVISHA»
   پالت: جنگلی تیره + لیمویی، تایپوگرافی درشت سرمقاله‌ای
   ══════════════════════════════════════════════════════════════════ */

:root {
  /* رنگ */
  --ink: #080f0c;
  --ink-2: #0e1914;
  --ink-3: #14231b;
  --forest: #0c2318;
  --cream: #f1efe4;
  --cream-2: #e6e3d4;
  --lime: #c0f15c;
  --lime-deep: #9dc93f;
  --olive: #5c7a20;
  --text: #eef3ee;
  --muted: #9fb0a6;
  --muted-dark: #5b665e;

  /* خطوط و افکت */
  --line: rgba(238, 243, 238, 0.12);
  --line-soft: rgba(238, 243, 238, 0.07);
  --line-dark: rgba(8, 15, 12, 0.13);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.55);
  --shadow-lift: 0 30px 70px -30px rgba(8, 16, 12, 0.55);

  /* ریتم */
  --pad: clamp(20px, 5vw, 60px);
  --gutter: max(var(--pad), calc((100% - 1400px) / 2));
  --block: clamp(64px, 8vw, 116px);
  --radius: 18px;
  --radius-lg: 26px;
  --header-h: 48px;   /* ارتفاع نوار هدر — سبک اپل */
}

body {
  background: var(--ink);
  color: var(--text);
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
}

/* ── تایپوگرافی ── */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 4.2rem); line-height: 1.26; }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.85rem); }
h3 { font-size: clamp(1rem, 1.3vw, 1.15rem); font-weight: 700; line-height: 1.6; }

h1 em, h2 em {
  font-style: normal;
  color: var(--lime);
  position: relative;
}
p { font-size: clamp(0.94rem, 1.05vw, 1.02rem); line-height: 2.05; color: var(--muted); }

/* ── شبکه/فاصله‌ی افقی سراسری ── */
.header,
.section,
.dynamic-section,
.benefits-section,
.agriculture,
.contact,
footer {
  padding-inline: var(--gutter);
}

/* لینک ثبت‌نام داخل منوی موبایل (با JS اضافه می‌شود) */
.nav-mobile-only { display: none !important; }
@media (max-width: 900px) {
  .nav-mobile-only { display: block !important; }
}

/* ══════════════ هدر ══════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 12px;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.logo > span.logo-badge {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  line-height: 1;
}
.logo-badge svg { display: block; }
.logo strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
}
.logo small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-inline-start: auto;
  min-width: 0;
}
.header nav a {
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.86rem;
  color: rgba(238, 243, 238, 0.72);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.header nav a:hover { color: var(--lime); background: rgba(192, 241, 92, 0.08); }

.register-link {
  flex: none;
  font-size: 0.86rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.register-link:hover { color: var(--lime); }

.header-button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.25s, background 0.2s;
  box-shadow: 0 10px 24px -12px rgba(192, 241, 92, 0.8);
}
.header-button:hover { transform: translateY(-2px); background: #cdf76f; }
.header-button span { transition: transform 0.2s; }
.header-button:hover span { transform: translate(2px, -2px); }

.menu { display: none; }

/* ══════════════ دکمه‌ها ══════════════ */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.93rem;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.25s, background 0.2s, color 0.2s;
  cursor: pointer;
}
.button span { transition: transform 0.22s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(192, 241, 92, 0.9); }
.button:hover span { transform: translateX(-4px); }
.button.primary { background: var(--lime); color: var(--ink); }
.button.light { background: var(--lime); color: var(--ink); }

.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 6px;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid rgba(238, 243, 238, 0.28);
  transition: color 0.2s, border-color 0.2s;
}
.hero-secondary span { transition: transform 0.22s; }
.hero-secondary:hover { color: var(--lime); border-color: var(--lime); }
.hero-secondary:hover span { transform: translateX(-4px); }

/* ══════════════ هیرو ══════════════ */
.home-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(92svh, 880px);
  overflow: hidden;
  isolation: isolate;
}
/* پوشش عکس هیرو بدون ساخت جعبه‌ی اضافه در گرید (v12) */
.home-hero-media { display: contents; }

.home-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  z-index: -2;
}
.home-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to left, rgba(6, 12, 9, 0.94) 0%, rgba(6, 12, 9, 0.82) 34%, rgba(6, 12, 9, 0.42) 62%, rgba(6, 12, 9, 0.55) 100%),
    linear-gradient(to top, rgba(6, 12, 9, 0.9), transparent 45%);
}
.home-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-inline: var(--gutter);
  padding-block: clamp(56px, 9vw, 100px) clamp(84px, 12vw, 140px);
  max-width: 1400px;
  margin-inline: auto;
}

.hero-brand {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.14em;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(238, 243, 238, 0.5);
  margin-bottom: clamp(16px, 2vw, 26px);
  user-select: none;
}
.hero-brand-dot {
  -webkit-text-stroke: 0;
  color: var(--lime);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--lime);
  margin-bottom: 16px;
}
.hero-kicker::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--lime);
  opacity: 0.7;
}

.home-hero h1 {
  max-width: 17ch;
  margin-bottom: 22px;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.home-hero-content > p {
  max-width: 52ch;
  color: rgba(238, 243, 238, 0.78);
  margin-bottom: 32px;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.hero-caption {
  position: absolute;
  z-index: 2;
  inset-inline-start: var(--gutter);
  bottom: clamp(16px, 2.5vw, 30px);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: rgba(238, 243, 238, 0.55);
}
.hero-scroll {
  position: absolute;
  z-index: 2;
  inset-inline-end: var(--gutter);
  bottom: clamp(16px, 2.5vw, 30px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  color: rgba(238, 243, 238, 0.5);
}
.hero-scroll i {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--lime), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
}
.hero-orbit-one {
  width: min(56vw, 640px);
  aspect-ratio: 1;
  inset-inline-start: -14vw;
  top: -18vw;
  border: 1px solid rgba(192, 241, 92, 0.16);
  animation: orbitSpin 60s linear infinite;
}
.hero-orbit-two {
  width: min(38vw, 420px);
  aspect-ratio: 1;
  inset-inline-start: 4vw;
  bottom: -14vw;
  border: 1px dashed rgba(192, 241, 92, 0.2);
  animation: orbitSpin 44s linear infinite reverse;
}
.hero-orbit-one::after,
.hero-orbit-two::after {
  content: '';
  position: absolute;
  top: 50%;
  inset-inline-start: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 16px 3px rgba(192, 241, 92, 0.55);
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* ══════════════ تیتر بخش‌ها ══════════════ */
.section,
.dynamic-section {
  padding-block: var(--block);
  position: relative;
}
.dynamic-section { background: var(--ink-2); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--lime);
  margin-bottom: 14px;
}
.section-label::after {
  content: '';
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.section > h2,
.dynamic-section > h2 { margin-bottom: 14px; }
.news-intro { color: var(--muted); max-width: 58ch; }

.section-top {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.section-top > p { max-width: 44ch; margin: 0; }

/* ══════════════ کارت‌های پویا (محصولات/اخبار) ══════════════ */
.dynamic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(24px, 3vw, 38px);
}
.dynamic-grid > p {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.dynamic-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-3);
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.3s, background 0.25s;
  overflow: hidden;
}
.dynamic-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(192, 241, 92, 0.35);
  box-shadow: var(--shadow-lift);
}
.card-media {
  position: relative;
  overflow: hidden;
  height: 118px;
  margin: -24px -24px 6px;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  color: var(--lime);
  background:
    radial-gradient(circle at 30% 20%, rgba(192, 241, 92, 0.16), transparent 60%),
    linear-gradient(140deg, rgba(192, 241, 92, 0.09), rgba(192, 241, 92, 0.02));
  border-bottom: 1px solid var(--line-soft);
}
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media svg { width: 34px; height: 34px; stroke-width: 1.5; }
.card-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--lime);
  background: rgba(192, 241, 92, 0.1);
  border: 1px solid rgba(192, 241, 92, 0.22);
}
.dynamic-grid article h3 { margin: 0; }
.dynamic-grid article p { font-size: 0.88rem; margin: 0; line-height: 1.95; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--muted);
}
.card-foot strong { color: var(--text); font-size: 0.92rem; }
.card-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--lime);
  transition: gap 0.2s;
}
.card-foot a:hover { gap: 10px; }

/* ══════════════ مزایا (بخش روشن) ══════════════ */
.benefits-section {
  padding-block: var(--block);
  background: var(--cream);
  color: var(--ink);
  background-image: radial-gradient(circle at 100% 0%, rgba(92, 122, 32, 0.08), transparent 45%);
}
.benefits-section h2 { color: var(--ink); }
.benefits-section h2 em { color: var(--olive); }
.benefits-section .section-label { color: var(--olive); }
.benefits-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
}
.benefits-intro > p { color: var(--muted-dark); max-width: 36ch; margin-top: 4px; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.benefits-grid article {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line-dark);
  box-shadow: 0 1px 2px rgba(8, 15, 12, 0.04);
  transition: transform 0.25s, box-shadow 0.3s, border-color 0.25s;
}
.benefits-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(92, 122, 32, 0.45);
  box-shadow: 0 26px 50px -30px rgba(8, 15, 12, 0.4);
}
.benefits-grid article > span:first-child {
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(92, 122, 32, 0.65);
}
.benefit-symbol {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 1.25rem;
  color: var(--olive);
  background: rgba(92, 122, 32, 0.1);
  margin-bottom: 14px;
}
.benefits-grid h3 { color: var(--ink); margin-bottom: 6px; }
.benefits-grid p { color: var(--muted-dark); font-size: 0.88rem; margin: 0; line-height: 1.95; }

/* ══════════════ کشاورزی هوشمند ══════════════ */
.agriculture {
  padding-block: var(--block);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background:
    radial-gradient(circle at 78% 12%, rgba(192, 241, 92, 0.09), transparent 42%),
    linear-gradient(160deg, var(--forest), #08150f 85%);
  border-block: 1px solid var(--line-soft);
}
.agri-content h2 { margin-bottom: 14px; }
.agri-content > p { max-width: 46ch; }

.agri-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.agri-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(192, 241, 92, 0.22);
}
.circle-a { inset: 4%; animation: orbitSpin 70s linear infinite; }
.circle-b { inset: 19%; border-style: solid; border-color: rgba(192, 241, 92, 0.16); background: radial-gradient(circle, rgba(192, 241, 92, 0.07), transparent 68%); }
.agri-ground {
  position: absolute;
  inset-inline: 6%;
  bottom: 10%;
  height: 34%;
  border-radius: 50% 50% 42% 42% / 68% 68% 32% 32%;
  background: linear-gradient(to top, rgba(192, 241, 92, 0.16), rgba(192, 241, 92, 0.02));
  border-bottom: 1px solid rgba(192, 241, 92, 0.25);
  filter: blur(0.3px);
}
.agri-plant {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(3.6rem, 9vw, 6.6rem);
  line-height: 1;
  color: var(--lime);
  text-shadow: 0 20px 50px rgba(192, 241, 92, 0.45);
  animation: plantFloat 7s ease-in-out infinite;
}
@keyframes plantFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.agri-label {
  position: absolute;
  inset-inline-start: auto;
  inset-inline-end: 2%;
  bottom: 3%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(8, 20, 15, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.agri-label > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(192, 241, 92, 0.14);
  color: var(--lime);
  font-size: 0.85rem;
}
.agri-label small { display: block; font-size: 0.7rem; color: var(--muted); line-height: 1.5; }
.agri-label strong { display: block; font-size: 0.85rem; font-weight: 700; line-height: 1.5; }
.agri-caption {
  position: absolute;
  top: 0;
  inset-inline-end: 2%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: rgba(238, 243, 238, 0.45);
}
.agri-caption span { color: var(--lime); letter-spacing: 0; }
.agri-caption .agri-spark { display: inline-grid; place-items: center; vertical-align: -3px; color: var(--lime); }
.agri-caption .agri-spark svg { display: block; }

.features {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}
.features > div {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.features > div > span {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--lime);
  background: rgba(192, 241, 92, 0.09);
  border: 1px solid rgba(192, 241, 92, 0.2);
  font-size: 0.95rem;
}
.features h3 { margin-bottom: 3px; }
.features p { margin: 0; font-size: 0.87rem; line-height: 1.9; }

.demo-note {
  display: block;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.85;
}

/* ══════════════ خدمات (روشن) ══════════════ */
.services {
  background: var(--cream);
  color: var(--ink);
}
.services h2 { color: var(--ink); }
.services h2 em { color: var(--olive); }
.services .section-label { color: var(--olive); }
.services .section-top > p { color: var(--muted-dark); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line-dark);
  transition: transform 0.25s, box-shadow 0.3s, border-color 0.25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 60px -34px rgba(8, 15, 12, 0.45);
  border-color: rgba(92, 122, 32, 0.4);
}
.service-card.featured {
  background: var(--ink);
  border-color: transparent;
  color: var(--text);
  box-shadow: 0 30px 60px -34px rgba(8, 15, 12, 0.6);
}
.service-card.featured h3 { color: var(--text); }
.service-card.featured p { color: rgba(238, 243, 238, 0.72); }
.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 1.2rem;
  color: var(--olive);
  background: rgba(92, 122, 32, 0.1);
}
.service-card.featured .service-icon {
  color: var(--lime);
  background: rgba(192, 241, 92, 0.14);
}
.service-top > span:last-child {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: rgba(92, 122, 32, 0.75);
}
.service-card.featured .service-top > span:last-child { color: rgba(238, 243, 238, 0.5); }
.service-card h3 { color: var(--ink); }
.service-card p { color: var(--muted-dark); font-size: 0.89rem; margin: 0 0 6px; }
.service-card a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--olive);
  padding-top: 10px;
  transition: gap 0.22s, color 0.2s;
}
.service-card a:hover { gap: 13px; }
.service-card.featured a { color: var(--lime); }

/* ══════════════ مسیر همکاری (تیره) ══════════════ */
.process {
  background: var(--ink);
  padding-block: var(--block);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(26px, 3.5vw, 44px);
  border-top: 1px solid var(--line);
}
.process-grid > div {
  position: relative;
  padding: 28px 22px 30px;
  border-inline-end: 1px solid var(--line);
  transition: background 0.25s;
}
.process-grid > div:last-child { border-inline-end: 0; }
.process-grid > div:hover { background: rgba(192, 241, 92, 0.04); }
.process-grid > div > span {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(192, 241, 92, 0.65);
  margin-bottom: 14px;
  transition: color 0.3s;
}
.process-grid > div:hover > span { color: var(--lime); -webkit-text-stroke: 0; }
.process-grid h3 { margin-bottom: 6px; }
.process-grid p { font-size: 0.87rem; margin: 0; }

/* ══════════════ اخبار (روشن) ══════════════ */
.news-section {
  background: var(--cream);
  color: var(--ink);
}
.news-section h2 { color: var(--ink); }
.news-section .section-label { color: var(--olive); }
.news-section .news-intro { color: var(--muted-dark); }
.news-section .dynamic-grid > p { border-color: var(--line-dark); color: var(--muted-dark); }
.news-section .dynamic-grid article {
  background: #fff;
  border-color: var(--line-dark);
  color: var(--ink);
}
.news-section .dynamic-grid article:hover { border-color: rgba(92, 122, 32, 0.45); }
.news-section .dynamic-grid article h3 { color: var(--ink); }
.news-section .dynamic-grid article p { color: var(--muted-dark); }
.news-section .card-tag { color: var(--olive); background: rgba(92, 122, 32, 0.1); border-color: rgba(92, 122, 32, 0.2); }
.news-section .card-media {
  background: linear-gradient(140deg, rgba(92, 122, 32, 0.14), rgba(92, 122, 32, 0.03));
  color: var(--olive);
  border-bottom-color: var(--line-dark);
}
.news-section .card-foot { border-top-color: var(--line-dark); color: var(--muted-dark); }
.news-section .card-foot strong { color: var(--ink); }
.news-section .card-foot a { color: var(--olive); }
#newsUpdated { font-size: 0.76rem; color: var(--muted-dark); margin-top: 24px; }

/* ══════════════ تماس ══════════════ */
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 60px);
  padding-block: clamp(48px, 6vw, 84px);
  background:
    radial-gradient(circle at 12% 20%, rgba(192, 241, 92, 0.13), transparent 45%),
    linear-gradient(120deg, #0b2016, #143120 62%, #1b3d26);
  border-block: 1px solid var(--line-soft);
}
.contact h2 { color: var(--text); margin-bottom: 10px; }
.contact p { color: rgba(238, 243, 238, 0.75); margin: 0; max-width: 46ch; }
.contact .section-label { color: var(--lime); }
.contact > .button { flex: none; }

/* ══════════════ فوتر ══════════════ */
footer {
  background: #050b08;
  padding-block: 44px;
  display: flex;
  align-items: center;
  gap: 18px 34px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
}
footer .logo strong { color: var(--text); }
footer p { margin: 0; font-size: 0.86rem; color: var(--muted); }
footer > span {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.8;
  margin-inline-start: auto;
}
.footer-logo > span { background: rgba(192, 241, 92, 0.14); color: var(--lime); }

/* امضای سازنده در فوتر (v37) — از پنل مدیریت قابل ویرایش است */
footer .footer-credit {
  order: 9;
  flex-basis: 100%;
  margin-inline-start: 0;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.74rem;
  color: var(--muted);
  opacity: 0.75;
  letter-spacing: 0.2px;
}
footer .footer-credit::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 7px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.6;
  vertical-align: middle;
}

.back-to-top {
  position: fixed;
  z-index: 45;
  inset-inline-start: auto;
  inset-inline-end: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  color: var(--lime);
  box-shadow: var(--shadow);
  transition: transform 0.2s, background 0.2s;
}
.back-to-top:hover { transform: translateY(-3px); background: var(--ink-3); }

/* ══════════════════ ریسپانسیو ══════════════════ */

@media (max-width: 1240px) {
  .register-link { display: none; }
  .header nav a { padding: 7px 8px; font-size: 0.83rem; }
}

@media (max-width: 1080px) {
  .header nav a { padding: 7px 8px; font-size: 0.82rem; }
  .benefits-inner { grid-template-columns: 1fr; }
  .benefits-intro > p { max-width: 56ch; }
  .agriculture { grid-template-columns: 1fr; }
  .agri-visual { order: -1; max-width: 440px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dynamic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid > div:nth-child(2) { border-inline-end: 0; }
  .process-grid > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .section-top { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 900px) {
  .header { gap: 10px; }
  .register-link { display: none; }

  .menu {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1;
    order: 3;
  }

  .header nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 18px;
    background: #060c09;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .header nav.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .header nav a {
    padding: 13px 4px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .header nav a:last-child { border-bottom: 0; }

  .header-button { margin-inline-start: auto; order: 2; }
  .logo { order: 1; }

  .home-hero { min-height: min(88svh, 760px); }
  .home-hero-shade {
    background:
      linear-gradient(to top, rgba(6, 12, 9, 0.96) 8%, rgba(6, 12, 9, 0.8) 52%, rgba(6, 12, 9, 0.62) 100%),
      linear-gradient(to left, rgba(6, 12, 9, 0.6), rgba(6, 12, 9, 0.2));
  }
  .hero-caption, .hero-scroll { display: none; }
  .hero-orbit-one { inset-inline-start: -30vw; top: -22vw; }
  .hero-orbit-two { display: none; }
  .contact { flex-direction: column; align-items: flex-start; }
  .contact > .button { align-self: stretch; justify-content: center; }
  footer > span { margin-inline-start: 0; flex-basis: 100%; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .dynamic-grid,
  .service-grid,
  .benefits-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-grid > div { border-inline-end: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
  .process-grid > div:last-child { border-bottom: 0; }
  .process-grid > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

  .home-hero-content { padding-block: 44px 64px; }
  .hero-brand { letter-spacing: 0.1em; }
  .home-hero-actions { gap: 10px 16px; }
  .home-hero-actions .button,
  .home-hero-actions .hero-secondary { width: 100%; justify-content: center; }
  .agri-label { inset-inline-start: 0; bottom: 0; }
  .agri-caption { font-size: 0.62rem; }
  .card-media { height: 96px; }
}

/* ══════════════ گالری عکس‌های سایت (از پنل مدیریت) ══════════════ */
.site-gallery { padding-inline: var(--gutter); padding-block: clamp(18px, 3vw, 30px); }
.site-gallery .gallery-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.site-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.site-gallery img { width: 100%; height: 170px; object-fit: cover; display: block; }
.site-gallery figcaption {
  padding: 9px 12px;
  font-size: 0.78rem;
  color: var(--muted);
}
@media (max-width: 640px) {
  .site-gallery img { height: 130px; }
}

/* ── سبد خرید در هدر سایت (v5) ── */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  transition: 0.18s;
}
.cart-link:hover { border-color: rgba(192, 241, 92, 0.45); color: var(--lime); }
.cart-link svg { flex: none; }
.cart-link.is-pulse { animation: cartPulse 0.7s ease; }
@keyframes cartPulse {
  0% { box-shadow: 0 0 0 0 rgba(192, 241, 92, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(192, 241, 92, 0); }
}
.cart-badge {
  min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  background: var(--lime); color: var(--ink);
  font-size: 0.7rem; font-weight: 800;
}
.cart-badge[hidden] { display: none; }

/* ── دکمه‌ی «نصب اپ» در هدر (PWA) ── */
.install-app {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(192, 241, 92, 0.4);
  border-radius: 999px;
  background: rgba(192, 241, 92, 0.1);
  color: var(--lime);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s;
  white-space: nowrap;
}
.install-app[hidden] { display: none !important; }
.install-app:hover {
  background: rgba(192, 241, 92, 0.18);
  border-color: rgba(192, 241, 92, 0.7);
  transform: translateY(-1px);
}
.install-app svg { flex: none; }
@media (max-width: 760px) {
  .install-app__label { display: none; }
  .install-app { padding: 9px 11px; }
}

/* دکمه‌ی افزودن به سبد روی کارت محصول */
.card-buy { margin-top: 12px; display: flex; }
.card-cart-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(192, 241, 92, 0.4);
  background: rgba(192, 241, 92, 0.1);
  color: var(--lime);
  font-size: 0.78rem; font-weight: 700;
  cursor: pointer;
  transition: 0.18s;
}
.card-cart-btn:hover { background: var(--lime); color: var(--ink); }
.card-cart-btn[disabled] { opacity: 0.6; cursor: default; }

/* پیام شناور سبد */
.cart-toast {
  position: fixed;
  inset-inline: 0;
  bottom: 22px;
  margin-inline: auto;
  width: max-content;
  max-width: min(92vw, 420px);
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: 0.25s;
  z-index: 90;
}
.cart-toast.is-open { opacity: 1; transform: translateY(0); }
.cart-toast.is-error { background: #f26c5c; color: #1a0d0b; }

@media (max-width: 720px) {
  .cart-link__label { display: none; }
}

/* ── خط تماس زنده در سکشن ارتباط (v5) ── */
.contact-live {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px !important;
  font-size: 0.92rem;
  font-weight: 600;
  color: #d8e6c4;
  letter-spacing: 0.01em;
}
.contact-live__sep { opacity: 0.45 }
.contact-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px }
.contact-socials .chip { text-decoration: none }

/* ══════════════════════════════════════════════════════════════
   منوی کشویی سراسری + سبد آیکونی (v5.1)
   ─ روی همه‌ی عرض‌ها منو با دکمه‌ی همبرگری باز می‌شود و به‌شکل
     یک پنل کشویی زیر هدر پایین می‌آید (نه نوار افقی).
   ─ سبد خرید در هدر فقط آیکون است و تعداد روی گوشه‌اش می‌نشیند.
   ══════════════════════════════════════════════════════════════ */

/* دکمه‌ی منو (همیشه دیده می‌شود) */
.header .menu {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  order: 5;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.header .menu svg { display: block; pointer-events: none; }
.header .menu:hover { color: var(--lime); border-color: rgba(192, 241, 92, 0.45); background: rgba(192, 241, 92, 0.07); }
.header .menu[aria-expanded="true"] {
  color: var(--lime);
  border-color: rgba(192, 241, 92, 0.5);
  background: rgba(192, 241, 92, 0.1);
}

/* سبد: فقط آیکون، هم‌اندازه‌ی دکمه‌ی منو */
.header .cart-link {
  margin-inline-start: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  gap: 0;
  justify-content: center;
  border-radius: 12px;
  order: 2;
}
.header .cart-link svg { width: 19px; height: 19px; }
.header .cart-link { flex: none; }
.header .cart-link .cart-badge {
  position: absolute;
  top: -5px;
  inset-inline-end: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 0.66rem;
  line-height: 1;
  border: 2px solid #060c09;
}
/* ترتیب ثابت در هدر (راست→چپ): لوگو · سبد · ثبت‌نام · ورود · منو */
.header .logo { order: 1; }
.header .cart-link { order: 2; }
.header .register-link { order: 3; }
.header .header-button { order: 4; margin-inline-start: 0; }
.header .menu { order: 5; }
.header nav { order: 0; }

/* پنل کشویی منو */
.header nav {
  position: absolute;
  top: calc(100% + 1px);
  inset-inline-end: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 236px;
  max-width: min(320px, calc(100vw - 2 * var(--pad)));
  margin: 0;
  padding: 10px;
  background: #070d0a;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 34px 64px -30px rgba(0, 0, 0, 0.95);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-height: calc(100svh - var(--header-h) - 14px);
  overflow-y: auto;
  z-index: 70;
  scrollbar-width: thin;
}
.header nav.open { opacity: 1; transform: none; pointer-events: auto; }
.header nav a {
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.header nav a:hover { color: var(--lime); background: rgba(192, 241, 92, 0.08); }

@media (max-width: 900px) {
  /* روی موبایل پنل تقریباً تمام‌عرض می‌شود */
  .header nav {
    inset-inline: var(--pad);
    min-width: 0;
    max-width: none;
    max-height: calc(100svh - var(--header-h) - 10px);
  }
  .header nav a {
    padding: 13px 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .header nav a:last-child { border-bottom: 0; }
}

/* هدر در عرض‌های کوچک: جا برای سبد آیکونی و دکمه‌ی منو باز شود */
@media (max-width: 640px) {
  .header .logo small { display: none; }
  .header .logo { gap: 8px; }
  .header .logo > span.logo-badge { width: 34px; height: 34px; border-radius: 10px; }
  .header .header-button { padding: 9px 13px; font-size: 0.79rem; gap: 5px; }
  .header .header-button span { display: none; }
  .header .cart-link,
  .header .menu { width: 36px; height: 36px; border-radius: 11px; }
}

/* ══════════════════════════════════════════════════════════════
   هدر به سبک اپل (v5.2)
   ─ نوار نازک و آرام، لینک‌های ریز و یک‌دست در مرکز، آیکون‌های تک‌رنگ
   ─ پس‌زمینه‌ی نیمه‌شفاف با بلور (backdrop blur) و خط مویی در پایین
   ─ روی موبایل همان منوی کشویی باز می‌شود
   ══════════════════════════════════════════════════════════════ */

.header {
  min-height: 48px;
  padding-block: 0;
  gap: 16px;
  padding-inline: max(var(--pad), calc((100% - 1120px) / 2));
  background: rgba(8, 12, 10, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

/* لوگو: کوچک و تک‌رنگ مثل اپل */
.header .logo { gap: 9px; }
.header .logo > span.logo-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: transparent;
  color: var(--lime);
}
.header .logo > span.logo-badge svg { width: 24px; height: 24px; }
.header .logo strong { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; }
.header .logo small { display: none; }

/* لینک‌های مرکزی: ریز، بدون پیل، با هاور ملایم */
.header nav {
  position: static;
  inset: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 34px);
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
  max-width: none;
  max-height: none;
  overflow: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: auto;
}
.header nav a {
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  transition: color 0.22s ease;
}
.header nav a:hover { color: #ffffff; background: transparent; }

/* اکشن‌های سمت چپ: لینک‌های ساده و آیکون بدون کادر */
.header .register-link {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}
.header .register-link:hover { color: #fff; }

.header .header-button {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 600;
  transform: none;
}
.header .header-button:hover { background: transparent; transform: none; color: #d6ff86; box-shadow: none; }
.header .header-button span { display: none; }

.header .cart-link {
  width: 30px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
}
.header .cart-link:hover { color: #fff; border: 0; }
.header .cart-link svg { width: 17px; height: 17px; }
.header .cart-link .cart-badge {
  top: 3px;
  inset-inline-end: -2px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  font-size: 0.6rem;
  border: 1px solid rgba(8, 12, 10, 0.9);
}

.header .menu {
  width: 30px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
}
.header .menu:hover { background: transparent; border: 0; color: #fff; }
.header .menu[aria-expanded="true"] { background: transparent; border: 0; color: #fff; }

/* ── موبایل/تبلت: همان منوی کشویی اپل‌وار ── */
@media (max-width: 900px) {
  .header { min-height: 48px; padding-inline: var(--pad); gap: 10px; }
  .header .menu { display: grid; place-items: center; }

  .header nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px var(--pad) 22px;
    background: #080c0a;              /* پنل موبایل کامل پوشیده باشد */
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    max-height: calc(100svh - 48px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
  }
  .header nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .header nav a {
    padding: 15px 2px;
    font-size: 1.02rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .header nav a:last-child { border-bottom: 0; }
}

@media (min-width: 901px) {
  .header .menu { display: none; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .header .register-link { display: none; }
  .header nav { gap: 16px; }
  .header nav a { font-size: 0.74rem; }
}

/* ترتیب ستون‌بندی هدر اپل‌وار (راست→چپ): لوگو · لینک‌های مرکزی · ثبت‌نام · ورود · سبد · منو */
.header .logo { order: 1; }
.header nav { order: 2; }
.header .register-link { order: 3; }
.header .header-button { order: 4; }
.header .cart-link { order: 5; }
.header .menu { order: 6; }

/* پرش لنگرها دقیقاً زیر نوار نازک هدر بنشیند */
html { scroll-padding-top: calc(var(--header-h) + 12px); }
.company-page section[id], section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ══════════════════════════════════════════════════════════════
   ریسپانسیو صفحه‌ی اصلی و صفحات عمومی (v5.3)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  /* هیرو: عنوان و متن‌ها با عرض صفحه نفس بکشند */
  .home-hero { padding-inline: var(--pad); }
  .hero-content, .hero-inner { padding-inline: 0 !important; }
  .hero-title, .home-hero h1 { font-size: clamp(1.9rem, 8.6vw, 3.4rem) !important; line-height: 1.25 !important; }
  .home-hero p { font-size: 0.95rem; }
  .hero-actions, .advice__actions { flex-wrap: wrap; gap: 10px; }
  .section-top { gap: 14px; }
  .card, .product-card, .advice, .table-card { border-radius: 16px; }
}
}

/* سبد: تک‌ستونه فقط در عرض‌های کوچک‌تر از ۷۸۰ */
@media (max-width: 780px) {
  .cart-grid { grid-template-columns: 1fr !important; }
  .cart-side { position: static !important; }
}

@media (max-width: 640px) {
  h1, h2 { font-size: clamp(1.45rem, 6.4vw, 2.1rem); }
  .section-label { font-size: 0.72rem; }
  .button, .header-button, .btn-ghost { justify-content: center; }
  .button { padding: 12px 20px; font-size: 0.88rem; }
  .dynamic-grid, .service-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; gap: 14px; text-align: start; }
  footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cart-item__media { width: 46px; height: 46px; }
  .cart-coupon__row { flex-wrap: wrap; }
  .cart-coupon__row input { flex: 1 1 100%; }
  .pay-options { gap: 6px; }
  .pay-option { padding: 7px 10px; font-size: 0.76rem; }
  .back-to-top { width: 38px; height: 38px; }
}

@media (max-width: 400px) {
  :root { --pad: 16px; }
  .header { gap: 8px; }
  .header nav a { font-size: 0.96rem; }
  .contact-live { font-size: 0.86rem; }
}

/* ── ناحیه‌ی لمس راحت‌تر در موبایل (v5.3) ── */
a, button { -webkit-tap-highlight-color: transparent; }

@media (max-width: 900px) {
  .header .logo,
  .header .header-button,
  .header .register-link { padding-block: 9px; }

  /* لینک‌های کوچک داخل کارت‌ها */
  .dynamic-grid a[href],
  .service-grid a[href],
  .product-card a[href],
  .card a[href] {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
  }
}

/* ══════════════════════════════════════════════════════════════
   استخدام — بلوک صفحه‌ی اصلی + صفحه‌ی jobs.php (v6)
   ══════════════════════════════════════════════════════════════ */

.hire-panel {
  margin-top: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(18px, 2.6vw, 30px);
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid rgba(192, 241, 92, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(192, 241, 92, 0.1), transparent 58%),
    rgba(255, 255, 255, 0.022);
}
.hire-panel__intro h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  line-height: 1.5;
  margin: 8px 0 10px;
}
.hire-panel__intro p { font-size: 0.92rem; line-height: 1.95; margin-bottom: 14px; }

.hire-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hire-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.hire-chip small { font-size: 0.68rem; color: var(--muted); }
.hire-chip:hover { border-color: rgba(192, 241, 92, 0.5); color: var(--lime); background: rgba(192, 241, 92, 0.08); }
.hire-chip.is-muted { color: var(--muted); }
.hire-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--lime);
  border-bottom: 1px solid rgba(192, 241, 92, 0.3);
  padding-bottom: 3px;
}
.hire-more:hover { color: #d6ff86; }

.hire-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hire-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hire-form label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.hire-form input,
.hire-form select {
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color 0.2s, background 0.2s;
}
.hire-form input::placeholder { color: rgba(255, 255, 255, 0.3); }
.hire-form input:focus,
.hire-form select:focus {
  outline: none;
  border-color: rgba(192, 241, 92, 0.55);
  background: rgba(192, 241, 92, 0.06);
}
.hire-form select option { background: #0a1310; color: var(--text); }

.hire-form__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.hire-form__note { font-size: 0.74rem; color: var(--muted); flex: 1 1 180px; line-height: 1.7; }
.hire-form__status { margin-top: 10px; font-size: 0.84rem; line-height: 1.9; min-height: 0; }
.hire-form__status.is-ok { color: var(--lime); }
.hire-form__status.is-err { color: #ff9d96; }
.hire-form__status.is-busy { color: var(--muted); }
.hire-status__link { color: var(--lime); text-decoration: underline; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── صفحه‌ی استخدام ── */
.jobs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
  gap: 18px;
  align-items: start;
}
.jobs-title {
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
}
.job-card {
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ink-2);
  transition: border-color 0.2s, transform 0.2s;
}
.job-card:hover { border-color: rgba(192, 241, 92, 0.35); }
.job-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.job-card h3 { font-size: 0.98rem; margin-bottom: 8px; }
.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--muted);
}
.job-card__sum { font-size: 0.85rem; line-height: 1.95; margin-top: 10px; color: var(--muted); }
.job-card__cta { padding: 7px 13px; font-size: 0.76rem; white-space: nowrap; }

.job-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.job-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--muted);
}
.job-steps__n {
  width: 24px; height: 24px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--text);
}
.job-steps--track li.is-done { color: var(--text); }
.job-steps--track li.is-done .job-steps__n {
  background: rgba(192, 241, 92, 0.14);
  border-color: rgba(192, 241, 92, 0.45);
  color: var(--lime);
}

.apply-card { padding: 20px; position: sticky; top: calc(var(--header-h) + 14px); }
.file-input {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.8rem;
  font-family: inherit;
}
.file-input::file-selector-button {
  margin-inline-end: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.85;
  margin: 4px 0 14px;
}
.check-line input { accent-color: var(--lime); margin-top: 3px; }

/* تله‌ی ربات: از دید کاربر پنهان است */
.hp-field {
  position: absolute;
  inset-inline-start: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.track-form { margin-bottom: 6px; }
.track-result {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(192, 241, 92, 0.24);
  border-radius: 16px;
  background: rgba(192, 241, 92, 0.05);
}
.track-result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.track-result__meta { font-size: 0.76rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 900px) {
  .hire-panel { grid-template-columns: 1fr; }
  .jobs-grid { grid-template-columns: 1fr; }
  .apply-card { position: static; }
}
@media (max-width: 560px) {
  .hire-form__grid { grid-template-columns: 1fr; }
  .hire-form .button { width: 100%; justify-content: center; }
  .job-card__cta { width: 100%; text-align: center; justify-content: center; }
}

/* v6.1 — ناحیه‌ی لمس لینک «همه‌ی موقعیت‌ها» */
.hire-more { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 2px; }
@media (max-width: 560px) {
  .hire-more { min-height: 44px; }
}

/* ══════════════════════════════════════════════════════════
   صفحه‌ی اختصاصی محصول (v7)
   ══════════════════════════════════════════════════════════ */
.product-wrap { padding-bottom: 56px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--lime); }
.crumbs__sep { opacity: 0.5; }
.crumbs [aria-current] { color: var(--text); }

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 34px;
}

.product-media { position: relative; }
.product-media__main {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(192, 241, 92, 0.07), rgba(255, 255, 255, 0.02));
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.product-media__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s ease; }
.product-media__ph { color: rgba(192, 241, 92, 0.5); display: grid; place-items: center; }
.product-badge {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  background: rgba(10, 12, 10, 0.72);
  border: 1px solid rgba(192, 241, 92, 0.3);
  color: var(--lime);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.product-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.product-thumb {
  width: 68px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.7rem;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb.is-active { border-color: var(--lime); box-shadow: 0 0 0 1px rgba(192, 241, 92, 0.35); }

.product-title { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; margin-bottom: 6px; }
.product-sub { color: var(--lime); font-size: 0.9rem; margin-bottom: 12px; }
.product-desc { color: var(--muted); font-size: 0.92rem; line-height: 2; margin-bottom: 16px; }

.product-highlights { list-style: none; display: grid; gap: 9px; margin-bottom: 20px; padding: 0; }
.product-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.8;
}
.product-highlights svg { color: var(--lime); flex: none; margin-top: 5px; }

.product-buy {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 16px;
}
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.product-price small { color: var(--muted); font-size: 0.74rem; }
.product-price strong { font-size: 1.25rem; color: var(--lime); }
.product-warranty { font-size: 0.74rem; color: var(--muted); }
.product-cart { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.product-cart .button { flex: 1 1 180px; justify-content: center; }

.pay-plans {
  border: 1px dashed rgba(192, 241, 92, 0.24);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}
.pay-plans__title { font-size: 0.82rem; margin-bottom: 2px; color: var(--text); }
.pay-plan { display: flex; gap: 10px; align-items: flex-start; }
.pay-plan__dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 8px;
  background: #7fd0ff; box-shadow: 0 0 0 4px rgba(127, 208, 255, 0.12);
}
.pay-plan__dot--lime { background: var(--lime); box-shadow: 0 0 0 4px rgba(192, 241, 92, 0.14); }
.pay-plan b { font-size: 0.84rem; display: block; margin-bottom: 2px; }
.pay-plan small { font-size: 0.76rem; color: var(--muted); line-height: 1.9; }
.pay-plans__more { font-size: 0.78rem; color: var(--lime); text-decoration: none; margin-top: 2px; }

.product-section { margin-bottom: 34px; }
.product-section__title {
  font-size: 1.05rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.product-prose p { color: var(--muted); font-size: 0.92rem; line-height: 2.15; margin-bottom: 12px; }
.product-prose p:last-child { margin-bottom: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.02);
}
.feature__num {
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(192, 241, 92, 0.12);
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 700;
}
.feature p { font-size: 0.83rem; line-height: 1.9; color: var(--text); margin: 0; }

.spec-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.spec-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 14px;
  font-size: 0.83rem;
  border-bottom: 1px solid var(--line);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row:nth-child(odd) { background: rgba(255, 255, 255, 0.018); }
.spec-row__label { color: var(--muted); }
.spec-row__value { color: var(--text); line-height: 1.9; }

.info-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.info-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.02);
}
.info-card h3 { font-size: 0.86rem; margin-bottom: 8px; color: var(--lime); }
.info-card p { font-size: 0.83rem; color: var(--text); line-height: 2; margin-bottom: 6px; }
.info-card small { font-size: 0.74rem; color: var(--muted); }

.faq-list { display: grid; gap: 8px; }
.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0 14px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 0;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--lime);
  font-size: 1.05rem;
  flex: none;
  transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { font-size: 0.83rem; color: var(--muted); line-height: 2.05; padding-bottom: 13px; margin: 0; }

.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.rel-card {
  display: flex;
  gap: 11px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.rel-card:hover { border-color: rgba(192, 241, 92, 0.4); transform: translateY(-2px); }
.rel-card img, .rel-card__ph {
  width: 58px; height: 46px; border-radius: 8px; flex: none;
  object-fit: cover;
  display: grid; place-items: center;
  background: rgba(192, 241, 92, 0.08);
  color: var(--lime);
  font-size: 1.1rem;
}
.rel-card b { display: block; font-size: 0.83rem; margin-bottom: 3px; }
.rel-card small { font-size: 0.74rem; color: var(--muted); }

.product-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(192, 241, 92, 0.25);
  border-radius: 18px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(192, 241, 92, 0.08), rgba(255, 255, 255, 0.02));
}
.product-cta h2 { font-size: 1rem; margin-bottom: 6px; }
.product-cta p { font-size: 0.83rem; color: var(--muted); line-height: 1.9; }

@media (max-width: 900px) {
  .product-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .product-media__main { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 10px 12px; }
  .product-cart .button { flex: 1 1 100%; }
  .product-cta { padding: 16px; }
  .product-cta .button { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════
   طرح پرداخت در تسویه (v7)
   ══════════════════════════════════════════════════════════ */
.plan-options { display: grid; gap: 8px; margin-top: 4px; }
.plan-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.plan-option input { margin-top: 4px; accent-color: var(--lime); flex: none; }
.plan-option > span { flex: 1 1 auto; min-width: 0; }
.plan-option b { display: block; font-size: 0.85rem; margin-bottom: 3px; }
.plan-option small { font-size: 0.76rem; color: var(--muted); line-height: 1.9; }
.plan-option.is-active { border-color: rgba(192, 241, 92, 0.55); background: rgba(192, 241, 92, 0.06); }
.plan-tune { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.plan-tune .field { flex: 1 1 150px; }
.plan-note { font-size: 0.76rem; color: var(--muted); margin: 2px 0 0; }
.plan-summary {
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(192, 241, 92, 0.07);
  border: 1px solid rgba(192, 241, 92, 0.18);
  font-size: 0.82rem;
  line-height: 2;
}
.plan-summary b { color: var(--lime); }

.plan-receipt {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: right;
}
.plan-receipt__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.plan-receipt__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.plan-receipt__row:last-of-type { border-bottom: 0; }
.plan-receipt__row span { color: var(--muted); }
.plan-receipt__row b { color: var(--lime); }

/* ══════════════════════════════════════════════════════════
   فاکتور / پیش‌فاکتور (v7)
   ══════════════════════════════════════════════════════════ */
.invoice-wrap { padding-bottom: 50px; }
.invoice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.invoice-toolbar__act { display: flex; gap: 8px; flex-wrap: wrap; }
.invoice-toolbar__act .button { font-size: 0.8rem; }

.invoice-lookup { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; justify-content: center; }
.invoice-lookup .field { flex: 1 1 160px; text-align: right; }

.invoice {
  background: #fff;
  color: #17201a;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  font-size: 0.85rem;
}
.invoice__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-bottom: 2px solid #17201a;
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.invoice__brand { display: flex; align-items: center; gap: 10px; }
.invoice__brand .logo-mark { width: 34px; height: 34px; stroke: #2f7a34; color: #2f7a34; fill: none; stroke-width: 1.3; }
.invoice__brand strong { display: block; font-size: 1.02rem; color: #17201a; }
.invoice__brand small { font-size: 0.74rem; color: #66756a; }
.invoice__meta { text-align: left; }
.invoice__meta h1 { font-size: 1.1rem; margin-bottom: 8px; color: #17201a; }
.invoice__meta dl { display: grid; gap: 4px; }
.invoice__meta dl div { display: flex; gap: 8px; justify-content: space-between; font-size: 0.78rem; }
.invoice__meta dt { color: #66756a; }
.invoice__meta dd { color: #17201a; font-weight: 600; }

.invoice__parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
.invoice__parties h2 {
  font-size: 0.8rem;
  color: #2f7a34;
  margin-bottom: 6px;
  border-bottom: 1px solid #e3e8e4;
  padding-bottom: 4px;
}
.invoice__parties p { font-size: 0.79rem; line-height: 1.95; color: #33403a; }

.invoice__table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.invoice__table th {
  background: #f2f6f3;
  color: #33403a;
  font-size: 0.76rem;
  padding: 8px;
  text-align: right;
  border-bottom: 1px solid #dbe4dd;
}
.invoice__table td {
  padding: 8px;
  font-size: 0.78rem;
  border-bottom: 1px solid #eef2ef;
  color: #17201a;
}
.invoice__table td.nowrap { white-space: nowrap; }

.invoice__totals { display: grid; gap: 6px; justify-self: end; max-width: 340px; margin-inline-start: auto; }
.invoice__totals div { display: flex; justify-content: space-between; gap: 14px; font-size: 0.79rem; }
.invoice__totals span { color: #66756a; }
.invoice__totals b { color: #17201a; }
.invoice__totals--sum { border-top: 2px solid #17201a; padding-top: 6px; font-size: 0.88rem; }
.invoice__totals--sum b { color: #2f7a34; font-size: 1rem; }
.invoice__totals--pay { margin-top: 4px; padding-top: 6px; border-top: 1px dashed #dbe4dd; }

.invoice__insts { margin-top: 18px; }
.invoice__insts h2 { font-size: 0.8rem; color: #2f7a34; margin-bottom: 6px; }
.invoice__insts table { width: 100%; border-collapse: collapse; }
.invoice__insts th, .invoice__insts td {
  padding: 6px 8px;
  font-size: 0.76rem;
  text-align: right;
  border-bottom: 1px solid #eef2ef;
  color: #17201a;
}
.invoice__insts th { background: #f2f6f3; color: #33403a; }
.invoice__insts td.nowrap { white-space: nowrap; }

.invoice__foot {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #dbe4dd;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: #4b5a50;
}
.invoice__foot p { max-width: 62ch; line-height: 1.95; }
.invoice__sign { align-self: flex-end; color: #66756a; }

@media (max-width: 760px) {
  .invoice { padding: 16px; border-radius: 10px; font-size: 0.8rem; }
  .invoice__parties { grid-template-columns: 1fr; gap: 12px; }
  .invoice__meta { text-align: right; }
  .invoice__head { gap: 12px; }
  .invoice__table th, .invoice__table td { padding: 6px 5px; font-size: 0.72rem; }
  .invoice__totals { max-width: none; }
}

@media print {
  .header, .invoice-toolbar, .footer, .site-footer, main > .auth-wrap > .invoice-toolbar { display: none !important; }
  body { background: #fff !important; }
  .auth-wrap { padding: 0 !important; max-width: none !important; }
  .invoice { box-shadow: none; border-radius: 0; padding: 0; }
  .invoice__table th { background: #f2f6f3 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ══════════════════════════════════════════════════════════
   تاریخچه‌ی حساب — account.php (v7)
   ══════════════════════════════════════════════════════════ */
.acct-wrap { padding-bottom: 50px; }
.acct-stats { margin-bottom: 16px; }
.acct-stats .stat-card strong { font-size: 1.05rem; }
.acct-stats .stat-card em { font-style: normal; font-size: 0.68rem; color: var(--muted); }

.acct-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.acct-tab:hover { color: var(--text); border-color: rgba(192, 241, 92, 0.35); }
.acct-tab.is-active { color: #0d1207; background: var(--lime); border-color: var(--lime); font-weight: 700; }
.acct-tab__n {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.acct-tab.is-active .acct-tab__n { background: rgba(0, 0, 0, 0.18); }

.hist-list { display: grid; gap: 12px; }
.hist {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.02);
}
.hist__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.hist__head b { font-size: 0.88rem; }
.hist__head small { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 4px; }
.hist__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.hist__items { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.hist__items li {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 0.82rem; color: var(--muted);
  padding-bottom: 6px; border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.hist__items li:last-child { border-bottom: 0; padding-bottom: 0; }
.hist__items b { color: var(--text); }
.hist__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.hist__money { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.78rem; color: var(--muted); }
.hist__money b { color: var(--lime); }
.hist__act { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hist__ins { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ins-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 214, 102, 0.3);
  background: rgba(255, 214, 102, 0.08);
  color: #ffd666;
}
.ins-pill b { font-weight: 800; }
.ins-pill em { font-style: normal; opacity: 0.75; font-size: 0.68rem; }
.ins-pill.is-paid { border-color: rgba(192, 241, 92, 0.4); background: rgba(192, 241, 92, 0.1); color: var(--lime); }
.ins-pill.is-over { border-color: rgba(255, 120, 110, 0.42); background: rgba(255, 120, 110, 0.1); color: #ff9d96; }

.hist__text { font-size: 0.83rem; color: var(--muted); line-height: 2; margin: 0; }
.hist__reply {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(192, 241, 92, 0.07);
  border: 1px solid rgba(192, 241, 92, 0.18);
  font-size: 0.8rem;
  line-height: 2;
  color: var(--text);
}
.hist__reply b { display: block; color: var(--lime); font-size: 0.74rem; margin-bottom: 4px; }

/* خط زمانی */
.tl { list-style: none; margin: 0; padding: 0; }
.tl__item {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0 0 16px 0;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.09);
  margin-inline-start: 5px;
  padding-inline-start: 16px;
}
.tl__item:last-child { border-inline-start-color: transparent; padding-bottom: 0; }
.tl__dot {
  position: absolute;
  inset-inline-start: -4.5px;
  top: 5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(192, 241, 92, 0.15);
}
.tl__body { flex: 1 1 auto; min-width: 0; }
.tl__body b { font-size: 0.84rem; }
.tl__body small { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 3px; }
.tl__body p { font-size: 0.78rem; color: var(--muted); margin-top: 4px; line-height: 1.9; }
.tl__amount { font-size: 0.76rem; color: var(--lime); white-space: nowrap; }

@media (max-width: 620px) {
  .hist__head { flex-direction: column; gap: 8px; }
  .hist__foot { flex-direction: column; align-items: flex-start; }
  .tl__item { padding-inline-start: 12px; }
}

/* ══════════════════════════════════════════════════════════
   اخبار مینیمال (v8) — روی زمینه‌ی روشن بخش اخبار
   ══════════════════════════════════════════════════════════ */
.news-section #newsList.news-list {
  display: block;
  border-top: 1px solid var(--line-dark);
  margin-top: 22px;
}
.news-item {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
}
.news-item__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.news-item__date {
  font-size: 0.72rem;
  color: var(--muted-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.news-item__tag {
  font-size: 0.68rem;
  color: var(--olive);
  border: 1px solid rgba(47, 61, 34, 0.18);
  border-radius: 999px;
  padding: 1px 8px;
  line-height: 1.7;
}
.news-item__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.75;
  margin-bottom: 5px;
  color: var(--ink);
}
.news-item__desc {
  font-size: 0.82rem;
  color: var(--muted-dark);
  line-height: 1.95;
  margin-bottom: 7px;
  max-width: 78ch;
}
.news-item__original {
  display: block;
  font-size: 0.7rem;
  color: rgba(23, 32, 26, 0.34);
  margin-bottom: 8px;
  line-height: 1.6;
  max-width: 80ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-item__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
}
.news-item__link,
.news-item__inner {
  font-size: 0.74rem;
  color: var(--muted-dark);
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid transparent;
}
.news-item__link:hover { color: var(--ink); border-bottom-color: rgba(23, 32, 26, 0.25); }
.news-item__inner { color: var(--olive); font-weight: 600; }
.news-item__inner:hover { border-bottom-color: var(--olive); }
.news-item__link--muted { opacity: 0.65; }

/* تیزر استخدام صفحه‌ی اصلی (v8) */
.hire-panel--teaser {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  align-items: center;
  padding: clamp(18px, 2.4vw, 26px);
}
.hire-panel--teaser .hire-panel__intro { max-width: 60ch; }
.hire-teaser__act {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}
.hire-teaser__act .button { width: 100%; justify-content: center; }
.hire-teaser__act small { font-size: 0.72rem; color: var(--muted); }
@media (max-width: 760px) {
  .hire-panel--teaser { grid-template-columns: minmax(0, 1fr); }
  .hire-teaser__act { justify-items: stretch; }
}
.hire-chip--count { color: var(--lime); border-color: rgba(192, 241, 92, 0.35); }

@media (max-width: 620px) {
  .news-item { padding: 14px 0; }
  .news-item__title { font-size: 0.9rem; }
  .news-item__original { white-space: normal; }
}

/* ══════════════════════════════════════════════════════════
   صفحه‌ی جداگانه‌ی پرداخت + مراحل خرید (v9)
   ══════════════════════════════════════════════════════════ */
.checkout-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 4px 0 16px;
}
.checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.76rem;
}
.checkout-step.is-done { border-color: rgba(192, 241, 92, 0.35); color: var(--lime); }
.checkout-step.is-current { background: var(--lime); border-color: var(--lime); color: #10210a; font-weight: 600; }
.plan-cta {
  width: 100%;
  justify-content: center;
  text-align: center;
}
@media (max-width: 620px) {
  .checkout-steps { gap: 6px; }
  .checkout-step { font-size: 0.7rem; padding: 6px 10px; }
}

/* رادیو/چک‌باکس داخل کارت‌های انتخاب (رفع کشیدگی input در فرم‌های پنل — v9) */
.plan-option input[type="radio"],
.pay-option input[type="radio"],
.plan-option input[type="checkbox"],
.check-line input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  flex: none;
  margin: 2px 0 0;
}

/* ═══════════ مرکز سخت‌افزار (v18) ═══════════ */
.hw-page { max-width: 1180px; margin: 0 auto; padding: 0 20px 70px; }
.hw-hero { padding: 92px 0 40px; }
.hw-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.25; margin: 10px 0 16px; }
.hw-hero h1 em { color: var(--lime); font-style: normal; }
.hw-lead { max-width: 780px; color: var(--muted); line-height: 2; font-size: 0.95rem; }
.hw-lead b { color: var(--text); }
.hw-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 26px; }
.hw-facts div {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  background: rgba(238, 243, 238, 0.03);
}
.hw-facts b { display: block; font-size: 1.5rem; color: var(--lime); line-height: 1.2; }
.hw-facts span { font-size: 0.76rem; color: var(--muted); }

.hw-section { margin-top: 52px; }
.hw-section__title { font-size: clamp(1.1rem, 2.4vw, 1.5rem); margin-bottom: 8px; }
.hw-section__lead, .hw-section__note { color: var(--muted); font-size: 0.85rem; line-height: 1.9; margin-bottom: 16px; }
.hw-section__note code { color: var(--lime); }

.hw-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.hw-tab {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 9px 16px; font-size: 0.84rem; cursor: pointer;
  font-family: inherit; transition: 0.15s ease;
}
.hw-tab:hover { color: var(--text); border-color: rgba(192, 241, 92, 0.4); }
.hw-tab.is-active { background: var(--lime); border-color: var(--lime); color: #08120d; font-weight: 700; }

.hw-panel { display: none; border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: rgba(238, 243, 238, 0.02); }
.hw-panel.is-active { display: block; }
.hw-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.hw-panel__head h3 { font-size: 1.1rem; margin: 0; }
.hw-panel__head h3 small { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 400; margin-top: 5px; }
.hw-chip { border: 1px solid rgba(192, 241, 92, 0.35); color: var(--lime); border-radius: 999px; padding: 3px 10px; font-size: 0.7rem; white-space: nowrap; }
.hw-chip--mid { border-color: rgba(240, 180, 92, 0.4); color: #f0b45c; }
.hw-panel__how { color: var(--muted); font-size: 0.87rem; line-height: 2; margin: 14px 0 18px; }
.hw-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.hw-cols h4, .hw-pitfalls-title { font-size: 0.84rem; color: var(--text); margin: 0 0 8px; }
.hw-list { margin: 0; padding-inline-start: 18px; color: var(--muted); font-size: 0.82rem; line-height: 2; }
.hw-good, .hw-avoid, .hw-cost { font-size: 0.82rem; line-height: 1.9; color: var(--muted); margin: 0 0 6px; }
.hw-good b { color: var(--lime); }
.hw-avoid b { color: #f0937d; }
.hw-pitfalls-title { margin-top: 20px; }
.hw-pitfalls { margin: 0; padding-inline-start: 18px; color: var(--muted); font-size: 0.8rem; line-height: 2; }
.hw-pitfalls li { margin-bottom: 4px; }
.hw-panel__boards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hw-mini {
  border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px; text-decoration: none;
  color: var(--text); display: grid; gap: 2px; transition: 0.15s;
}
.hw-mini:hover { border-color: var(--lime); }
.hw-mini b { font-size: 0.82rem; }
.hw-mini small { color: var(--muted); font-size: 0.7rem; }

.hw-board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.hw-board {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 8px; transition: 0.16s;
  background: linear-gradient(180deg, rgba(238, 243, 238, 0.035), rgba(238, 243, 238, 0.008));
}
.hw-board:hover { border-color: rgba(192, 241, 92, 0.55); transform: translateY(-2px); }
.hw-board.is-active { border-color: var(--lime); }
.hw-board__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hw-board__top b { font-size: 0.96rem; }
.hw-board__chip { color: var(--muted); font-size: 0.72rem; font-family: monospace; }
.hw-board__why { font-size: 0.8rem; color: var(--muted); line-height: 1.9; margin: 0; flex: 1; }
.hw-board__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.7rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }

.hw-code-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #060d09; }
.hw-code-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.hw-code-card__head b { font-size: 0.95rem; display: block; }
.hw-code-card__head small { color: var(--muted); font-size: 0.74rem; }
.hw-code-card__act { display: flex; gap: 8px; }
.hw-code-meta { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 18px; font-size: 0.74rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.hw-pre {
  margin: 0; padding: 18px; max-height: 520px; overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.76rem; line-height: 1.75;
  color: #cfe6c9; background: #060d09; direction: ltr; text-align: left; tab-size: 2;
}
/* خطوط کد لاتین‌اند، ولی کامنت‌ها فارسی؛ plaintext جهت هر خط را جدا حساب می‌کند
   تا کامنت فارسی به‌هم نریزد و خودِ کد چپ‌به‌راست بماند. */
.hw-pre code { unicode-bidi: plaintext; display: block; }
.hw-pre--sm { max-height: 260px; border: 1px solid var(--line); border-radius: 12px; }
.hw-missing { padding: 18px; color: #f0937d; font-size: 0.84rem; }

.hw-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.hw-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.hw-table th, .hw-table td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--line); }
.hw-table th { color: var(--lime); font-size: 0.76rem; font-weight: 600; background: rgba(192, 241, 92, 0.05); }
.hw-table td { color: var(--muted); }
.hw-table td:first-child { color: var(--text); }
.hw-table tr:last-child td { border-bottom: 0; }
.hw-table code { color: var(--lime); font-size: 0.78rem; }

.hw-curl { margin-top: 18px; }
.hw-curl__head { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.hw-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 16px; }
.hw-status-grid div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.hw-status-grid b { display: block; color: var(--lime); font-size: 0.8rem; margin-bottom: 4px; }
.hw-status-grid span { font-size: 0.76rem; color: var(--muted); line-height: 1.8; }

.hw-cta {
  margin-top: 56px; border: 1px solid rgba(192, 241, 92, 0.3); border-radius: 20px; padding: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(192, 241, 92, 0.08), transparent 60%);
}
.hw-cta h2 { font-size: 1.15rem; margin: 0 0 6px; }
.hw-cta p { color: var(--muted); font-size: 0.85rem; margin: 0; line-height: 1.9; }
.hw-cta__act { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ══════════════ حوزه‌های هوشمندسازی، فراتر از کشاورزی (v38) ══════════════ */
.sectors {
  background: var(--ink);
  background-image: radial-gradient(circle at 0% 0%, rgba(192, 241, 92, 0.07), transparent 46%);
}
.sectors .section-label { color: var(--lime); }
.sectors .section-label::after { background: rgba(192, 241, 92, 0.35); }
.sectors h2 em { color: var(--lime); font-style: normal; }
.sectors .section-top > p { color: var(--muted); }
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(26px, 3.5vw, 44px);
}
.sector-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 24px 22px 22px;
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  border: 1px solid var(--line);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.3s;
}
.sector-card:hover {
  transform: translateY(-5px);
  border-color: rgba(192, 241, 92, 0.38);
  box-shadow: 0 30px 56px -34px rgba(0, 0, 0, 0.8);
}
.sector-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}
.sector-icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--lime);
  background: rgba(192, 241, 92, 0.1);
  border: 1px solid rgba(192, 241, 92, 0.22);
}
.sector-icon svg { width: 22px; height: 22px; }
.sector-top > b {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(238, 243, 238, 0.32);
}
.sector-card h3 { margin: 0; font-size: 1.02rem; color: var(--text); }
.sector-card p { margin: 0; font-size: 0.86rem; line-height: 1.95; color: var(--muted); }
.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}
.sector-tags span {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  color: rgba(238, 243, 238, 0.74);
  background: rgba(238, 243, 238, 0.05);
  border: 1px solid var(--line-soft);
}
.sector-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.87rem;
  color: var(--muted);
}
.sector-note a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--lime);
  transition: gap 0.22s;
}
.sector-note a:hover { gap: 13px; }

@media (max-width: 1020px) {
  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .sector-grid { grid-template-columns: 1fr; }
  .sector-card { padding: 20px 18px; }
  .sector-note a { font-size: 0.84rem; }
}

/* ══════════════ سفارش سفارشی (v39) ══════════════ */
.custom-order {
  background: var(--forest);
  background-image: radial-gradient(circle at 100% 100%, rgba(192, 241, 92, 0.08), transparent 48%);
}
.co-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.custom-order .section-label { color: var(--lime); }
.custom-order h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.custom-order h2 em { color: var(--lime); font-style: normal; }
.co-intro > p { color: var(--muted); max-width: 46ch; line-height: 2; }
.co-steps { display: grid; gap: 10px; margin-top: 22px; }
.co-steps > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(238, 243, 238, 0.03);
  border: 1px solid var(--line-soft);
}
.co-steps b {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.74rem;
  color: var(--ink);
  background: var(--lime);
}
.co-steps span { font-size: 0.85rem; color: var(--text); }
.co-points { display: grid; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.co-points li {
  position: relative;
  padding-inline-start: 18px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.8;
}
.co-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.7;
}
.co-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--lime);
  transition: gap 0.22s;
}
.co-more:hover { gap: 13px; }

.co-form {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: 0 34px 70px -40px rgba(0, 0, 0, 0.85);
}
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-field { display: grid; gap: 6px; }
.co-field > span { font-size: 0.78rem; color: var(--muted); }
.co-form input,
.co-form select,
.co-form textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color 0.2s;
}
.co-form input:focus,
.co-form select:focus,
.co-form textarea:focus {
  outline: 2px solid rgba(192, 241, 92, 0.4);
  outline-offset: 1px;
}
.co-form select option { background: var(--ink-2); color: var(--text); }
.co-form textarea { resize: vertical; line-height: 1.9; }
.co-needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.co-need {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.8rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.co-need:hover { border-color: rgba(192, 241, 92, 0.4); }
.co-need input { accent-color: var(--lime); width: 15px; height: 15px; flex: none; }
.co-need:has(input:checked) {
  border-color: rgba(192, 241, 92, 0.55);
  background: rgba(192, 241, 92, 0.1);
  color: var(--lime);
}
.co-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s;
}
.co-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -18px rgba(192, 241, 92, 0.85); }
.co-note { font-size: 0.75rem; color: var(--muted); text-align: center; }

@media (max-width: 960px) {
  .co-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .co-row, .co-needs { grid-template-columns: 1fr; }
}

/* ══════════════ چک‌باکس‌های سفارش سفارشی (v39) ══════════════ */
.co-need,
.need-item { position: relative; }

.co-need input[type="checkbox"],
.need-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.co-need::before,
.need-item::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 5px;
  border: 1px solid rgba(238, 243, 238, 0.32);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s, border-color 0.2s;
}

.co-need:has(input:checked)::before,
.need-item:has(input:checked)::before {
  border-color: var(--lime);
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23080f0c' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.co-need:has(input:focus-visible)::before,
.need-item:has(input:focus-visible)::before {
  outline: 2px solid rgba(192, 241, 92, 0.5);
  outline-offset: 2px;
}

/* نوار منو هرگز روی هم نیفتد (v39) */
.header nav { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.header nav::-webkit-scrollbar { display: none; }
.header nav a { flex: none; }

/* ══════════════ کارت محصول سه‌بعدی + توضیح روی هاور (v40) ══════════════ */
.dynamic-grid { perspective: 1400px; perspective-origin: 50% 30%; }

.dynamic-grid article {
  transform-style: preserve-3d;
  transform: translate3d(0, var(--lift, 0px), var(--tz, 0px))
             rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1),
              border-color 0.25s, box-shadow 0.35s, background 0.25s;
  will-change: transform;
}
.dynamic-grid article.is-tilting { transition: transform 0.08s linear, box-shadow 0.35s; }
.dynamic-grid article:hover {
  transform: translate3d(0, var(--lift, -6px), var(--tz, 26px))
             rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  border-color: rgba(192, 241, 92, 0.42);
  background: linear-gradient(160deg, rgba(20, 35, 27, 0.98), rgba(12, 35, 24, 0.98));
  box-shadow: 0 46px 90px -38px rgba(0, 0, 0, 0.9),
              0 0 0 1px rgba(192, 241, 92, 0.1) inset,
              0 0 42px -18px rgba(192, 241, 92, 0.35);
}

/* لایه‌های عمق‌دار داخل کارت */
.dynamic-grid article .card-media,
.dynamic-grid article .card-tag,
.dynamic-grid article h3,
.dynamic-grid article .card-foot { transform: translateZ(0); }
@media (hover: hover) and (pointer: fine) {
  .dynamic-grid article .card-media { transition: transform 0.35s ease; }
  .dynamic-grid article .card-tag   { transition: transform 0.35s ease; }
  .dynamic-grid article h3          { transition: transform 0.35s ease; }
  .dynamic-grid article:hover .card-media { transform: translateZ(18px) scale(1.02); }
  .dynamic-grid article:hover .card-tag   { transform: translateZ(34px); }
  .dynamic-grid article:hover h3          { transform: translateZ(26px); }
  .dynamic-grid article:hover .card-foot  { transform: translateZ(14px); }
}

/* توضیح کوتاه: روی دستگاه‌های ماوس‌دار، فقط با هاور/فوکوس باز می‌شود */
.card-desc {
  font-size: 0.85rem !important;
  line-height: 1.95;
  color: var(--muted);
  margin: 0;
  transition: max-height 0.32s ease, opacity 0.28s ease, transform 0.32s ease, margin 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .dynamic-grid article .card-desc {
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    overflow: hidden;
  }
  .dynamic-grid article:hover .card-desc,
  .dynamic-grid article:focus-within .card-desc {
    max-height: 180px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 2px;
  }
}

/* احترام به تنظیم کاهش انیمیشن */
@media (prefers-reduced-motion: reduce) {
  .dynamic-grid { perspective: none; }
  .dynamic-grid article,
  .dynamic-grid article:hover { transform: none; }
  .dynamic-grid article:hover .card-media,
  .dynamic-grid article:hover .card-tag,
  .dynamic-grid article:hover h3,
  .dynamic-grid article:hover .card-foot { transform: none; }
  .dynamic-grid article .card-desc { max-height: none; opacity: 1; transform: none; }
}

/* ══════════════ پیشنهادهای ویژه (v41) ══════════════ */
.offers-section { position: relative; }
.offers-sub {
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 2.05;
  margin: 8px 0 22px;
}
.offers-loading { color: var(--muted); font-size: 0.88rem; }

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(192, 241, 92, 0.16);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(192, 241, 92, 0.07), transparent 62%),
    linear-gradient(165deg, rgba(18, 40, 28, 0.96), rgba(11, 28, 20, 0.98));
  box-shadow: 0 24px 60px -42px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.25s, box-shadow 0.3s;
}
.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 241, 92, 0.34);
  box-shadow: 0 34px 74px -40px rgba(0, 0, 0, 0.94);
}
.offer-card--featured {
  border-color: rgba(192, 241, 92, 0.42);
  background:
    radial-gradient(130% 100% at 100% 0%, rgba(192, 241, 92, 0.13), transparent 60%),
    linear-gradient(165deg, rgba(24, 52, 34, 0.98), rgba(12, 32, 22, 0.99));
}
.offer-card--olive { border-color: rgba(160, 196, 74, 0.26); }
.offer-card--sand  { border-color: rgba(214, 197, 152, 0.26); }
.offer-card--rose  { border-color: rgba(226, 114, 91, 0.28); }

.offer-media {
  margin: -8px -8px 4px;
  border-radius: 13px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.25);
}
.offer-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.offer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 26px;
}
.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(192, 241, 92, 0.15);
  color: var(--lime);
  border: 1px solid rgba(192, 241, 92, 0.34);
  white-space: nowrap;
}
.offer-badge--olive { background: rgba(160, 196, 74, 0.14); color: #cfe07a; border-color: rgba(160, 196, 74, 0.34); }
.offer-badge--sand  { background: rgba(214, 197, 152, 0.12); color: #e7d9b0; border-color: rgba(214, 197, 152, 0.3); }
.offer-badge--rose  { background: rgba(226, 114, 91, 0.14); color: #ffb3a6; border-color: rgba(226, 114, 91, 0.34); }

.offer-timer {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--muted);
}
.offer-timer__value {
  font-family: "Vazirmatn", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px 8px;
  letter-spacing: 0.04em;
}
.offer-timer--done .offer-timer__value { color: #ffb3a6; border-color: rgba(226, 114, 91, 0.3); }

.offer-title { font-size: 1.02rem; line-height: 1.75; margin: 0; color: var(--text); }
.offer-sub  { font-size: 0.82rem; color: var(--lime); margin: 0; line-height: 1.9; }
.offer-desc { font-size: 0.83rem; color: var(--muted); margin: 2px 0 0; line-height: 2; }

.offer-cond-title {
  font-size: 0.74rem;
  color: var(--cream);
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}
.offer-cond {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.offer-cond li {
  position: relative;
  padding-inline-start: 20px;
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.9;
}
.offer-cond li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.6px solid var(--olive);
  background: rgba(192, 241, 92, 0.16);
}

.offer-rule {
  font-size: 0.74rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 7px 10px;
  line-height: 1.8;
}
.offer-code { font-size: 0.76rem; color: var(--muted); }
.offer-code b {
  color: var(--lime);
  letter-spacing: 0.08em;
  background: rgba(192, 241, 92, 0.1);
  border: 1px dashed rgba(192, 241, 92, 0.36);
  border-radius: 8px;
  padding: 2px 8px;
}
.offer-cta { margin-top: auto; align-self: flex-start; font-size: 0.82rem; padding: 9px 18px; }

/* پنل مدیریت — پیشنهادها */
.offer-row-off { opacity: 0.55; }
.offer-thumb {
  width: 46px; height: 46px; border-radius: 10px; object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.3);
}
.offer-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.offer-live-dot--off { background: #6b7a70; }
.offer-live-dot--expired { background: #e2725b; }

@media (max-width: 640px) {
  .offers-grid { grid-template-columns: 1fr; gap: 14px; }
  .offer-card { padding: 17px 16px 15px; }
  .offer-timer { font-size: 0.66rem; }
}

/* ══════════════════════════════════════════════════════════════
   نوار بالای سایت: هیچ آیتمی زیر آیتم دیگر نمیرود (v42)
   ──────────────────────────────────────────────────────────────
   علت مشکل: گاتر هدر با «بخش‌ها» یکی بود (در ۱۴۴۰px تا ۱۶۰px از هر طرف)،
   پس ۱۱ لینک در فضای کم می‌ماندند؛ چون هر لینک نمی‌توانست بشکند، متن‌ها
   روی هم می‌افتادند. سه اصلاح:
     ۱) گاتر مستقل و کوجک‌تر برای هدر
     ۲) هر لینک «نچسبد/کوچک نشود» (flex: 0 0 auto)
     ۳) اگر جا نشد، نوار افقی اسکرول می‌شود (هیچ متنی قطع نمی‌شود)
   ══════════════════════════════════════════════════════════════ */
.header {
  padding-inline: clamp(14px, 2.6vw, 44px);
  gap: clamp(8px, 1.1vw, 16px);
  flex-wrap: nowrap;
  min-width: 0;
}

.header nav {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-block: 3px;
  mask-image: linear-gradient(to left,
      transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  -webkit-mask-image: linear-gradient(to left,
      transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.header nav::-webkit-scrollbar { display: none; width: 0; height: 0; }

.header nav a {
  flex: 0 0 auto;              /* ← ریشه‌ی مشکل: با shrink، متن روی هم می‌افتاد */
  scroll-snap-align: center;
}

/* فشرده‌سازی نرم بین ۱۱۰۰ تا ۱۵۲۰ تا همه‌ی لینک‌ها بدون اسکرول جا شوند */
@media (max-width: 1520px) and (min-width: 901px) {
  .header nav a { padding: 7px 6px; font-size: 0.79rem; }
  .header nav { gap: 1px; }
}
@media (max-width: 1280px) and (min-width: 901px) {
  .header nav a { padding: 6px 5px; font-size: 0.755rem; }
  .header .header-button { padding: 9px 14px; font-size: 0.79rem; }
}
@media (max-width: 1080px) and (min-width: 901px) {
  .header nav a { padding: 6px 4px; font-size: 0.73rem; }
}

/* روی موبایل، منوی کرکره‌ای کامل باز می‌شود؛ اسکرول افقی لازم نیست */
@media (max-width: 900px) {
  .header { padding-inline: clamp(12px, 4vw, 20px); }
  .header nav {
    overflow-x: visible;
    overflow-y: auto;
    mask-image: none;
    -webkit-mask-image: none;
    padding-block: 0;
    scroll-snap-type: none;
  }
  .header nav a { flex: 1 1 auto; }
}

/* در حالت‌هایی که نوار اسکرول دارد، لبه‌ی فعال با هاور روشن‌تر دیده شود */
.header nav a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════
   منوی کشویی بالای سایت (v43)
   ──────────────────────────────────────────────────────────────
   به‌جای ۱۱ لینک پشت‌سرهم، چهار گروه کشویی + یک لینک ویژه:
     خدمات ما ▾ · محصولات ▾ · پیشنهادها · اخبار ▾ · تماس با ما
   ══════════════════════════════════════════════════════════════ */
.header nav { overflow: visible; mask-image: none; -webkit-mask-image: none; gap: 4px; }

.nav-item { position: relative; flex: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-family: inherit;
  font-size: 0.86rem;
  color: rgba(238, 243, 238, 0.72);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav-toggle:hover,
.nav-item.is-open > .nav-toggle {
  color: var(--lime);
  background: rgba(192, 241, 92, 0.08);
}
.nav-caret { transition: transform 0.22s ease; opacity: 0.8; }
.nav-item.is-open > .nav-toggle .nav-caret { transform: rotate(180deg); }

/* پنل کشویی */
.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  min-width: 224px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 14px;
  background: #0a1711;
  border: 1px solid rgba(192, 241, 92, 0.18);
  box-shadow: 0 26px 60px -28px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 70;
}
.nav-item.is-open > .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.nav-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.84rem;
  color: rgba(238, 243, 238, 0.8);
  white-space: nowrap;
  transition: color 0.16s, background 0.16s;
}
.nav-menu a:hover { color: var(--ink); background: var(--lime); }

@media (hover: hover) and (pointer: fine) {
  .nav-item:hover > .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav-item:hover > .nav-toggle .nav-caret { transform: rotate(180deg); }
}

/* لینک ویژه‌ی پیشنهادها */
.nav-hot {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--lime) !important;
  white-space: nowrap;
}
.nav-hot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(192, 241, 92, 0.16);
}
.nav-hot:hover { background: rgba(192, 241, 92, 0.1); }

/* فشرده‌سازی نرم در عرض‌های میانی */
@media (max-width: 1400px) and (min-width: 901px) {
  .nav-toggle, .nav-hot { padding: 7px 9px; font-size: 0.82rem; }
}
@media (max-width: 1120px) and (min-width: 901px) {
  .nav-toggle, .nav-hot { padding: 7px 7px; font-size: 0.79rem; gap: 5px; }
  .nav-menu { min-width: 200px; }
}

/* ── موبایل: گروه‌ها باز و ساده، بدون کشویی ── */
@media (max-width: 900px) {
  .header nav { gap: 0; overflow-y: auto; overflow-x: hidden; max-height: calc(100svh - var(--header-h)); }
  .nav-item { width: 100%; }
  .nav-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 13px 4px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    color: var(--text);
  }
  .nav-item.is-open > .nav-toggle,
  .nav-toggle:hover { background: transparent; color: var(--lime); }
  .nav-item > .nav-menu,
  .nav-item.is-open > .nav-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    min-width: 0;
    padding: 2px 0 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
    gap: 0;
    display: none;
  }
  .nav-item.is-open > .nav-menu { display: grid; }
  .nav-menu a {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: rgba(238, 243, 238, 0.7);
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .nav-menu a:last-child { border-bottom: 0; }
  .nav-hot {
    width: 100%;
    padding: 13px 4px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .nav-hot::before { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   ظاهر مدرن منو (v44) — شیشه‌ای، آیکون‌دار، با حرکت نرم
   ══════════════════════════════════════════════════════════════ */
.header {
  background: rgba(6, 12, 9, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
}
.header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(to left, transparent, rgba(192, 241, 92, 0.3), transparent);
}
.header.is-scrolled {
  background: rgba(5, 10, 8, 0.93);
  border-bottom-color: rgba(192, 241, 92, 0.14);
  box-shadow: 0 24px 46px -34px rgba(0, 0, 0, 0.95);
}

/* ── دکمه‌های سطح اول: قرص شیشه‌ای ── */
.nav-toggle,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 0.86rem;
  color: rgba(238, 243, 238, 0.74);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.nav-toggle:hover,
.nav-link:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.09);
}
.nav-link.is-active { color: var(--lime); }
.nav-item.is-open > .nav-toggle {
  color: var(--lime);
  background: rgba(192, 241, 92, 0.1);
  border-color: rgba(192, 241, 92, 0.3);
  box-shadow: 0 0 0 4px rgba(192, 241, 92, 0.06), 0 10px 26px -18px rgba(192, 241, 92, 0.7);
}
.nav-caret { transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1); opacity: 0.75; }

/* ── پنل کشویی شیشه‌ای ── */
.nav-menu {
  min-width: 298px;
  padding: 9px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 40, 29, 0.96), rgba(8, 18, 13, 0.98));
  border: 1px solid rgba(192, 241, 92, 0.16);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  backdrop-filter: blur(26px) saturate(140%);
  box-shadow:
    0 34px 72px -32px rgba(0, 0, 0, 0.96),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-7px) scale(0.97);
  transform-origin: top center;
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.24s;
}
.nav-menu::before {
  content: "";
  position: absolute;
  inset-inline: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--lime), transparent);
  opacity: 0.5;
}
.nav-item.is-open > .nav-menu {
  transform: none;
}

/* ── آیتم‌های داخل کشو: آیکون + عنوان + توضیح کوتاه ── */
.nav-menu a {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(238, 243, 238, 0.82);
  white-space: normal;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.nav-menu a strong { display: block; font-size: 0.83rem; font-weight: 600; line-height: 1.5; }
.nav-menu a small { display: block; font-size: 0.68rem; color: var(--muted); margin-top: 1px; line-height: 1.5; }
.nav-menu a:hover {
  color: var(--cream);
  background: rgba(192, 241, 92, 0.09);
  border-color: rgba(192, 241, 92, 0.16);
}
.nav-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(192, 241, 92, 0.08);
  border: 1px solid rgba(192, 241, 92, 0.14);
  color: var(--lime);
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}
.nav-menu a:hover .nav-ico {
  background: var(--lime);
  border-color: var(--lime);
  color: #0a1410;
  transform: scale(1.06);
}
.nav-menu a.is-active { color: var(--lime); }
.nav-menu a.is-active .nav-ico { background: rgba(192, 241, 92, 0.2); }

/* ورود پله‌ای آیتم‌ها */
.nav-item.is-open .nav-menu a { animation: navItemIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both; }
.nav-menu a:nth-child(1) { animation-delay: 0.02s; }
.nav-menu a:nth-child(2) { animation-delay: 0.06s; }
.nav-menu a:nth-child(3) { animation-delay: 0.1s; }
.nav-menu a:nth-child(4) { animation-delay: 0.14s; }
.nav-menu a:nth-child(5) { animation-delay: 0.18s; }
@keyframes navItemIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ── «پیشنهادها»: قرص گرادیانی با نبض ── */
.nav-hot {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(192, 241, 92, 0.3);
  background: linear-gradient(to left, rgba(192, 241, 92, 0.18), rgba(192, 241, 92, 0.05));
  transition: background 0.22s, border-color 0.22s, color 0.22s, box-shadow 0.25s;
}
.nav-hot::before { animation: hotPulse 2.8s ease-in-out infinite; }
.nav-hot:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink) !important;
}
.nav-hot:hover::before { background: var(--ink); box-shadow: none; }
@keyframes hotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 241, 92, 0.5); }
  55% { box-shadow: 0 0 0 7px rgba(192, 241, 92, 0); }
}

@media (hover: hover) and (pointer: fine) {
  .nav-item:hover .nav-menu a { animation: navItemIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both; }
}

/* ── موبایل: کارت‌های آکاردئونی ── */
@media (max-width: 900px) {
  .nav-toggle,
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 13px 12px;
    border-radius: 13px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.95rem;
    color: var(--text);
  }
  .nav-item { margin-bottom: 8px; }
  .nav-item.is-open > .nav-toggle {
    border-color: rgba(192, 241, 92, 0.32);
    background: rgba(192, 241, 92, 0.08);
  }
  .nav-item > .nav-menu,
  .nav-item.is-open > .nav-menu {
    padding: 8px 4px 4px;
    gap: 2px;
  }
  .nav-menu a {
    grid-template-columns: 34px 1fr;
    padding: 10px 8px;
    border-radius: 11px;
  }
  .nav-menu a small { font-size: 0.7rem; }
  .nav-hot {
    width: 100%;
    justify-content: center;
    padding: 13px 12px;
    border-radius: 13px;
    margin-bottom: 8px;
    box-shadow: none;
  }
  .nav-hot::before { display: none; }
  .nav-link { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu,
  .nav-toggle,
  .nav-link,
  .nav-caret,
  .nav-ico { transition: none !important; }
  .nav-menu a,
  .nav-hot::before { animation: none !important; }
}


/* اندازه‌ی سیّال قرص‌ها روی دسکتاپ: بدون پرش و بدون اسکرول افقی در هر عرضی */
@media (min-width: 901px) {
  .header nav { gap: clamp(0px, 0.35vw, 4px); }
  .nav-toggle,
  .nav-link {
    padding: 8px clamp(8px, 0.75vw, 13px);
    font-size: clamp(0.79rem, 0.6vw + 0.45rem, 0.86rem);
  }
  .nav-hot {
    padding: 8px clamp(9px, 0.9vw, 14px);
    font-size: clamp(0.79rem, 0.6vw + 0.45rem, 0.86rem);
  }
}

/* ── تثبیت سبک مدرن در برابر قواعد عمومی قدیمیِ `.header nav a` (نسخهٔ ۴۴) ── */
.header nav .nav-link,
.header nav .nav-hot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px clamp(9px, 0.9vw, 14px);
  border-radius: 999px;
  font-size: clamp(0.79rem, 0.6vw + 0.45rem, 0.86rem);
  white-space: nowrap;
}
.header nav .nav-link {
  border: 1px solid transparent;
  color: rgba(238, 243, 238, 0.74);
  background: transparent;
}
.header nav .nav-link:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.09);
}
.header nav .nav-link.is-active { color: var(--lime); }
.header nav .nav-hot {
  border: 1px solid rgba(192, 241, 92, 0.3);
  background: linear-gradient(to left, rgba(192, 241, 92, 0.18), rgba(192, 241, 92, 0.05));
  font-weight: 700;
  color: var(--lime) !important;
}
.header nav .nav-hot:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink) !important;
}
.header nav .nav-menu a {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  color: rgba(238, 243, 238, 0.82);
  white-space: normal;
}
.header nav .nav-menu a:hover {
  color: var(--cream);
  background: rgba(192, 241, 92, 0.09);
  border-color: rgba(192, 241, 92, 0.16);
}
.header nav .nav-menu a strong { font-size: 0.83rem; }
.header nav .nav-menu a small { font-size: 0.68rem; }

@media (max-width: 900px) {
  .header nav .nav-toggle,
  .header nav .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 13px 14px;
    border-radius: 13px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.95rem;
    color: var(--text);
  }
  .header nav .nav-link { margin-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
  .header nav .nav-link.is-active { color: var(--lime); }
  .header nav .nav-item.is-open > .nav-toggle {
    border-color: rgba(192, 241, 92, 0.32);
    background: rgba(192, 241, 92, 0.08);
    color: var(--lime);
  }
  .header nav .nav-hot {
    width: 100%;
    justify-content: center;
    padding: 13px 14px;
    border-radius: 13px;
    margin-bottom: 8px;
    font-size: 0.95rem;
  }
  .header nav .nav-menu a {
    grid-template-columns: 34px 1fr;
    padding: 10px 8px;
    border-bottom: 0;
    border-radius: 11px;
    font-size: 1rem;
  }
  .header nav .nav-menu a:last-child { border-bottom: 0; }
  .header nav .nav-menu a strong { font-size: 0.9rem; }
  .header nav .nav-menu a small { font-size: 0.7rem; }
}

/* ══════════════════════════════════════════════════════════════
   منوی قابل مدیریت (v45) — حالت «خطی» + کارت‌های پنل مدیریت
   ══════════════════════════════════════════════════════════════ */

/* ── حالت خطی: همهٔ لینک‌ها در یک ردیف، با اسکرول افقی بی‌نوار ── */
.header nav[data-nav-mode="flat"] {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to left, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}
.header nav[data-nav-mode="flat"]::-webkit-scrollbar { display: none; }
.header nav[data-nav-mode="flat"] > a { flex: 0 0 auto; }
.header nav[data-nav-mode="flat"] .nav-link,
.header nav[data-nav-mode="flat"] .nav-hot { padding: 8px 11px; font-size: 0.82rem; }

@media (max-width: 1100px) {
  .header nav[data-nav-mode="flat"] { gap: 2px; }
  .header nav[data-nav-mode="flat"] .nav-link,
  .header nav[data-nav-mode="flat"] .nav-hot { padding: 8px 9px; font-size: 0.79rem; }
}
@media (max-width: 900px) {
  .header nav[data-nav-mode="flat"] {
    flex-wrap: wrap;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .header nav[data-nav-mode="flat"] .nav-link,
  .header nav[data-nav-mode="flat"] .nav-hot { padding: 13px 14px; font-size: 0.95rem; }
}

/* ── پنل مدیریت: کارت انتخاب نوع منو ── */
.nav-mode-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.nav-mode-card:hover { border-color: rgba(192, 241, 92, 0.28); }
.nav-mode-card input { accent-color: var(--lime); justify-self: start; }
.nav-mode-card b { font-size: 0.92rem; color: var(--text); }
.nav-mode-card small { color: var(--muted); font-size: 0.76rem; line-height: 1.9; }
.nav-mode-card.is-on { border-color: rgba(192, 241, 92, 0.38); background: rgba(192, 241, 92, 0.07); }

/* ── پنل مدیریت: جدول چینش ── */
.nav-admin-table { width: 100%; border-collapse: collapse; }
.nav-admin-table th {
  text-align: right;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 8px 8px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.nav-admin-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.nav-admin-table input[type="text"],
.nav-admin-table input:not([type]) {
  width: 100%;
  padding: 7px 9px;
  font-size: 0.82rem;
  border-radius: 9px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
}
.nav-admin-table input:focus { outline: none; border-color: rgba(192, 241, 92, 0.45); }
.nav-admin-table .select-plain { padding: 6px 8px; font-size: 0.78rem; }
.nav-admin-table input[type="checkbox"] { accent-color: var(--lime); width: 17px; height: 17px; }
.nav-admin-table .nav-row-group td { background: rgba(192, 241, 92, 0.05); }
.nav-admin-table .nav-row-child td { background: transparent; }

/* ── پیش‌نمایش منو در پنل ── */
nav#navigation.is-preview { gap: 6px; }
nav#navigation.is-preview .nav-item { position: relative; }
nav#navigation.is-preview .nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  position: static;
  min-width: 0;
  padding: 0 0 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
nav#navigation.is-preview .nav-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 9px;
  border: 1px solid var(--line-soft);
  font-size: 0.78rem;
}
nav#navigation.is-preview .nav-menu a small { display: none; }
