/* ============================================================
   home-new.css — درمان داده — صفحه اصلی بازطراحی 2026
   Design System:
   Primary #0FA89F / Text #17324D / Bg #FFFFFF + #F7FAFC
   RTL / Vazirmatn / Radius 16-24 / Subtle Shadow
   ============================================================ */

:root{
  --home-primary:#0FA89F;
  --home-primary-deep:#0c8a83;
  /* رفع مشکل کنتراست رنگ (گزارش KWRank): #0FA89F به‌عنوان متن روی پس‌زمینه‌ی سفید یا به‌عنوان
     پس‌زمینه‌ی متن سفید، فقط نسبت کنتراست ~2.95:1 دارد (زیر حد ۴.۵:۱ استاندارد WCAG AA). این دو
     سایه‌ی تیره‌تر، همان رنگ برند را با کنتراست کافی (~5.2:1) روی هر دو حالت فراهم می‌کنند و فقط
     در متن‌ها/دکمه‌هایی که مشکل کنتراست داشتند جایگزین شده‌اند (نه در المان‌های تزئینی صرف). */
  --home-primary-a11y:#0b7a73;
  --home-primary-a11y-hover:#086158;
  --home-primary-mist:#e6f5f4;
  --home-primary-mist-strong:#d0ecea;
  --home-text:#17324D;
  --home-muted:#5b7a8d;
  --home-faint:#8ea6b6;
  --home-bg:#FFFFFF;
  --home-bg2:#F7FAFC;
  --home-border:rgba(23,50,77,.08);
  --home-border2:rgba(23,50,77,.13);
  --home-radius-xl:24px;
  --home-radius-lg:20px;
  --home-radius-md:16px;
  --home-radius-sm:12px;
  --home-shadow:0 12px 40px -14px rgba(23,50,77,.14), 0 4px 16px rgba(23,50,77,.06);
  --home-shadow-sm:0 4px 18px rgba(23,50,77,.07);
  --home-gold:#e8a20a;
}

html{scroll-behavior:smooth}
body.home-new{
  background:var(--home-bg);
  color:var(--home-text);
  font-family:'Vazirmatn',system-ui,-apple-system,sans-serif;
  overflow-x:hidden;
}
.home-new *{box-sizing:border-box}
.home-new img{max-width:100%}

/* ---------- container ---------- */
.hn-container{
  width:100%;
  max-width:1240px;
  margin-inline:auto;
  padding-inline:24px;
}
@media(max-width:600px){ .hn-container{padding-inline:16px} }

/* ---------- header ---------- */
.hn-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--home-border);
  height:70px;
  display:flex;
  align-items:center;
}
.hn-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  width:100%;
}
.hn-header__right{
  display:flex;
  align-items:center;
  gap:28px;
}
.hn-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--home-text);
  flex-shrink:0;
}
.hn-brand__logo{
  width:38px;height:38px;
  border-radius:10px;
  background:var(--home-primary);
  display:grid;place-items:center;
  color:#fff;
  font-size:1.15rem;
  flex-shrink:0;
}
.hn-brand__logo img{width:38px;height:38px;border-radius:10px;object-fit:cover}
.hn-brand__text{display:flex;flex-direction:column;line-height:1}
.hn-brand__name{font-weight:800;font-size:1.02rem;letter-spacing:-.02em;color:var(--home-text)}
.hn-brand__tag{font-size:.62rem;font-weight:600;color:var(--home-muted);letter-spacing:.02em;margin-top:2px}

.hn-nav{
  display:flex;
  align-items:center;
  gap:22px;
}
.hn-nav__link{
  position:relative;
  font-size:.88rem;
  font-weight:600;
  color:var(--home-muted);
  text-decoration:none;
  padding:6px 0;
  transition:color .16s ease;
  white-space:nowrap;
}
.hn-nav__link::after{
  content:"";
  position:absolute;
  inset-inline:0;
  bottom:-2px;
  height:2.5px;
  background:var(--home-primary);
  border-radius:99px;
  transform:scaleX(0);
  transition:transform .18s ease;
}
.hn-nav__link:hover{color:var(--home-text)}
.hn-nav__link:hover::after{transform:scaleX(1)}
.hn-nav__link--active{color:var(--home-text)}
.hn-nav__link--active::after{transform:scaleX(1)}

