/* ============================================================
   site.css — استایل لندینگ فارم گستر (index.php + app.js)
   وابسته به base.css (توکن‌ها و کامپوننت‌های مشترک) — فقط کلاس‌های اختصاصی این صفحه
   زبان طراحی: مینیمالِ نفس‌گیر — فضای سفید فراوان، حاشیه‌های مویی،
   سبز زمردی به‌عنوان رنگ اصلی و نارنجی گرم فقط به‌عنوان لهجه
   ============================================================ */

/* ------------------------------- ابزارهای عمومی ------------------------------- */

.min-w-0 { min-width: 0; }
.muted-txt { color: hsl(var(--muted-fg)); }
.c-green { color: hsl(var(--primary)); }
.c-amber { color: hsl(var(--amber)); }
[data-theme="dark"] .c-amber { color: hsl(38 90% 62%); }
.c-teal { color: hsl(174 70% 30%); }
[data-theme="dark"] .c-teal { color: hsl(174 45% 60%); }
.ico-primary { color: hsl(var(--primary)); }
.opt { font-weight: 400; color: hsl(var(--muted-fg)); }

:root {
  --r-lg: 18px;
  --r-md: 14px;
  --lift: 0 1px 2px rgb(16 48 40 / .05), 0 10px 32px rgb(16 48 40 / .07);
  --lift-lg: 0 2px 4px rgb(16 48 40 / .04), 0 18px 52px rgb(16 48 40 / .12);
}

/* بَج بخش‌ها — لهجه نارنجی ملایم */
.badge-outline { background: hsl(var(--amber) / .08); border-color: hsl(var(--amber) / .3); color: hsl(30 85% 40%); }
[data-theme="dark"] .badge-outline { color: hsl(38 88% 66%); background: hsl(var(--amber) / .1); }
.badge-outline .icon { color: inherit; }

.section { padding-block: 64px; scroll-margin-top: 84px; }
.section-muted { background: linear-gradient(180deg, hsl(160 32% 97%), hsl(160 24% 96%) 60%, transparent); }
[data-theme="dark"] .section-muted { background: linear-gradient(180deg, hsl(160 16% 10%), hsl(160 14% 9%) 60%, transparent); }

.container-narrow { max-width: 900px; }

.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.35rem, 1.05rem + 1.4vw, 1.9rem); margin: 14px 0 0; letter-spacing: -.01em; }
.section-head p { max-width: 620px; margin: 14px auto 0; color: hsl(var(--muted-fg)); font-size: 14.5px; line-height: 2.1; }
@media (min-width: 640px) {
  .section { padding-block: 96px; }
}

/* ------------------------------- هدر ------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: hsl(var(--bg) / .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid hsl(var(--border) / .8);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-logo {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(145deg, hsl(160 80% 32%), hsl(161 75% 22%));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 12px hsl(160 84% 24% / .25);
}
.brand-logo .icon { width: 20px; height: 20px; }
.logo-img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.brand-text strong { font-size: 15.5px; letter-spacing: -.01em; }
.brand-text small { font-size: 11px; font-weight: 500; color: hsl(var(--muted-fg)); }

.nav-desktop { display: none; gap: 2px; }
.nav-desktop a {
  font-size: 13.5px; font-weight: 600; color: hsl(var(--muted-fg));
  padding: 8px 14px; border-radius: 999px; transition: color .16s, background .16s;
}
.nav-desktop a:hover { color: hsl(var(--fg)); background: hsl(var(--muted)); }
@media (min-width: 900px) { .nav-desktop { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; border-radius: 999px; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

/* دکمه فروشگاه هدر — با تصویر یا آیکن (قابل مدیریت از پنل) */
.header-shop {
  display: none;
  border-radius: 999px;
  gap: 7px;
  background: hsl(var(--card));
  border: 1.5px solid hsl(160 45% 80%);
  color: hsl(163 55% 24%);
  font-weight: 800;
}
.header-shop:hover { border-color: hsl(160 60% 60%); background: hsl(160 45% 96%); color: hsl(163 65% 20%); }
.header-shop .header-shop-img {
  width: 20px; height: 20px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.header-shop .icon { width: 15px; height: 15px; }
@media (min-width: 900px) { .header-shop { display: inline-flex; } }
@media (min-width: 640px) and (max-width: 899px) { .header-shop { display: inline-flex; padding: 6px 12px; } }
[data-theme="dark"] .header-shop { border-color: hsl(160 25% 32%); color: hsl(160 35% 78%); }
[data-theme="dark"] .header-shop:hover { background: hsl(160 25% 16%); border-color: hsl(160 40% 45%); }

/* آیکن تم — نمایش بر اساس پوسته */
html:not([data-theme="dark"]) .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

/* ------------------------------- بنر — باکس گوشه‌گرد ------------------------------- */

.hero-wrap { padding-top: 18px; }
@media (min-width: 640px) { .hero-wrap { padding-top: 26px; } }

.hero {
  position: relative; overflow: hidden;
  border-radius: 26px;
  border: 1px solid hsl(160 26% 87%);
  background: linear-gradient(168deg, hsl(163 45% 97%) 0%, hsl(0 0% 100%) 48%, hsl(160 38% 95%) 100%);
  box-shadow: 0 1px 2px rgb(16 48 40 / .04), 0 26px 60px -20px rgb(16 48 40 / .16);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 300px at 90% -22%, hsl(160 72% 40% / .12), transparent 62%),
    radial-gradient(430px 250px at -8% 120%, hsl(25 92% 55% / .1), transparent 64%);
}
/* تکسچر نقطه‌ای بسیار ملایم — فقط CSS، بدون هیچ تصویر و بدون تحرک */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(hsl(160 45% 26% / .05) 1px, transparent 1.4px);
  background-size: 21px 21px;
  -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / .8), transparent 86%);
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / .8), transparent 86%);
}
[data-theme="dark"] .hero {
  border-color: hsl(160 14% 20%);
  background: linear-gradient(168deg, hsl(162 30% 12%) 0%, hsl(161 26% 10%) 48%, hsl(163 24% 8%) 100%);
  box-shadow: 0 1px 2px rgb(0 0 0 / .35), 0 26px 60px -20px rgb(0 0 0 / .55);
}
[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(560px 300px at 90% -22%, hsl(160 62% 36% / .22), transparent 62%),
    radial-gradient(430px 250px at -8% 120%, hsl(24 82% 48% / .12), transparent 64%);
}
[data-theme="dark"] .hero-bg::after {
  background-image: radial-gradient(rgb(255 255 255 / .045) 1px, transparent 1.4px);
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: 22px 40px;
  padding: 24px 20px;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1.22fr) minmax(0, .88fr); align-items: center; padding: 34px 30px; }
}
.hero-copy { max-width: 640px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid hsl(160 38% 84%);
  background: hsl(160 50% 96% / .85);
  border-radius: 999px; padding: 4px 13px;
  font-size: 11.5px; font-weight: 700; margin-bottom: 12px;
  color: hsl(163 62% 24%);
}
.hero-badge .icon { width: 13px; height: 13px; color: hsl(160 72% 32%); }

.hero h1 {
  color: hsl(163 72% 13%); margin: 0;
  font-size: clamp(1.4rem, 1.02rem + 2vw, 2.2rem);
  font-weight: 900; line-height: 1.42; letter-spacing: -.015em;
}
.hero-subtitle {
  display: block; margin-top: 8px;
  font-size: clamp(.95rem, .88rem + .5vw, 1.12rem);
  font-weight: 700; line-height: 1.7; color: hsl(163 58% 26%);
}
.hero-desc {
  margin-top: 12px; font-size: 12.5px; line-height: 1.95;
  color: hsl(160 9% 35%); max-width: 600px;
}
@media (min-width: 640px) { .hero-desc { font-size: 13.5px; } }

