/* dmhouse-marketing-consult.css — قالب «مشاوره دیجیتال مارکتینگ».
   ⚠ فقط رنگ‌های پالت تم (سرمه‌ای، طلایی، مسی و توکن‌های theme-light/dark).
   ⚠ المان‌های مشترک (دکمه‌ها، موج، مقیاس تیتر، سوالات متداول، کاروسل نظرها) بازطراحی نمی‌شوند.
   ⚠ متغیرهای اسکرول (--p، --c) پیش‌فرضشان حالت نهایی است؛ بدون اسکریپت همه‌چیز کامل دیده می‌شود.
   ⚠ پرسپکتیو و جابه‌جایی ماندگار فقط بالای ۹۹۲ پیکسل و فقط روی عناصر تزئینی. */

[hidden] {
    display: none !important;
}

/* ⚠ پایهٔ سایت box-sizing سراسری ندارد؛ قاب‌های padding‌دار بدون این روی موبایل بیرون می‌زدند. */
.dmmc-main *,
.dmmc-main *::before,
.dmmc-main *::after {
    box-sizing: border-box;
}

.dmmc-main {
    --dmmc-pad: clamp(56px, 7vw, 110px);
    --dmmc-pad-wave: calc(clamp(50px, 8vw, 120px) + clamp(40px, 5vw, 70px));
    --dmmc-gold: #f5d68f;
    --dmmc-copper: #b87333;
    --dmmc-amber: #e0a96a;
    --dmmc-navy: #0a192f;
    --dmmc-ease: cubic-bezier(.22, 1, .36, 1);
    overflow: clip;
}

.dmmc-sec {
    --p: 1;
    --c: 0;
    position: relative;
    padding-block: var(--dmmc-pad);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.dmmc-sec.section-meld {
    padding-block: var(--dmmc-pad-wave);
}

/* ═══════════ پیوندها (فقط پیوندهای خود قالب) ═══════════ */
.dmmc-crumbs__link,
.dmmc-crumbs__link:visited,
.dmmc-link,
.dmmc-link:visited {
    color: var(--accent-primary) !important;
    font-weight: 700;
    text-decoration: none;
}

.dmmc-link {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 100% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .35s var(--dmmc-ease);
}

.dmmc-link:hover {
    background-size: 0 1px;
}

/* ═══════════ مشترک ═══════════ */

/* ⚠ مقیاس تیتر سکشن مشترک قالب‌های کدی. */
.dmmc-title {
    margin: 0 0 14px;
    font-size: clamp(22px, 2.6vw, 34px);
    line-height: 1.7;
    color: var(--text-primary);
    text-align: start;
}

.dmmc-title--center {
    text-align: center;
}

.dmmc-p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 2.1;
    color: var(--text-secondary);
    text-align: justify;
}

.dmmc-p strong {
    color: var(--text-primary);
}

.dmmc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
}

.dmmc-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: clamp(28px, 5vw, 80px);
}

.dmmc-split--rev > :last-child {
    order: -1;
}

.dmmc-rv {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    transition: opacity .85s var(--dmmc-ease), transform .85s var(--dmmc-ease);
    transition-delay: calc(var(--dmmc-i, 0) * 80ms);
}

.dmmc-rv.is-in {
    opacity: 1;
    transform: none;
}

/* ═══════════ هیرو: قیف ═══════════ */

/* ⚠ فاصلهٔ استاندارد هیروهای کدی؛ پایین موج دارد پس فرمول موج. بالای هیرو چیزی نیست. */
/* ⚠ پایین = ارتفاع موج + یک فاصلهٔ کوچک (نه فرمول کامل سکشن موج‌دار که ۱۷۷ پیکسل می‌شد و
   هیرو را در لپ‌تاپ ۷۰۰ پیکسلی از یک نما بیرون می‌برد — اندازه‌گیری‌شده). */
.dmmc-hero.section-meld {
    --dmmc-hero-pb: calc(clamp(50px, 8vw, 120px) + clamp(16px, 2vw, 30px));
    padding-block: clamp(85px, 13vw, 190px) var(--dmmc-hero-pb);
    overflow: hidden;
}

.dmmc-hero.section-meld::before {
    display: none;
}

/* نور فقط در نیمهٔ بالایی تا به لبهٔ پایین نرسد و خط مرزی نسازد. */
.dmmc-hero__glow {
    position: absolute;
    inset: 0 0 45%;
    background-image: radial-gradient(ellipse 45% 70% at 25% 0%, rgba(245, 214, 143, .14), transparent 100%),
                      radial-gradient(ellipse 35% 60% at 95% 0%, rgba(184, 115, 51, .14), transparent 100%);
    pointer-events: none;
}

.dmmc-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(28px, 5vw, 80px);
}

.dmmc-crumbs {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.dmmc-hero__title {
    margin: 0 0 18px;
    font-size: clamp(36px, 5.4vw, 78px);
    font-weight: 900;
    line-height: 1.3;
    color: #ffffff;
    text-align: start;
}

.dmmc-hero__lead {
    margin: 0 0 26px;
    font-size: 15px;
    line-height: 2.15;
    color: var(--text-secondary);
    text-align: justify;
}

/* ⚠ ظرف دکمهٔ مغناطیسی در ردیف flex تا هم‌اندازهٔ دکمه بماند. */
.dmmc-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.dmmc-funnel {
    position: relative;
    aspect-ratio: 1 / 1;
}

.dmmc-funnel__orbit {
    position: absolute;
    inset: 2% 6% 48%;
    border: 1px dashed rgba(245, 214, 143, .35);
    border-radius: 50%;
    animation: dmmcSpin 24s linear infinite;
}

.dmmc-chan {
    position: absolute;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: -27px;
    padding: 14px;
    border-radius: 16px;
    background-color: #ffffff;
    color: var(--dmmc-copper);
    box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .9);
    animation: dmmcSpin 24s linear infinite reverse;
}

.dmmc-chan svg,
.dmmc-dial__seg svg,
.dmmc-skill__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dmmc-chan--1 { top: 0; left: 50%; }
.dmmc-chan--2 { top: 50%; left: 100%; }
.dmmc-chan--3 { top: 100%; left: 50%; }
.dmmc-chan--4 { top: 50%; left: 0; background-color: var(--dmmc-gold); color: var(--dmmc-navy); }

/* لایه‌های قیف: بیضی‌های روی هم که پایین‌تر باریک‌تر می‌شوند. */
.dmmc-funnel__layer {
    position: absolute;
    left: 50%;
    height: 12%;
    border-radius: 50%;
    background-image: linear-gradient(180deg, rgba(245, 214, 143, .9), rgba(184, 115, 51, .75));
    box-shadow: inset 0 6px 12px rgba(255, 255, 255, .25), 0 14px 30px -14px rgba(0, 0, 0, .9);
    transform: translateX(-50%);
}