.hn-header__left{
  display:flex;
  align-items:center;
  gap:10px;
}
.hn-iconbtn{
  width:40px;height:40px;
  display:grid;place-items:center;
  border-radius:10px;
  border:1px solid var(--home-border);
  background:var(--home-bg);
  color:var(--home-text);
  text-decoration:none;
  font-size:1.05rem;
  transition:all .15s ease;
  flex-shrink:0;
}
.hn-iconbtn:hover{border-color:var(--home-primary);color:var(--home-primary);background:var(--home-primary-mist)}
.hn-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  font-weight:700;
  font-size:.88rem;
  padding:.60rem 1.20rem;
  border-radius:99px;
  border:1.5px solid transparent;
  text-decoration:none;
  white-space:nowrap;
  transition:all .16s ease;
  cursor:pointer;
}
.hn-btn--primary{background:var(--home-primary-a11y);border-color:var(--home-primary-a11y);color:#fff;box-shadow:0 8px 18px -8px rgba(15,168,159,.45)}
.hn-btn--primary:hover{background:var(--home-primary-a11y-hover);border-color:var(--home-primary-a11y-hover);color:#fff;transform:translateY(-1px)}
.hn-btn--ghost{background:var(--home-bg2);border-color:var(--home-border);color:var(--home-text)}
.hn-btn--ghost:hover{background:#fff;border-color:var(--home-border2)}
.hn-btn--sm{padding:.48rem 1rem;font-size:.84rem}
.hn-btn:focus-visible,.hn-iconbtn:focus-visible{outline:3px solid rgba(15,168,159,.28);outline-offset:2px}
.hn-avatar{
  width:38px;height:38px;border-radius:50%;background:var(--home-primary-mist);display:grid;place-items:center;color:var(--home-primary);font-size:1.05rem;overflow:hidden;border:1.5px solid var(--home-border)
}
.hn-avatar img{width:100%;height:100%;object-fit:cover}

/* mobile nav */
.hn-burger{
  display:none;
  width:42px;height:42px;
  border-radius:10px;
  border:1px solid var(--home-border);
  background:var(--home-bg);
  color:var(--home-text);
  font-size:1.25rem;
}
.hn-mobile{
  display:none;
  position:fixed;
  inset:70px 0 auto 0;
  background:var(--home-bg);
  border-top:1px solid var(--home-border);
  box-shadow:var(--home-shadow);
  padding:16px 20px 20px;
  z-index:99;
}
.hn-mobile.open{display:block}
.hn-mobile a{display:flex;align-items:center;justify-content:space-between;padding:12px 4px;border-bottom:1px solid var(--home-border);color:var(--home-text);text-decoration:none;font-weight:600;font-size:.95rem}
.hn-mobile a:last-child{border-bottom:0}
.hn-mobile a i{color:var(--home-faint)}
@media(max-width:1040px){
  .hn-nav{display:none}
  .hn-burger{display:grid;place-items:center}
  .hn-header__left .hn-iconbtn--hide{ display:none }
}

/* ---------- hero ---------- */
.hn-hero{
  position:relative;
  background:var(--home-bg);
  padding:38px 0 96px;
  overflow:hidden;
}
.hn-hero__grid{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:48px;
  align-items:center;
}
.hn-hero__content{position:relative;z-index:1}
.hn-kicker{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.78rem;font-weight:700;color:var(--home-primary-a11y);letter-spacing:.02em;
  margin-bottom:14px;
}
.hn-kicker::before{content:"";width:18px;height:2px;background:var(--home-primary);border-radius:99px}
.hn-hero__title{
  margin:0;
  font-size:clamp(2rem,4.4vw,3.55rem);
  font-weight:800;
  line-height:1.22;
  letter-spacing:-.03em;
  color:var(--home-text);
}
.hn-hero__title em{font-style:normal;color:var(--home-primary-a11y)}
.hn-hero__lead{
  margin:14px 0 0;
  max-width:520px;
  color:var(--home-muted);
  font-size:1.02rem;
  line-height:1.95;
}
.hn-hero__visual{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:420px;
}
.hn-hero__blob{
  position:absolute;
  width:520px;height:520px;
  background:radial-gradient(ellipse at 50% 40%, rgba(15,168,159,.13), transparent 62%);
  border-radius:50%;
  pointer-events:none;
}
.hn-hero__card{
  position:relative;
  width:min(100%,420px);
  aspect-ratio:4/3.1;
  background:var(--home-bg2);
  border:1px solid var(--home-border);
  border-radius:var(--home-radius-xl);
  overflow:hidden;
  box-shadow:var(--home-shadow);
  display:grid;
  place-items:center;
}
.hn-hero__card img{
  width:100%;height:100%;object-fit:cover;
}
.hn-hero__card-fallback{
  width:100%;height:100%;
  background:
    radial-gradient(420px 260px at 30% 18%, rgba(15,168,159,.10), transparent 60%),
    linear-gradient(180deg,#f0f7f7 0%, #e6f0f0 100%);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;
  padding:28px;
  text-align:center;
}
.hn-hero__card-fallback .doc{
  width:86px;height:86px;border-radius:20px;background:var(--home-primary);display:grid;place-items:center;color:#fff;font-size:2rem;box-shadow:0 12px 24px -10px rgba(15,168,159,.5)
}
.hn-hero__card-fallback strong{font-size:1.05rem;color:var(--home-text)}
.hn-hero__card-fallback span{font-size:.82rem;color:var(--home-muted);line-height:1.7}
.hn-hero__float{
  position:absolute;
  background:var(--home-bg);
  border:1px solid var(--home-border);
  border-radius:16px;
  box-shadow:var(--home-shadow-sm);
  padding:12px 14px;
  display:flex;align-items:center;gap:10px;
  font-size:.84rem;font-weight:600;color:var(--home-text);
}
.hn-hero__float--a{top:16px;inset-inline-end:-6px}
.hn-hero__float--b{bottom:18px;inset-inline-start:-8px}
.hn-hero__float i{
  width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:var(--home-primary-mist);color:var(--home-primary);font-size:1rem;flex-shrink:0
}
.hn-hero__pulse{
  position:absolute;
  inset-inline:0;
  top:46%;
  width:100%;height:110px;
  opacity:.14;
  color:var(--home-primary);
  pointer-events:none;
}
@media(max-width:920px){
  .hn-hero{padding:22px 0 84px}
  .hn-hero__grid{grid-template-columns:1fr;gap:26px}
  .hn-hero__visual{min-height:300px;order:-1}
  .hn-hero__float--a{inset-inline-end:6px;top:8px}
  .hn-hero__float--b{inset-inline-start:6px}
}
@media(max-width:560px){
  .hn-hero__visual{min-height:250px}
  .hn-hero__card{border-radius:18px}
  .hn-hero__float{padding:10px 12px;font-size:.78rem}
}

/* ---------- floating search ---------- */
.hn-searchwrap{
  position:relative;
  margin-top:-52px;
  z-index:2;
}
.hn-search{
  background:var(--home-bg);
  border:1px solid var(--home-border);
  border-radius:20px;
  box-shadow:var(--home-shadow);
  padding:10px;
  display:flex;
  align-items:stretch;
  gap:10px;
}
.hn-search__field{
  flex:1 1 0;
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--home-bg2);
  border:1px solid transparent;
  border-radius:14px;
  padding:0 14px;
  transition:border-color .15s, background .15s;
  position:relative;
}
.hn-search__field:focus-within{background:var(--home-bg);border-color:var(--home-primary-mist-strong);box-shadow:0 0 0 4px rgba(15,168,159,.10)}
.hn-search__field i{color:var(--home-primary);font-size:1.05rem;flex-shrink:0}
.hn-search__field input,
.hn-search__field select{
  flex:1;min-width:0;
  border:0;outline:0;background:transparent;
  font:inherit;font-size:.92rem;color:var(--home-text);
  padding:14px 0;
  appearance:none;
}
.hn-search__field input::placeholder{color:var(--home-faint)}
.hn-search__field select{cursor:pointer;padding-inline-end:22px;color:var(--home-text)}
.hn-search__field select:invalid{color:var(--home-faint)}
.hn-search__field--select::after{
  content:"";
  position:absolute;
  inset-inline-end:14px;
  top:50%;transform:translateY(-55%) rotate(45deg);
  width:7px;height:7px;
  border:1.7px solid var(--home-faint);
  border-inline-start:0;border-top:0;
  pointer-events:none;
}
.hn-search__btn{
  flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--home-primary-a11y);
  color:#fff;
  border:1px solid var(--home-primary-a11y);
  border-radius:14px;
  padding:0 26px;
  font-weight:800;
  font-size:.95rem;
  cursor:pointer;
  transition:all .15s ease;
  white-space:nowrap;
}
.hn-search__btn:hover{background:var(--home-primary-a11y-hover);border-color:var(--home-primary-a11y-hover);transform:translateY(-1px)}
.hn-search__btn:active{transform:none}
@media(max-width:920px){
  .hn-search{flex-wrap:wrap}
  .hn-search__field{flex:1 1 calc(50% - 5px)}
  .hn-search__btn{flex:1 1 100%}
}
@media(max-width:560px){
  .hn-searchwrap{margin-top:-36px}
  .hn-search{flex-direction:column;border-radius:18px}
  .hn-search__field{flex:1 1 auto}
}

/* ---------- section helpers ---------- */
.hn-section{padding:56px 0}
.hn-section--alt{background:var(--home-bg2);border-top:1px solid var(--home-border);border-bottom:1px solid var(--home-border)}
.hn-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap
}
.hn-head__kicker{font-size:.76rem;font-weight:800;color:var(--home-primary-a11y);letter-spacing:.02em;display:flex;align-items:center;gap:8px}
.hn-head__kicker::before{content:"";width:18px;height:2px;background:var(--home-primary);border-radius:99px}
.hn-head h2{margin:6px 0 0;font-size:clamp(1.35rem,2.6vw,1.85rem);font-weight:800;letter-spacing:-.02em;color:var(--home-text);line-height:1.25}
.hn-head p{margin:8px 0 0;color:var(--home-muted);font-size:.92rem;line-height:1.8;max-width:560px}
.hn-linkmore{
  display:inline-flex;align-items:center;gap:6px;
  color:var(--home-primary-a11y);font-weight:700;font-size:.88rem;text-decoration:none;
  padding:8px 14px;border-radius:99px;border:1.5px solid rgba(15,168,159,.18);background:var(--home-bg);
  transition:all .15s ease;white-space:nowrap;
}
.hn-linkmore:hover{background:var(--home-primary-a11y);color:#fff;border-color:var(--home-primary-a11y)}
@media(max-width:600px){ .hn-section{padding:42px 0} }

/* ---------- features ---------- */
.hn-features{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
}
.hn-feat{
  background:var(--home-bg);
  border:1px solid var(--home-border);
  border-radius:18px;
  padding:20px 18px;
  display:flex;flex-direction:column;gap:12px;
  transition:transform .16s ease, box-shadow .16s ease;
}
.hn-feat:hover{transform:translateY(-2px);box-shadow:var(--home-shadow-sm)}
.hn-feat__icon{
  width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:1.2rem;flex-shrink:0
}
.hn-feat__icon--a{background:#e6f5f4;color:#0FA89F}
.hn-feat__icon--b{background:#eef2ff;color:#6366f1}
.hn-feat__icon--c{background:#fef3e8;color:#ea7a18}
.hn-feat__icon--d{background:#fce8f0;color:#d83a6b}
.hn-feat__icon--e{background:#e6f7eb;color:#1a9a3d}
.hn-feat h3{margin:0;font-size:.98rem;font-weight:800;color:var(--home-text);line-height:1.4}
.hn-feat p{margin:0;color:var(--home-muted);font-size:.82rem;line-height:1.85}
@media(max-width:1100px){ .hn-features{grid-template-columns:repeat(3,1fr)} }
@media(max-width:640px){ .hn-features{grid-template-columns:1fr} .hn-feat{flex-direction:row;align-items:flex-start} }

/* ---------- specialties ---------- */
.hn-specs{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.hn-spec{
  background:var(--home-bg);
  border:1px solid var(--home-border);
  border-radius:18px;
  padding:18px 16px;
  display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;
  text-decoration:none;
  color:inherit;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.hn-spec:hover{transform:translateY(-2px);box-shadow:var(--home-shadow-sm);border-color:rgba(15,168,159,.18)}
.hn-spec__icon{
  width:54px;height:54px;border-radius:16px;display:grid;place-items:center;font-size:1.45rem;
  background:var(--spec-bg,#f7fafc);color:var(--spec-color,#0FA89F);
  transition:background .16s ease;
}
.hn-spec__name{font-weight:800;font-size:.96rem;color:var(--home-text)}
.hn-spec__cta{font-size:.82rem;font-weight:700;color:var(--home-primary-a11y);display:inline-flex;align-items:center;gap:4px}
.hn-spec:hover .hn-spec__cta{gap:6px}
@media(max-width:920px){ .hn-specs{grid-template-columns:repeat(2,1fr)} }
@media(max-width:380px){ .hn-specs{grid-template-columns:1fr 1fr} }

/* ---------- doctors ---------- */
.hn-docs{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.hn-doc{
  background:var(--home-bg);
  border:1px solid var(--home-border);
  border-radius:18px;
  overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .16s ease, box-shadow .16s ease;
}
.hn-doc:hover{transform:translateY(-3px);box-shadow:var(--home-shadow)}
.hn-doc__top{position:relative;padding:14px 14px 0}
.hn-doc__photo{
  width:100%;aspect-ratio:1/1;border-radius:14px;overflow:hidden;background:var(--home-bg2);
  border:1px solid var(--home-border);
  display:grid;place-items:center;color:var(--home-faint);font-size:2rem;
}
.hn-doc__photo img{width:100%;height:100%;object-fit:cover}
.hn-doc__fav{
  position:absolute;top:22px;inset-inline-end:22px;
  width:34px;height:34px;border-radius:50%;
  background:rgba(255,255,255,.92);
  border:1px solid var(--home-border);
  display:grid;place-items:center;color:var(--home-faint);font-size:1rem;
  backdrop-filter:blur(6px);
}
.hn-doc__body{padding:14px 14px 12px;display:flex;flex-direction:column;gap:4px;flex:1}
.hn-doc__name{font-weight:800;font-size:.98rem;color:var(--home-text);text-align:center;line-height:1.4}
.hn-doc__spec{font-size:.82rem;color:var(--home-muted);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hn-doc__rating{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:4px;font-size:.82rem;color:var(--home-muted);font-weight:600}
.hn-doc__rating i{color:var(--home-gold)}
.hn-doc__cta{padding:12px 14px;border-top:1px solid var(--home-border);background:var(--home-bg2)}
.hn-doc__cta .hn-btn{width:100%;border-radius:12px}
@media(max-width:1100px){ .hn-docs{grid-template-columns:repeat(3,1fr)} }
@media(max-width:760px){ .hn-docs{grid-template-columns:repeat(2,1fr)} }
@media(max-width:420px){ .hn-docs{grid-template-columns:1fr} }

/* ---------- app banner ---------- */
.hn-app{
  background:linear-gradient(135deg, #dff3f1 0%, #edf7f6 55%, #ffffff 100%);
  border:1px solid rgba(15,168,159,.14);
  border-radius:24px;
  overflow:hidden;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:0;
  align-items:stretch;
  box-shadow:var(--home-shadow-sm);
}
.hn-app__content{padding:34px 32px;display:flex;flex-direction:column;justify-content:center}
.hn-app__content h3{margin:0;font-size:clamp(1.35rem,2.4vw,1.9rem);font-weight:800;line-height:1.25;color:var(--home-text)}
.hn-app__content h3 span{color:var(--home-primary-a11y)}
.hn-app__content p{margin:10px 0 18px;color:var(--home-muted);font-size:.94rem;line-height:1.85;max-width:480px}
.hn-app__actions{display:flex;gap:10px;flex-wrap:wrap}
.hn-app__visual{
  position:relative;
  background:
    radial-gradient(520px 320px at 60% 20%, rgba(15,168,159,.16), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0));
  display:flex;align-items:center;justify-content:center;
  padding:24px;
  min-height:320px;
}
.hn-phone{
  width:min(100%,280px);
  background:var(--home-bg);
  border:1px solid var(--home-border);
  border-radius:28px;
  box-shadow:0 18px 40px -16px rgba(23,50,77,.22), 0 8px 18px rgba(23,50,77,.08);
  overflow:hidden;
  padding:10px 10px 14px;
}
.hn-phone__notch{width:76px;height:6px;background:var(--home-text);border-radius:99px;margin:4px auto 10px;opacity:.9}
.hn-phone__screen{
  background:var(--home-bg2);
  border-radius:18px;
  padding:14px;
  display:flex;flex-direction:column;gap:10px;
}
.hn-phone__row{height:10px;border-radius:99px;background:var(--home-bg);border:1px solid var(--home-border)}
.hn-phone__row--a{width:68%}
.hn-phone__row--b{width:88%}
.hn-phone__row--c{width:56%}
.hn-phone__card{
  background:var(--home-bg);
  border:1px solid var(--home-border);
  border-radius:14px;
  padding:12px;
  display:flex;align-items:center;gap:10px;
  box-shadow:0 2px 10px rgba(23,50,77,.04)
}
.hn-phone__card i{width:36px;height:36px;border-radius:10px;background:var(--home-primary-mist);display:grid;place-items:center;color:var(--home-primary)}
.hn-phone__card strong{font-size:.84rem;color:var(--home-text)}
.hn-phone__card span{font-size:.72rem;color:var(--home-muted)}
@media(max-width:860px){
  .hn-app{grid-template-columns:1fr}
  .hn-app__visual{order:-1;min-height:260px}
  .hn-app__content{padding:22px 20px 26px}
}

/* ---------- legacy directory restyle (preserve features) ---------- */
.hn-legacy .homepage-section{margin-top:40px}
.hn-legacy .section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.hn-legacy .section-heading h2{font-weight:800;color:var(--home-text);letter-spacing:-.02em}
.hn-legacy .section-heading .section-kicker{color:var(--home-primary-a11y);font-weight:800;font-size:.78rem;display:flex;align-items:center;gap:8px}
.hn-legacy .section-heading .section-kicker::before{content:"";width:16px;height:2px;background:var(--home-primary);border-radius:99px}
.hn-legacy .clinic-card{border-radius:16px;border:1px solid var(--home-border);box-shadow:var(--home-shadow-sm)}
.hn-legacy .clinic-card--vip{border-color:rgba(15,168,159,.18);background:linear-gradient(180deg,#f0faf9, #fff 55%)}
.hn-legacy .doctor-list__item{border-radius:14px;border:1px solid var(--home-border)}

/* ---------- footer (keep existing pd-footer but harmonize) ---------- */
.home-new .pd-footer{margin-top:64px;background:#0f2733}
.home-new .pd-footer a:hover{color:#7dd9d2}

/* ---------- extras ---------- */
.hn-empty{
  text-align:center;
  padding:28px 18px;
  background:var(--home-bg);
  border:1px dashed var(--home-border2);
  border-radius:16px;
  color:var(--home-muted);
  font-size:.9rem;
}
.hn-stats{
  display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px
}
.hn-stat{
  background:var(--home-bg);border:1px solid var(--home-border);border-radius:16px;padding:18px;text-align:center
}
.hn-stat strong{display:block;font-size:clamp(1.4rem,2.8vw,2rem);font-weight:800;color:var(--home-primary-a11y)}
.hn-stat span{font-size:.82rem;color:var(--home-muted);font-weight:600}
@media(max-width:640px){ .hn-stats{grid-template-columns:1fr} }

/* ---------- a11y ---------- */
@media(prefers-reduced-motion:reduce){
  .hn-feat,.hn-spec,.hn-doc,.hn-btn,.hn-linkmore,.hn-search__btn{transition:none !important}
  .hn-feat:hover,.hn-spec:hover,.hn-doc:hover{transform:none !important}
}

/* ============================================================
   تم تیره - نگاشت متغیرهای --home-* برای data-bs-theme="dark"
   (سوییچ تم روی <html>؛ نگاه کنید به Views/Shared/_ThemeToggle*.cshtml).
   چون تقریباً همه‌ی رنگ‌های این فایل از همین متغیرها می‌آیند، بازتعریف‌شان این‌جا کافی است
   و نیازی به بازنویسی تک‌تک کلاس‌های hn-* نیست.
   ============================================================ */
[data-bs-theme="dark"]{
  --home-primary:#2fc2b8;
  --home-primary-deep:#25a89f;
  --home-primary-a11y:#3fd6cb;
  --home-primary-a11y-hover:#5fe0d6;
  --home-primary-mist:#123331;
  --home-primary-mist-strong:#17403d;
  --home-text:#e7edf1;
  --home-muted:#a7b7c0;
  --home-faint:#7c8a92;
  --home-bg:#0f1720;
  --home-bg2:#141e29;
  --home-border:rgba(255,255,255,.09);
  --home-border2:rgba(255,255,255,.15);
  --home-shadow:0 12px 40px -14px rgba(0,0,0,.55), 0 4px 16px rgba(0,0,0,.35);
  --home-shadow-sm:0 4px 18px rgba(0,0,0,.32);
  --home-gold:#f0b93a;
}
[data-bs-theme="dark"] .hn-header{ background: var(--home-bg); border-color: var(--home-border); }
[data-bs-theme="dark"] img{ filter: brightness(.92) contrast(1.02); }
/* رفع باگ: کارت «دانلود اپلیکیشن» رنگ‌های پس‌زمینه‌اش را هاردکد (سفید/روشن) داشت و به
   متغیرهای --home-* وابسته نبود؛ در نتیجه در تم تیره همچنان سفید می‌ماند. این‌جا برای تم تیره
   با همان پالت (mist تیره‌ی برند) بازنویسی می‌شود. */
[data-bs-theme="dark"] .hn-app{
  background: linear-gradient(135deg, var(--home-primary-mist) 0%, var(--home-bg2) 55%, var(--home-bg) 100%);
  border-color: var(--home-border);
}
[data-bs-theme="dark"] .hn-app__visual{
  background:
    radial-gradient(520px 320px at 60% 20%, rgba(47,194,184,.18), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
}
/* رفع باگ: دایره‌ی پس‌زمینه‌ی آیکون‌های «خدمات» و «تخصص‌ها» رنگ‌های پاستلی‌شان را هاردکد
   (بسیار روشن/نزدیک به سفید) داشتند و به متغیرهای --home-* وابسته نبودند؛ در نتیجه در تم
   تیره همچنان به‌صورت دایره‌ی سفید/کم‌رنگ روی کارت تیره باقی می‌ماندند. این‌جا برای تم تیره
   با همان رنگ آیکون ولی به‌صورت نیمه‌شفاف روی زمینه‌ی تیره بازنویسی می‌شوند. */
[data-bs-theme="dark"] .hn-feat__icon--a{background:rgba(63,214,203,.16);color:#5fe0d6}
[data-bs-theme="dark"] .hn-feat__icon--b{background:rgba(129,140,248,.18);color:#a5abfb}
[data-bs-theme="dark"] .hn-feat__icon--c{background:rgba(250,153,65,.18);color:#ffb066}
[data-bs-theme="dark"] .hn-feat__icon--d{background:rgba(240,101,149,.18);color:#ff8fb2}
[data-bs-theme="dark"] .hn-feat__icon--e{background:rgba(52,199,96,.18);color:#5fdb82}
[data-bs-theme="dark"] .hn-spec__icon{background:var(--spec-bg-dark, rgba(47,194,184,.16))}