/* دکمه‌های بنر */
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-hero-primary {
  background: linear-gradient(155deg, hsl(161 70% 34%), hsl(162 76% 22%));
  color: hsl(0 0% 100%);
  box-shadow: 0 10px 26px hsl(160 84% 24% / .35);
}
.btn-hero-primary:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 14px 34px hsl(160 84% 24% / .44); }
.btn-hero-secondary {
  background: hsl(0 0% 100% / .55);
  color: hsl(163 58% 22%);
  border: 1px solid hsl(160 28% 82%);
}
.btn-hero-secondary:hover { border-color: hsl(25 85% 58%); color: hsl(24 78% 42%); transform: translateY(-2px); }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 11px 2px 1px; margin: 12px 0 0; list-style: none;
  border-top: 1px solid hsl(160 25% 88%);
  font-size: 11.5px; font-weight: 600; color: hsl(160 9% 33%);
}
.hero-trust li { display: flex; align-items: center; gap: 6px; }
.hero-trust .icon {
  width: 15px; height: 15px; padding: 2.5px; border-radius: 999px;
  background: hsl(155 65% 45% / .15); color: hsl(158 72% 30%);
}

/* پنل شیشه‌ای کنار متن — فهرست خروجی‌ها + موارد اعتماد */
.hero-side {
  border: 1px solid hsl(160 24% 89%);
  background: hsl(0 0% 100% / .6);
  backdrop-filter: blur(10px);
  border-radius: 18px; padding: 6px 14px;
  box-shadow: 0 10px 30px -14px rgb(16 48 40 / .14);
}
.hero-chips {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}
.hero-chip {
  display: flex; align-items: center;
  padding: 8px 2px;
  border-bottom: 1px dashed hsl(160 22% 90%);
  color: inherit;
}
.hero-chip:nth-last-child(-n+2) { border-bottom: 0; }
.hero-chip-pill { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
a.hero-chip { text-decoration: none; transition: background .2s, border-color .2s, transform .2s; border-radius: 10px; }
a.hero-chip:hover { background: hsl(160 40% 95% / .6); transform: translateY(-1px); }
.hero-chip-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: hsl(160 55% 94%);
  color: hsl(160 72% 28%);
  flex: none;
}
.hero-chip-ico .icon { width: 14px; height: 14px; }
.hero-chip-emoji { font-size: 13px; }
.hero-chip-text { display: flex; flex-direction: column; min-width: 0; }
.hero-chip-title { font-size: 12px; font-weight: 700; line-height: 1.6; color: hsl(163 45% 17%); }
.hero-chip-desc { font-size: 10.5px; line-height: 1.6; color: hsl(160 10% 40%); }

/* دارک‌مد بنر */
[data-theme="dark"] .hero-badge { background: hsl(160 24% 15% / .85); border-color: hsl(160 18% 25%); color: hsl(160 30% 80%); }
[data-theme="dark"] .hero-badge .icon { color: hsl(152 55% 62%); }
[data-theme="dark"] .hero h1 { color: hsl(160 40% 95%); }
[data-theme="dark"] .hero-subtitle { color: hsl(152 45% 72%); }
[data-theme="dark"] .hero-desc { color: hsl(160 10% 66%); }
[data-theme="dark"] .hero-trust { border-top-color: hsl(160 14% 21%); color: hsl(160 10% 65%); }
[data-theme="dark"] .hero-trust .icon { background: hsl(155 60% 45% / .2); color: hsl(150 60% 68%); }
[data-theme="dark"] .hero-side { border-color: hsl(160 14% 21%); background: hsl(160 20% 9% / .55); box-shadow: none; }
[data-theme="dark"] .hero-chip { border-bottom-color: hsl(160 13% 19%); }
[data-theme="dark"] a.hero-chip:hover { background: hsl(160 20% 14% / .6); }
[data-theme="dark"] .hero-chip-ico { background: hsl(160 20% 16%); color: hsl(152 50% 60%); }
[data-theme="dark"] .hero-chip-title { color: hsl(160 30% 90%); }
[data-theme="dark"] .hero-chip-desc { color: hsl(160 10% 60%); }
[data-theme="dark"] .btn-hero-secondary { background: hsl(160 20% 13% / .7); color: hsl(160 30% 84%); border-color: hsl(160 16% 25%); box-shadow: none; }
[data-theme="dark"] .btn-hero-secondary:hover { border-color: hsl(25 80% 55%); color: hsl(28 85% 68%); }

/* ------------------------------- ماشین‌حساب ------------------------------- */

.calc-card {
  position: relative;
  border-radius: var(--r-lg);
  box-shadow: var(--lift-lg);
  overflow: hidden;
}
/* موی گرادیانی بالای کارت — لهجه سبز به نارنجی */
.calc-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, hsl(160 68% 34%), hsl(152 60% 42%) 46%, hsl(28 88% 52%));
}
.calc-card .card-body { padding: 22px; }
@media (min-width: 640px) { .calc-card .card-body { padding: 34px; } }