.dmmc-funnel__layer--1 { top: 30%; width: 70%; opacity: .55; }
.dmmc-funnel__layer--2 { top: 42%; width: 52%; opacity: .7; }
.dmmc-funnel__layer--3 { top: 54%; width: 36%; opacity: .85; }
.dmmc-funnel__layer--4 { top: 66%; width: 20%; }

.dmmc-funnel__drop {
    --x: 0%;
    position: absolute;
    top: 22%;
    left: calc(50% + var(--x));
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    background-color: #ffffff;
    opacity: 0;
    animation: dmmcDrop 3.6s ease-in infinite;
}

.dmmc-funnel__drop--1 { --x: -22%; }
.dmmc-funnel__drop--2 { --x: 14%; animation-delay: .7s; }
.dmmc-funnel__drop--3 { --x: -6%; animation-delay: 1.4s; }
.dmmc-funnel__drop--4 { --x: 26%; animation-delay: 2.1s; }
.dmmc-funnel__drop--5 { --x: -16%; animation-delay: 2.8s; }

.dmmc-funnel__coin {
    position: absolute;
    top: 76%;
    left: 50%;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    border-radius: 50%;
    background-image: radial-gradient(circle at 35% 30%, #fff4d6, var(--dmmc-gold) 45%, var(--dmmc-copper));
    box-shadow: 0 10px 20px -8px rgba(245, 214, 143, .7);
    opacity: 0;
    animation: dmmcCoin 3.6s ease-out infinite 1.8s;
}

.dmmc-funnel__coin--2 {
    animation-delay: 3.6s;
}

.dmmc-funnel__stat {
    position: absolute;
    bottom: 2%;
    inset-inline-end: 4%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 34%;
    padding: 14px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9);
    transform: translate3d(0, calc(var(--c) * 20px), 0);
}

.dmmc-funnel__stat b {
    height: 10px;
    width: 70%;
    border-radius: 5px;
    background-color: var(--dmmc-navy);
}

.dmmc-funnel__stat i {
    height: 34px;
    border-radius: 8px;
    background-image: linear-gradient(90deg, var(--dmmc-copper), var(--dmmc-gold));
    clip-path: polygon(0 100%, 20% 70%, 40% 80%, 60% 40%, 80% 50%, 100% 0, 100% 100%);
}

/* ⚠ هیرو در یک نمای لپ‌تاپ: عرض موکاپ از بودجهٔ ارتفاع پنجره (منهای فاصله‌های هیرو). */
@media (min-width: 993px) {
    .dmmc-hero__visual {
        --hero-h: calc(100vh - clamp(85px, 13vw, 190px) - var(--dmmc-hero-pb) - 16px);
        --hero-h: calc(100svh - clamp(85px, 13vw, 190px) - var(--dmmc-hero-pb) - 16px);
        width: min(100%, var(--hero-h));
        justify-self: center;
    }
}

@media (min-width: 993px) and (max-height: 900px) {
    .dmmc-hero__title {
        margin-bottom: 12px;
        font-size: clamp(34px, 4.4vw, 66px);
    }

    .dmmc-hero__lead {
        margin-bottom: 18px;
        font-size: 14px;
        line-height: 1.9;
    }
}

/* ═══════════ معرفی: کارت شناسایی ═══════════ */

.dmmc-badge__inner {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: clamp(28px, 5vw, 80px);
}

.dmmc-badge__art {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* بند آویز و کارت با اسکرول آرام تاب می‌خورند (مرکز چرخش سر بند است). */
.dmmc-badge__strap {
    display: block;
    width: 34px;
    height: 110px;
    border-radius: 0 0 8px 8px;
    background-image: repeating-linear-gradient(0deg, var(--dmmc-navy) 0 10px, #13305a 10px 20px);
}

.dmmc-badge__card {
    position: relative;
    width: min(100%, 320px);
    margin: -8px 0 0;
    padding: 22px 18px 20px;
    border-radius: 24px;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px #e2e8f0, 0 40px 70px -40px rgba(10, 25, 47, .6);
    transform-origin: 50% -120px;
    transform: rotate(calc(var(--c) * -7deg));
    transition: transform .3s linear;
}

.dmmc-badge__hole {
    display: block;
    width: 60px;
    height: 12px;
    margin: 0 auto 16px;
    border-radius: 6px;
    background-color: #e2e8f0;
    box-shadow: inset 0 2px 3px rgba(10, 25, 47, .25);
}

.dmmc-badge__photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    border-radius: 16px;
}

.dmmc-badge__chip {
    position: absolute;
    top: 64px;
    inset-inline-end: 30px;
    width: 42px;
    height: 32px;
    border-radius: 7px;
    background-image: linear-gradient(135deg, #fbe3a6, var(--dmmc-copper));
    box-shadow: inset 0 0 0 1px rgba(10, 25, 47, .15);
}

.dmmc-badge__bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

.dmmc-badge__bars i {
    height: 8px;
    border-radius: 4px;
    background-color: #e2e8f0;
}

.dmmc-badge__bars i:first-child {
    width: 70%;
    background-image: linear-gradient(90deg, var(--dmmc-copper), var(--dmmc-gold));
}

.dmmc-badge__bars i:last-child {
    width: 45%;
}

/* ═══════════ سوابق ═══════════ */

.dmmc-chapter + .dmmc-chapter {
    margin-top: clamp(50px, 7vw, 100px);
}

.dmmc-chapter__label {
    position: relative;
    display: inline-block;
    margin: 0 0 22px;
    padding-bottom: 10px;
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 900;
    color: var(--text-primary);
}

.dmmc-chapter__label::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 60%;
    height: 4px;
    border-radius: 2px;
    background-image: linear-gradient(90deg, var(--dmmc-gold), var(--dmmc-copper));
}

/* ── سرفصل هر فصل: شماره، عنوان، شمارندهٔ «۱۰+» ── */
.dmmc-chapter__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-bottom: clamp(20px, 3vw, 36px);
}

.dmmc-chapter__head .dmmc-chapter__label {
    margin: 0;
}

.dmmc-chapter__no {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(245, 214, 143, .55);
}

.dmmc-odo {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    margin-inline-start: auto;
    padding: 8px 18px;
    border-radius: 40px;
    background-image: linear-gradient(135deg, rgba(245, 214, 143, .18), rgba(184, 115, 51, .08));
    box-shadow: inset 0 0 0 1px rgba(245, 214, 143, .35);
    font-weight: 900;
    color: var(--dmmc-gold);
}

