/* Digikala-inspired layer: reviews, homepage sections, footer */

/* ---------- Menu: no dropdown carets ---------- */
.nav__item.has-mega > .nav__link::after,
.nav__item.has-mega > .nav__link--btn::after {
  display: none !important;
  content: none !important;
}

/* ---------- Star rating ---------- */
.stars {
  --star-on: #f9bc00;
  --star-off: #d6d9df;
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 2px;
  vertical-align: middle;
}
.stars::before {
  content: "★★★★★";
  background: linear-gradient(to left, var(--star-on) calc(var(--rating, 0) / 5 * 100%), var(--star-off) 0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stars--sm { font-size: 0.8rem; letter-spacing: 1px; }
.stars--lg { font-size: 1.6rem; letter-spacing: 3px; }

.rating-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
}
.rating-inline:hover { color: var(--brand); }

/* ---------- Product reviews ---------- */
.reviews__title {
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.reviews__title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  width: 4.5rem;
  height: 2px;
  background: var(--brand);
}
.reviews__grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 2rem;
  align-items: start;
}
.reviews__summary {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow-soft, 0 1px 2px rgba(0, 0, 0, .04));
}
.reviews__summary .review-form {
  margin-top: 1rem;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
.reviews__avg {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}
.reviews__avg small { font-size: 0.95rem; font-weight: 400; color: var(--text-muted); }
.reviews__bars { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.35rem; }
.reviews__bars li { display: grid; grid-template-columns: 2.6rem 1fr 1.6rem; align-items: center; gap: 0.5rem; font-size: 0.82rem; }
.reviews__bar { height: 6px; border-radius: 999px; background: var(--bg-accent); overflow: hidden; }
.reviews__bar > span { display: block; height: 100%; background: #f9bc00; border-radius: inherit; }

.review-form {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.review-form__head { margin: 0; font-weight: 700; }
.review-form__hp { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; inset-inline-start: -9999px; }
.review-form input[name="author_name"],
.review-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font: inherit;
  background: var(--bg);
  color: var(--text);
}

.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.15rem;
  border: 0;
  margin: 0;
  padding: 0;
}
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label {
  font-size: 1.9rem;
  line-height: 1;
  color: #d6d9df;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: #f9bc00; }
.star-input label:hover { transform: scale(1.15); }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }

/* ---------- Review emoji rating row (خیلی بد … عالی) ---------- */
.rate-emoji {
  display: flex;
  justify-content: space-between;
  gap: 0.3rem;
  border: 0;
  margin: 0 0 0.3rem;
  padding: 0;
}
.rate-emoji__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  padding: 0.5rem 0.25rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.rate-emoji__item input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rate-emoji__face {
  font-size: 1.55rem;
  line-height: 1;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.15s, transform 0.15s;
}
.rate-emoji__label { font-size: 0.7rem; color: var(--text-muted); }
.rate-emoji__item:hover { background: var(--bg-accent); }
.rate-emoji__item:hover .rate-emoji__face { transform: scale(1.12); }
.rate-emoji__item:has(input:checked) { background: var(--brand-tint); border-color: var(--brand); }
.rate-emoji__item:has(input:checked) .rate-emoji__face { filter: none; transform: scale(1.1); }
.rate-emoji__item:has(input:checked) .rate-emoji__label { color: var(--brand); font-weight: 700; }
.rate-emoji__item:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Review textarea char counter ---------- */
.review-form__field { position: relative; display: grid; gap: 0.25rem; }
.review-form__count {
  justify-self: start;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.reviews__list { display: grid; gap: 0; }
.review {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.review:last-child { border-bottom: 0; }
.review__head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.review__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: #00a049;
}
.review__buyer { font-size: 0.75rem; color: #00a049; background: #00a04914; padding: 0.1rem 0.45rem; border-radius: 6px; }
.review__body { margin: 0.6rem 0 0; white-space: pre-line; line-height: 1.9; }
.review__reply {
  margin-top: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-inline-start: 3px solid var(--brand);
  background: var(--brand-tint);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.review--empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
@media (max-width: 860px) {
  .reviews__grid { grid-template-columns: 1fr; }
  .reviews__summary { position: static; }
}

/* ---------- Floating phone on the hero slider ---------- */
.float-phone {
  position: absolute;
  top: 50%;
  left: max(14px, calc(50% - 610px));
  z-index: 40;
  width: 168px;
  pointer-events: none;
  perspective: 900px;
  transform: translateY(-50%);
}
.float-phone__device {
  position: relative;
  padding: 7px;
  border-radius: 34px;
  background: linear-gradient(145deg, #3b3f48, #0d0f13 55%, #2a2d34);
  box-shadow:
    inset 0 0 0 1.5px #5d626d,
    0 30px 50px -18px rgba(0, 0, 0, 0.55),
    0 10px 20px -10px rgba(0, 0, 0, 0.4);
  transform: rotateY(-16deg) rotateX(6deg) rotateZ(5deg);
  animation: float-phone 5.5s ease-in-out infinite;
  transform-style: preserve-3d;
}
.float-phone__btn {
  position: absolute;
  right: -3px;
  width: 3px;
  border-radius: 2px;
  background: #4a4e57;
}
.float-phone__btn--a { top: 70px; height: 34px; }
.float-phone__btn--b { top: 112px; height: 52px; }
.float-phone__screen {
  position: relative;
  height: 322px;
  border-radius: 28px;
  overflow: hidden;
  background: #f5f6f8;
  padding: 30px 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 9px;
  color: #1a1a1a;
}
.float-phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.45) 0%, transparent 32%, transparent 70%, rgba(255, 255, 255, 0.12) 100%);
  pointer-events: none;
}
.float-phone__island {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 54px;
  height: 15px;
  border-radius: 10px;
  background: #0d0f13;
  transform: translateX(-50%);
}
.float-phone__bar { font-weight: 800; font-size: 13px; text-align: center; direction: ltr; }
.float-phone__hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 9px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand, #EE1F25), var(--brand-hover, #C4181E));
}
.float-phone__hero strong { font-size: 11px; }
.float-phone__hero small { font-size: 8px; opacity: 0.9; }
.float-phone__item {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 6px;
  align-items: center;
  padding: 5px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.float-phone__item img { grid-row: span 2; width: 34px; height: 34px; object-fit: contain; border-radius: 6px; }
.float-phone__name { line-height: 1.35; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.float-phone__price { font-weight: 700; color: #EE1F25; font-size: 8.5px; }
.float-phone__cta {
  margin-top: auto;
  text-align: center;
  padding: 7px;
  border-radius: 9px;
  font-weight: 700;
  color: #fff;
  background: #EE1F25;
}
.float-phone__shadow {
  display: block;
  width: 70%;
  height: 16px;
  margin: 18px auto 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.32), transparent);
  animation: float-phone-shadow 5.5s ease-in-out infinite;
}
@keyframes float-phone {
  0%, 100% { transform: translateY(0) rotateY(-16deg) rotateX(6deg) rotateZ(5deg); }
  50% { transform: translateY(-16px) rotateY(-8deg) rotateX(3deg) rotateZ(2deg); }
}
@keyframes float-phone-shadow {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.8); opacity: 0.6; }
}
@media (max-width: 1100px) {
  .float-phone { width: 130px; left: 8px; }
  .float-phone__screen { height: 250px; }
  .float-phone__item:nth-of-type(n + 4) { display: none; }
}
@media (max-width: 760px) {
  .float-phone { display: none; }
}