/* نشانگر مراحل */
.steps { display: flex; align-items: center; list-style: none; padding: 0; margin: 0 0 26px; gap: 8px; }
.step { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.step:last-child { flex: 0 0 auto; }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 999px; flex-shrink: 0;
  border: 1.5px solid hsl(var(--border)); background: hsl(var(--muted) / .55); color: hsl(var(--muted-fg));
  font-weight: 800; font-size: 12.5px; transition: all .25s;
}
.step-title { display: none; font-size: 13px; font-weight: 700; color: hsl(var(--muted-fg)); white-space: nowrap; }
.step-line { flex: 1; height: 2px; border-radius: 2px; background: hsl(var(--border)); margin-inline-end: 12px; min-width: 14px; transition: background .25s; }
.step.active .step-num {
  border-color: hsl(var(--primary)); color: hsl(var(--primary));
  background: hsl(var(--primary) / .08);
  box-shadow: 0 0 0 4px hsl(var(--primary) / .1);
}
.step.active .step-title { color: hsl(var(--fg)); }
.step.done .step-num { border-color: hsl(var(--primary)); background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.step.done .step-line { background: hsl(var(--primary)); }
@media (min-width: 560px) { .step-title { display: block; } }

/* ═══════ دکمه‌های ماشین‌حساب — کارت‌های لمسی با جلوه نرم متحرک ═══════ */

/* — جلوه «شاین» (باریکه نور ملایم که آرام عبور می‌کند) — فقط transform/opacity، بدون لگ — */
@keyframes soft-sheen {
  0%   { transform: translateX(430%) skewX(14deg); opacity: 0; }
  10%  { opacity: 1; }
  42%, 100% { transform: translateX(-430%) skewX(14deg); opacity: 0; }
}

/* — کارت سیستم پرورش (بستر / قفس) — */
.sys-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sys-btn {
  position: relative; overflow: hidden; isolation: isolate;
  font-family: inherit; text-align: right; cursor: pointer;
  border: 1.5px solid hsl(var(--border)); border-radius: 16px;
  background: hsl(var(--card)); color: hsl(var(--card-fg));
  padding: 16px 18px;
  transition: border-color .22s, background-color .22s, box-shadow .28s, transform .22s;
}
.sys-btn:hover {
  border-color: hsl(var(--primary) / .5);
  background: hsl(var(--primary) / .025);
  transform: translateY(-2px);
  box-shadow: var(--lift);
}
.sys-btn:active { transform: translateY(0); }
.sys-btn.checked {
  border-color: hsl(var(--primary) / .85);
  background: linear-gradient(140deg, hsl(var(--primary) / .085), hsl(var(--primary) / .03));
  box-shadow: 0 0 0 3.5px hsl(var(--primary) / .12), 0 12px 28px hsl(160 55% 28% / .1);
}
.sys-head {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 11px; font-size: 14.5px; font-weight: 800;
}
.sys-head .icon {
  color: hsl(var(--primary)); width: 19px; height: 19px; flex: none;
  background: hsl(var(--primary) / .1); border-radius: 10px; padding: 5px;
  box-sizing: content-box;
}
.sys-desc {
  position: relative; z-index: 1;
  display: block; margin-top: 7px; font-size: 12px;
  color: hsl(var(--muted-fg)); line-height: 1.85;
}
/* نشان تیک گوشه کارت انتخاب‌شده */
.sys-check {
  position: absolute; top: 13px; inset-inline-end: 13px; z-index: 1;
  width: 21px; height: 21px; border-radius: 50%;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  display: grid; place-items: center;
  opacity: 0; transform: scale(.4);
  transition: opacity .18s, transform .28s cubic-bezier(.34, 1.56, .64, 1);
}
.sys-check .icon { width: 11px; height: 11px; }
.sys-btn.checked .sys-check { opacity: 1; transform: scale(1); }
/* باریکه نور — روی کارت فعال آرام و بی‌صدا حرکت می‌کند */
.sys-btn::after {
  content: ""; position: absolute; top: -70%; bottom: -70%; left: -38%; width: 32%;
  background: linear-gradient(100deg, transparent, hsl(var(--primary) / .05) 42%, hsl(var(--primary) / .09) 50%, hsl(var(--primary) / .05) 58%, transparent);
  transform: translateX(430%) skewX(14deg); opacity: 0;
  pointer-events: none;
}
.sys-btn.checked::after { animation: soft-sheen 6.5s ease-in-out .6s infinite; }
.sys-btn:hover::after { animation: soft-sheen 3.4s ease-in-out infinite; }

/* شبکه ابعاد */
.dim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.span-2 { grid-column: 1 / -1; }
.num-input { font-family: "Estedad", "Vazirmatn", sans-serif; text-align: center; direction: ltr; }

/* ورودی‌ها — پدینگ راحت‌تر و فوکوس حلقه‌ای */
.calc-card .input, .calc-card .select {
  padding: 12px 14px; border-radius: 12px;
  transition: border-color .16s, box-shadow .16s;
}
.calc-card .input:focus, .calc-card .select:focus {
  border-color: hsl(var(--primary) / .65);
  box-shadow: 0 0 0 4px hsl(var(--primary) / .1);
}

.input-wrap { position: relative; display: block; }
.input-ico {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: hsl(var(--muted-fg)); pointer-events: none;
}
.input-wrap .input { padding-right: 40px; direction: ltr; text-align: left; }

/* — کارت‌های نوع پرورش — ۴ گزینه بستر در یک ردیف (دسکتاپ) */
/* راهنمای «ابتدا سیستم را انتخاب کنید» — تا پیش از انتخاب سیستم */
.bird-hint {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; border-radius: 14px;
  border: 1.5px dashed hsl(var(--primary) / .38);
  background: hsl(var(--primary) / .04);
  color: hsl(var(--muted-fg)); font-size: 12.5px; line-height: 2;
}
.bird-hint b { color: hsl(var(--fg)); font-weight: 800; }
.bird-hint-ico {
  flex: none; width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: hsl(var(--primary) / .1); color: hsl(var(--primary));
}
.bird-hint-ico .icon { width: 18px; height: 18px; }
[data-theme="dark"] .bird-hint {
  border-color: hsl(160 30% 34%);
  background: hsl(160 20% 12% / .55);
  color: hsl(160 10% 72%);
}
[data-theme="dark"] .bird-hint b { color: hsl(160 30% 92%); }
[data-theme="dark"] .bird-hint-ico { background: hsl(160 60% 45% / .16); color: hsl(152 55% 62%); }
[data-theme="dark"] .sys-head { color: hsl(160 30% 92%); }

/* انیمیشن ظاهر شدن انواع پرنده پس از انتخاب سیستم */
.reveal-in { animation: reveal-in .5s cubic-bezier(.22, .9, .32, 1) both; }
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .reveal-in { animation: none; } }

.bird-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 560px) { .bird-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1024px) { #bird-floor { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bird-card {
  position: relative; overflow: hidden; isolation: isolate; cursor: pointer;
  padding: 12px 14px; border-radius: 14px;
  background: hsl(var(--card));
  border: 1.5px solid hsl(var(--border));
  transition: border-color .2s, background-color .2s, box-shadow .26s, transform .2s;
}
.bird-card:hover {
  border-color: hsl(var(--primary) / .45);
  transform: translateY(-2px);
  box-shadow: var(--lift);
}
.bird-card.checked {
  border-color: hsl(var(--primary) / .8);
  background: linear-gradient(140deg, hsl(var(--primary) / .075), hsl(var(--primary) / .02));
  box-shadow: 0 0 0 3px hsl(var(--primary) / .1);
}
.bird-card input { display: none; }
.bird-text { display: flex; flex-direction: column; min-width: 0; padding-inline-end: 22px; }
.bird-text .rc-title { display: block; position: relative; z-index: 1; }
.bird-text .rc-desc { display: block; margin-top: 3px; position: relative; z-index: 1; }
/* نقطه تیک کوچک گوشه کارت انتخاب‌شده */
.bird-card::before {
  content: "✓"; position: absolute; top: 10px; inset-inline-end: 10px; z-index: 1;
  width: 17px; height: 17px; border-radius: 50%;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font-size: 10.5px; font-weight: 900; line-height: 1;
  display: grid; place-items: center;
  opacity: 0; transform: scale(.4);
  transition: opacity .16s, transform .26s cubic-bezier(.34, 1.56, .64, 1);
}
.bird-card.checked::before { opacity: 1; transform: scale(1); }
.bird-card::after {
  content: ""; position: absolute; top: -70%; bottom: -70%; left: -38%; width: 32%;
  background: linear-gradient(100deg, transparent, hsl(var(--primary) / .05) 42%, hsl(var(--primary) / .08) 50%, hsl(var(--primary) / .05) 58%, transparent);
  transform: translateX(430%) skewX(14deg); opacity: 0;
  pointer-events: none;
}
.bird-card.checked::after { animation: soft-sheen 6.5s ease-in-out 1.1s infinite; }
.bird-card:hover::after { animation: soft-sheen 3.4s ease-in-out infinite; }

/* — دکمه اصلی ویزارد: شاین نرم روی هاور — */
.wizard-actions .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.wizard-actions .btn-primary::after {
  content: ""; position: absolute; top: -70%; bottom: -70%; left: -38%; width: 30%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .18) 50%, transparent);
  transform: translateX(430%) skewX(14deg); opacity: 0;
  pointer-events: none;
}
.wizard-actions .btn-primary:hover:not(:disabled)::after { animation: soft-sheen 3s ease-in-out infinite; }
.wizard-actions .btn-primary > * { position: relative; z-index: 1; }

/* تیره — کنتراست بهتر ورودی‌ها و متن کارت‌ها */
[data-theme="dark"] .calc-card .input,
[data-theme="dark"] .calc-card .select { border-color: hsl(160 12% 30%); }
[data-theme="dark"] .calc-card .input::placeholder { color: hsl(160 8% 52%); }
[data-theme="dark"] .points li { color: hsl(160 10% 72%); }
[data-theme="dark"] .eq-desc,
[data-theme="dark"] .tile-desc,
[data-theme="dark"] .cage-tile .tile-desc { color: hsl(160 8% 68%); }

