/* ==========================================================================
   صفحه‌ساز — ظاهر پایه ظرف‌ها، ابزارک‌ها، پنجره‌های بازشو و حرکت‌ها
   --------------------------------------------------------------------------
   هر مقداری که مدیر در پنل می‌گذارد، در یک برچسب style جدا با انتخابگر
   .e-شناسه چاپ می‌شود. پس پیش‌فرض‌های این فایل عمداً کم‌وزن‌اند (:where) تا
   هر تنظیم پنل، بی‌نیاز از !important، بر آن‌ها غلبه کند.

   رنگ‌ها از نشانه‌های خود سایت (--ink، --surface، --line…) می‌آیند؛ پس هر
   ابزارک در پوسته تیره هم خواناست.
   ========================================================================== */

/* ------------------------------------------------------------------ ظرف */

:where(.e-con) {
  --e-gap: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  box-sizing: border-box;
}
:where(.e-top) { padding: 48px 20px; }
:where(a.e-con) { color: inherit; text-decoration: none; }

:where(.e-con-inner) {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--e-gap);
  width: 100%;
  min-width: 0;
  margin-inline: auto;
}
:where(.e-con--boxed) > .e-con-inner { max-width: var(--e-boxed, 1160px); }
:where(.e-con .e-con--boxed) > .e-con-inner { max-width: none; }
:where(.e-con--grid) > .e-con-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* ظرف سطح بالا به اندازه پهنای صفحه منهای فاصله بیرونی‌اش است؛ ظرف درونی ۱۰۰٪ ولی کوچک‌شونده، تا ستون‌ها کنار هم جا شوند. */
:where(.e-con-inner > .e-con) { width: 100%; flex: 0 1 auto; }
:where(.e-w) { position: relative; width: 100%; min-width: 0; box-sizing: border-box; }

/* لایه روی پس‌زمینه */
.e-has-ov::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  border-radius: inherit;
  pointer-events: none;
}

/* شکل لبه‌ها */
.e-shape { position: absolute; inset-inline: 0; z-index: 1; line-height: 0; overflow: hidden; pointer-events: none; direction: ltr; }
.e-shape svg { display: block; width: calc(100% + 1.3px); height: 80px; fill: var(--surface); }
.e-shape-top { top: -1px; }
.e-shape-bottom { bottom: -1px; transform: rotate(180deg); }
.e-shape.is-flip svg { transform: scaleX(-1); }

/* پس‌زمینه ویدیو و نمایش تصویرها */
.e-bg-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; background: center / cover no-repeat; pointer-events: none; }
.e-bg-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.e-bg-slides i { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.2s ease; }
.e-bg-slides i.is-on { opacity: 1; }
.e-bg-slides--slide i { opacity: 1; transform: translateX(-100%); transition: transform 1s cubic-bezier(.6, 0, .2, 1); }
.e-bg-slides--slide i.is-on { transform: none; }
.e-bg-slides--slide i.is-out { transform: translateX(100%); }
.e-bg-slides.is-kb i.is-on { animation: e-kb 14s linear both; }
@keyframes e-kb { from { scale: 1; } to { scale: 1.14; } }

/* ------------------------------------------------------------ متن‌ها و دکمه */

.e-w :where(h1, h2, h3, h4, h5, h6, p) { margin: 0; }
.ew-heading { color: var(--ink); line-height: 1.5; }
.ew-heading a { color: inherit; text-decoration: none; }
/* اندازه پیش‌فرض بر اساس برچسب؛ اندازه آماده و تنظیم پنل هر دو بر آن غلبه می‌کنند. */
.ew-heading:where(h1), .ew-ah:where(h1) { font-size: clamp(30px, 4.4vw, 44px); font-weight: 900; letter-spacing: -.03em; line-height: 1.35; }
.ew-heading:where(h2), .ew-ah:where(h2) { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.45; }
.ew-heading:where(h3), .ew-ah:where(h3) { font-size: clamp(20px, 2.4vw, 24px); font-weight: 800; }
.ew-heading:where(h4) { font-size: 19px; font-weight: 700; }
.ew-heading:where(h5) { font-size: 16.5px; font-weight: 700; }
.ew-heading:where(h6) { font-size: 15px; font-weight: 700; }
.ew-heading:where(div, p, span) { font-size: 16px; }
.ew-size-sm { font-size: 15px; }
.ew-size-md { font-size: 20px; }
.ew-size-lg { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.02em; line-height: 1.45; }
.ew-size-xl { font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -.028em; line-height: 1.35; }
.ew-size-xxl { font-size: clamp(36px, 6vw, 64px); letter-spacing: -.035em; line-height: 1.25; }

.ew-text { color: var(--ink-2); line-height: 2; }
.ew-text :where(p, ul, ol, blockquote, h2, h3, h4) { margin: 0 0 .8em; }
.ew-text > :last-child { margin-bottom: 0; }
.ew-text a { color: var(--accent); }
.ew-text blockquote { border-inline-start: 3px solid var(--accent); padding-inline-start: 14px; color: var(--muted); }
.ew-dropcap > p:first-child::first-letter { float: right; font-size: 3.4em; line-height: .9; font-weight: 800; margin-inline-end: 10px; color: var(--accent); }
.ew-muted { color: var(--muted); font-size: 13px; }