.dmmc-odo b {
    min-width: 1.2em;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.dmmc-odo i {
    font-size: 22px;
    font-style: normal;
}

/* ── فصل ۱: دستهٔ کارت‌های ویزیت ──
   --f پیشرفت بازشدن بادبزن است (از --p صحنهٔ همین فصل). --m فاصلهٔ کارت از وسط دسته است؛
   جابه‌جایی افقی، افت سهمی و چرخش همه از همین دو عدد می‌آیند. پیش‌فرض --p=1 یعنی بادبزن باز. */
.dmmc-deck__cards {
    --f: clamp(0, calc((var(--p) - .12) * 2.4), 1);
    --gap: min(210px, calc(84vw / var(--n, 5)));
    position: relative;
    height: calc(290px + var(--n, 5) * var(--n, 5) * 2.3px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.dmmc-card {
    --m: 0;
    position: absolute;
    top: 20px;
    left: 50%;
    width: 230px;
    margin-left: -115px;
    transform:
        translate3d(calc(var(--m) * var(--gap) * var(--f)), calc(var(--m) * var(--m) * 9px * var(--f)), 0)
        rotate(calc(var(--m) * 5deg * var(--f)));
    transform-origin: 50% 120%;
}

.dmmc-card:hover {
    z-index: 5;
}

.dmmc-card__in {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    min-height: 250px;
    padding: 20px 18px;
    overflow: hidden;
    border-radius: 22px;
    background-image: linear-gradient(160deg, #13294a, #0b1b33 70%);
    box-shadow: inset 0 0 0 1px rgba(245, 214, 143, .28), 0 30px 50px -24px rgba(0, 0, 0, .95);
    transition: transform .4s var(--dmmc-ease), box-shadow .4s ease;
}

.dmmc-card:hover .dmmc-card__in {
    transform: translate3d(0, -18px, 0);
    box-shadow: inset 0 0 0 1px var(--dmmc-gold), 0 40px 60px -24px rgba(0, 0, 0, .95), 0 0 40px rgba(245, 214, 143, .25);
}

/* نوار طلایی بالای کارت؛ تزئین. */
.dmmc-card__in::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 5px;
    background-image: linear-gradient(90deg, var(--dmmc-copper), var(--dmmc-gold));
}

.dmmc-card__logo {
    display: block;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 214, 143, .2);
}

.dmmc-card__logo img,
.dmmc-planet__body img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dmmc-card__title {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.8;
    color: #ffffff;
}

.dmmc-card__chip {
    position: absolute;
    top: 26px;
    inset-inline-end: 18px;
    width: 34px;
    height: 26px;
    border-radius: 6px;
    background-image:
        linear-gradient(90deg, transparent 45%, rgba(10, 25, 47, .5) 45% 55%, transparent 55%),
        linear-gradient(0deg, transparent 45%, rgba(10, 25, 47, .5) 45% 55%, transparent 55%),
        linear-gradient(135deg, #fbe3a6, var(--dmmc-copper));
}

/* ── فصل ۲: پروژکتور کلاس ──
   --t پیشرفت روشن‌شدن پروژکتور است. هر بند --on خودش را از --t و شماره‌اش می‌سازد تا بندها
   پشت‌سرهم روشن شوند؛ پیش‌فرض --p=1 یعنی همه روشن. */
.dmmc-class {
    --t: clamp(0, calc((var(--p) - .15) * 2.1), 1);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: clamp(28px, 5vw, 80px);
}

.dmmc-class__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dmmc-class__li {
    --k: 0;
    --on: clamp(0, calc(var(--t) * (var(--n, 6) + 1) - var(--k)), 1);
    position: relative;
    padding: 12px 18px 14px;
    padding-inline-start: 50px;
    border-radius: 14px;
    background-image: linear-gradient(90deg, rgba(245, 214, 143, calc(.04 + var(--on) * .1)), transparent);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    opacity: calc(.35 + var(--on) * .65);
    transform: translate3d(calc((1 - var(--on)) * -24px), 0, 0);
}

/* تیک طلایی و خط گچی زیر بند، هر دو هم‌پای --on. */
.dmmc-class__li::before {
    content: "";
    position: absolute;
    inset-inline-start: 18px;
    top: 50%;
    width: 18px;
    height: 10px;
    margin-top: -8px;
    border-left: 3px solid var(--dmmc-gold);
    border-bottom: 3px solid var(--dmmc-gold);
    transform: rotate(-45deg) scale(var(--on));
}

.dmmc-class__li::after {
    content: "";
    position: absolute;
    inset-inline-start: 50px;
    bottom: 6px;
    width: calc(100% - 70px);
    height: 2px;
    border-radius: 1px;
    background-image: linear-gradient(270deg, transparent, rgba(245, 214, 143, .7));
    transform: scaleX(var(--on));
    transform-origin: right;
}

.dmmc-class__stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 8px;
}

.dmmc-class__screen {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 10px;
    border-radius: 22px;
    background-color: #eef1f6;
    box-shadow: 0 0 calc(var(--t) * 60px) rgba(245, 214, 143, calc(var(--t) * .45)), 0 30px 50px -24px rgba(0, 0, 0, .9);
    transform: perspective(900px) rotateX(calc((1 - var(--t)) * 16deg)) scale(calc(.88 + var(--t) * .12));
    transform-origin: bottom;
}

.dmmc-class__screen img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    filter: brightness(calc(.35 + var(--t) * .65)) saturate(calc(.4 + var(--t) * .6));
}

/* پرتو: ذوزنقه‌ای از لنز پروژکتور تا پایین پرده. */
.dmmc-class__beam {
    position: relative;
    z-index: 1;
    display: block;
    width: 86%;
    height: 90px;
    margin-top: -4px;
    background-image: linear-gradient(0deg, rgba(245, 214, 143, .5), rgba(245, 214, 143, .06));
    clip-path: polygon(0 0, 100% 0, 54% 100%, 46% 100%);
    opacity: var(--t);
    animation: dmmcFlicker 3.2s steps(2, jump-none) infinite;
}

.dmmc-class__projector {
    position: relative;
    display: block;
    width: 150px;
    height: 58px;
    border-radius: 14px;
    background-image: linear-gradient(160deg, #1c3558, #0b1b33);
    box-shadow: inset 0 0 0 1px rgba(245, 214, 143, .35), 0 20px 30px -14px rgba(0, 0, 0, .9);
}

.dmmc-class__lens {
    position: absolute;
    top: -10px;
    left: 50%;
    width: 26px;
    height: 26px;
    margin-left: -13px;
    border-radius: 50%;
    background-image: radial-gradient(circle, #fff7df, var(--dmmc-gold) 45%, var(--dmmc-copper));
    box-shadow: 0 0 calc(var(--t) * 30px) rgba(245, 214, 143, calc(var(--t) * .9));
}

.dmmc-class__reel {
    position: absolute;
    top: -30px;
    inset-inline-start: 14px;
    width: 38px;
    height: 38px;
    border: 3px solid var(--dmmc-copper);
    border-radius: 50%;
    background-image: radial-gradient(circle, var(--dmmc-gold) 0 4px, transparent 5px), conic-gradient(from 0deg, rgba(245, 214, 143, .5) 0 25%, transparent 0 50%, rgba(245, 214, 143, .5) 0 75%, transparent 0);
    animation: dmmcSpin 3s linear infinite;
}

.dmmc-class__reel--b {
    inset-inline-start: auto;
    inset-inline-end: 14px;
    animation-duration: 4s;
}

/* ── کهکشان برندها ── */
/* --g: کهکشان با اسکرول از یک نقطه باز می‌شود (پیش‌فرض باز). */
.dmmc-galaxy {
    --ring-in: 190px;
    --ring-out: 320px;
    --g: clamp(0, calc((var(--p) - .1) * 2.4), 1);
    position: relative;
    height: calc(var(--ring-out) * 2 + 120px);
    max-width: 900px;
    margin-inline: auto;
}

.dmmc-galaxy__core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 260px;
    height: 260px;
    margin: -130px;
    padding: 24px;
    border-radius: 50%;
    background-image: radial-gradient(circle, rgba(245, 214, 143, .25), rgba(184, 115, 51, .08) 60%, transparent 72%);
    text-align: center;
}

.dmmc-galaxy__core .dmmc-chapter__no {
    font-size: 40px;
}

.dmmc-galaxy__core .dmmc-odo {
    margin-inline-start: 0;
}

.dmmc-galaxy__label {
    margin: 0;
    padding: 0;
    font-size: 20px;
}

.dmmc-galaxy__label::after {
    display: none;
}

.dmmc-galaxy__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    opacity: calc(.15 + var(--g) * .85);
    scale: calc(.3 + var(--g) * .7);
    animation: dmmcSpin 70s linear infinite;
}

.dmmc-galaxy__ring--out {
    animation-duration: 100s;
    animation-direction: reverse;
}

/* مسیر مدار، فقط تزئین. */
.dmmc-galaxy__ring::before {
    content: "";
    position: absolute;
    width: calc(var(--r) * 2);
    height: calc(var(--r) * 2);
    margin: calc(var(--r) * -1);
    border: 1px dashed rgba(245, 214, 143, .22);
    border-radius: 50%;
}

.dmmc-galaxy__ring--in { --r: var(--ring-in); }
.dmmc-galaxy__ring--out { --r: var(--ring-out); }

.dmmc-galaxy:hover .dmmc-galaxy__ring,
.dmmc-galaxy:hover .dmmc-planet__body {
    animation-play-state: paused;
}

/* هر سیاره روی زاویهٔ خودش؛ بدنه با چرخش معکوس صاف می‌ماند تا نام‌ها خوانا باشند. */
.dmmc-planet {
    --k: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    transform: rotate(calc(360deg / var(--n) * var(--k))) translateY(calc(var(--r) * -1));
}

.dmmc-planet__body {
    position: absolute;
    top: -36px;
    left: -36px;
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 214, 143, .35), 0 16px 30px -12px rgba(0, 0, 0, .9);
    transform: rotate(calc(360deg / var(--n) * var(--k) * -1));
    animation: dmmcCounter 70s linear infinite;
    transition: box-shadow .3s ease;
}