/* پیش‌نمایش هندسه */
.preview-box {
  margin-top: 22px; border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / .35); border-radius: var(--r-md); padding: 18px;
}
.preview-title { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: hsl(var(--muted-fg)); margin: 0 0 10px; }
.preview-title .icon { width: 15px; height: 15px; }
.preview-dims { font-size: 14px; margin: 0 0 10px; }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 13.5px; }
@media (min-width: 640px) { .preview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* جعبه‌های راهنما */
.note-box {
  display: flex; align-items: flex-start; gap: 11px;
  background: hsl(var(--primary) / .05); border: 1px solid hsl(var(--primary) / .14);
  border-radius: var(--r-md); padding: 16px 18px; font-size: 13.5px; line-height: 2;
}
.note-box .icon { color: hsl(var(--primary)); width: 19px; height: 19px; flex-shrink: 0; margin-top: 5px; }
.note-box p { margin: 0; }

.summary-box {
  border: 1px solid hsl(var(--border)); background: hsl(var(--muted) / .3);
  border-radius: var(--r-md); padding: 16px 18px; font-size: 13.5px;
}
.summary-title { display: flex; align-items: center; gap: 7px; font-weight: 800; margin: 0 0 8px; }
.summary-title .icon { color: hsl(var(--primary)); width: 16px; height: 16px; }
.summary-box > p:last-child { margin: 0; color: hsl(var(--muted-fg)); line-height: 2.1; }

.wizard-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.wizard-actions.between { justify-content: space-between; }
.wizard-actions .btn-primary { border-radius: 14px; }

.field { min-width: 0; }
#birdtype-field { margin-top: 18px; }

/* ------------------------------- نتایج ------------------------------- */

#results-container > * + * { margin-top: 20px; }

/* هدر موفقیت */
.res-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid hsl(var(--border)); border-radius: var(--r-lg);
  background: hsl(var(--card));
  box-shadow: var(--lift);
  padding: 18px 20px;
}
.res-header-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.res-check {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 999px;
  background: hsl(var(--primary) / .1); color: hsl(var(--primary));
}
[data-theme="dark"] .res-check { background: hsl(var(--primary) / .16); }
.res-check .icon { width: 23px; height: 23px; }
.res-head-text { min-width: 0; }
.res-title { font-weight: 800; font-size: 15.5px; margin: 0; }
.res-desc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 12.5px; color: hsl(var(--muted-fg)); }
.res-chip { max-width: 100%; min-width: 0; text-align: right; line-height: 1.6; overflow-wrap: break-word; }
.res-chip .icon { width: 12px; height: 12px; flex-shrink: 0; }
.res-header-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* نوار شاخص‌ها — یک کارت، چهار خانه */
.res-stats { border-radius: var(--r-lg); box-shadow: var(--lift); overflow: hidden; }
.res-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .res-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-cell { display: flex; align-items: center; gap: 11px; padding: 15px 17px; min-width: 0; }
.stat-cell + .stat-cell { border-top: 1px solid hsl(var(--border) / .7); }
@media (min-width: 640px) {
  .stat-cell + .stat-cell { border-top: 0; border-inline-start: 1px solid hsl(var(--border) / .7); }
}
.stat-ico-sm {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  background: hsl(var(--primary) / .09); color: hsl(var(--primary));
  display: grid; place-items: center;
}
.stat-ico-sm .icon { width: 18px; height: 18px; }
.stat-cell:nth-child(even) .stat-ico-sm { background: hsl(var(--amber) / .1); color: hsl(30 85% 42%); }
[data-theme="dark"] .stat-cell:nth-child(even) .stat-ico-sm { color: hsl(38 88% 64%); }
.stat-body { min-width: 0; }
.stat-val { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.stat-val .num { font-family: "Estedad", "Vazirmatn", sans-serif; font-size: 1.05rem; font-weight: 800; line-height: 1.45; }
.stat-label { margin: 1px 0 0; font-size: 11px; color: hsl(var(--muted-fg)); }

/* کارت اصلی هواکش ۱۴۰ — تمام‌عرض افقی */
.eq-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap;
  border-radius: var(--r-lg); padding: 22px 26px;
  background:
    radial-gradient(560px 300px at 12% -30%, hsl(160 70% 42% / .35), transparent 60%),
    linear-gradient(230deg, hsl(162 68% 26%), hsl(161 72% 15%));
  color: #fff;
  box-shadow: 0 18px 48px hsl(161 75% 22% / .3);
}
[data-theme="dark"] .eq-hero {
  background:
    radial-gradient(560px 300px at 12% -30%, hsl(160 55% 40% / .3), transparent 60%),
    linear-gradient(230deg, hsl(162 50% 26%), hsl(161 48% 12%));
}
.eq-hero-main { display: flex; align-items: center; gap: 15px; min-width: 0; flex: 1; }
.eq-hero-ico {
  width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0;
  background: rgb(255 255 255 / .13); color: #fff;
  border: 1px solid rgb(255 255 255 / .16);
  display: grid; place-items: center;
}
.eq-hero-ico .icon { width: 27px; height: 27px; }
.eq-hero-label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 800; margin: 0; line-height: 1.6; }
.eq-hero-desc { margin: 4px 0 0; font-size: 12.5px; color: rgb(255 255 255 / .75); line-height: 1.85; }
.eq-hero-num { display: flex; align-items: baseline; gap: 9px; }
.eq-hero-num .num { font-family: "Estedad", "Vazirmatn", sans-serif; font-size: 3.4rem; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
.eq-hero-num .eq-unit { font-size: 13.5px; font-weight: 700; color: rgb(255 255 255 / .78); }
.eq-hero-watermark {
  position: absolute; bottom: -56px; left: -44px;
  width: 210px; height: 210px; color: rgb(255 255 255 / .07);
  transform: rotate(12deg); pointer-events: none;
}
.eq-hero-watermark .icon { width: 100%; height: 100%; stroke-width: 1.1; }
.badge-onprimary { background: rgb(255 255 255 / .14); color: #fff; border-color: rgb(255 255 255 / .24); }

/* کارت‌های تجهیزات */
.eq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .eq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .eq-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.eq-card {
  position: relative;
  background: hsl(var(--card)); color: hsl(var(--card-fg));
  border: 1px solid hsl(var(--border)); border-radius: var(--r-md);
  box-shadow: var(--lift); padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.eq-card:hover { transform: translateY(-3px); border-color: hsl(var(--primary) / .3); box-shadow: var(--lift-lg); }
.eq-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; }
.eq-ico-box {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 12px;
  background: hsl(var(--primary) / .09); color: hsl(var(--primary));
}
.eq-ico-box .icon { width: 20px; height: 20px; }
.eq-card.t-emerald .eq-ico-box { background: hsl(160 70% 32% / .1); color: hsl(160 70% 30%); }
.eq-card.t-amber .eq-ico-box { background: hsl(var(--amber) / .11); color: hsl(30 85% 44%); }
[data-theme="dark"] .eq-card.t-amber .eq-ico-box { color: hsl(38 88% 64%); }
.eq-card.t-teal .eq-ico-box { background: hsl(174 62% 32% / .1); color: hsl(174 70% 30%); }
[data-theme="dark"] .eq-card.t-teal .eq-ico-box { color: hsl(174 45% 60%); }

.eq-num { display: flex; align-items: baseline; gap: 4px; min-width: 0; justify-self: start; flex-wrap: wrap; }
.eq-num .num { font-family: "Estedad", "Vazirmatn", sans-serif; font-weight: 800; font-size: 1.55rem; line-height: 1.2; color: hsl(var(--primary)); }
.eq-card.t-amber .eq-num .num { color: hsl(30 88% 42%); }
[data-theme="dark"] .eq-card.t-amber .eq-num .num { color: hsl(38 88% 64%); }
.eq-card.t-emerald .eq-num .num { color: hsl(160 70% 30%); }
.eq-unit { font-size: 11px; font-weight: 700; color: hsl(var(--muted-fg)); overflow-wrap: anywhere; }
.eq-label { font-weight: 800; font-size: 13px; margin: 0; line-height: 1.65; }
.eq-desc { font-size: 11.5px; color: hsl(var(--muted-fg)); margin: 0; line-height: 1.8; }

/* کارت‌های بخش نتایج */
.res-card { border-radius: var(--r-lg); box-shadow: var(--lift); }
.res-card .card-header { padding: 20px 22px 0; }
.res-card .card-body { padding: 20px 22px 22px; }
.card-title { font-size: 15.5px; }
.card-title .icon { width: 19px; height: 19px; }

/* تایل‌های خطوط و قفس */
.stat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { border-radius: var(--r-md); padding: 16px; border: 1px solid; }
.tile-emerald { border-color: hsl(160 70% 34% / .22); background: hsl(160 70% 34% / .045); }
.tile-amber { border-color: hsl(30 88% 46% / .24); background: hsl(30 88% 46% / .05); }
.tile-teal { border-color: hsl(174 62% 32% / .22); background: hsl(174 62% 32% / .045); }
.tile-label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: hsl(var(--muted-fg)); margin: 0; }
.tile-label .icon { width: 15px; height: 15px; }
.tile-emerald .tile-label .icon { color: hsl(160 70% 34%); }
.tile-amber .tile-label .icon { color: hsl(30 88% 46%); }
[data-theme="dark"] .tile-amber .tile-label .icon { color: hsl(38 88% 64%); }
.tile-teal .tile-label .icon { color: hsl(174 70% 32%); }
[data-theme="dark"] .tile-teal .tile-label .icon { color: hsl(174 45% 62%); }
.tile-num { display: flex; align-items: baseline; gap: 6px; margin: 9px 0 0; }
.tile-num .num { font-family: "Estedad", "Vazirmatn", sans-serif; font-size: 1.7rem; font-weight: 800; line-height: 1.2; }
.tile-emerald .tile-num .num { color: hsl(160 70% 30%); }
[data-theme="dark"] .tile-emerald .tile-num .num { color: hsl(160 70% 62%); }
.tile-amber .tile-num .num { color: hsl(30 88% 44%); }
[data-theme="dark"] .tile-amber .tile-num .num { color: hsl(38 88% 64%); }
.tile-teal .tile-num .num { color: hsl(174 70% 30%); }
[data-theme="dark"] .tile-teal .tile-num .num { color: hsl(174 45% 62%); }
.tile-unit { font-size: 12px; font-weight: 700; color: hsl(var(--muted-fg)); }
.tile-desc { font-size: 12px; color: hsl(var(--muted-fg)); margin: 7px 0 0; line-height: 1.85; }

/* شماتیک چیدمان خطوط */
.schematic {
  --feeder-c: hsl(28 85% 48%);    /* رنگ خطوط دانخوری — نارنجی (خوراک) */
  --feeder-c-2: hsl(32 90% 58%);
}
[data-theme="dark"] .schematic {
  --feeder-c: hsl(30 80% 62%);
  --feeder-c-2: hsl(32 85% 70%);
}
.schematic-wrap {
  margin-top: 16px; border: 1px solid hsl(var(--border)); border-radius: var(--r-md);
  background: linear-gradient(180deg, hsl(var(--muted) / .25), hsl(var(--bg)));
  padding: 14px;
}
@media (min-width: 640px) { .schematic-wrap { padding: 18px; } }
.schematic { margin: 0; }
.schematic svg { width: 100%; height: auto; display: block; }
.legend {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; margin-top: 8px; font-size: 11.5px; color: hsl(var(--muted-fg));
}
.legend-items { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.legend-items > span { display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 999px; }
.dot-emerald { background: #10b981; }
.dot-teal { background: #0d9488; }
.dot-amber { background: hsl(28 85% 50%); }
.bed { display: inline-block; width: 16px; height: 10px; border-radius: 3px; background: hsl(28 70% 35% / .25); }

.spacing-note {
  display: flex; align-items: flex-start; gap: 9px;
  border-radius: var(--r-md); padding: 15px 17px; font-size: 13.5px; line-height: 1.95; margin-top: 16px;
}
.spacing-note .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 5px; }
.spacing-note.ok { background: hsl(var(--primary) / .05); }
.spacing-note.ok .icon { color: hsl(var(--primary)); }
.spacing-note.tight { border: 1px solid hsl(38 90% 45% / .4); background: hsl(var(--amber) / .07); }
.spacing-note.tight .icon { color: hsl(35 90% 44%); }

/* خلاصه قفس */
.cage-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cage-tile { border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: var(--r-md); padding: 17px; }
.tile-ico {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px; margin-bottom: 11px;
  background: hsl(var(--primary) / .09); color: hsl(var(--primary));
}
.tile-ico .icon { width: 19px; height: 19px; }
.cage-tile .tile-num { margin: 0; }
.cage-tile .tile-num .num { font-size: 1.5rem; color: hsl(var(--fg)); }
.cage-tile .tile-num span:last-child { font-size: 12px; font-weight: 700; color: hsl(var(--muted-fg)); }
.cage-note {
  background: hsl(var(--primary) / .05); border-radius: var(--r-md);
  padding: 15px 17px; font-size: 13.5px; line-height: 2.05; margin: 16px 0 0;
}

/* مقایسه دو مدل */
.cmp-row { margin-bottom: 20px; }
.cmp-row.dim { opacity: .5; transition: opacity .3s; }
.cmp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 9px; font-size: 13.5px; }
.cmp-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; min-width: 0; }
.cmp-note { font-weight: 400; font-size: 11.5px; color: hsl(var(--muted-fg)); }
.badge-basis {
  background: hsl(160 84% 39% / .08);
  border-color: hsl(160 84% 39% / .32);
  color: hsl(161 80% 26%);
}
[data-theme="dark"] .badge-basis { color: hsl(160 70% 62%); }
.cmp-nums { display: inline-flex; align-items: baseline; gap: 5px; font-size: 12px; color: hsl(var(--muted-fg)); }
.cmp-nums .num { font-weight: 800; font-size: 13.5px; color: hsl(var(--fg)); }
.cmp-nums i { font-style: normal; color: hsl(var(--border)); margin-inline: 3px; }
[data-theme="dark"] .cmp-nums i { color: hsl(160 10% 45%); }
.cmp-nums b { font-family: "Estedad", "Vazirmatn", sans-serif; }
.cmp-bar > div { width: 0; }
.bar-green { background: linear-gradient(270deg, hsl(var(--primary)), hsl(160 68% 46%)); }
.bar-amber { background: linear-gradient(270deg, hsl(28 88% 50%), hsl(33 92% 58%)); }
.bar-teal { background: linear-gradient(270deg, hsl(174 62% 34%), hsl(174 55% 46%)); }

/* جمع‌بندی انتخاب نهایی */
.final-line {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; border-top: 1px solid hsl(var(--border)); margin-top: 18px; padding-top: 16px;
}
.final-line p { margin: 0; font-size: 13px; line-height: 2.05; }
.final-num { display: inline-flex; align-items: baseline; gap: 6px; margin-inline: 6px; }
.final-num .num { font-family: "Estedad", "Vazirmatn", sans-serif; font-size: 1.95rem; font-weight: 900; color: hsl(var(--primary)); line-height: 1.2; }
.final-num small { font-size: 12px; font-weight: 700; color: hsl(var(--muted-fg)); }

/* مبانی محاسبه */
.basis { border: 1px solid hsl(var(--border)); border-radius: var(--r-md); background: hsl(var(--card)); }
.basis summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer; padding: 16px 18px; font-size: 13.5px; font-weight: 700; list-style: none;
  border-radius: var(--r-md); transition: background .15s;
}
.basis summary:hover { background: hsl(var(--muted) / .45); }
.basis summary::-webkit-details-marker { display: none; }
.basis summary > span:first-child { display: flex; align-items: center; gap: 8px; }
.basis summary .icon { color: hsl(var(--primary)); width: 16px; height: 16px; }
.basis-toggle { font-size: 12px; font-weight: 500; color: hsl(var(--muted-fg)); }
.basis-body { border-top: 1px solid hsl(var(--border)); background: hsl(var(--muted) / .3); border-radius: 0 0 var(--r-md) var(--r-md); padding: 20px; }
.basis-group + .basis-group { margin-top: 18px; }
.basis-cat { font-weight: 800; font-size: 13px; margin: 0 0 7px; color: hsl(var(--primary)); }
.basis-body ul { margin: 0; padding: 0 18px 0 0; list-style: disc; }
.basis-body li { font-size: 13px; line-height: 2.15; color: hsl(var(--muted-fg)); }
.basis-body li::marker { color: hsl(var(--primary)); }
.basis-body li b { color: hsl(var(--fg)); }