.ew-btn-wrap { text-align: right; }
.ew-btn {
  --b-bg: var(--accent); --b-ink: #fff; --b-line: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: var(--ew-btn-w, auto);
  padding: 12px 22px;
  border: 2px solid var(--b-line);
  border-radius: 14px;
  background: var(--b-bg);
  color: var(--b-ink);
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1.4;
  text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .25s, background-color .25s, color .25s, border-color .25s, filter .25s;
}
.ew-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(49, 46, 129, .55); }
.ew-btn:active { transform: translateY(0); }
.ew-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.ew-btn-ico { display: inline-flex; }
.ew-btn--block { width: 100%; }
.ew-btn--xs { padding: 6px 12px; font-size: 12px; border-radius: 10px; }
.ew-btn--sm { padding: 8px 16px; font-size: 13.5px; border-radius: 12px; }
.ew-btn--lg { padding: 15px 28px; font-size: 16.5px; border-radius: 16px; }
.ew-btn--xl { padding: 19px 36px; font-size: 18px; border-radius: 18px; }
.ew-btn--gradient { --b-bg: linear-gradient(120deg, var(--g-primary, #4f46e5), var(--g-secondary, #7c3aed)); background: var(--b-bg); }
.ew-btn--secondary { --b-bg: var(--surface); --b-ink: var(--ink); --b-line: var(--line-2); }
.ew-btn--outline { --b-bg: transparent; --b-ink: var(--accent); --b-line: currentColor; }
.ew-btn--ghost { --b-bg: transparent; --b-ink: var(--accent); }
.ew-btn--ghost:hover, .ew-btn--outline:hover { box-shadow: none; background: color-mix(in srgb, currentColor 10%, transparent); }
.ew-btn--dark { --b-bg: #111827; }
.ew-btn--light { --b-bg: #ffffff; --b-ink: #312e81; }
.ew-btn--success { --b-bg: #10b981; }
.ew-btn--primary { --b-bg: var(--g-primary, var(--accent)); }

/* جداکننده و فاصله */
.ew-divider { display: flex; align-items: center; width: 100%; padding-block: 12px; }
.ew-divider-line { flex: 1 1 auto; border-top: 1px solid var(--line-2); }
.ew-divider-el { flex: 0 0 auto; margin: 0 14px; color: var(--muted); font-weight: 700; display: inline-flex; }
.ew-spacer { height: 50px; }

/* آیکون */
.ew-icon-wrap { text-align: center; }
.ew-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--accent); line-height: 0; transition: color .25s, background-color .25s, transform .25s; }
.ew-icon svg { width: 44px; height: 44px; }
.ew-icon--stacked { background: var(--accent-soft); padding: .45em; }
.ew-icon--framed { border: 2px solid currentColor; padding: .4em; }
.ew-shape-circle { border-radius: 50%; }
.ew-shape-rounded { border-radius: 22%; }
.ew-shape-square { border-radius: 0; }
a.ew-icon:hover { transform: translateY(-2px); }

/* تصویر */
.ew-image { margin: 0; }
.ew-image img { max-width: 100%; height: auto; vertical-align: middle; display: inline-block; }
.ew-image figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.ew-img-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 160px; border: 2px dashed var(--line-2); border-radius: 18px; color: var(--muted); background: var(--sunken); }
.ew-img-ph--wide { min-height: 220px; }
.ew-img-ph small, .ew-html-empty small, .ew-video--empty small, .ew-map--empty small, .ew-form--empty small { font-size: 12.5px; }

/* ویدیو */
.ew-video { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0d14; border-radius: 18px; }
.ew-video iframe, .ew-video video, .ew-video > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.ew-video--lazy { cursor: pointer; background: radial-gradient(circle at 30% 20%, #312e81, #0b0d14); }
.ew-video-play {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: 76px; height: 76px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .95); color: #312e81;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .5);
  cursor: pointer; transition: transform .25s;
}
.ew-video-play svg { fill: currentColor; margin-inline-start: 4px; }
.ew-video--lazy:hover .ew-video-play { transform: scale(1.08); }
.ew-video--empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(255, 255, 255, .6); }

/* کد HTML، لنگر، نقشه */
.ew-html { display: block; width: 100%; min-height: 40px; border: 0; }
.ew-html-empty { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px; border: 2px dashed var(--line-2); border-radius: 16px; color: var(--muted); }
.ew-anchor { scroll-margin-top: calc(var(--nav-h, 62px) + 16px); }
.ew-anchor span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: var(--sunken); color: var(--muted); font-size: 12px; direction: ltr; }
.ew-map { overflow: hidden; border-radius: 18px; line-height: 0; }
.ew-map iframe { width: 100%; height: 360px; border: 0; }
.ew-map--lazy { display: grid; place-items: center; height: 360px; line-height: 1.6;
  background: var(--sunken) repeating-linear-gradient(45deg, transparent 0 22px, color-mix(in srgb, var(--accent) 6%, transparent) 22px 44px); }
.ew-map-load { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 0; border-radius: 99px; background: var(--surface); color: var(--accent); font: inherit; font-weight: 700; box-shadow: var(--sh-lg); cursor: pointer; transition: transform .2s; }
.ew-map-load:hover { transform: translateY(-2px); }
.ew-map--empty, .ew-form--empty { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 160px; border: 2px dashed var(--line-2); color: var(--muted); line-height: 1.6; border-radius: 18px; }

/* ------------------------------------------------------------ جعبه‌ها */

.ew-ibox { display: flex; flex-direction: column; gap: 16px; text-align: center; height: 100%; box-sizing: border-box; transition: transform .3s, box-shadow .3s; }
.ew-ibox-media { flex: 0 0 auto; line-height: 0; }
.ew-ibox-img { display: inline-block; width: var(--ibox-w, 100%); max-width: 100%; margin: 0; overflow: hidden; border-radius: 18px; }
.ew-ibox-img img { display: block; width: 100%; height: auto; transition: scale .5s; }
.ew-ibox-body { flex: 1 1 auto; min-width: 0; }
.ew-box-title { margin: 0 0 8px; color: var(--ink); font-size: 19px; line-height: 1.5; }
.ew-box-title a { color: inherit; text-decoration: none; }
.ew-box-desc { color: var(--muted); line-height: 1.95; }
.ew-ibox--right, .ew-ibox--left { flex-direction: row; text-align: start; align-items: flex-start; }
.ew-ibox--left { flex-direction: row-reverse; }
.ew-ibox--right .ew-ibox-media, .ew-ibox--left .ew-ibox-media { flex-basis: var(--ibox-w, auto); }
.ew-ibox--right .ew-ibox-img, .ew-ibox--left .ew-ibox-img { width: 100%; }
.e-w-image-box .ew-ibox--right .ew-ibox-media, .e-w-image-box .ew-ibox--left .ew-ibox-media { flex-basis: var(--ibox-w, 32%); }
@media (max-width: 1024px) {
  .ew-ibox--t-top { flex-direction: column; text-align: center; }
  .ew-ibox--t-top .ew-ibox-media { flex-basis: auto; }
  .ew-ibox--t-top .ew-ibox-img { width: var(--ibox-w, 100%); }
  .ew-ibox--t-right { flex-direction: row; text-align: start; }
  .ew-ibox--t-left { flex-direction: row-reverse; text-align: start; }
}
@media (max-width: 767px) {
  .ew-ibox--m-top { flex-direction: column; text-align: center; }
  .ew-ibox--m-top .ew-ibox-media { flex-basis: auto; }
  .ew-ibox--m-top .ew-ibox-img { width: var(--ibox-w, 100%); }
  .ew-ibox--m-right { flex-direction: row; text-align: start; }
  .ew-ibox--m-left { flex-direction: row-reverse; text-align: start; }
}

/* امتیاز ستاره‌ای */
.ew-rating { display: block; }
.ew-rating-title { display: block; margin-bottom: 6px; color: var(--ink-2); font-weight: 600; }
.ew-stars { display: inline-flex; gap: 3px; }
.ew-star { position: relative; display: inline-block; width: 20px; height: 20px; }
.ew-star i { position: absolute; top: 0; right: 0; height: 100%; overflow: hidden; line-height: 0; }
.ew-star-bg { width: 100%; color: var(--line-2); }
.ew-star-fg { color: #f59e0b; }
.ew-star svg { position: absolute; top: 0; right: 0; height: 100%; width: auto; aspect-ratio: 1; fill: currentColor; }

/* فهرست آیکون‌دار */
.ew-ilist { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ew-ilist li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.ew-ilist li a { display: inline-flex; align-items: center; gap: inherit; color: inherit; text-decoration: none; }
.ew-ilist-ico { display: inline-flex; flex: 0 0 auto; color: var(--accent); transition: color .2s; }
.ew-ilist-text { transition: color .2s; }
.ew-ilist--div > li + li { padding-top: 10px; border-top: 1px solid var(--line); }
.ew-ilist[style*="row"] > li + li, .ew-ilist--div[style*="row"] > li + li { border-top: 0; }

/* شمارنده و نوار پیشرفت */
.ew-counter { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.ew-counter-num { font-size: 46px; font-weight: 900; line-height: 1.3; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ew-counter-title { color: var(--muted); font-weight: 600; }

.ew-progress-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--ink-2); font-weight: 600; }
.ew-progress-track { position: relative; height: 12px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.ew-progress-fill { height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--g-primary, #4f46e5), var(--g-secondary, #7c3aed)); display: flex; align-items: center; justify-content: flex-end; transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }
.ew-progress-fill.is-prep { width: 0; }
.ew-progress--success .ew-progress-fill { background: #10b981; }
.ew-progress--warning .ew-progress-fill { background: #f59e0b; }
.ew-progress--danger .ew-progress-fill { background: #ef4444; }
.ew-progress--info .ew-progress-fill { background: #0ea5e9; }
.ew-progress-inner { padding: 0 10px; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ew-progress-track:has(.ew-progress-inner) { height: 22px; }

/* نظر مشتری */
.ew-testi { margin: 0; display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.ew-testi-content { margin: 0; font-size: 17px; line-height: 2; color: var(--ink-2); }
.ew-testi-meta { display: flex; align-items: center; gap: 12px; }
.ew-testi--top .ew-testi-meta { flex-direction: column; }
.ew-testi-img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.ew-testi-who { display: flex; flex-direction: column; text-align: start; }
.ew-testi--top .ew-testi-who { text-align: center; }
.ew-testi-name { color: var(--ink); }
.ew-testi-job { color: var(--muted); font-size: 13px; }

/* زبانه‌ها */
.ew-tabs { display: flex; flex-direction: column; }
.ew-tab-titles { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); }
.ew-tab-titles > button {
  flex-grow: var(--tab-grow, 0);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; margin-bottom: -1px;
  border: 0; border-bottom: 2px solid transparent; background: none;
  color: var(--muted); font: inherit; font-weight: 700; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.ew-tab-titles > button:hover { color: var(--ink); }
.ew-tab-titles > button[aria-selected="true"] { color: var(--accent); border-bottom-color: currentColor; }
.ew-tab-panel { padding: 18px 4px; color: var(--ink-2); line-height: 2; animation: ew-fade .35s ease both; }
.ew-tabs--v { flex-direction: row; gap: 20px; }
.ew-tabs--v .ew-tab-titles { flex-direction: column; flex: 0 0 200px; border-bottom: 0; border-inline-end: 1px solid var(--line); }
.ew-tabs--v .ew-tab-titles > button { justify-content: flex-start; border-bottom: 0; border-inline-end: 2px solid transparent; margin: 0 0 0 -1px; }
.ew-tabs--v .ew-tab-titles > button[aria-selected="true"] { border-inline-end-color: currentColor; }
.ew-tabs--v .ew-tab-panels { flex: 1 1 auto; min-width: 0; }
@media (max-width: 767px) {
  .ew-tabs--v { flex-direction: column; }
  .ew-tabs--v .ew-tab-titles { flex-direction: row; flex-basis: auto; border-inline-end: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
}
@keyframes ew-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* آکاردئون و بازشو */
.ew-acc { display: flex; flex-direction: column; gap: 10px; }
.ew-acc-item { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; transition: box-shadow .25s; }
.ew-acc-item[open] { box-shadow: var(--sh); }
.ew-acc-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; cursor: pointer; list-style: none;
  color: var(--ink); font-weight: 700;
}
.ew-acc-title::-webkit-details-marker { display: none; }
.ew-acc-label { margin: 0; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 8px; }
.ew-acc--ico-start .ew-acc-title { flex-direction: row-reverse; justify-content: flex-end; }
.ew-acc-ico { display: inline-flex; flex: 0 0 auto; color: var(--accent); }
.ew-acc-ico i { display: inline-flex; font-style: normal; }
.ew-acc-ico .is-open, .ew-acc-item[open] > summary .is-closed { display: none; }
.ew-acc-item[open] > summary .is-open { display: inline-flex; }
.ew-acc-body, .ew-nacc-body { padding: 0 20px 18px; color: var(--ink-2); line-height: 2; }
.ew-nacc-body { padding: 0 8px 8px; }
.ew-acc-item[open] > .ew-acc-body, .ew-acc-item[open] > .ew-nacc-body { animation: ew-fade .3s ease both; }

/* شبکه‌های اجتماعی */
.ew-social { display: flex; flex-wrap: wrap; gap: 10px; }
.ew-social a { display: inline-grid; place-items: center; padding: .55em; border-radius: 12px; background: var(--sunken); color: var(--ink-2); transition: transform .2s, background-color .2s, color .2s; }
.ew-social svg { width: 20px; height: 20px; }
.ew-social--official a { background: var(--sn); color: #fff; }
.ew-social--circle a { border-radius: 50%; }
.ew-social--square a { border-radius: 4px; }
.ew-social a:hover { transform: translateY(-3px); }

/* پیام هشدار */
.ew-alert { position: relative; display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; border-inline-start: 4px solid; }
.ew-alert--info { background: var(--info-soft); border-color: var(--info); color: var(--info); }
.ew-alert--success { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.ew-alert--warning { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.ew-alert--danger { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.ew-alert-ico { display: inline-flex; flex: 0 0 auto; margin-top: 2px; }
.ew-alert-body { flex: 1 1 auto; min-width: 0; }
.ew-alert-title { display: block; margin-bottom: 2px; }
.ew-alert-desc { color: var(--ink-2); line-height: 1.9; }
.ew-alert-x { flex: 0 0 auto; align-self: flex-start; border: 0; background: none; color: inherit; cursor: pointer; opacity: .6; padding: 2px; }
.ew-alert-x:hover { opacity: 1; }

/* صدا */
.ew-audio { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ew-audio-cover { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; }
.ew-audio-cover--ph { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ew-audio-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ew-audio-title { color: var(--ink); }
.ew-audio-artist { color: var(--muted); font-size: 13px; }
.ew-audio audio { width: 100%; margin-top: 6px; }

/* متن روی مسیر */
.ew-tpath { text-align: center; line-height: 0; }
.ew-tpath svg { width: 260px; max-width: 100%; overflow: visible; }
.ew-tpath text { fill: var(--ink); font-size: 20px; font-weight: 700; font-family: var(--font); direction: rtl; text-anchor: end; }
.ew-tpath path { stroke: none; }
.ew-tpath.show-path path { stroke: var(--line-2); stroke-width: 1; }
.ew-tpath.is-spin svg { animation: ew-spin 18s linear infinite; }
@keyframes ew-spin { to { rotate: 360deg; } }

/* ------------------------------------------------------------ اسلایدر */

.ew-car { --gap: 16px; --per: 1; position: relative; }
.ew-car-view { overflow: hidden; border-radius: inherit; }
.ew-car-track { display: flex; gap: var(--gap); transition: transform .5s cubic-bezier(.3, .7, .2, 1); will-change: transform; touch-action: pan-y; }
.ew-car-slide { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; box-sizing: border-box; }
.ew-car-slide img { display: block; width: 100%; height: auto; }
.ew-car-slide img.is-stretch { height: 260px; object-fit: cover; }
.ew-car-slide a { display: block; }
.ew-car--fade .ew-car-track { display: grid; transform: none !important; }
.ew-car--fade .ew-car-slide { grid-area: 1 / 1; opacity: 0; transition: opacity .6s; pointer-events: none; }
.ew-car--fade .ew-car-slide.is-on { opacity: 1; pointer-events: auto; }
.ew-car-arrow {
  position: absolute; top: 50%; z-index: 3; translate: 0 -50%;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink); box-shadow: var(--sh);
  cursor: pointer; transition: transform .2s, opacity .2s;
}
.ew-car-arrow:hover { transform: scale(1.08); }
.ew-car-arrow[disabled] { opacity: .35; cursor: default; }
.ew-car-prev { right: 10px; }
.ew-car-next { left: 10px; }
.ew-car--out { padding-inline: 54px; }
.ew-car--out .ew-car-prev { right: 0; }
.ew-car--out .ew-car-next { left: 0; }
.ew-car-dots { display: flex; justify-content: center; gap: 7px; margin-top: 16px; }
.ew-car-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: var(--line-2); cursor: pointer; transition: width .3s, background-color .3s; }
.ew-car-dots button[aria-current="true"] { width: 24px; background: var(--accent); }
.ew-car.is-static .ew-car-arrow, .ew-car.is-static .ew-car-dots { display: none; }

/* اسلایدها */
.ew-car--slides .ew-car-view { border-radius: 24px; }
.ew-slide {
  --ov: rgba(15, 17, 35, .35);
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 420px; padding: 48px 32px; overflow: hidden; box-sizing: border-box;
  background: var(--g-primary, #4f46e5); color: #fff; text-decoration: none;
}
.ew-slide-bg { position: absolute; inset: 0; background: center / cover no-repeat; }
.ew-slide-bg.is-kb { transition: none; }
.is-on > .ew-slide .ew-slide-bg.is-kb { animation: e-kb 10s linear both; }
.ew-slide:has(.ew-slide-bg)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--ov); }
.ew-slide-inner { position: relative; z-index: 2; width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.ew-slide--right { align-items: flex-start; text-align: start; margin-inline-end: auto; }
.ew-slide--left { align-items: flex-end; text-align: end; margin-inline-start: auto; }
.ew-slide-title { color: #fff; font-size: clamp(26px, 4vw, 44px); line-height: 1.35; letter-spacing: -.02em; }
.ew-slide-desc { color: rgba(255, 255, 255, .88); font-size: 17px; line-height: 1.9; }
.ew-car-slide.is-on [data-text-anim="up"] > * { animation: ew-in-up .7s both; }
.ew-car-slide.is-on [data-text-anim="down"] > * { animation: ew-in-down .7s both; }
.ew-car-slide.is-on [data-text-anim="zoom"] > * { animation: ew-in-zoom .7s both; }
.ew-car-slide.is-on [data-text-anim="fade"] > * { animation: ew-fade .8s both; }
.ew-car-slide.is-on [data-text-anim] > :nth-child(2) { animation-delay: .12s; }
.ew-car-slide.is-on [data-text-anim] > :nth-child(3) { animation-delay: .24s; }
@keyframes ew-in-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes ew-in-down { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
@keyframes ew-in-zoom { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ گالری و بزرگ‌نمایی */

.ew-gal-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.ew-gal-filter button { padding: 7px 16px; border: 1px solid var(--line-2); border-radius: 99px; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; transition: all .2s; }
.ew-gal-filter button.is-on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.ew-gal-grid { --cols: 3; --gap: 12px; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.ew-gal--masonry .ew-gal-grid { display: block; columns: var(--cols); column-gap: var(--gap); }
.ew-gal--masonry .ew-gal-item { margin-bottom: var(--gap); break-inside: avoid; aspect-ratio: auto !important; }
.ew-gal-item { position: relative; display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3; background: var(--sunken); transition: opacity .35s, transform .35s; }
.ew-gal-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .5s, filter .5s; }
.ew-gal--masonry .ew-gal-item img { height: auto; }
.ew-gal-item.is-hidden { display: none; }
.ew-gal-hv-zoom .ew-gal-item:hover img { scale: 1.08; }
.ew-gal-hv-gray .ew-gal-item img { filter: grayscale(1); }
.ew-gal-hv-gray .ew-gal-item:hover img { filter: none; }
.ew-gal-hv-overlay .ew-gal-item::after { content: ""; position: absolute; inset: 0; background: rgba(15, 17, 35, .5); opacity: 0; transition: opacity .3s; }
.ew-gal-hv-overlay .ew-gal-item:hover::after { opacity: 1; }
.ew-gal-cap { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 10px 12px; color: #fff; font-size: 13px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.ew-gal-hv-overlay .ew-gal-cap { opacity: 0; transform: translateY(8px); transition: all .3s; }
.ew-gal-hv-overlay .ew-gal-item:hover .ew-gal-cap { opacity: 1; transform: none; }
@media (max-width: 767px) { .ew-gal-grid { --cols: 2; } }

.e-lightbox { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 50px 16px; background: rgba(8, 9, 16, .92); animation: ew-fade .25s both; }
.e-lightbox img, .e-lightbox iframe { max-width: min(1200px, 100%); max-height: calc(100vh - 120px); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.e-lightbox iframe { width: min(1100px, 100%); aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
.e-lightbox-cap { position: absolute; bottom: 16px; inset-inline: 16px; text-align: center; color: rgba(255, 255, 255, .85); }
.e-lightbox button { position: absolute; width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.e-lightbox button:hover { background: rgba(255, 255, 255, .22); }
.e-lightbox-x { top: 14px; left: 14px; }
.e-lightbox-prev { right: 14px; top: 50%; translate: 0 -50%; }
.e-lightbox-next { left: 14px; top: 50%; translate: 0 -50%; }

/* ------------------------------------------------------------ حرفه‌ای */

/* تیتر متحرک */
.ew-ah { color: var(--ink); line-height: 1.45; }
.ew-ah a { color: inherit; text-decoration: none; }
.ew-ah-dyn { position: relative; display: inline-grid; vertical-align: bottom; color: var(--accent); }
.ew-ah-dyn b { grid-area: 1 / 1; font-weight: inherit; white-space: nowrap; opacity: 0; visibility: hidden; }
.ew-ah-dyn b.is-on { opacity: 1; visibility: visible; }
.ew-ah--typing .ew-ah-dyn { display: inline-block; }
.ew-ah--typing .ew-ah-dyn b { display: none; }
.ew-ah--typing .ew-ah-dyn b.is-on { display: inline; }
.ew-ah--typing .ew-ah-dyn::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-inline-start: 3px; vertical-align: -.1em; background: currentColor; animation: ew-caret .8s steps(1) infinite; }
.ew-ah--typing .ew-ah-dyn.is-selected b { background: color-mix(in srgb, currentColor 22%, transparent); }
@keyframes ew-caret { 50% { opacity: 0; } }
.ew-ah--clip .ew-ah-dyn { overflow: hidden; }
.ew-ah--clip .ew-ah-dyn b.is-on { animation: ew-ah-clip .7s both; }
@keyframes ew-ah-clip { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.ew-ah--flip .ew-ah-dyn { perspective: 300px; }
.ew-ah--flip .ew-ah-dyn b.is-on { animation: ew-ah-flip .6s both; }
@keyframes ew-ah-flip { from { transform: rotateX(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ew-ah--swirl .ew-ah-dyn b.is-on { animation: ew-ah-swirl .7s both; }
@keyframes ew-ah-swirl { from { transform: rotate(-25deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.ew-ah--blinds .ew-ah-dyn b.is-on { animation: ew-ah-blinds .6s both; transform-origin: 50% 0; }
@keyframes ew-ah-blinds { from { transform: scaleY(0); } to { transform: none; } }
.ew-ah--drop .ew-ah-dyn b.is-on { animation: ew-ah-drop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes ew-ah-drop { from { transform: translateY(-70%); opacity: 0; } to { transform: none; opacity: 1; } }
.ew-ah--wave .ew-ah-dyn b.is-on { animation: ew-ah-wave .8s ease both; }
@keyframes ew-ah-wave { 0% { transform: translateY(40%) skewX(12deg); opacity: 0; } 60% { transform: translateY(-8%) skewX(-4deg); opacity: 1; } 100% { transform: none; } }
.ew-ah--slide .ew-ah-dyn { overflow: hidden; }
.ew-ah--slide .ew-ah-dyn b.is-on { animation: ew-ah-slide .6s both; }
@keyframes ew-ah-slide { from { transform: translateY(100%); } to { transform: none; } }
.ew-ah--slide-down .ew-ah-dyn { overflow: hidden; }
.ew-ah--slide-down .ew-ah-dyn b.is-on { animation: ew-ah-slide-down .6s both; }
@keyframes ew-ah-slide-down { from { transform: translateY(-100%); } to { transform: none; } }
.ew-ah--fade .ew-ah-dyn b { transition: opacity .6s, visibility .6s; }
.ew-ah-hl { position: relative; display: inline-block; color: var(--accent); }
.ew-ah-hl-text { position: relative; z-index: 1; }
.ew-ah-svg { position: absolute; inset-inline: -4%; top: -12%; width: 108%; height: 124%; overflow: visible; z-index: 0; pointer-events: none; }
.ew-ah-hl.is-front .ew-ah-svg { z-index: 2; }
.ew-ah-svg path { stroke: #f59e0b; stroke-width: 9; fill: none; stroke-dasharray: 1500; stroke-dashoffset: 1500; }
.ew-ah-hl.is-drawn .ew-ah-svg path, .no-js .ew-ah-svg path { animation: ew-ah-draw 1.2s ease forwards; }
@keyframes ew-ah-draw { to { stroke-dashoffset: 0; } }
.ew-ah--marker .ew-ah-hl { --mk: #fde68a; background: linear-gradient(transparent 55%, var(--mk) 55%, var(--mk) 90%, transparent 90%) no-repeat 100% 0 / 0 100%; transition: background-size 1s ease; }
.ew-ah--marker .ew-ah-hl.is-drawn { background-size: 100% 100%; }

/* جدول قیمت */
.ew-pt { position: relative; display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: 30px 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); text-align: center; overflow: hidden; }
.ew-pt-head { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; }
.ew-pt-hicon { color: var(--accent); }
.ew-pt-title { margin: 0; color: var(--ink); font-size: 21px; }
.ew-pt-sub { color: var(--muted); font-size: 14px; }
.ew-pt-price { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 20px; color: var(--ink); }
.ew-pt-num { display: inline-flex; align-items: baseline; gap: 6px; }
.ew-pt-amount { font-size: 42px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
.ew-pt-cur { font-size: 14px; color: var(--muted); font-weight: 600; }
.ew-pt-orig { color: var(--muted); font-size: 15px; }
.ew-pt-period { color: var(--muted); font-size: 13px; }
.ew-pt-feats { display: flex; flex-direction: column; gap: 11px; margin: 0 0 22px; padding: 0; list-style: none; text-align: start; flex: 1 1 auto; }
.ew-pt-feats li { display: flex; align-items: center; gap: 9px; color: var(--ink-2); }
.ew-pt-feats li.is-off { color: var(--muted); text-decoration: line-through; opacity: .7; }
.ew-pt-feats.has-div li + li { padding-top: 11px; border-top: 1px solid var(--line); }
.ew-pt-ico { display: inline-flex; color: var(--ok); }
.ew-pt-feats li.is-off .ew-pt-ico { color: var(--muted); }
.ew-pt-foot { display: flex; flex-direction: column; gap: 10px; }
.ew-pt-note { color: var(--muted); font-size: 12.5px; }
.ew-ribbon { position: absolute; top: 0; z-index: 3; width: 150px; height: 150px; overflow: hidden; pointer-events: none; }
.ew-ribbon--left { left: 0; }
.ew-ribbon--right { right: 0; }
.ew-ribbon span { position: absolute; top: 30px; width: 200px; padding: 6px 0; text-align: center; font-size: 12.5px; font-weight: 800; color: #fff; background: linear-gradient(120deg, #f59e0b, #ef4444); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); }
.ew-ribbon--left span { left: -50px; rotate: -45deg; }
.ew-ribbon--right span { right: -50px; rotate: 45deg; }

/* فهرست قیمت */
.ew-plist { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.ew-plist-row { display: flex; gap: 14px; align-items: flex-start; color: inherit; text-decoration: none; }
.ew-plist-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.ew-plist-body { flex: 1 1 auto; min-width: 0; }
.ew-plist-head { display: flex; align-items: baseline; gap: 10px; }
.ew-plist-title { color: var(--ink); font-weight: 700; }
.ew-plist-sep { flex: 1 1 auto; border-bottom: 2px dotted var(--line-2); min-width: 20px; translate: 0 -4px; }
.ew-plist-price { color: var(--accent); font-weight: 800; white-space: nowrap; }
.ew-plist-desc { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* جعبه چرخان */
.ew-flip-link { display: block; color: inherit; text-decoration: none; }
.ew-flip { position: relative; height: 300px; perspective: 1200px; outline: none; }
.ew-flip-face {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 30px; box-sizing: border-box; border-radius: 22px; overflow: hidden; text-align: center;
  background: center / cover no-repeat; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .7s cubic-bezier(.3, .7, .2, 1), opacity .5s, clip-path .6s;
}
.ew-flip-face::before { content: ""; position: absolute; inset: 0; z-index: 0; }
.ew-flip-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.ew-flip-front { background-color: var(--accent-soft); color: var(--ink); }
.ew-flip-back { background-color: var(--g-primary, #4f46e5); color: #fff; }
.ew-flip-ico { color: var(--accent); line-height: 0; }
.ew-flip-img { max-width: 120px; border-radius: 16px; }
.ew-flip-title { margin: 0; font-size: 21px; }
.ew-flip-front .ew-flip-title { color: var(--ink); }
.ew-flip-back .ew-flip-title { color: #fff; }
.ew-flip-desc { line-height: 1.9; opacity: .9; }
.ew-flip--flip .ew-flip-face { transform-style: preserve-3d; }
.ew-flip--flip.ew-flip--up .ew-flip-back { transform: rotateX(-180deg); }
.ew-flip--flip.ew-flip--down .ew-flip-back { transform: rotateX(180deg); }
.ew-flip--flip.ew-flip--left .ew-flip-back { transform: rotateY(180deg); }
.ew-flip--flip.ew-flip--right .ew-flip-back { transform: rotateY(-180deg); }
.ew-flip--flip.ew-flip--up:is(:hover, :focus-within, .is-flipped) .ew-flip-front { transform: rotateX(180deg); }
.ew-flip--flip.ew-flip--down:is(:hover, :focus-within, .is-flipped) .ew-flip-front { transform: rotateX(-180deg); }
.ew-flip--flip.ew-flip--left:is(:hover, :focus-within, .is-flipped) .ew-flip-front { transform: rotateY(-180deg); }
.ew-flip--flip.ew-flip--right:is(:hover, :focus-within, .is-flipped) .ew-flip-front { transform: rotateY(180deg); }
.ew-flip--flip:is(:hover, :focus-within, .is-flipped) .ew-flip-back { transform: none; }
.ew-flip--3d .ew-flip-inner { transform: translateZ(60px) scale(.9); }
.ew-flip--slide .ew-flip-back, .ew-flip--push .ew-flip-back { z-index: 2; }
.ew-flip--slide.ew-flip--up .ew-flip-back, .ew-flip--push.ew-flip--up .ew-flip-back { transform: translateY(100%); }
.ew-flip--slide.ew-flip--down .ew-flip-back, .ew-flip--push.ew-flip--down .ew-flip-back { transform: translateY(-100%); }
.ew-flip--slide.ew-flip--left .ew-flip-back, .ew-flip--push.ew-flip--left .ew-flip-back { transform: translateX(100%); }
.ew-flip--slide.ew-flip--right .ew-flip-back, .ew-flip--push.ew-flip--right .ew-flip-back { transform: translateX(-100%); }
.ew-flip--slide, .ew-flip--push { overflow: hidden; border-radius: 22px; }
.ew-flip--slide:is(:hover, :focus-within, .is-flipped) .ew-flip-back, .ew-flip--push:is(:hover, :focus-within, .is-flipped) .ew-flip-back { transform: none; }
.ew-flip--push.ew-flip--up:is(:hover, :focus-within, .is-flipped) .ew-flip-front { transform: translateY(-100%); }
.ew-flip--push.ew-flip--down:is(:hover, :focus-within, .is-flipped) .ew-flip-front { transform: translateY(100%); }
.ew-flip--push.ew-flip--left:is(:hover, :focus-within, .is-flipped) .ew-flip-front { transform: translateX(-100%); }
.ew-flip--push.ew-flip--right:is(:hover, :focus-within, .is-flipped) .ew-flip-front { transform: translateX(100%); }
.ew-flip--zoom-in .ew-flip-back { transform: scale(.7); opacity: 0; z-index: 2; }
.ew-flip--zoom-out .ew-flip-back { transform: scale(1.2); opacity: 0; z-index: 2; }
.ew-flip--fade .ew-flip-back { opacity: 0; z-index: 2; }
.ew-flip:is(.ew-flip--zoom-in, .ew-flip--zoom-out, .ew-flip--fade):is(:hover, :focus-within, .is-flipped) .ew-flip-back { transform: none; opacity: 1; }

/* فراخوان */
.ew-cta { position: relative; display: flex; overflow: hidden; border-radius: 24px; background: var(--g-dark, #111827); isolation: isolate; }
.ew-cta-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(125deg, var(--g-primary, #4f46e5), var(--g-secondary, #7c3aed)) center / cover no-repeat; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.ew-cta--cover .ew-cta-bg::after { content: ""; position: absolute; inset: 0; background: rgba(15, 17, 35, .45); transition: background-color .5s; }
.ew-cta--noimg .ew-cta-bg::after { background: transparent; }
.ew-cta-body { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 280px; padding: 44px 32px; text-align: center; color: #fff; }
.ew-cta-ico { color: #fff; }
.ew-cta-title { margin: 0; color: #fff; font-size: clamp(22px, 3vw, 32px); line-height: 1.4; }
.ew-cta-desc { color: rgba(255, 255, 255, .88); line-height: 1.9; }
.ew-cta-btn { margin-top: 6px; }
.ew-cta--fx-zoom-in:hover .ew-cta-bg { transform: scale(1.1); }
.ew-cta--fx-zoom-out .ew-cta-bg { transform: scale(1.1); }
.ew-cta--fx-zoom-out:hover .ew-cta-bg { transform: none; }
.ew-cta--fx-move:hover .ew-cta-bg { transform: scale(1.1) translateX(-4%); }
.ew-cta--fx-blur:hover .ew-cta-bg { filter: blur(4px); }
.ew-cta--classic { background: var(--surface); border: 1px solid var(--line); }
.ew-cta--classic .ew-cta-bg { position: relative; z-index: 0; flex: 0 0 42%; min-height: 240px; }
.ew-cta--classic .ew-cta-body { color: var(--ink); }
.ew-cta--classic .ew-cta-title { color: var(--ink); }
.ew-cta--classic .ew-cta-desc { color: var(--muted); }
.ew-cta--classic .ew-cta-ico { color: var(--accent); }
.ew-cta--img-left { flex-direction: row-reverse; }
.ew-cta--img-top { flex-direction: column; }
@media (max-width: 767px) { .ew-cta--classic { flex-direction: column; } }

/* شمارش معکوس */
.ew-cd { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; direction: rtl; }
.ew-cd-item { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 84px; padding: 16px 10px; border-radius: 18px; background: var(--accent-soft); box-sizing: border-box; }
.ew-cd-num { font-size: 36px; font-weight: 900; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.ew-cd-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ew-cd--inline .ew-cd-item { flex-direction: row; gap: 6px; min-width: 0; padding: 6px 10px; align-items: baseline; }
.ew-cd--inline .ew-cd-num { font-size: 24px; }
.ew-cd-msg { text-align: center; font-weight: 700; color: var(--ink); padding: 12px; }
@media (max-width: 767px) {
  .ew-cd { gap: 8px; }
  .ew-cd-item { min-width: 64px; padding: 12px 6px; border-radius: 14px; }
  .ew-cd-num { font-size: 27px; }
}

/* نظرها در اسلایدر */
.ew-tc-item { margin: 0; display: flex; flex-direction: column; gap: 16px; height: 100%; }
.ew-tc-body { position: relative; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ew-tc--bubble .ew-tc--below .ew-tc-body::after { content: ""; position: absolute; bottom: -9px; inset-inline-start: 34px; width: 16px; height: 16px; background: inherit; border: inherit; border-top: 0; border-inline-start: 0; rotate: 45deg; }
.ew-tc--clean .ew-tc-body { background: none; border: 0; padding: 0; }
.ew-tc-text { color: var(--ink-2); line-height: 2; }
.ew-tc-who { display: flex; align-items: center; gap: 12px; }
.ew-tc-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.ew-tc-img--ph { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 18px; }
.ew-tc-who > div { display: flex; flex-direction: column; min-width: 0; text-align: start; }
.ew-tc-name { color: var(--ink); }
.ew-tc-job { color: var(--muted); font-size: 13px; }
.ew-tc-src { margin-inline-start: auto; color: var(--muted); }
.ew-tc--aside { flex-direction: row; align-items: flex-start; }
.ew-tc--aside .ew-tc-who { flex-direction: column; flex: 0 0 110px; text-align: center; }

/* اسلایدر رسانه */
.ew-mc-item { position: relative; display: block; overflow: hidden; border-radius: 16px; color: #fff; text-decoration: none; }
.ew-mc-media { position: relative; height: 280px; background: var(--sunken); }
.ew-mc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .5s; }
.ew-mc-item:hover .ew-mc-media img { scale: 1.05; }
.ew-mc-ph { display: grid; place-items: center; height: 100%; color: var(--muted); }
.ew-mc-media .ew-video-play { width: 56px; height: 56px; pointer-events: none; }
.ew-mc-cap--overlay { position: absolute; inset-inline: 0; bottom: 0; padding: 12px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); font-size: 14px; }
.ew-mc-cap--below { display: block; padding: 10px 2px 0; color: var(--ink-2); font-size: 14px; }
.ew-mc-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.ew-mc-thumbs button { flex: 0 0 auto; width: 96px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--sunken); cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.ew-mc-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ew-mc-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--accent); }
.ew-mc--coverflow .ew-car-view { overflow: visible; }
.ew-mc--coverflow .ew-car { overflow: hidden; padding-block: 20px; }
.ew-mc--coverflow .ew-car-slide { transition: transform .5s, opacity .5s; transform: scale(.82) rotateY(var(--cf-rot, 0deg)); opacity: .55; }
.ew-mc--coverflow .ew-car-track { perspective: 1200px; }
.ew-mc--coverflow .ew-car-slide.is-center { transform: none; opacity: 1; z-index: 2; }

/* نقل قول */
.ew-bq { --bq: var(--accent); position: relative; margin: 0; padding: 8px 0; }
.ew-bq-text { margin: 0 0 12px; font-size: 21px; line-height: 1.9; color: var(--ink); font-weight: 600; }
.ew-bq footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.ew-bq-author { color: var(--muted); font-style: normal; font-weight: 700; }
.ew-bq-author::before { content: "— "; }
.ew-bq-tools { display: inline-flex; gap: 6px; }
.ew-bq-tool { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 99px; background: none; color: var(--ink-2); font: inherit; font-size: 12.5px; text-decoration: none; cursor: pointer; }
.ew-bq-tool:hover { border-color: var(--bq); color: var(--bq); }
.ew-bq--border { padding-inline-start: 20px; border-inline-start: 4px solid var(--bq); }
.ew-bq--quotation { padding-top: 38px; }
.ew-bq--quotation::before { content: "»"; position: absolute; top: -18px; inset-inline-start: 0; font-size: 80px; line-height: 1; color: var(--bq); opacity: .35; font-weight: 900; }
.ew-bq--boxed { padding: 26px 28px; border-radius: 22px; background: var(--accent-soft); }
.ew-bq--clean .ew-bq-text { font-weight: 400; }

/* دکمه‌های هم‌رسانی */
.ew-share { --cols: 0; --net: var(--accent); display: flex; flex-wrap: wrap; gap: 8px; }
.ew-share[style*="--cols: 1"], .ew-share[style*="--cols: 2"] { display: grid; }
.ew-share a, .ew-share button {
  flex-grow: var(--grow, 0);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; box-sizing: border-box;
  border: 2px solid var(--sn, var(--net)); border-radius: 12px;
  background: var(--sn, var(--net)); color: #fff;
  font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer;
  transition: transform .2s, filter .2s;
}
.ew-share a:hover, .ew-share button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.ew-share-ico { display: inline-flex; }
.ew-share--outline a, .ew-share--outline button { background: transparent; color: var(--sn, var(--net)); }
.ew-share--minimal a, .ew-share--minimal button { background: transparent; border-color: transparent; color: var(--sn, var(--net)); padding: 0 8px; }
.ew-share--gradient a, .ew-share--gradient button { background: linear-gradient(135deg, var(--sn, var(--net)), color-mix(in srgb, var(--sn, var(--net)) 60%, #000)); border-color: transparent; }
.ew-share--circle a, .ew-share--circle button { border-radius: 99px; }
.ew-share--square a, .ew-share--square button { border-radius: 0; }
.ew-share--v-icon a, .ew-share--v-icon button { width: 42px; padding: 0; }
.ew-share--v-icon.ew-share--circle a, .ew-share--v-icon.ew-share--circle button { border-radius: 50%; }
.ew-share .is-copied { filter: saturate(0) brightness(.9); }

/* فهرست مطالب */
.ew-toc { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.ew-toc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ew-toc-title { color: var(--ink); font-size: 16px; }
.ew-toc-toggle { border: 0; background: none; color: var(--muted); cursor: pointer; display: inline-flex; transition: rotate .25s; }
.ew-toc.is-closed .ew-toc-toggle { rotate: 180deg; }
.ew-toc-list { margin-top: 12px; }
.ew-toc.is-closed .ew-toc-list { display: none; }
.ew-toc-list :where(ol, ul) { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 7px; }
.ew-toc-list > :where(ol, ul) { padding-inline-start: 18px; }
.ew-toc-list ol ol, .ew-toc-list ul ul { margin-top: 7px; }
.ew-toc-list .is-none, .ew-toc-list .is-none ol, .ew-toc-list .is-none ul { list-style: none; padding-inline-start: 0; }
.ew-toc-list a { color: var(--ink-2); text-decoration: none; border-inline-start: 2px solid transparent; padding-inline-start: 4px; transition: color .2s; }
.ew-toc-list a:hover { color: var(--accent); }
.ew-toc-list a.is-active { color: var(--accent); border-color: var(--accent); font-weight: 700; }
@media (max-width: 767px) { .ew-toc.is-collapsed-m:not(.is-open) .ew-toc-list { display: none; } }

/* منوی ناوبری */
.ew-nav { --nav-p: var(--accent); --nav-pw: 2px; position: relative; }
.ew-nav-bar { display: none; }
.ew-nav-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.ew-nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ew-nav-list > li { position: relative; display: flex; align-items: center; }
.ew-nav-list a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--ink-2); font-weight: 600; text-decoration: none; transition: color .2s, background-color .2s; border-radius: 10px; }
.ew-nav-list a:hover { color: var(--nav-p); }
.ew-nav--p-underline .ew-nav-list > li > a::after, .ew-nav--p-overline .ew-nav-list > li > a::after,
.ew-nav--p-double .ew-nav-list > li > a::after, .ew-nav--p-double .ew-nav-list > li > a::before {
  content: ""; position: absolute; inset-inline: 14px; height: var(--nav-pw); background: var(--nav-p); border-radius: 2px;
  transform: scaleX(0); transition: transform .25s;
}
.ew-nav--p-underline .ew-nav-list > li > a::after, .ew-nav--p-double .ew-nav-list > li > a::after { bottom: 4px; }
.ew-nav--p-overline .ew-nav-list > li > a::after, .ew-nav--p-double .ew-nav-list > li > a::before { top: 4px; }
.ew-nav-list > li > a:hover::after, .ew-nav-list > li > a:hover::before { transform: none; }
.ew-nav--p-background .ew-nav-list > li > a:hover { background: color-mix(in srgb, var(--nav-p) 12%, transparent); }
.ew-nav-caret { border: 0; background: none; color: var(--muted); cursor: pointer; display: inline-flex; padding: 4px; margin-inline-start: -8px; }
.ew-nav-sub {
  position: absolute; top: 100%; inset-inline-start: 0; z-index: 30; min-width: 200px;
  margin: 0; padding: 8px; list-style: none; border-radius: 14px; background: var(--surface); box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity .2s, translate .2s, visibility .2s;
}
.ew-nav-sub a { display: flex; padding: 9px 12px; }
.has-sub:hover > .ew-nav-sub, .has-sub:focus-within > .ew-nav-sub, .has-sub.is-open > .ew-nav-sub { opacity: 1; visibility: visible; translate: 0 0; }
.ew-nav--v .ew-nav-list { flex-direction: column; align-items: stretch; }
.ew-nav--v .ew-nav-list > li { flex-wrap: wrap; }
.ew-nav--v .ew-nav-list > li > a { flex: 1 1 auto; }
.ew-nav--v .ew-nav-sub { position: static; flex: 1 1 100%; box-shadow: none; padding: 0 12px 0 0; display: none; opacity: 1; visibility: visible; translate: none; background: none; }
.ew-nav--v .has-sub.is-open > .ew-nav-sub { display: block; }
/* منوی کشویی */
.ew-nav.is-dd .ew-nav-bar { display: flex; }
.ew-nav.is-dd .ew-nav-list {
  position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 40;
  flex-direction: column; align-items: stretch; gap: 0; padding: 8px; min-width: 240px;
  border-radius: 16px; background: var(--surface); box-shadow: var(--sh-xl);
  display: none;
}
.ew-nav.is-dd.ew-nav--full .ew-nav-list { position: fixed; top: auto; inset-inline: 12px; margin-top: 8px; }
.ew-nav.is-dd.is-open .ew-nav-list { display: flex; animation: ew-fade .25s both; }
.ew-nav.is-dd .ew-nav-list > li { flex-wrap: wrap; }
.ew-nav.is-dd .ew-nav-list > li > a { flex: 1 1 auto; }
.ew-nav.is-dd .ew-nav-sub { position: static; flex: 1 1 100%; box-shadow: none; display: none; opacity: 1; visibility: visible; translate: none; }
.ew-nav.is-dd .has-sub.is-open > .ew-nav-sub { display: block; }
.ew-nav--dropdown .ew-nav-bar { display: flex; }

/* نقاط داغ */
.ew-hs { position: relative; display: inline-block; width: 100%; line-height: 0; }
.ew-hs-img { width: 100%; height: auto; display: block; border-radius: 18px; }
.ew-hs-point { position: absolute; z-index: 2; translate: -50% -50%; line-height: 1.6; }
.ew-hs-dot {
  --hs: var(--accent);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 30px; height: 30px; padding: 0 8px; box-sizing: border-box;
  border: 0; border-radius: 99px; background: var(--hs); color: #fff; font: inherit; font-size: 13px; font-weight: 700;
  text-decoration: none; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45);
}
.ew-hs.is-pulse .ew-hs-dot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--hs); animation: ew-pulse 1.8s ease-out infinite; z-index: -1; }
@keyframes ew-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.2); opacity: 0; } }
.ew-hs.is-seq .ew-hs-point { animation: ew-in-zoom .5s both; animation-delay: calc(var(--i) * .25s); }
.ew-hs-tip {
  --tip: var(--ink);
  position: absolute; z-index: 5; width: 220px; padding: 10px 12px; box-sizing: border-box;
  border-radius: 12px; background: var(--tip); color: #fff; font-size: 13px; line-height: 1.8; text-align: start;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s, translate .2s;
  box-shadow: var(--sh-lg);
}
.ew-hs--tip-top .ew-hs-tip { bottom: calc(100% + 10px); left: 50%; translate: -50% 6px; }
.ew-hs--tip-bottom .ew-hs-tip { top: calc(100% + 10px); left: 50%; translate: -50% -6px; }
.ew-hs--tip-right .ew-hs-tip { left: calc(100% + 10px); top: 50%; translate: -6px -50%; }
.ew-hs--tip-left .ew-hs-tip { right: calc(100% + 10px); top: 50%; translate: 6px -50%; }
.ew-hs--hover .ew-hs-point:hover .ew-hs-tip, .ew-hs-point:focus-within .ew-hs-tip, .ew-hs-point.is-open .ew-hs-tip, .ew-hs--always .ew-hs-tip { opacity: 1; visibility: visible; pointer-events: auto; }
.ew-hs--tip-top :is(.ew-hs-point:hover, .ew-hs-point:focus-within, .ew-hs-point.is-open) .ew-hs-tip, .ew-hs--always.ew-hs--tip-top .ew-hs-tip { translate: -50% 0; }
.ew-hs--tip-bottom :is(.ew-hs-point:hover, .ew-hs-point:focus-within, .ew-hs-point.is-open) .ew-hs-tip, .ew-hs--always.ew-hs--tip-bottom .ew-hs-tip { translate: -50% 0; }
.ew-hs--tip-right :is(.ew-hs-point:hover, .ew-hs-point:focus-within, .ew-hs-point.is-open) .ew-hs-tip, .ew-hs--always.ew-hs--tip-right .ew-hs-tip { translate: 0 -50%; }
.ew-hs--tip-left :is(.ew-hs-point:hover, .ew-hs-point:focus-within, .ew-hs-point.is-open) .ew-hs-tip, .ew-hs--always.ew-hs--tip-left .ew-hs-tip { translate: 0 -50%; }

/* نمایش کد */
.ew-code { --c-bg: #0f1222; --c-ink: #d6dbf5; --c-mute: #6b7394; --c-kw: #c792ea; --c-str: #c3e88d; --c-num: #f78c6c; --c-com: #5c6488; --c-tag: #82aaff; --c-attr: #ffcb6b; --c-hl: rgba(130, 170, 255, .12);
  overflow: hidden; border-radius: 16px; background: var(--c-bg); color: var(--c-ink); text-align: left; }
.ew-code--light { --c-bg: #f7f8fc; --c-ink: #24292f; --c-mute: #8c93a8; --c-kw: #8250df; --c-str: #0a7c45; --c-num: #b35900; --c-com: #8c93a8; --c-tag: #1f5fbf; --c-attr: #9a6700; --c-hl: rgba(79, 70, 229, .08); border: 1px solid var(--line); }
.ew-code--night { --c-bg: #0b1d33; --c-ink: #d6e6ff; --c-kw: #ff9ac1; --c-str: #9be9a8; --c-tag: #7fd4ff; --c-attr: #ffd479; }
.ew-code-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid rgba(127, 127, 160, .18); }
.ew-code-lang { font: 700 11px var(--mono); color: var(--c-mute); letter-spacing: .08em; }
.ew-code-copy { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 8px; padding: 4px 10px; background: rgba(127, 127, 160, .16); color: var(--c-ink); font: 600 12px var(--font); cursor: pointer; }
.ew-code pre { margin: 0; padding: 14px 0; overflow: auto; font: 13.5px/1.75 var(--mono); tab-size: 4; direction: ltr; background: none; color: inherit; border: 0; border-radius: 0; box-shadow: none; }
.ew-code code { display: block; font: inherit; counter-reset: ln; background: none; color: inherit; padding: 0; border: 0; }
.ew-code .ln { display: block; padding: 0 16px; white-space: pre; }
.ew-code.is-wrap .ln { white-space: pre-wrap; word-break: break-word; }
.ew-code.has-lines .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 2.4em; margin-right: 12px; text-align: right; color: var(--c-mute); opacity: .7; user-select: none; }
.ew-code .ln.is-hl { background: var(--c-hl); box-shadow: inset 3px 0 0 var(--c-tag); }
.ew-code .tk-kw { color: var(--c-kw); }
.ew-code .tk-str { color: var(--c-str); }
.ew-code .tk-num { color: var(--c-num); }
.ew-code .tk-com { color: var(--c-com); font-style: italic; }
.ew-code .tk-tag { color: var(--c-tag); }
.ew-code .tk-attr { color: var(--c-attr); }

/* فهرست پخش ویدیو */
.ew-vpl { display: flex; gap: 0; overflow: hidden; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ew-vpl--below { flex-direction: column; }
.ew-vpl-player { flex: 1 1 auto; min-width: 0; }
.ew-vpl-player .ew-video { border-radius: 0; height: 100%; }
.ew-vpl-list { flex: 0 0 320px; display: flex; flex-direction: column; background: var(--surface-2); min-width: 0; }
.ew-vpl-title { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.ew-vpl-items { margin: 0; padding: 6px; list-style: none; overflow-y: auto; max-height: 420px; }
.ew-vpl-items button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; color: var(--ink-2); font: inherit; text-align: start; cursor: pointer; }
.ew-vpl-items button:hover { background: var(--sunken); }
.ew-vpl-items button[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
.ew-vpl-items img { width: 72px; height: 44px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.ew-vpl-num { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: var(--sunken); font-size: 12px; font-weight: 700; }
.ew-vpl-t { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 14px; }
.ew-vpl-dur { color: var(--muted); font-size: 12px; }
.ew-vpl-sec { padding: 12px 8px 4px; color: var(--muted); font-size: 12px; font-weight: 800; }
@media (max-width: 767px) { .ew-vpl { flex-direction: column; } .ew-vpl-list { flex-basis: auto; } }

/* پیشرفت خواندن */
.ew-pt--bar, .ew-pt--circle { --pt-fill: var(--accent); --pt-track: color-mix(in srgb, var(--accent) 14%, transparent); --pt-h: 4px; --pt-size: 52px; --pt: 0; }
.ew-pt--bar { position: relative; height: var(--pt-h); background: var(--pt-track); border-radius: 99px; overflow: visible; }
.ew-pt--bar .ew-pt-bar { position: absolute; inset-block: 0; right: 0; width: calc(var(--pt) * 1%); background: var(--pt-fill); border-radius: inherit; }
.ew-pt--bar .ew-pt-pct { position: absolute; top: calc(100% + 4px); right: calc(var(--pt) * 1%); translate: 50% 0; font-size: 11px; font-weight: 700; color: var(--pt-fill); }
.ew-pt--top, .ew-pt--bottom { position: fixed; inset-inline: 0; z-index: 9990; border-radius: 0; }
.ew-pt--top { top: 0; }
.ew-pt--bottom { bottom: 0; }
.ew-pt--circle { position: relative; display: inline-grid; place-items: center; width: var(--pt-size); height: var(--pt-size); padding: 0; border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--sh-lg); color: var(--pt-fill); font: 700 12px var(--font); cursor: pointer; }
.ew-pt--circle svg { position: absolute; inset: 0; rotate: -90deg; }
.ew-pt--circle circle { fill: none; stroke-width: 3; }
.ew-pt-trk { stroke: var(--pt-track); }
.ew-pt--circle .ew-pt-bar { stroke: var(--pt-fill); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--pt)); stroke-linecap: round; }
.ew-pt--bl, .ew-pt--br { position: fixed; bottom: 18px; z-index: 9990; opacity: 0; translate: 0 10px; transition: opacity .3s, translate .3s; }
.ew-pt--bl { left: 18px; }
.ew-pt--br { right: 18px; }
.ew-pt--bl.is-visible, .ew-pt--br.is-visible { opacity: 1; translate: 0 0; }
.ew-pt.is-preview { position: relative !important; inset: auto !important; opacity: 1 !important; translate: none !important; }

/* فرم ورود و فرم C4R */
.ew-login { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.ew-login-title { font-size: 18px; color: var(--ink); }
.ew-login label { display: flex; flex-direction: column; gap: 6px; }
.ew-login label span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ew-login input { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); color: var(--ink); font: inherit; }
.ew-login input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ew-login-links { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.ew-login-links a { color: var(--accent); text-decoration: none; }
.ew-login-row { display: flex; gap: 8px; }
.ew-form { overflow: hidden; border-radius: 20px; line-height: 0; }
.ew-form iframe { width: 100%; height: 640px; border: 0; display: block; }

/* ابزارک‌های تودرتو */
.ew-ntabs--right, .ew-ntabs--left { flex-direction: row; gap: 18px; }
.ew-ntabs--left { flex-direction: row-reverse; }
.ew-ntabs--right > .ew-tab-titles, .ew-ntabs--left > .ew-tab-titles { flex-direction: column; flex: 0 0 200px; border-bottom: 0; }
.ew-ntabs--bottom { flex-direction: column-reverse; }
.ew-ntabs--bottom > .ew-tab-titles { border-bottom: 0; border-top: 1px solid var(--line); }
.ew-ntabs > .ew-tab-panels { flex: 1 1 auto; min-width: 0; }
.ew-ntab-panel { animation: ew-fade .35s ease both; }
.ew-ntab-mtitle { display: none; }
@media (max-width: 767px) {
  .ew-ntabs--bp-mobile > .ew-tab-titles { display: none; }
  .ew-ntabs--bp-mobile { flex-direction: column; }
  .ew-ntabs--bp-mobile .ew-ntab-panel[hidden] { display: block; }
  .ew-ntabs--bp-mobile .ew-ntab-panel[hidden] > .e-con { display: none; }
  .ew-ntabs--bp-mobile .ew-ntab-mtitle { display: flex; }
}
@media (max-width: 1024px) {
  .ew-ntabs--bp-tablet > .ew-tab-titles { display: none; }
  .ew-ntabs--bp-tablet { flex-direction: column; }
  .ew-ntabs--bp-tablet .ew-ntab-panel[hidden] { display: block; }
  .ew-ntabs--bp-tablet .ew-ntab-panel[hidden] > .e-con { display: none; }
  .ew-ntabs--bp-tablet .ew-ntab-mtitle { display: flex; }
}
.ew-ntab-mtitle { align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 13px 16px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-align: start; }
.ew-ntab-mtitle span { flex: 1 1 auto; }
.ew-ntab-mtitle[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------------ مخصوص سایت */

.ew-mascot-wrap { text-align: center; }
.ew-mascot { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.ew-mascot svg { width: 180px; height: auto; }
.ew-mascot.is-float svg { animation: ew-float 5s ease-in-out infinite; }
@keyframes ew-float { 50% { translate: 0 -10px; } }
.ew-mascot-bubble {
  --bb: var(--surface);
  position: relative; padding: 9px 16px; border-radius: 16px; background: var(--bb); color: var(--ink);
  font-weight: 700; font-size: 14px; line-height: 1.7; box-shadow: var(--sh-lg); max-width: 240px;
}
.ew-mascot-bubble::after { content: ""; position: absolute; bottom: -7px; left: 50%; width: 14px; height: 14px; background: var(--bb); translate: -50% 0; rotate: 45deg; }
.ew-mascot--b-right, .ew-mascot--b-left { flex-direction: row-reverse; }
.ew-mascot--b-left { flex-direction: row; }
.ew-mascot--b-right .ew-mascot-bubble::after { bottom: auto; top: 50%; left: auto; right: -7px; translate: 0 -50%; }
.ew-mascot--b-left .ew-mascot-bubble::after { bottom: auto; top: 50%; left: -7px; translate: 0 -50%; }

.ew-stats { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 16px; }
.ew-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.ew-stat-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.ew-stat-num { font-size: 34px; font-weight: 900; color: var(--ink); line-height: 1.25; }
.ew-stat-label { color: var(--muted); font-weight: 600; }
@media (max-width: 767px) { .ew-stats { --cols: 1; } }

.ew-plans { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ew-plans-switch { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--sunken); }
.ew-plans-switch button { padding: 8px 18px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.ew-plans-switch button small { color: var(--ok); font-weight: 700; }
.ew-plans-switch button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm); }
.ew-plans-grid { --cols: 3; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; width: 100%; align-items: stretch; }
.ew-plans-grid[style*="--cols"] { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.ew-plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 22px; border: 1.5px solid var(--line); border-radius: 22px; background: var(--surface); }
.ew-plan.is-star { --plan-star: var(--accent); border-color: var(--plan-star); box-shadow: 0 20px 44px -22px color-mix(in srgb, var(--plan-star) 70%, transparent); }
.ew-plan-tag { position: absolute; top: -12px; inset-inline-start: 22px; padding: 3px 12px; border-radius: 99px; background: var(--plan-star, var(--accent)); color: #fff; font-size: 12px; font-weight: 800; }
.ew-plan-name { margin: 0; color: var(--ink); font-size: 20px; }
.ew-plan-note { color: var(--muted); font-size: 13.5px; min-height: 1.8em; }
.ew-plan-price { display: flex; align-items: baseline; gap: 6px; }
.ew-plan-amount { font-size: 34px; font-weight: 900; color: var(--ink); }
.ew-plan-per { color: var(--muted); font-size: 13px; }
.ew-plan-feats { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 14px; padding: 0; list-style: none; flex: 1 1 auto; }
.ew-plan-feats li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.ew-plan-feats svg { color: var(--ok); flex: 0 0 auto; }

.ew-ftpl { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 14px; }
.ew-ftpl-item { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.ew-ftpl-item:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.ew-ftpl-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.ew-ftpl-title { color: var(--ink); }
.ew-ftpl-about { color: var(--muted); font-size: 13px; line-height: 1.8; }
@media (max-width: 1024px) { .ew-ftpl { --cols: 2; } }
@media (max-width: 520px) { .ew-ftpl { --cols: 1; } }

.ew-logo-wrap { text-align: right; }
.ew-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.ew-date { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.ew-date svg { color: var(--accent); }

.ew-mq { --mq-gap: 12px; --mq-dur: 40s; position: relative; overflow: hidden; }
.ew-mq.is-fade { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ew-mq-rail { display: flex; width: max-content; gap: var(--mq-gap); animation: ew-mq var(--mq-dur) linear infinite; direction: ltr; }
.ew-mq--rtl .ew-mq-rail { animation-direction: reverse; }
.ew-mq.is-pause:hover .ew-mq-rail { animation-play-state: paused; }
.ew-mq-set { display: flex; gap: var(--mq-gap); direction: rtl; }
.ew-mq-item { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.ew-mq-item img { height: 32px; width: auto; display: block; }
.ew-mq-item:has(img) { background: none; border: 0; padding: 0 12px; }
@keyframes ew-mq { to { transform: translateX(calc(-50% - var(--mq-gap) / 2)); } }

/* ------------------------------------------------------------ پنجره بازشو */

.e-pop { position: fixed; inset: 0; z-index: 9995; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; pointer-events: none; }
.e-pop[hidden] { display: none; }
.e-pop-ov { position: absolute; inset: 0; background: rgba(10, 12, 24, .55); opacity: 0; transition: opacity .3s; pointer-events: auto; }
.e-pop:not(.has-ov) .e-pop-ov { display: none; }
.e-pop.is-open .e-pop-ov { opacity: 1; }
.e-pop-box {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  width: 600px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box;
  padding: 20px; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
  pointer-events: auto;
}
.e-pop.is-full .e-pop-box { height: calc(100vh - 32px); }
.e-pop-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.e-pop-body > .e-con { padding: 0; }
.e-pop-x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); cursor: pointer; transition: transform .2s, opacity .3s; }
.e-pop-x:hover { transform: rotate(90deg); }
.e-pop-x.is-wait { opacity: 0; pointer-events: none; }
.e-pop.x-out .e-pop-box { overflow: visible; }
.e-pop.x-out .e-pop-x { top: -14px; inset-inline-end: -14px; background: var(--surface); box-shadow: var(--sh); }
.e-pop--top { align-items: flex-start; }
.e-pop--bottom { align-items: flex-end; }
.e-pop--top .e-pop-box, .e-pop--bottom .e-pop-box { border-radius: 18px; }
.e-pop--right, .e-pop--left { padding: 0; }
.e-pop--right { justify-content: flex-start; }
.e-pop--left { justify-content: flex-end; }
.e-pop--right .e-pop-box, .e-pop--left .e-pop-box { height: 100vh; max-height: 100vh; border-radius: 0; }
.e-pop--br { justify-content: flex-start; align-items: flex-end; }
.e-pop--bl { justify-content: flex-end; align-items: flex-end; }
.e-pop--br .e-pop-box, .e-pop--bl .e-pop-box { width: 360px; }
html.e-pop-lock { overflow: hidden; }

/* ------------------------------------------------------------ حرکت‌ها */

/* ورود المان‌ها: فقط وقتی JS آماده است پنهان می‌شوند (کلاس e-anim-wait را site.js می‌گذارد). */
.e-anim-wait { opacity: 0; }
.e-animated { animation-duration: .9s; animation-fill-mode: both; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
.e-animated[data-anim-speed="slow"] { animation-duration: 1.6s; }
.e-animated[data-anim-speed="fast"] { animation-duration: .5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -40px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(40px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translate3d(-40px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale3d(.6, .6, .6); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes zoomOut { from { opacity: 0; transform: scale3d(1.3, 1.3, 1.3); } to { opacity: 1; transform: none; } }
@keyframes bounceIn { 0% { opacity: 0; transform: scale3d(.3, .3, .3); } 40% { transform: scale3d(1.08, 1.08, 1.08); } 70% { transform: scale3d(.96, .96, .96); } 100% { opacity: 1; transform: none; } }
@keyframes flipInX { from { transform: perspective(400px) rotate3d(1, 0, 0, 90deg); opacity: 0; } 40% { transform: perspective(400px) rotate3d(1, 0, 0, -20deg); } 70% { transform: perspective(400px) rotate3d(1, 0, 0, 10deg); opacity: 1; } to { transform: perspective(400px); opacity: 1; } }
@keyframes flipInY { from { transform: perspective(400px) rotate3d(0, 1, 0, 90deg); opacity: 0; } 40% { transform: perspective(400px) rotate3d(0, 1, 0, -20deg); } 70% { transform: perspective(400px) rotate3d(0, 1, 0, 10deg); opacity: 1; } to { transform: perspective(400px); opacity: 1; } }
@keyframes rotateIn { from { transform: rotate3d(0, 0, 1, -200deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideInUp { from { transform: translate3d(0, 100%, 0); visibility: visible; } to { transform: none; } }
@keyframes slideInDown { from { transform: translate3d(0, -100%, 0); visibility: visible; } to { transform: none; } }
@keyframes slideInRight { from { transform: translate3d(100%, 0, 0); visibility: visible; } to { transform: none; } }
@keyframes slideInLeft { from { transform: translate3d(-100%, 0, 0); visibility: visible; } to { transform: none; } }
@keyframes lightSpeedIn { from { transform: translate3d(60%, 0, 0) skewX(-30deg); opacity: 0; } 60% { transform: skewX(20deg); opacity: 1; } 80% { transform: skewX(-5deg); } to { transform: none; opacity: 1; } }
@keyframes rollIn { from { opacity: 0; transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { transform: scale3d(1.06, 1.06, 1.06); } }
@keyframes tada { 10%, 20% { transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg); } 30%, 50%, 70%, 90% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); } 40%, 60%, 80% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); } to { transform: none; } }
@keyframes rubberBand { 30% { transform: scale3d(1.25, .75, 1); } 40% { transform: scale3d(.75, 1.25, 1); } 50% { transform: scale3d(1.15, .85, 1); } 65% { transform: scale3d(.95, 1.05, 1); } 75% { transform: scale3d(1.05, .95, 1); } to { transform: none; } }
@keyframes headShake { 0% { transform: translateX(0); } 6.5% { transform: translateX(-6px) rotateY(-9deg); } 18.5% { transform: translateX(5px) rotateY(7deg); } 31.5% { transform: translateX(-3px) rotateY(-5deg); } 43.5% { transform: translateX(2px) rotateY(3deg); } 50% { transform: translateX(0); } }
@keyframes swing { 20% { transform: rotate3d(0, 0, 1, 15deg); } 40% { transform: rotate3d(0, 0, 1, -10deg); } 60% { transform: rotate3d(0, 0, 1, 5deg); } 80% { transform: rotate3d(0, 0, 1, -5deg); } to { transform: none; } }
.e-pop-box.e-animated { animation-duration: var(--pop-ms, .45s); }

/* حرکت زیر نشانگر */
[class*="e-hv-"] { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.e-hv-grow:hover { transform: scale(1.06); }
.e-hv-shrink:hover { transform: scale(.94); }
.e-hv-float:hover { transform: translateY(-8px); }
.e-hv-sink:hover { transform: translateY(8px); }
.e-hv-rotate:hover { transform: rotate(4deg); }
.e-hv-grow-rotate:hover { transform: scale(1.06) rotate(4deg); }
.e-hv-skew:hover { transform: skew(-8deg); }
.e-hv-pop:hover { animation: e-hv-pop .3s linear 1; }
.e-hv-push:hover { animation: e-hv-push .3s linear 1; }
.e-hv-pulse:hover { animation: pulse 1s linear infinite; }
.e-hv-bob:hover { animation: e-hv-bob 1.2s ease-in-out infinite; }
.e-hv-wobble:hover { animation: e-hv-wobble .8s ease-in-out 1; }
.e-hv-buzz:hover { animation: e-hv-buzz .15s linear infinite; }
@keyframes e-hv-pop { 50% { transform: scale(1.12); } }
@keyframes e-hv-push { 50% { transform: scale(.9); } }
@keyframes e-hv-bob { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(-2px); } }
@keyframes e-hv-wobble { 16.65% { transform: translateX(8px); } 33.3% { transform: translateX(-6px); } 49.95% { transform: translateX(4px); } 66.6% { transform: translateX(-2px); } 83.25% { transform: translateX(1px); } 100% { transform: none; } }
@keyframes e-hv-buzz { 50% { transform: translateX(3px) rotate(2deg); } 100% { transform: translateX(-3px) rotate(-2deg); } }

/* جلوه‌های اسکرول و نشانگر: site.js فقط متغیرها را عوض می‌کند. */
[data-fx] { --fx-x: 0px; --fx-y: 0px; --fx-r: 0deg; --fx-s: 1; --fx-o: 1; --fx-b: 0px; --fx-rx: 0deg; --fx-ry: 0deg; }
[data-fx].is-fx { transform: perspective(900px) translate3d(var(--fx-x), var(--fx-y), 0) rotate(var(--fx-r)) scale(var(--fx-s)) rotateX(var(--fx-rx)) rotateY(var(--fx-ry)); opacity: var(--fx-o); filter: blur(var(--fx-b)); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .e-anim-wait { opacity: 1; }
  .e-animated, .ew-mq-rail, .ew-tpath.is-spin svg, .ew-mascot.is-float svg, .ew-hs.is-pulse .ew-hs-dot::before, .e-bg-slides.is-kb i.is-on { animation: none !important; }
  [data-fx].is-fx { transform: none; opacity: 1; filter: none; }
  .ew-car-track { transition: none; }
}