.dmmc-galaxy__ring--out .dmmc-planet__body {
    animation-duration: 100s;
    animation-direction: reverse;
}

.dmmc-planet__body img {
    border-radius: 50%;
}

.dmmc-planet__body:hover {
    box-shadow: 0 0 0 4px var(--dmmc-gold), 0 0 30px rgba(245, 214, 143, .6);
}

.dmmc-planet__name {
    position: absolute;
    top: 80px;
    left: 50%;
    width: 130px;
    margin-left: -65px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--text-primary);
    text-align: center;
}

@keyframes dmmcCounter {
    from { rotate: 0deg; }
    to { rotate: -360deg; }
}

/* ═══════════ کاروسل نظرها (مؤلفهٔ مشترک) ═══════════ */

.dmmc-quotes {
    padding-block: var(--dmmc-pad);
}

/* ═══════════ خدمات: تابلوی کلیدها ═══════════ */

/* ── کنسول: پنل چسبان + ردیف‌های کلید ──
   --sp سهم کلیدهای روشن است (اسکریپت می‌نویسد؛ پیش‌فرض ۱ یعنی همه روشن). */
.dmmc-switch {
    --sp: 1;
}

/* ⚠ وقتی کاروسل نظرها چاپ نمی‌شود، سوابق و خدمات دو سکشن تیرهٔ پشت‌سرهم‌اند؛ موج‌های روشن
   میانشان نوار روشن بی‌معنایی می‌ساخت. */
.dmmc-sec.dmmc-sec--joined-end.section-meld::after,
.dmmc-sec.dmmc-sec--joined-start.section-meld::before {
    display: none;
}

.dmmc-console {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
    align-items: start;
    gap: clamp(28px, 4vw, 64px);
}

.dmmc-console__panel {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dmmc-console__panel .dmmc-title {
    margin: 0;
}

/* عقربه‌سنج دایره‌ای: کمان طلایی به اندازهٔ --sp، درجه‌بندی ۲۴ خانه، عدد در مرکز. */
.dmmc-gauge {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 220px);
    aspect-ratio: 1;
}