/* --------------- قدم بعدی — داخل نتایج (دو کارت مشاوره) --------------- */

.res-next-block {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  border-radius: var(--r-lg);
  box-shadow: var(--lift);
  padding: 26px;
}
.res-next-head { text-align: center; margin-bottom: 20px; }
.res-next-head h3 {
  font-family: "Estedad", "Vazirmatn", sans-serif;
  font-size: 1.15rem; margin: 0 0 7px; letter-spacing: -.01em;
}
.res-next-head p { margin: 0 auto; font-size: 13px; color: hsl(var(--muted-fg)); line-height: 1.95; max-width: 480px; }

.next-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 639px) { .next-cards { grid-template-columns: 1fr; } }

.next-card {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 20px; border-radius: var(--r-md);
  font-family: inherit; font-size: inherit; text-align: start; cursor: pointer;
  text-decoration: none; color: inherit;
  background: hsl(var(--muted) / .4);
  transition: transform .22s, box-shadow .22s, border-color .22s, background .22s;
}
.next-card:hover {
  transform: translateY(-3px);
  background: hsl(var(--card));
  border-color: hsl(160 70% 32% / .45);
  box-shadow: var(--lift-lg);
}
.next-card:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 3px; }
.next-card.card-amber:hover { border-color: hsl(var(--amber) / .5); box-shadow: var(--lift-lg); }