/* ---------- Top hero: floating phone column + gold announcement ---------- */
@media (min-width: 1100px) {
  .dhero__inner.dhero__inner--phone { grid-template-columns: 1.05fr 1fr 180px; gap: 2.25rem; align-items: center; }
}
.dhero .float-phone--hero {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  max-width: 180px;
  transform: none;
  justify-self: center;
}
.dhero .float-phone--hero .float-phone__device {
  animation-delay: -2.6s;
  box-shadow:
    inset 0 0 0 1.5px #6b7080,
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 60px -20px rgba(124, 58, 237, 0.55),
    0 12px 24px -12px rgba(0, 0, 0, 0.6);
}
.dhero .float-phone--hero .float-phone__shadow { animation-delay: -2.6s; background: radial-gradient(closest-side, rgba(124, 58, 237, 0.45), transparent); }
.float-phone__screen--dark { background: linear-gradient(180deg, #151826, #0d0f17); color: #e5e7eb; }
.float-phone__screen--dark .brand__fix { color: #fff; }
.float-phone__screen--dark .brand__tand { color: #ff3b41; }
.float-phone__screen--dark .float-phone__item { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.float-phone__screen--dark .float-phone__price { color: #fbbf24; }
.float-phone__hero--violet { background: linear-gradient(135deg, #8b5cf6, #4f46e5); }
.float-phone__ico {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
}
.float-phone__item:nth-of-type(3) .float-phone__ico { background: linear-gradient(135deg, #34d399, #059669); }
.float-phone__item:nth-of-type(4) .float-phone__ico { background: linear-gradient(135deg, #f472b6, #db2777); }
@media (max-width: 1099px) {
  .dhero .float-phone--hero { display: none; }
}

.gold-promo {
  --gold-a: #fff3c4;
  --gold-b: #f5d76e;
  --gold-c: #d4a017;
  --gold-d: #9a6b0a;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 100%;
  margin-bottom: 1.1rem;
  padding: 0.75rem 1.1rem 0.75rem 1.3rem;
  border-radius: 18px;
  text-decoration: none;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(30, 24, 8, 0.92), rgba(18, 16, 12, 0.92)) padding-box,
    linear-gradient(120deg, var(--gold-d), var(--gold-a) 30%, var(--gold-c) 55%, var(--gold-a) 75%, var(--gold-d)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 0 4px rgba(245, 215, 110, 0.06), 0 18px 40px -18px rgba(212, 160, 23, 0.65);
  animation: gold-float 4.5s ease-in-out infinite;
  transition: box-shadow 0.3s;
}
.gold-promo:hover { box-shadow: 0 0 0 5px rgba(245, 215, 110, 0.12), 0 22px 48px -16px rgba(212, 160, 23, 0.85); }
.gold-promo__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
}
.gold-promo__glow::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -50%;
  background: linear-gradient(100deg, transparent, rgba(255, 236, 170, 0.22), transparent);
  transform: skewX(-20deg);
  animation: gold-sweep 3.8s ease-in-out infinite;
}
.gold-promo__icon { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; filter: drop-shadow(0 4px 10px rgba(212, 160, 23, 0.55)); animation: gold-tilt 4.5s ease-in-out infinite; }
.gold-promo__icon svg { width: 100%; height: 100%; display: block; }
.gold-promo__text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.gold-promo__text strong {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 800;
  line-height: 1.5;
  background: linear-gradient(100deg, var(--gold-d) 0%, var(--gold-b) 20%, var(--gold-a) 35%, var(--gold-c) 55%, var(--gold-a) 75%, var(--gold-d) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gold-shimmer 4s linear infinite;
  text-shadow: 0 0 22px rgba(245, 215, 110, 0.25);
}
.gold-promo__text small { font-size: 0.8rem; color: #e9d9a6; opacity: 0.9; }
.gold-promo__arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #2a1f05;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-a), var(--gold-c));
  transition: transform 0.3s;
}
.gold-promo:hover .gold-promo__arrow { transform: translateX(-4px); }
.gold-promo__spark {
  position: absolute;
  color: var(--gold-b);
  text-shadow: 0 0 8px rgba(245, 215, 110, 0.9);
  pointer-events: none;
  animation: gold-twinkle 2.4s ease-in-out infinite;
}
.gold-promo__spark--a { top: -0.55rem; right: 18%; font-size: 0.95rem; }
.gold-promo__spark--b { bottom: -0.5rem; left: 22%; font-size: 0.75rem; animation-delay: -0.8s; }
.gold-promo__spark--c { top: 20%; left: -0.55rem; font-size: 0.85rem; animation-delay: -1.6s; }
@keyframes gold-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes gold-shimmer { to { background-position: -250% 0; } }
@keyframes gold-sweep { 0%, 35% { left: -50%; } 75%, 100% { left: 120%; } }
@keyframes gold-tilt { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-8deg) scale(1.05); } }
@keyframes gold-twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.15); } }

/* ---------- Main sections: repair + academy ---------- */
.mainsec { padding: 1.5rem 0 0.5rem; }
.mainsec__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.mainsec__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 230px;
  padding: 1.6rem 1.75rem;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s;
}
.mainsec__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(255, 255, 255, 0.18), transparent 55%),
    var(--mainsec-bg);
  transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
}
.mainsec__card--repair { --mainsec-bg: linear-gradient(135deg, #ff5a3c 0%, #EE1F25 55%, #b3141a 100%); color: #fff; }
.mainsec__card--academy { --mainsec-bg: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 55%, #312e81 100%); color: #fff; }
.mainsec__card:hover { color: #fff; transform: translateY(-5px); box-shadow: 0 22px 40px -20px rgba(0, 0, 0, 0.45); }
.mainsec__card:hover::before { transform: scale(1.06); }
.mainsec__text { flex: 1 1 55%; position: relative; z-index: 1; }
.mainsec__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
}
.mainsec__text h2 { margin: 0.6rem 0 0.4rem; font-size: clamp(1.25rem, 2.2vw, 1.7rem); color: #fff; }
.mainsec__text p { margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.9; opacity: 0.92; }
.mainsec__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  background: #fff;
  color: #1a1a1a;
  transition: gap 0.25s;
}
.mainsec__card--repair .mainsec__cta { color: #c4181e; }
.mainsec__card--academy .mainsec__cta { color: #4338ca; }
.mainsec__card:hover .mainsec__cta { gap: 0.8rem; }
.mainsec__art { flex: 0 0 40%; max-width: 230px; color: #fff; }
.mainsec__art svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.25));
}
.mainsec__card:hover .mainsec__art svg { transform: scale(1.16) rotate(-3deg); }
.mainsec__float { animation: mainsec-bob 4s ease-in-out infinite; transform-box: fill-box; }
.mainsec__tool { transform-box: fill-box; transform-origin: center; transition: transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.mainsec__card:hover .mainsec__tool { transform: rotate(-14deg) translate(-4px, -6px); }
.mainsec__gear { transform-box: fill-box; transform-origin: center; animation: mainsec-spin 9s linear infinite; }
@keyframes mainsec-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes mainsec-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .mainsec__grid { grid-template-columns: 1fr; }
  .mainsec__card { min-height: 190px; padding: 1.25rem; }
  .mainsec__art { flex-basis: 34%; }
}

/* ---------- Admin-managed rounded banners ---------- */
.promo-row { padding: 1.25rem 0 0.25rem; }
.promo-row__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.promo-banner {
  position: relative;
  display: block;
  aspect-ratio: 41 / 20;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-accent);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}
.promo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
}
a.promo-banner:hover img { transform: scale(1.05); }
.promo-banner--fallback {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1rem, 3vw, 2rem);
  color: #fff;
  text-decoration: none;
  transition: transform 0.35s;
}
.promo-banner--fallback:hover { color: #fff; transform: translateY(-3px); }
.promo-banner--a { background: radial-gradient(90% 120% at 100% 0%, #22d3ee 0%, transparent 55%), linear-gradient(135deg, #0f172a, #1e3a8a); }
.promo-banner--b { background: radial-gradient(90% 120% at 0% 100%, #fbbf24 0%, transparent 55%), linear-gradient(135deg, #EE1F25, #7f1d1d); }
.promo-banner__copy strong { display: block; font-size: clamp(1.1rem, 2.4vw, 1.8rem); }
.promo-banner__copy small { display: block; margin-top: 0.35rem; opacity: 0.9; font-size: 0.9rem; }
.promo-banner__pill {
  align-self: flex-start;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
}
@media (max-width: 640px) {
  .promo-row__grid { grid-template-columns: 1fr; gap: 0.85rem; }
}

.strip-row { padding: 1.25rem 0 0.5rem; }
.strip-row .container { display: grid; gap: 1rem; }
.strip-banner {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 7 / 1;
  background: var(--bg-accent);
}
.strip-banner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s; }
a.strip-banner:hover img { transform: scale(1.03); }
.strip-banner--fallback {
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.5rem;
  color: #fff;
  background:
    radial-gradient(60% 140% at 0% 50%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(90deg, #EE1F25, #c4181e);
}
.strip-banner__logo {
  direction: ltr;
  font-weight: 800;
  font-size: 1.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 12px;
  background: #fff;
}
.strip-banner__logo .brand__fix { color: #1a1a1a; }
.strip-banner__text { flex: 1 1 280px; font-weight: 600; }
.strip-banner__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.strip-banner__actions a {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.strip-banner__actions a:hover { background: #fff; color: #c4181e; }

/* ---------- «شگفت‌انگیز» carousel ---------- */
.amazing { padding: 1.5rem 0 0.5rem; }
.amazing__box {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1.1rem 0.75rem;
  border-radius: 20px;
  background: linear-gradient(90deg, #ef4056 0%, var(--brand, #EE1F25) 45%, var(--brand-hover, #C4181E) 100%);
}
.amazing__intro {
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: #fff;
  text-align: center;
}
.amazing__title { margin: 0; font-size: 1.55rem; font-weight: 800; line-height: 1.4; color: #fff; }
.amazing__art { width: 74px; height: 74px; animation: amazing-wiggle 3.2s ease-in-out infinite; }
@keyframes amazing-wiggle {
  0%, 100% { transform: rotate(0); }
  8% { transform: rotate(-8deg); }
  16% { transform: rotate(6deg); }
  24% { transform: rotate(0); }
}
.amazing__timer { display: flex; align-items: center; gap: 0.2rem; direction: rtl; }
.amazing__timer span {
  min-width: 2rem;
  padding: 0.2rem 0.3rem;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}
.amazing__timer i { font-style: normal; font-weight: 700; }
.amazing__all { color: #fff; font-size: 0.88rem; text-decoration: none; display: inline-flex; gap: 0.3rem; align-items: center; }
.amazing__all:hover { color: #fff; text-decoration: underline; }

.amazing__viewport { position: relative; flex: 1 1 auto; min-width: 0; }
.amazing__track {
  display: flex;
  gap: 2px;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 14px;
  scrollbar-width: none;
}
.amazing__track::-webkit-scrollbar { display: none; }
.amazing-card {
  position: relative;
  flex: 0 0 186px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 0.85rem 1rem;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  scroll-snap-align: start;
  transition: box-shadow 0.25s;
}
.amazing-card:first-child { border-start-start-radius: 14px; border-end-start-radius: 14px; }
.amazing-card:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--border), 0 6px 18px -8px rgba(0, 0, 0, 0.2); z-index: 1; }
.amazing-card__media { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #fff; }
.amazing-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.45s; }
.amazing-card:hover .amazing-card__media img { transform: scale(1.07); }
.amazing-card__name {
  font-size: 0.82rem;
  line-height: 1.75;
  min-height: 3.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.amazing-card__rating { display: flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; color: var(--text-muted); }
.amazing-card__price { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; margin-top: auto; }
.amazing-card__now { font-weight: 800; font-size: 0.92rem; margin-inline-start: auto; }
.amazing-card__off {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #d32f2f;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.amazing-card__was { align-self: flex-end; font-size: 0.75rem; color: var(--text-muted); text-decoration: line-through; }
.amazing-card__oos { position: absolute; top: 0.6rem; inset-inline-start: 0.6rem; font-size: 0.7rem; padding: 0.1rem 0.45rem; border-radius: 6px; background: #6b7280; color: #fff; }
.amazing-card--more {
  flex-basis: 150px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 700;
  border-start-end-radius: 14px;
  border-end-end-radius: 14px;
}
.amazing-card__more-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1.5px solid var(--brand, #EE1F25);
  color: var(--brand, #EE1F25);
  font-size: 1.2rem;
}
.amazing__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%);
  transition: transform 0.2s, box-shadow 0.2s;
}
.amazing__nav:hover { transform: translateY(-50%) scale(1.08); }
.amazing__nav--next { left: 0.6rem; }
.amazing__nav--prev { right: 0.6rem; }
@media (max-width: 760px) {
  .amazing__box { flex-direction: column; padding: 0.85rem 0.6rem; }
  .amazing__intro { flex-basis: auto; flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .amazing__art { width: 44px; height: 44px; }
  .amazing__title { font-size: 1.2rem; }
  .amazing-card { flex-basis: 150px; }
  .amazing__nav { display: none; }
}

/* ---------- Two-column list panel: lessons | latest products ---------- */
.news-panel { padding: 1.5rem 0 0.5rem; }
.news-panel__box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden; /* clip radius only — no scrollbars on the frame */
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  align-items: start;
}
.news-panel__col {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible; /* grow with content — never a vertical scrollbar */
}
.news-panel__col [data-np-panel] {
  overflow: visible;
}
.news-panel__list {
  max-height: none !important;
  overflow: visible !important;
}
.news-panel__col + .news-panel__col { border-inline-start: 1px solid var(--border); }
.news-panel__head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 3rem;
  flex: 0 0 auto;
  background: var(--bg-accent);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.news-panel__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.75rem;
  margin-bottom: -1px;
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--surface);
  border-inline-end: 1px solid var(--border);
  border-top: 3px solid var(--brand);
}
.news-panel__tab svg { width: 1.15rem; height: 1.15rem; color: var(--brand); flex: 0 0 auto; }
.news-panel__tabs {
  display: flex; align-items: stretch; flex-wrap: nowrap; white-space: nowrap;
  min-width: 0; flex: 1 1 auto;
  overflow: hidden; /* never show tab-strip scrollbars */
}
.news-panel__head { flex-wrap: nowrap; }
.news-panel__tab { white-space: nowrap; flex: 0 1 auto; min-width: 0; }
button.news-panel__tab { font: inherit; font-weight: 700; color: var(--text); cursor: pointer; border-bottom: 0; border-inline-start: 0; }
.news-panel__shortcuts {
  display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.7rem 1rem 0.95rem;
  border-top: 1px dashed var(--border);
}
.news-panel__shortcuts a {
  display: inline-flex; align-items: center; padding: 0.28rem 0.7rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; text-decoration: none; color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  background: color-mix(in srgb, var(--brand) 6%, transparent);
}
.news-panel__shortcuts a:hover { background: color-mix(in srgb, var(--brand) 14%, transparent); }
.news-panel__tabs .news-panel__tab:not(.is-active) {
  background: transparent;
  border-top-color: transparent;
  color: var(--text-muted);
  margin-bottom: 0;
}
.news-panel__tabs .news-panel__tab:not(.is-active) svg { color: var(--text-muted); }
.news-panel__tabs .news-panel__tab:not(.is-active):hover { color: var(--brand); }
.news-panel__tabs .news-panel__tab:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.np-search { display: flex; gap: 0.4rem; margin: 0.7rem 1rem 0.2rem; }
.np-search input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
}
.np-search input:focus { outline: 2px solid var(--brand-tint); border-color: var(--brand); }
.np-search button {
  display: grid;
  place-items: center;
  width: 2.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}
.np-search button svg { width: 1.1rem; height: 1.1rem; }
.np-price { flex: 0 0 auto; font-size: 0.78rem; font-weight: 700; color: #16a34a; }
.news-panel__more {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.news-panel__more:hover { color: var(--brand); }
.news-panel__more[hidden] { display: none; }
.news-panel__social {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0 0.5rem;
  flex: 0 1 auto; min-width: 0; overflow: hidden;
}
.news-panel__social a { display: grid; place-items: center; color: #9ea3ad; transition: color 0.2s; }
.news-panel__social a:hover { color: var(--brand); }
.news-panel__social svg { width: 1.15rem; height: 1.15rem; }
.news-panel__list { list-style: none; margin: 0; padding: 0.4rem 0; }
.news-panel__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px dashed var(--border);
}
.news-panel__list li:last-child { border-bottom: 0; }
.news-panel__list li::before {
  content: "«";
  flex: 0 0 auto;
  color: #16a34a;
  font-weight: 700;
}
.news-panel__list a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s, padding 0.2s;
}
.news-panel__list a:hover { color: var(--brand); padding-inline-start: 0.25rem; }
.news-panel__views {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: #dc2626;
}
.news-panel__views svg { width: 0.95rem; height: 0.95rem; }
.news-panel__list li.news-panel__empty { color: var(--text-muted); justify-content: center; }
.news-panel__list li.news-panel__empty::before { content: none; }
@media (max-width: 860px) {
  .news-panel__box { grid-template-columns: 1fr; }
  .news-panel__col + .news-panel__col { border-inline-start: 0; border-top: 1px solid var(--border); }
}

/* ---------- Footer (Digikala style) ---------- */
.dk-footer {
  margin-top: 3rem;
  padding: 2rem 0 1rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
}
.dk-footer a { color: inherit; text-decoration: none; }
.dk-footer a:hover { color: var(--brand); }
.dk-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dk-footer__brand { direction: ltr; font-size: 1.7rem; font-weight: 800; }
.dk-footer__brand .brand__fix { color: var(--text); }
.dk-footer__totop {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.dk-footer__totop:hover { color: var(--text); border-color: var(--text-muted); }
.dk-footer__contact { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin: 0.6rem 0 0; color: var(--text-muted); font-size: 0.85rem; }
.dk-footer__sep { color: var(--border); }

.dk-footer__services {
  list-style: none;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.75rem 0;
  padding: 1.25rem 0;
  border-block: 1px solid var(--border);
}
.dk-footer__services li { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; font-size: 0.8rem; color: var(--text-muted); }
.dk-footer__svc-icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--bg-accent);
  color: var(--brand);
  transition: transform 0.3s;
}
.dk-footer__services li:hover .dk-footer__svc-icon { transform: translateY(-3px) scale(1.06); }
.dk-footer__svc-icon svg { width: 1.6rem; height: 1.6rem; }

.dk-footer__grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.5fr; gap: 1.5rem; }
.dk-footer__heading { margin: 0 0 0.8rem; font-weight: 700; font-size: 0.98rem; color: var(--text); }
.dk-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; color: var(--text-muted); }
.dk-footer__social { list-style: none; display: flex; flex-wrap: wrap; gap: 1.1rem; margin: 0 0 1.4rem; padding: 0; }
.dk-social {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  color: #9ea3ad !important;
  transition: color 0.2s, transform 0.2s;
}
.dk-social svg { width: 2rem; height: 2rem; display: block; }
.dk-social:hover { transform: translateY(-2px); }
.dk-social--instagram:hover { color: #e1306c !important; }
.dk-social--whatsapp:hover { color: #25d366 !important; }
.dk-social--telegram:hover { color: #229ed9 !important; }
.dk-social--aparat:hover { color: #ed145b !important; }
.dk-social--eitaa:hover { color: #f58220 !important; }
.dk-social--bale:hover { color: #3fb68e !important; }
.dk-social--email:hover,
.dk-social--website:hover { color: var(--brand) !important; }
.dk-footer__news { display: flex; gap: 0.5rem; }
.dk-footer__news input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: 10px;
  background: var(--bg-accent);
  color: var(--text);
  font: inherit;
}
.dk-footer__news button {
  padding: 0 1.4rem;
  border: 0;
  border-radius: 10px;
  background: #e0e0e2;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.dk-footer__news input:valid + button,
.dk-footer__news button:hover { background: var(--brand); }

.dk-footer__about {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.dk-footer__about-text { flex: 1; }
.dk-footer__about-text h2 { margin: 0 0 0.6rem; font-size: 1rem; }
.dk-footer__about-text p { margin: 0; color: var(--text-muted); line-height: 2.1; font-size: 0.84rem; text-align: justify; }
.dk-footer__badges { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.dk-badge {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.dk-badge img { max-width: 100%; max-height: 100%; width: auto !important; height: auto !important; }
.dk-footer__bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}
@media (max-width: 900px) {
  .dk-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .dk-footer__follow { grid-column: 1 / -1; }
  .dk-footer__about { flex-direction: column; }
}
@media (max-width: 520px) {
  .dk-footer__services { justify-content: center; }
  .dk-footer__services li { flex: 0 0 28%; text-align: center; }
}

/* ---------- Rich article body (learning section) ---------- */
.article-body { line-height: 2.1; font-size: 1.02rem; }
.article-body h2 { margin: 2rem 0 0.75rem; font-size: 1.35rem; }
.article-body h3 { margin: 1.6rem 0 0.6rem; font-size: 1.15rem; }
.article-body p { margin: 0 0 1rem; }
.article-body img { display: block; max-width: 100%; height: auto; margin: 1.25rem auto; border-radius: 16px; }
.article-body figure { margin: 1.25rem 0; }
.article-body figcaption { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: -0.5rem; }
.article-body ul,
.article-body ol { padding-inline-start: 1.5rem; margin: 0 0 1rem; }
.article-body li { margin-bottom: 0.35rem; }
.article-body blockquote {
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border-inline-start: 4px solid var(--brand);
  background: var(--brand-tint);
  border-radius: var(--radius-sm);
}
.article-body a { color: var(--brand); text-decoration: underline; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.article-body th,
.article-body td { border: 1px solid var(--border); padding: 0.5rem 0.7rem; text-align: start; }
.article-body th { background: var(--bg-accent); }
.article-body pre { direction: ltr; overflow-x: auto; padding: 1rem; border-radius: var(--radius-sm); background: #0f1115; color: #e5e7eb; }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.article-gallery figure { margin: 0; }
.article-gallery img { margin: 0 0 0.5rem; aspect-ratio: 1; object-fit: cover; width: 100%; }
.article-gallery figcaption { margin: 0; }
.article-body li[data-list="bullet"] { list-style-type: disc; }
.article-body li[data-list="ordered"] { list-style-type: decimal; }
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right { text-align: right; }
.article-body .ql-align-left { text-align: left; }
.article-body .ql-align-justify { text-align: justify; }
.article-body .ql-direction-rtl { direction: rtl; }
.article-body .ql-indent-1 { padding-inline-start: 2rem; }
.article-body .ql-indent-2 { padding-inline-start: 4rem; }
.article-body .ql-video,
.article-body iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 1.25rem 0; border: 0; border-radius: 16px; }
.article-source {
  margin-top: 2rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
}
.article-source a { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .float-phone__device,
  .float-phone__shadow,
  .mainsec__float,
  .mainsec__gear,
  .amazing__art,
  .gold-promo,
  .gold-promo__icon,
  .gold-promo__spark,
  .gold-promo__text strong,
  .gold-promo__glow::after { animation: none; }
}