.dmmc-gauge__ring,
.dmmc-gauge__ticks {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.dmmc-gauge__ring {
    background-image: conic-gradient(from 180deg, var(--dmmc-copper), var(--dmmc-gold) calc(var(--sp) * 360deg), rgba(255, 255, 255, .07) 0);
    -webkit-mask-image: radial-gradient(circle, transparent 60%, #000 61%, #000 72%, transparent 73%);
    mask-image: radial-gradient(circle, transparent 60%, #000 61%, #000 72%, transparent 73%);
    filter: drop-shadow(0 0 12px rgba(245, 214, 143, calc(var(--sp) * .5)));
}

.dmmc-gauge__ticks {
    background-image: repeating-conic-gradient(from 180deg, rgba(245, 214, 143, .45) 0 1.2deg, transparent 1.2deg 15deg);
    -webkit-mask-image: radial-gradient(circle, transparent 77%, #000 78%, #000 84%, transparent 85%);
    mask-image: radial-gradient(circle, transparent 77%, #000 78%, #000 84%, transparent 85%);
}

.dmmc-gauge__value {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 900;
    line-height: 1;
}

.dmmc-gauge__value b {
    font-size: clamp(48px, 5vw, 68px);
    color: var(--dmmc-gold);
    font-variant-numeric: tabular-nums;
}

.dmmc-gauge__value i {
    margin-top: 8px;
    font-size: 16px;
    font-style: normal;
    color: var(--text-secondary);
}

.dmmc-switch__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* هر ردیف یک صفحهٔ کلید: شماره، متن، کلید و چراغ کوچک کنار کلید. */
.dmmc-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 74px;
    padding: 14px 16px;
    overflow: hidden;
    border-radius: 18px;
    background-image: linear-gradient(135deg, rgba(245, 214, 143, .1), rgba(255, 255, 255, .02) 60%);
    box-shadow: inset 0 0 0 1px rgba(245, 214, 143, .28);
    transition: box-shadow .45s ease, background-color .45s ease, transform .6s var(--dmmc-ease), opacity .6s ease;
}

/* نور گذرایی که هنگام روشن‌شدن از روی ردیف رد می‌شود. */
.dmmc-toggle::after {
    content: "";
    position: absolute;
    inset-block: 0;
    left: -40%;
    width: 40%;
    background-image: linear-gradient(90deg, transparent, rgba(245, 214, 143, .2), transparent);
    transform: translate3d(360%, 0, 0);
    transition: transform 1.1s var(--dmmc-ease);
    pointer-events: none;
}

.dmmc-toggle__no {
    flex: 0 0 auto;
    width: 2.2em;
    font-size: 18px;
    font-weight: 900;
    color: var(--dmmc-gold);
    font-variant-numeric: tabular-nums;
    transition: color .4s ease;
}

.dmmc-toggle__text {
    flex: 1 1 auto;
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.8;
    color: var(--text-primary);
    transition: color .4s ease;
}

.dmmc-toggle__knob {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
    border-radius: 13px;
    background-image: linear-gradient(90deg, var(--dmmc-copper), var(--dmmc-gold));
    box-shadow: 0 0 16px rgba(245, 214, 143, .45);
    transition: box-shadow .35s ease;
}

.dmmc-toggle__knob::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
    transition: left .35s var(--dmmc-ease);
}

.dmmc-toggle:hover {
    box-shadow: inset 0 0 0 1px var(--dmmc-gold), 0 16px 30px -18px rgba(245, 214, 143, .6);
}

/* حالت خاموش فقط وقتی اسکریپت مسلح کرده (is-off)؛ بدون اسکریپت همهٔ کلیدها روشن‌اند. */
.dmmc-toggle.is-off {
    background-image: none;
    background-color: rgba(255, 255, 255, .025);
    box-shadow: inset 0 0 0 1px var(--border-color);
    opacity: .55;
    transform: translate3d(-18px, 0, 0);
}

.dmmc-toggle.is-off::after {
    transform: translate3d(0, 0, 0);
    transition-duration: 0s;
}

.dmmc-toggle.is-off .dmmc-toggle__no {
    color: var(--text-secondary);
}

.dmmc-toggle.is-off .dmmc-toggle__text {
    color: var(--text-secondary);
}

.dmmc-toggle.is-off .dmmc-toggle__knob {
    background-image: none;
    background-color: rgba(255, 255, 255, .12);
    box-shadow: none;
}

.dmmc-toggle.is-off .dmmc-toggle__knob::after {
    left: 23px;
}

.dmmc-cta {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: clamp(22px, 3vw, 36px);
    overflow: hidden;
    border-radius: 26px;
    background-image: linear-gradient(90deg, rgba(245, 214, 143, .14), rgba(184, 115, 51, .06));
    box-shadow: inset 0 0 0 1px rgba(245, 214, 143, .35);
}

.dmmc-cta__pulse {
    position: absolute;
    top: 50%;
    inset-inline-end: -60px;
    width: 220px;
    height: 220px;
    margin-top: -110px;
    border-radius: 50%;
    border: 2px solid rgba(245, 214, 143, .3);
    animation: dmmcRing 3s ease-out infinite;
    pointer-events: none;
}

.dmmc-cta__text {
    position: relative;
    margin: 0;
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 800;
    color: #ffffff;
}

/* ═══════════ اهمیت: پنجرهٔ جستجو ═══════════ */

.dmmc-asks {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.dmmc-ask {
    position: relative;
    padding: 12px 16px;
    padding-inline-start: 48px;
    border-radius: 18px 18px 18px 4px;
    background-color: var(--bg-secondary);
    box-shadow: inset 0 0 0 1px var(--border-color);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.dmmc-ask::before {
    content: "؟";
    position: absolute;
    inset-inline-start: 12px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    border-radius: 50%;
    background-image: linear-gradient(150deg, #fbe3a6, var(--dmmc-copper));
    font-weight: 900;
    color: var(--dmmc-navy);
}

.dmmc-browser {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 440px;
    justify-self: center;
    padding: 18px;
    border-radius: 24px;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px #e2e8f0, 0 40px 70px -40px rgba(10, 25, 47, .55);
    transform: translate3d(0, calc(var(--c) * 30px), 0);
}

.dmmc-browser__bar {
    display: flex;
    gap: 6px;
}

.dmmc-browser__bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e2e8f0;
}

.dmmc-browser__search {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 18px;
    border-radius: 24px;
    background-color: #f1f4f8;
    box-shadow: inset 0 0 0 2px var(--dmmc-gold);
    font-size: 14px;
    font-weight: 700;
    color: var(--dmmc-navy);
}

.dmmc-browser__caret {
    width: 2px;
    height: 20px;
    margin-inline-start: 2px;
    background-color: var(--dmmc-copper);
    animation: dmmcBlink 1s steps(2) infinite;
}

.dmmc-browser__res {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: 14px;
    background-color: #f7f9fc;
}

.dmmc-browser__res b,
.dmmc-browser__res i {
    height: 8px;
    border-radius: 4px;
    background-color: #c3cad6;
}

.dmmc-browser__res b {
    width: 60%;
    background-color: #5b78b8;
}

.dmmc-browser__res i:last-child {
    width: 75%;
}

.dmmc-browser__res--hl {
    background-image: linear-gradient(90deg, #fff4d6, #fde9c1);
    box-shadow: 0 0 0 2px var(--dmmc-copper);
}

.dmmc-browser__res--hl b {
    background-color: var(--dmmc-copper);
}

/* ═══════════ مشاور خوب: چرخ کانال‌ها ═══════════ */

.dmmc-dial {
    --sweep: calc(clamp(0, (var(--p) - .12) * 1.8, 1) * 360deg);
    position: relative;
    width: 100%;
    max-width: 380px;
    justify-self: center;
    aspect-ratio: 1;
}

.dmmc-dial__sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-image: conic-gradient(rgba(245, 214, 143, .45) var(--sweep), rgba(255, 255, 255, .05) var(--sweep));
    -webkit-mask: radial-gradient(circle, transparent 38%, #000 39%);
    mask: radial-gradient(circle, transparent 38%, #000 39%);
}

.dmmc-dial__face {
    position: absolute;
    inset: 0;
}

.dmmc-dial__seg {
    --k: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px;
    padding: 12px;
    border-radius: 50%;
    background-color: var(--dmmc-navy);
    color: var(--dmmc-gold);
    box-shadow: 0 0 0 1px rgba(245, 214, 143, .35);
    transform: rotate(calc(60deg * var(--k))) translateY(-150%) rotate(calc(-60deg * var(--k)));
    transition: background-color .4s ease, color .4s ease;
}

.dmmc-dial__seg--1 { --k: 0; }
.dmmc-dial__seg--2 { --k: 1; }
.dmmc-dial__seg--3 { --k: 2; }
.dmmc-dial__seg--4 { --k: 3; }
.dmmc-dial__seg--5 { --k: 4; }
.dmmc-dial__seg--6 { --k: 5; }

.dmmc-dial__hub {
    position: absolute;
    inset: 38%;
    border-radius: 50%;
    background-image: radial-gradient(circle at 35% 30%, #fff4d6, var(--dmmc-gold) 45%, var(--dmmc-copper));
    box-shadow: 0 0 40px rgba(245, 214, 143, .45);
    animation: dmmcPulse 3s ease-in-out infinite;
}

/* ═══════════ مهارت‌ها ═══════════ */

.dmmc-skills__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: clamp(26px, 4vw, 48px) 0 0;
    padding: 0;
    list-style: none;
}

.dmmc-skill {
    position: relative;
    padding: clamp(20px, 2.2vw, 28px);
    overflow: hidden;
    border-radius: 24px;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px #e2e8f0, 0 24px 50px -40px rgba(10, 25, 47, .6);
    transition: box-shadow .4s ease, opacity .8s var(--dmmc-ease), transform .8s var(--dmmc-ease);
}

.dmmc-skill::after {
    content: "";
    position: absolute;
    inset-inline-end: -40px;
    top: -40px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-image: radial-gradient(closest-side, rgba(245, 214, 143, .45), transparent);
    opacity: 0;
    transition: opacity .4s ease, transform .6s var(--dmmc-ease);
}

.dmmc-skill:hover {
    box-shadow: 0 0 0 1px rgba(184, 115, 51, .5), 0 30px 60px -36px rgba(10, 25, 47, .6);
}

.dmmc-skill:hover::after {
    opacity: 1;
    transform: scale(1.4);
}

.dmmc-skill__icon {
    display: block;
    width: 50px;
    height: 50px;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 16px;
    background-color: var(--dmmc-navy);
    color: var(--dmmc-gold);
    transition: transform .5s var(--dmmc-ease);
}

.dmmc-skill:hover .dmmc-skill__icon {
    transform: rotate(-10deg) scale(1.08);
}

.dmmc-skill__title {
    margin: 0 0 8px;
    font-size: 16.5px;
    font-weight: 900;
    color: var(--text-primary);
}

.dmmc-skill__text {
    margin: 0;
    font-size: 14px;
    line-height: 2;
    color: var(--text-secondary);
    text-align: justify;
}

@media (min-width: 993px) {
    .dmmc-skills__grid {
        perspective: 1500px;
    }

    .dmmc-skill.dmmc-rv {
        transform: rotateX(-60deg) translate3d(0, 40px, 0);
        transform-origin: top;
    }

    .dmmc-skill.dmmc-rv.is-in {
        transform: none;
    }
}

/* ═══════════ رایگان: جعبهٔ هدیه ═══════════ */

.dmmc-box {
    --open: clamp(0, (var(--p) - .2) * 2.2, 1);
    position: relative;
    width: 100%;
    max-width: 320px;
    justify-self: center;
    aspect-ratio: 1 / 1.1;
}

.dmmc-box__base {
    position: absolute;
    inset: 48% 10% 4%;
    border-radius: 10px 10px 16px 16px;
    background-image: linear-gradient(160deg, #13305a, #081427);
    box-shadow: inset 0 0 0 1px rgba(245, 214, 143, .3), 0 30px 60px -30px rgba(0, 0, 0, .9);
}

.dmmc-box__ribbon {
    position: absolute;
    inset-block: 0;
    left: 50%;
    width: 16%;
    margin-left: -8%;
    background-image: linear-gradient(90deg, var(--dmmc-copper), var(--dmmc-gold), var(--dmmc-copper));
}

.dmmc-box__lid {
    position: absolute;
    inset: 38% 6% auto;
    height: 14%;
    border-radius: 10px;
    background-image: linear-gradient(160deg, #1b3d6b, #0d2340);
    box-shadow: inset 0 0 0 1px rgba(245, 214, 143, .35);
    transform-origin: 0% 100%;
    transform: translate3d(calc(var(--open) * -12%), calc(var(--open) * -70%), 0) rotate(calc(var(--open) * -28deg));
}

.dmmc-box__lid::before {
    content: "";
    position: absolute;
    inset-block: 0;
    left: 50%;
    width: 15%;
    margin-left: -7.5%;
    background-image: linear-gradient(90deg, var(--dmmc-copper), var(--dmmc-gold), var(--dmmc-copper));
}

.dmmc-box__bow {
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 60px;
    height: 30px;
    margin-left: -30px;
    border-radius: 50% 50% 0 0;
    border: 6px solid var(--dmmc-gold);
    border-bottom: 0;
}

.dmmc-box__paper {
    position: absolute;
    inset: 46% 20% 20%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9);
    transform: translate3d(0, calc(var(--open) * -70%), 0);
    opacity: var(--open);
}

.dmmc-box__paper i {
    position: relative;
    height: 10px;
    padding-inline-start: 18px;
    border-radius: 5px;
    background-color: #e2e8f0;
}

.dmmc-box__paper i::before {
    content: "";
    position: absolute;
    inset-inline-start: -2px;
    top: -2px;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background-color: var(--dmmc-copper);
}

/* ═══════════ هزینه: درخت ═══════════ */

.dmmc-grow {
    --g: clamp(0, (var(--p) - .15) * 1.8, 1);
    position: relative;
    width: 100%;
    max-width: 340px;
    justify-self: center;
    aspect-ratio: 300 / 320;
}

.dmmc-grow svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--dmmc-copper);
    stroke-width: 7;
    stroke-linecap: round;
}

.dmmc-grow__trunk {
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--g));
}

.dmmc-grow__soil {
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: 2%;
    height: 8%;
    border-radius: 50%;
    background-image: radial-gradient(ellipse, rgba(10, 25, 47, .25), transparent 70%);
}

.dmmc-grow__seed,
.dmmc-grow__fruit {
    position: absolute;
    width: 30px;
    height: 30px;
    margin: -15px;
    border-radius: 50%;
    background-image: radial-gradient(circle at 35% 30%, #fff4d6, var(--dmmc-gold) 45%, var(--dmmc-copper));
    box-shadow: 0 8px 16px -6px rgba(184, 115, 51, .7);
}

.dmmc-grow__seed {
    left: 50%;
    top: 94%;
}

.dmmc-grow__fruit {
    --at: .5;
    transform: scale(clamp(0, (var(--g) - var(--at)) * 5, 1));
}

.dmmc-grow__fruit--1 { left: 30%; top: 50%; --at: .55; }
.dmmc-grow__fruit--2 { left: 70%; top: 42%; --at: .62; }
.dmmc-grow__fruit--3 { left: 40%; top: 30%; --at: .7; }
.dmmc-grow__fruit--4 { left: 62%; top: 31%; --at: .78; }
.dmmc-grow__fruit--5 { left: 50%; top: 52%; --at: .86; }

/* ═══════════ سوالات متداول ═══════════ */

.dmmc-faq.faq-section {
    padding-block: var(--dmmc-pad);
}

/* ═══════════ فرم «ثبت درخواست» ═══════════ */

/* آخرین سکشن صفحه است؛ موج پایینش روی فوتر معنایی ندارد. */
.dmmc-form.section-meld::after {
    display: none;
}

.dmmc-form__inner {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: clamp(24px, 5vw, 80px);
}

/* پاکت: --e پیشرفت بازشدن در پاکت و بالاآمدن برگه (پیش‌فرض باز). */
.dmmc-envelope {
    --e: clamp(0, calc((var(--p) - .15) * 2.4), 1);
    position: relative;
    display: block;
    width: min(100%, 300px);
    aspect-ratio: 1.45;
    margin: 90px auto 0;
    perspective: 700px;
}

.dmmc-envelope__back,
.dmmc-envelope__front {
    position: absolute;
    inset: 0;
    border-radius: 16px;
}

.dmmc-envelope__back {
    background-image: linear-gradient(160deg, #1c3558, #0b1b33);
    box-shadow: inset 0 0 0 1px rgba(245, 214, 143, .3), 0 30px 50px -24px rgba(0, 0, 0, .95);
}

.dmmc-envelope__front {
    z-index: 3;
    background-image: linear-gradient(160deg, #13294a, #0e2340);
    clip-path: polygon(0 18%, 50% 62%, 100% 18%, 100% 100%, 0 100%);
    box-shadow: inset 0 0 0 1px rgba(245, 214, 143, .35);
}

.dmmc-envelope__flap {
    position: absolute;
    top: 0;
    inset-inline: 0;
    z-index: 4;
    height: 62%;
    background-image: linear-gradient(180deg, var(--dmmc-gold), var(--dmmc-copper));
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform: rotateX(calc(var(--e) * 180deg));
    transform-origin: top;
    backface-visibility: visible;
}

.dmmc-envelope__letter {
    position: absolute;
    inset-inline: 9%;
    bottom: 8%;
    z-index: calc(2 + var(--e) * 3);
    display: flex;
    flex-direction: column;
    gap: 9px;
    height: 88%;
    padding: 18px;
    border-radius: 10px;
    background-color: #fdf8ea;
    box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .9);
    transform: translate3d(0, calc(var(--e) * -58%), 0);
}

.dmmc-envelope__letter i {
    display: block;
    height: 7px;
    border-radius: 4px;
    background-color: rgba(10, 25, 47, .18);
}

.dmmc-envelope__letter i:nth-child(2) {
    width: 80%;
}

.dmmc-envelope__letter i:nth-child(3) {
    width: 60%;
}

/* مهر طلایی تأیید پایین برگه. */
.dmmc-envelope__letter b {
    width: 34px;
    height: 34px;
    margin-top: auto;
    margin-inline-start: auto;
    border-radius: 50%;
    background-image: radial-gradient(circle, #fbe3a6, var(--dmmc-copper));
    box-shadow: 0 0 0 4px rgba(184, 115, 51, .25);
    transform: scale(var(--e));
}

.dmmc-form__wrap {
    padding: clamp(22px, 3vw, 44px);
    border: 1px solid rgba(245, 214, 143, .22);
    border-radius: 30px;
    background-color: rgba(255, 255, 255, .03);
}

/* پوستهٔ خروجی افزونهٔ فرم‌ساز — ⚠ important لازم است: شیوه‌نامهٔ خود افزونه هم‌وزن است و ترتیب
   بارگذاری تضمینی ندارد (عیناً همان پوستهٔ فرم قالب مشاوره سئو). */
.dmmc-form__wrap .dmf-form {
    max-width: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
}

.dmmc-form__wrap .dmf-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 22px !important;
}

.dmmc-form__wrap .dmf-field-wrap {
    display: flex !important;
    flex-direction: column !important;
}

.dmmc-form__wrap .dmf-col-full {
    grid-column: 1 / -1 !important;
}

.dmmc-form__wrap .dmf-field-wrap label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.dmmc-form__wrap .dmf-field-wrap input:not([type="radio"]):not([type="checkbox"]),
.dmmc-form__wrap .dmf-field-wrap select,
.dmmc-form__wrap .dmf-field-wrap textarea {
    width: 100% !important;
    background: rgba(255, 255, 255, .04) !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color .3s ease, background-color .3s ease !important;
}

.dmmc-form__wrap .dmf-field-wrap textarea {
    resize: vertical !important;
    min-height: 110px !important;
}

.dmmc-form__wrap .dmf-field-wrap select option {
    background: var(--dmmc-navy) !important;
    color: #ffffff !important;
}

.dmmc-form__wrap .dmf-field-wrap input::placeholder,
.dmmc-form__wrap .dmf-field-wrap textarea::placeholder {
    color: rgba(255, 255, 255, .45) !important;
}

.dmmc-form__wrap .dmf-field-wrap input:focus,
.dmmc-form__wrap .dmf-field-wrap select:focus,
.dmmc-form__wrap .dmf-field-wrap textarea:focus {
    border-color: var(--dmmc-gold) !important;
    background: rgba(245, 214, 143, .06) !important;
}

.dmmc-form__wrap .dmf-choices {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 10px !important;
}

.dmmc-form__wrap .dmf-choice {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, .85) !important;
    cursor: pointer !important;
}

.dmmc-form__wrap .dmf-choice input {
    accent-color: var(--dmmc-gold) !important;
}

.dmmc-form__wrap .dmf-req {
    color: var(--dmmc-gold) !important;
}

.dmmc-form__wrap .dmf-form-msg {
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin-bottom: 0 !important;
    font-size: 14px !important;
}

.dmmc-form__wrap .dmf-form-msg.dmf-ok {
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid var(--dmmc-gold) !important;
    color: #ffffff !important;
}

.dmmc-form__wrap .dmf-form-msg.dmf-err {
    background: rgba(255, 255, 255, .05) !important;
    border: 1px solid #ff6b6b !important;
    color: #ff6b6b !important;
}

.dmmc-form__wrap .dmf-actions {
    display: flex !important;
    margin-top: 4px !important;
}

.dmmc-form__wrap .dmf-submit {
    width: auto !important;
    padding: 16px 38px !important;
    border: 0 !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #fbe3a6, #e0a96a 55%, #b87333) !important;
    color: var(--dmmc-navy) !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    box-shadow: 0 16px 30px -14px rgba(245, 214, 143, .6) !important;
    transition: box-shadow .3s ease, filter .3s ease !important;
}

.dmmc-form__wrap .dmf-submit:hover:not(:disabled) {
    box-shadow: 0 22px 40px -14px rgba(245, 214, 143, .85) !important;
}

/* تصویر هیرو از جعبهٔ تنظیمات، جایگزین قیف کدی. */
.dmmc-hero__figure {
    margin: 0;
}

.dmmc-hero__figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 26px;
}

/* ═══════════ کی‌فریم‌ها ═══════════ */

@keyframes dmmcSpin { to { transform: rotate(360deg); } }
@keyframes dmmcDrop {
    0% { opacity: 0; transform: translate3d(0, 0, 0) scale(1); }
    15% { opacity: 1; }
    70% { opacity: 1; transform: translate3d(calc(var(--x) * -1), 300%, 0) scale(.7); }
    100% { opacity: 0; transform: translate3d(calc(var(--x) * -1), 520%, 0) scale(.4); }
}
@keyframes dmmcCoin {
    0% { opacity: 0; transform: translate3d(0, -20px, 0) scale(.4); }
    30% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
    80% { opacity: 1; transform: translate3d(0, 50px, 0) scale(1); }
    100% { opacity: 0; transform: translate3d(0, 70px, 0) scale(.9); }
}
@keyframes dmmcFlicker { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }
@keyframes dmmcRing { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes dmmcBlink { 50% { opacity: 0; } }
@keyframes dmmcPulse { 0%, 100% { box-shadow: 0 0 20px rgba(245, 214, 143, .35); } 50% { box-shadow: 0 0 50px rgba(245, 214, 143, .7); } }

/* ═══════════ واکنش‌گرا ═══════════ */

@media (max-width: 1199px) {
    .dmmc-skills__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dmmc-console {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    }

    .dmmc-switch__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 992px) {
    .dmmc-hero__inner,
    .dmmc-badge__inner,
    .dmmc-class,
    .dmmc-console,
    .dmmc-form__inner,
    .dmmc-split {
        grid-template-columns: minmax(0, 1fr);
    }

    /* ⚠ بادبزن در عرض کم کارت‌ها را روی هم می‌انداخت؛ اینجا شبکه‌ای می‌شود که کارت‌ها با همان
       پیشرفت اسکرول یکی‌یکی در آن بالا می‌آیند. */
    .dmmc-deck__cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        height: auto;
    }

    .dmmc-card {
        --on: clamp(0, calc(var(--f) * (var(--n, 5) + 1) - var(--k, 0)), 1);
        position: static;
        width: auto;
        margin: 0;
        opacity: calc(.2 + var(--on) * .8);
        transform: translate3d(0, calc((1 - var(--on)) * 40px), 0);
    }

    .dmmc-card__in {
        min-height: 200px;
    }

    .dmmc-class__stage {
        width: 100%;
        max-width: 380px;
        justify-self: center;
    }

    .dmmc-console__panel {
        position: static;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

    .dmmc-console__panel .dmmc-title {
        grid-column: 1 / -1;
    }

    .dmmc-gauge {
        width: 170px;
    }

    /* پنل دیگر ستون کناری نیست، پس فهرست دوباره دو ستون می‌گیرد. */
    .dmmc-switch__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dmmc-envelope {
        width: min(100%, 240px);
        margin-top: 70px;
    }

    .dmmc-hero__visual {
        width: 100%;
        max-width: 440px;
        justify-self: center;
    }

    .dmmc-split--rev > :last-child {
        order: 0;
    }

    /* ⚠ کهکشان روی تبلت و موبایل به یک شبکهٔ ساده تبدیل می‌شود؛ مدار چرخان در عرض کم نام‌ها را روی هم می‌انداخت. */
    .dmmc-galaxy {
        height: auto;
    }

    .dmmc-galaxy__core {
        position: static;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 18px;
        width: auto;
        height: auto;
        margin: 0 0 18px;
        padding: 0;
        background-image: none;
        text-align: start;
    }

    .dmmc-galaxy__label::after {
        display: block;
    }

    .dmmc-galaxy__ring,
    .dmmc-galaxy__ring--out {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px 10px;
        width: auto;
        height: auto;
        margin-top: 18px;
        opacity: 1;
        scale: none;
        animation: none;
    }

    .dmmc-galaxy__ring::before {
        display: none;
    }

    /* لوگوها با پیشرفت اسکرول یکی‌یکی در شبکه می‌نشینند. */
    .dmmc-planet {
        --on: clamp(0, calc(var(--g) * (var(--n, 6) + 2) - var(--k, 0)), 1);
        position: static;
        width: auto;
        height: auto;
        opacity: var(--on);
        transform: none;
        scale: calc(.5 + var(--on) * .5);
    }

    .dmmc-planet__body,
    .dmmc-galaxy__ring--out .dmmc-planet__body {
        position: relative;
        top: auto;
        left: auto;
        width: 64px;
        height: 64px;
        margin: 0 auto 64px;
        transform: none;
        animation: none;
    }

    .dmmc-planet__name {
        top: 72px;
        width: 110px;
        margin-left: -55px;
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .dmmc-switch__grid,
    .dmmc-skills__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dmmc-deck__cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .dmmc-card__in {
        flex-direction: row;
        align-items: center;
        min-height: 0;
        padding-inline-end: 64px;
    }

    .dmmc-card__logo {
        flex: 0 0 auto;
        width: 60px;
        height: 60px;
    }

    .dmmc-card__chip {
        top: 50%;
        margin-top: -13px;
    }

    .dmmc-console__panel {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .dmmc-cta {
        width: 100%;
    }

    .dmmc-form__wrap .dmf-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .dmmc-toggle__no {
        width: 1.8em;
        font-size: 15px;
    }

    /* درِ بازشدهٔ جعبه روی موبایل ۱۰ پیکسل از لبهٔ صفحه بیرون می‌زد (اندازه‌گیری‌شده). */
    .dmmc-box {
        max-width: 250px;
    }

    .dmmc-chan {
        width: 44px;
        height: 44px;
        margin: -22px;
        padding: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dmmc-main *,
    .dmmc-main *::before,
    .dmmc-main *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