.next-ico {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 54px; height: 54px; border-radius: 16px;
  background: hsl(160 84% 39% / .11); color: hsl(161 80% 28%);
}
.next-ico .icon { width: 25px; height: 25px; }
[data-theme="dark"] .next-ico { background: hsl(160 60% 45% / .14); color: hsl(160 65% 62%); }
.next-ico.ico-amber { background: hsl(var(--amber) / .12); color: hsl(30 88% 44%); }
[data-theme="dark"] .next-ico.ico-amber { background: hsl(38 90% 55% / .16); color: hsl(38 90% 64%); }

.next-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.next-title {
  font-family: "Estedad", "Vazirmatn", sans-serif;
  font-size: 16px; font-weight: 800; line-height: 1.7; color: hsl(var(--fg));
}
.next-desc { font-size: 13px; color: hsl(var(--muted-fg)); line-height: 1.9; }

.next-arrow {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 999px;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); color: hsl(var(--muted-fg));
  transition: transform .22s, background .22s, color .22s, border-color .22s;
}
.next-arrow .icon { width: 18px; height: 18px; }
.next-card:hover .next-arrow {
  transform: translateX(-5px);
  background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: hsl(var(--primary-foreground));
}

/* ------------------------------- دیالوگ ارسال پیام ------------------------------- */

/* هدر زمردی با نشان — چهره جذاب دیالوگ */
.msg-dialog {
  width: min(560px, 100%); border-radius: 24px; border: 0; overflow: hidden;
  box-shadow: 0 40px 90px -24px rgb(10 40 32 / .45), 0 0 0 1px hsl(160 40% 50% / .14);
}
.msg-dialog .dialog-header {
  position: relative; overflow: hidden;
  background:
    radial-gradient(420px 240px at 90% -70%, hsl(160 80% 55% / .38), transparent 62%),
    radial-gradient(300px 200px at 8% 130%, hsl(174 60% 40% / .3), transparent 60%),
    linear-gradient(160deg, hsl(166 68% 24%) 0%, hsl(162 72% 17%) 58%, hsl(163 76% 13%) 100%);
  border-bottom: 0; padding: 24px 22px 21px;
}
.msg-dialog .dialog-header::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(255 255 255 / .07) 1px, transparent 1.4px);
  background-size: 17px 17px;
  -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / .7), transparent 90%);
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / .7), transparent 90%);
}
.msg-dialog .dialog-header::before {
  content: ""; position: absolute; top: -80%; bottom: -80%; left: -30%; width: 34%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .1) 50%, transparent);
  transform: translateX(280%) skewX(16deg); pointer-events: none;
  animation: hdr-sheen 7s ease-in-out 1s infinite;
}
@keyframes hdr-sheen {
  0%, 55% { transform: translateX(280%) skewX(16deg); opacity: 0; }
  62% { opacity: 1; }
  85%, 100% { transform: translateX(-420%) skewX(16deg); opacity: 0; }
}
.msg-dialog .dialog-title { color: #fff; font-size: 16.5px; gap: 11px; }
.msg-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 14px; flex: none;
  background: linear-gradient(145deg, rgb(255 255 255 / .22), rgb(255 255 255 / .08));
  border: 1px solid rgb(255 255 255 / .3);
  box-shadow: 0 6px 18px rgb(6 32 24 / .28), inset 0 1px 0 rgb(255 255 255 / .28);
  color: hsl(150 70% 88%);
  backdrop-filter: blur(6px);
}
.msg-badge .icon { width: 17px; height: 17px; }
.msg-dialog .dialog-desc { color: rgb(255 255 255 / .75); margin-top: 7px; font-size: 12.5px; line-height: 1.9; }
.msg-dialog .dialog-close { color: rgb(255 255 255 / .8); }
.msg-dialog .dialog-close:hover { background: rgb(255 255 255 / .14); color: #fff; }

/* بدنه — فرم */
.msg-dialog .dialog-body { padding: 20px; background: hsl(var(--card)); }
.msg-fields { display: flex; flex-direction: column; gap: 13px; }
.msg-fields .field { margin: 0; }
.msg-fields .input, .msg-fields .textarea, .msg-fields .select {
  padding: 12.5px 15px; border-radius: 13px;
  background: hsl(var(--muted) / .35);
  box-shadow: 0 1px 2px rgb(16 48 40 / .04);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.msg-fields .input:hover, .msg-fields .textarea:hover, .msg-fields .select:hover { border-color: hsl(160 30% 76%); }
.msg-fields .input:focus, .msg-fields .textarea:focus, .msg-fields .select:focus {
  background: hsl(var(--card));
  border-color: hsl(160 70% 36%);
  box-shadow: 0 0 0 4px hsl(160 84% 30% / .13), 0 6px 18px -8px rgb(16 48 40 / .18);
}

.msg-note {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: hsl(160 20% 34%); line-height: 1.8; margin: 16px 0 0;
  background: hsl(160 45% 95% / .75);
  border: 1px solid hsl(160 30% 88%);
  border-radius: 999px; padding: 7px 13px;
}
[data-theme="dark"] .msg-note {
  color: hsl(160 12% 72%);
  background: hsl(160 18% 13% / .7);
  border-color: hsl(160 14% 22%);
}
.msg-note .icon { width: 15px; height: 15px; flex-shrink: 0; color: hsl(160 70% 32%); }
[data-theme="dark"] .msg-note .icon { color: hsl(152 55% 62%); }

/* پیوست نتیجه محاسبه */
.msg-attached {
  position: relative;
  border: 1px solid hsl(160 35% 88%);
  background:
    radial-gradient(280px 130px at 92% -60%, hsl(160 70% 40% / .09), transparent 70%),
    hsl(160 45% 96% / .6);
  border-radius: 14px; padding: 13px 15px; margin-top: 15px;
}
.ma-label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: hsl(161 65% 26%); }
.ma-label .icon {
  width: 24px; height: 24px; padding: 5px; border-radius: 8px; flex-shrink: 0;
  background: hsl(160 60% 90%); color: hsl(160 72% 28%);
}
.ma-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ma-chips .chip { font-size: 11px; }

/* دکمه ارسال — گرادیان + درخشش */
.msg-submit { margin-top: 18px; }
.msg-submit .btn {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(155deg, hsl(163 75% 36%) 0%, hsl(162 78% 24%) 100%);
  box-shadow: 0 12px 28px hsl(160 84% 24% / .38), inset 0 1px 0 rgb(255 255 255 / .18);
}
.msg-submit .btn::after {
  content: ""; position: absolute; top: -70%; bottom: -70%; left: -38%; width: 30%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .22) 50%, transparent);
  transform: translateX(420%) skewX(14deg); opacity: 0; pointer-events: none;
}
.msg-submit .btn:hover:not(:disabled)::after { animation: soft-sheen 3.2s ease-in-out infinite; }
.msg-submit .btn:hover:not(:disabled) {
  filter: brightness(1.07); transform: translateY(-1px);
  box-shadow: 0 16px 36px hsl(160 84% 24% / .46), inset 0 1px 0 rgb(255 255 255 / .18);
}

/* حالت موفقیت — انیمیشن تیک */
.msg-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 26px 8px 10px; }
.ms-ico {
  display: flex; align-items: center; justify-content: center;
  width: 74px; height: 74px; border-radius: 999px;
  background: hsl(160 84% 39% / .11); color: hsl(161 80% 28%);
  animation: msPop .45s cubic-bezier(.2,.9,.3,1.4);
}
@keyframes msPop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
[data-theme="dark"] .ms-ico { background: hsl(160 60% 45% / .16); color: hsl(160 65% 62%); }
.ms-ico .icon { width: 34px; height: 34px; }
.ms-title { font-weight: 800; font-size: 1.1rem; margin: 8px 0 0; }
.msg-code {
  font-family: "Estedad", "Vazirmatn", sans-serif; font-size: 1.5rem; font-weight: 900;
  letter-spacing: .12em; color: hsl(30 88% 44%); margin: 2px 0 0;
}
[data-theme="dark"] .msg-code { color: hsl(38 88% 64%); }
.ms-desc { font-size: 13.5px; color: hsl(var(--muted-fg)); line-height: 2.1; margin: 0; max-width: 420px; }
.msg-success-actions { margin-top: 12px; }

/* دارک‌مد دیالوگ پیام */
[data-theme="dark"] .msg-dialog .dialog-header {
  background:
    radial-gradient(340px 190px at 88% -40%, hsl(160 62% 40% / .4), transparent 65%),
    linear-gradient(160deg, hsl(162 42% 16%) 0%, hsl(161 46% 11%) 100%);
}
[data-theme="dark"] .msg-fields .input, [data-theme="dark"] .msg-fields .textarea, [data-theme="dark"] .msg-fields .select {
  background: hsl(160 14% 13%);
  box-shadow: none;
}
[data-theme="dark"] .msg-fields .input:focus, [data-theme="dark"] .msg-fields .textarea:focus, [data-theme="dark"] .msg-fields .select:focus {
  background: hsl(160 16% 12%);
  border-color: hsl(160 55% 45%);
  box-shadow: 0 0 0 4px hsl(160 70% 42% / .16);
}
[data-theme="dark"] .msg-attached {
  border-color: hsl(160 16% 22%);
  background:
    radial-gradient(280px 130px at 92% -60%, hsl(160 60% 42% / .14), transparent 70%),
    hsl(160 20% 12% / .7);
}
[data-theme="dark"] .ma-label { color: hsl(160 45% 78%); }
[data-theme="dark"] .ma-label .icon { background: hsl(160 22% 18%); color: hsl(160 55% 60%); }
[data-theme="dark"] .msg-attached .chip { background: hsl(160 20% 15%); border-color: hsl(160 15% 24%); color: hsl(160 20% 85%); }

/* ------------------------------- بخش دو مدل ------------------------------- */

.models-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .models-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.model-card { border-radius: var(--r-lg); box-shadow: var(--lift); transition: transform .22s, box-shadow .22s, border-color .22s; }
.model-ico {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
}
.model-ico .icon { width: 23px; height: 23px; }
.ico-green { background: hsl(var(--primary) / .09); color: hsl(var(--primary)); }
.ico-amber { background: hsl(var(--amber) / .11); color: hsl(30 85% 44%); }
[data-theme="dark"] .ico-amber { background: hsl(38 90% 55% / .15); color: hsl(38 90% 64%); }
.ico-teal { background: hsl(174 62% 32% / .1); color: hsl(174 70% 32%); }
[data-theme="dark"] .ico-teal { background: hsl(174 45% 50% / .14); color: hsl(174 45% 62%); }
.model-card h3 { font-size: 15.5px; line-height: 1.75; letter-spacing: -.01em; }
a.model-card { text-decoration: none; color: inherit; }
a.model-card:hover, .model-card:hover { transform: translateY(-4px); box-shadow: var(--lift-lg); border-color: hsl(var(--primary) / .3); }

.points { margin: 0; padding: 0; list-style: none; }
.points li { display: flex; gap: 11px; font-size: 13.5px; color: hsl(var(--muted-fg)); line-height: 2.05; }
.points li + li { margin-top: 11px; }
.points li::before {
  content: "✓"; width: 19px; height: 19px; border-radius: 999px; flex-shrink: 0;
  background: hsl(var(--primary) / .1); color: hsl(var(--primary));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; margin-top: 7px;
}

/* چیپ‌های خروجی گزارش — آیکن خطی داخل قرص آرام */
.chips-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; }
.chips-label { font-size: 13px; font-weight: 700; color: hsl(var(--muted-fg)); }
.static-chip {
  cursor: default; background: hsl(var(--card));
  padding: 7px 14px; gap: 7px; font-size: 12.5px; font-weight: 600; color: hsl(var(--muted-fg));
}
.static-chip:hover { color: hsl(var(--muted-fg)); border-color: hsl(var(--border)); }
.chip-ico { display: inline-flex; color: hsl(var(--primary)); line-height: 1; }
.chip-ico .icon { width: 14px; height: 14px; }
.chip-emoji { font-size: 14px; line-height: 1; }

/* ------------------------------- سؤالات پرتکرار ------------------------------- */

/* فهرست یکپارچه با جداکننده — به‌جای کارت‌های جزیره‌ای */
.faq-list {
  display: flex; flex-direction: column;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: var(--r-lg); box-shadow: var(--lift); overflow: hidden;
}
.faq-list .accordion-item { border: 0; border-radius: 0; background: transparent; }
.faq-list .accordion-item + .accordion-item { border-top: 1px solid hsl(var(--border)); }
.faq-list .accordion-trigger {
  padding: 18px 22px; font-size: 14.5px; font-weight: 700; transition: background .15s, color .15s;
}
.faq-list .accordion-trigger:hover { background: hsl(var(--muted) / .4); color: hsl(var(--primary)); }
.faq-list .accordion-item.open .accordion-trigger { color: hsl(var(--primary)); }
.faq-list .accordion-content { padding: 2px 22px 20px; font-size: 13.5px; line-height: 2.15; }
.accordion-trigger span { text-align: right; }

/* ------------------------------- فوتر ------------------------------- */

.site-footer {
  background: linear-gradient(180deg, hsl(161 42% 13%), hsl(161 48% 8%));
  color: hsl(160 20% 96%);
}
[data-theme="dark"] .site-footer { background: linear-gradient(180deg, hsl(161 30% 10%), hsl(161 32% 6%)); }
.site-footer .container { padding-block: 56px 40px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.footer-brand .brand-text strong { color: hsl(160 20% 96%); }
/* لوگوی فوتر — روی زمینه تیره، داخل قاب روشن */
.footer-logo {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: hsl(0 0% 100%);
  box-shadow: 0 6px 18px rgb(0 0 0 / .25);
  flex-shrink: 0;
  padding: 5px;
}
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-about { margin: 16px 0 0; font-size: 13px; line-height: 2.15; color: rgb(255 255 255 / .66); }
.footer-site { margin-top: 22px; background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .16); color: rgb(255 255 255 / .92); }
.footer-site:hover { background: rgb(255 255 255 / .14); }

.footer-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin: 0 0 18px; }
.footer-title .icon { color: hsl(152 55% 62%); width: 16px; height: 16px; }
.footer-phones { margin: 0; padding: 0; list-style: none; }
.footer-phones li + li { margin-top: 13px; }
.footer-phones a {
  font-family: "Estedad", "Vazirmatn", sans-serif; font-size: 14.5px;
  color: rgb(255 255 255 / .9); transition: color .15s;
}
.footer-phones a:hover { color: hsl(152 55% 62%); }
.footer-address { font-size: 13px; line-height: 2.15; color: rgb(255 255 255 / .66); margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.footer-links a { font-size: 13px; color: rgb(255 255 255 / .78); transition: color .15s; }
.footer-links a:hover { color: hsl(152 55% 62%); }

.footer-sep { height: 1px; background: rgb(255 255 255 / .1); margin: 40px 0 22px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.footer-bottom p { margin: 0; font-size: 11.5px; color: rgb(255 255 255 / .46); }
.footer-bottom-side { display: flex; align-items: center; gap: 10px; }

/* ورود مخفی ادمین */
.admin-dot {
  display: inline-flex; align-items: center; justify-content: center;
  color: inherit; opacity: .22; transition: opacity .2s, color .2s;
}
.admin-dot .icon { width: 14px; height: 14px; }
.admin-dot:hover, .admin-dot:focus-visible { opacity: 1; color: hsl(152 55% 62%); }

/* ------------------------------- موبایل — جمع‌وجور برای اسکرول کمتر ------------------------------- */

@media (max-width: 639px) {
  .brand-text small { display: none; }
  .header-inner { height: 58px; }
  .header-cta { padding: 7px 14px; font-size: 12.5px; }
  .hero-wrap { padding-top: 12px; }
  .hero { border-radius: 20px; }
  .hero-inner { padding: 18px 14px; gap: 14px; }
  .hero-badge { margin-bottom: 9px; font-size: 11px; }
  .hero h1 { font-size: 1.32rem; }
  .hero-desc { font-size: 11.5px; line-height: 1.8; }
  .hero-ctas { margin-top: 12px; gap: 8px; }
  .hero-ctas .btn-lg { width: 100%; padding: 11px 16px; }
  /* پنل خروجی‌ها — جمع‌وجور: توضیح هر چیپ فقط دسکتاپ */
  .hero-side { padding: 3px 9px; border-radius: 15px; }
  .hero-chip { padding: 6px 2px; }
  .hero-chip-title { font-size: 11px; }
  .hero-chip-desc { display: none; }
  .hero-trust { padding-top: 8px; margin-top: 8px; font-size: 10.5px; gap: 6px 14px; }

  /* بخش‌ها — فاصله عمودی کمتر برای اسکرول کمتر */
  .section { padding-block: 38px; scroll-margin-top: 70px; }
  .section-head { margin-bottom: 20px; }
  .section-head p { font-size: 12.5px; line-height: 1.95; }
  .calc-card .card-body { padding: 16px; }
  .steps { margin-bottom: 18px; }

  /* فرم — فشرده‌تر */
  .sys-grid { gap: 10px; }
  .sys-btn { padding: 12px 13px; border-radius: 14px; }
  .sys-head { font-size: 13px; gap: 8px; }
  .sys-head .icon { width: 16px; height: 16px; padding: 4px; }
  .sys-desc { margin-top: 4px; font-size: 10.5px; line-height: 1.7; }
  .dim-grid { gap: 12px; margin-top: 14px; }
  .calc-card .input, .calc-card .select { padding: 11.5px 12px; }
  .field .label { font-size: 12.5px; }
  .hint { font-size: 11px; }

  /* کارت‌های نوع پرورش — دو ستونه فشرده، بدون توضیح */
  .bird-grid, .bird-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bird-hint { padding: 11px 13px; gap: 11px; font-size: 11.5px; line-height: 1.9; }
  #birdtype-field { margin-top: 12px; }
  .bird-hint-ico { width: 32px; height: 32px; border-radius: 10px; }
  .bird-hint-ico .icon { width: 16px; height: 16px; }
  .bird-card { padding: 9px 10px; border-radius: 12px; }
  .bird-text { padding-inline-end: 19px; }
  .bird-text .rc-title { font-size: 12px; line-height: 1.55; }
  .bird-text .rc-desc { display: none; }
  .bird-card::before { top: 8px; inset-inline-end: 8px; width: 15px; height: 15px; }

  /* پیش‌نمایش و دکمه‌ها */
  .preview-box { padding: 13px; }
  .wizard-actions .btn { width: 100%; }
  .wizard-actions.between { flex-direction: column-reverse; }

  /* نتایج */
  .final-num .num { font-size: 1.6rem; }
  .eq-hero { padding: 14px 16px; }
  .eq-hero-num { width: 100%; justify-content: space-between; padding-inline-start: 70px; }
  .eq-hero-num .num { font-size: 2.75rem; }
  .eq-hero-ico { width: 46px; height: 46px; border-radius: 13px; }
  .eq-hero-ico .icon { width: 23px; height: 23px; }
  .eq-grid { gap: 8px; }
  .res-card .card-body { padding: 13px; }
  .res-header-actions { width: 100%; }
  .res-header-actions .btn { flex: 1; }
  .cmp-nums { width: 100%; justify-content: flex-start; }
  .cmp-note { display: none; }
  .stat-cell { padding: 11px 12px; gap: 9px; }
  .stat-val .num { font-size: .95rem; }
  .stat-ico-sm { width: 31px; height: 31px; border-radius: 9px; }
  .cage-tiles { grid-template-columns: 1fr; }
  .basis-body { padding: 13px; }

  /* دو مدل و سؤالات */
  .models-grid { gap: 10px; }
  .model-card .card-body { padding: 14px; }
  .model-ico { width: 36px; height: 36px; border-radius: 11px; margin-bottom: 9px; }
  .model-ico .icon { width: 18px; height: 18px; }
  .model-card h3 { font-size: 14px; line-height: 1.6; }
  .points li { font-size: 12px; line-height: 1.8; gap: 8px; }
  .points li + li { margin-top: 6px; }
  .points li::before { width: 16px; height: 16px; font-size: 10px; }
  .faq-list .accordion-trigger { padding: 13px 6px; font-size: 13px; }
  .faq-list .accordion-content { padding: 0 6px 15px; font-size: 12.5px; line-height: 2.05; }

  /* کارت‌های قدم بعدی */
  .res-next-block { padding: 14px; }
  .next-card { padding: 13px; gap: 11px; }
  .next-ico { width: 44px; height: 44px; border-radius: 13px; }
  .next-ico .icon { width: 20px; height: 20px; }
  .next-title { font-size: 13.5px; }
  .next-desc { font-size: 11.5px; line-height: 1.8; }
  .next-arrow { display: none; }

  /* فوتر — جمع‌وجور */
  .site-footer .container { padding-block: 30px 22px; }
  .footer-grid { gap: 22px; }
  .footer-title { margin-bottom: 12px; }
  .footer-phones li + li { margin-top: 9px; }
  .footer-about { font-size: 12px; line-height: 2; }
  .footer-sep { margin: 22px 0 14px; }
  .footer-links { gap: 8px; margin-top: 14px; }
  .footer-site { margin-top: 14px; }
  .msg-dialog .dialog-header { padding: 15px 15px 13px; }
  .msg-dialog .dialog-body { padding: 15px; }
  .msg-fields { gap: 11px; }
}

/* جلوگیری از سرریز افقی در نمایشگرهای باریک */
.steps, .hero-inner, .next-card, .next-body, .cmp-head, .final-line, .res-desc, .chips-row, .msg-attached, .res-next-block, .eq-hero, .stat-cell { max-width: 100%; }
.eq-num, .eq-hero-num, .cmp-nums, .stat-val { overflow-wrap: break-word; }
