/* ===== همسان — استایل‌های اختصاصی سایت همسان‌گزینی ===== */

:root {
    --hs-primary: #7c3aed;
    --hs-primary-2: #a855f7;
    --hs-violet: #8b5cf6;
    --hs-fuchsia: #d946ef;
    --hs-gold: #d4af37;
    --hs-gold-2: #eec75f;
    --hs-rose: #f472b6;
    --hs-rose-2: #fb7eb8;
    --hs-teal: #14b8a6;
    --hs-cyan: #22d3ee;
    --hs-ink: #1e1b2e;
    --hs-plum: #2c0f2e;
    --hs-wine: #8e2a5e;
    --hs-blush: #fdf1f4;
    --hs-cream: #fdf7f0;
}

/* فونت سایت = وزیرمتن — چیدمان‌هایی که تم وِلکس روی Archivo/Roboto تنظیم کرده (فونت بارگذاری نمی‌شود) به پشهٔ سایت برمی‌گردند */
.total-revenue h4,
.top-countries-card .list-group-item span { font-family: var(--default-font-family); }

/* ---------- صفحات عمومی ---------- */
.site-frame { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid #eee7fb;
}
.site-header .inner {
    max-width: 1200px; margin: 0 auto; padding: .7rem 1rem;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
}
.site-logo { font-weight: 800; font-size: 1.35rem; color: var(--hs-primary); text-decoration: none; display:flex; align-items:center; gap:.5rem; justify-self: start; }
.site-logo-mark { width: 34px; height: 34px; filter: drop-shadow(0 4px 10px rgba(124,58,237,.35)); transition: transform .3s ease; }
.site-logo:hover .site-logo-mark { transform: rotate(-8deg) scale(1.06); }
.site-logo span b { background: linear-gradient(135deg, var(--hs-primary), var(--hs-rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-footer-brand { display: flex; align-items: center; gap: .55rem; }
.site-footer-brand img { border-radius: 9px; }
.auth-logo-mark { width: 52px; height: 52px; border-radius: 14px; background: none; box-shadow: 0 10px 24px rgba(124,58,237,.3); }
.auth-brand-mark { width: 40px; height: 40px; border-radius: 11px; vertical-align: -12px; margin-inline-end: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.site-nav { display: flex; gap: .2rem; flex-wrap: wrap; justify-self: center; }
.site-nav a { padding: .45rem .8rem; border-radius: 10px; color: #4b4560; text-decoration: none; font-weight: 500; font-size: .92rem; }
.site-nav a:hover, .site-nav a.active { background: #f4efff; color: var(--hs-primary); }
.site-cta { display: flex; gap: .5rem; justify-self: end; align-items: center; }
.site-cta .hs-btn { white-space: nowrap; }
.hs-btn.nav-mobile-only { display: none; }

/* پنل منو: در دسکتاپ شفاف است تا nav/cta مستقیم داخل گرید هدر قرار بگیرند */
.nav-panel { display: contents; }
.nav-backdrop { position: fixed; inset: 0; z-index: 0; }
.nav-toggle {
    display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    width: 40px; height: 40px; padding: 0; flex: none;
    border: 1px solid #ece5f8; border-radius: 10px; background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--hs-primary); transition: transform .2s ease, opacity .2s ease; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hs-btn { display:inline-flex; align-items:center; justify-content:center; gap:.4rem; border-radius: 12px; padding: .55rem 1.2rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: .95rem; transition: .15s; position: relative; overflow: hidden; }
/* ردّ نور (shine) روی دکمه‌های توپُر */
.hs-btn-primary::after, .hs-btn-gold::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 55%; inset-inline-start: -90%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-18deg); transition: inset-inline-start .65s ease; pointer-events: none;
}
.hs-btn-primary:hover::after, .hs-btn-gold:hover::after { inset-inline-start: 140%; }
.hs-btn-primary { background: linear-gradient(135deg, var(--hs-primary), var(--hs-fuchsia) 60%, var(--hs-rose)); color: #fff; box-shadow: 0 8px 24px -8px rgba(217,70,239,.55); }
.hs-btn-primary:hover { filter: brightness(1.1); color:#fff; transform: translateY(-1px); box-shadow: 0 14px 32px -8px rgba(217,70,239,.65); }
.hs-btn-outline { border-color: var(--hs-primary); color: var(--hs-primary); background: #fff; }
.hs-btn-outline:hover { background: #f4efff; border-color: var(--hs-fuchsia); color: var(--hs-fuchsia); }
.hs-btn-ghost { color: #5b5470; background: transparent; }
.hs-btn-ghost:hover { background: #f3f0fa; }
.hs-btn-gold { background: linear-gradient(135deg, var(--hs-gold-2), var(--hs-gold) 55%, #b8912a); color:#3c2c05; font-weight: 700; }
.hs-btn-sm { padding: .3rem .8rem; font-size: .85rem; border-radius: 9px; }
.hs-btn-block { width: 100%; }
.hs-btn:disabled { opacity:.55; cursor: not-allowed; }

/* ---------- هیرو لندینگ ---------- */
.hs-hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(820px 440px at 88% -12%, rgba(244,114,182,.48), transparent 62%),
        radial-gradient(640px 440px at 4% 110%, rgba(212,175,55,.34), transparent 58%),
        radial-gradient(620px 400px at 52% 118%, rgba(139,92,246,.48), transparent 62%),
        radial-gradient(420px 300px at 10% 6%, rgba(34,211,238,.2), transparent 55%),
        radial-gradient(380px 260px at 96% 78%, rgba(217,70,239,.3), transparent 60%),
        linear-gradient(157deg, #1d0b2e 0%, #3d1050 36%, #7c1d5e 72%, #b03a6b 100%);
    padding: 4.6rem 1rem 7rem;
    color: #fdeef4;
}
/* لایهٔ اورورا — هاله‌های متحرک ملایم */
.hs-hero::after {
    content: ""; position: absolute; inset: -20%; pointer-events: none;
    background:
        radial-gradient(34% 42% at 30% 32%, rgba(217,70,239,.22), transparent 70%),
        radial-gradient(30% 38% at 72% 62%, rgba(34,211,238,.13), transparent 70%),
        radial-gradient(26% 34% at 58% 18%, rgba(238,199,95,.18), transparent 70%);
    animation: hs-aurora 14s ease-in-out infinite alternate;
}
@keyframes hs-aurora { to { transform: translate(-4%, 3%) scale(1.06); } }
.hs-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background-image: radial-gradient(rgba(255,255,255,.2) 1px, transparent 1.5px);
    background-size: 30px 30px; opacity: .35;
    -webkit-mask-image: radial-gradient(72% 92% at 30% 26%, #000 18%, transparent 80%);
            mask-image: radial-gradient(72% 92% at 30% 26%, #000 18%, transparent 80%);
}
.hs-hero .inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
@media (max-width: 900px) { .hs-hero .inner { grid-template-columns: 1fr; } }
.hs-kicker { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.15rem;
    padding: .4rem 1.1rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: #ffe4b8;
    background: linear-gradient(120deg, rgba(217,70,239,.28), rgba(212,175,55,.22));
    border: 1px solid rgba(255,255,255,.34); backdrop-filter: blur(8px);
    box-shadow: 0 6px 22px -8px rgba(217,70,239,.5), inset 0 1px 0 rgba(255,255,255,.28); }
.hs-kicker i { font-size: 1rem; color: #ffc2e3; }
.hs-hero h1 { font-size: 2.6rem; font-weight: 800; color: #fff8f4; line-height: 1.5; margin-bottom: 1rem; text-shadow: 0 3px 26px rgba(0,0,0,.28); }
.hs-hero h1 .grad {
    background: linear-gradient(120deg, #ffe3a9 0%, #f9a8d4 30%, #f472b6 52%, #d946ef 74%, #ffe3a9 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: hs-shimmer 7s ease-in-out infinite;
    filter: drop-shadow(0 2px 14px rgba(244,114,182,.4));
}
@keyframes hs-shimmer { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.hs-hero p.lead { color: #f4d8e7; font-size: 1.08rem; line-height: 2.05; margin-bottom: 1.7rem; }
.hs-hero .actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.hs-hero .hs-btn-primary { background: linear-gradient(135deg, #fb7eb8, #e8448a 55%, #d946ef); box-shadow: 0 14px 34px -10px rgba(232,68,138,.75); }
.hs-hero .hs-btn-primary:hover { box-shadow: 0 20px 44px -10px rgba(232,68,138,.85); }
.hs-hero .hs-btn-outline { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); color: #fff; backdrop-filter: blur(6px); }
.hs-hero .hs-btn-outline:hover { background: rgba(255,255,255,.2); border-color: #ffc2e3; }
.hs-hero-art { position: relative; min-height: 340px; }
.hs-hero-halo { position: absolute; inset: 14% 10%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(244,114,182,.55), rgba(212,175,55,.2) 52%, transparent 74%);
    filter: blur(8px); animation: hs-halo 7s ease-in-out infinite; }
@keyframes hs-halo { 0%,100% { transform: scale(1); opacity:.9; } 50% { transform: scale(1.1); opacity:1; } }
.hs-ring { position:absolute; border-radius: 50%; border: 1.5px solid rgba(249,168,212,.45); }
.hs-ring.r1 { inset: 8% 6%; animation: hs-spin 40s linear infinite; border-style: dashed; }
.hs-ring.r2 { inset: 20% 18%; border-color: rgba(238,199,95,.55); animation: hs-spin 30s linear infinite reverse; }
.hs-ring.r3 { inset: 32% 32%; border-style: dotted; border-color: rgba(196,181,253,.6); animation: hs-spin 50s linear infinite; }
@keyframes hs-spin { to { transform: rotate(360deg); } }
.hs-emblem { position: absolute; z-index: 2; top: 50%; left: 50%; width: 190px; height: auto;
    filter: drop-shadow(0 24px 46px rgba(219,39,119,.65)) drop-shadow(0 6px 16px rgba(0,0,0,.35));
    animation: hs-float 6.5s ease-in-out infinite; }
@keyframes hs-float { 0%,100% { transform: translate(-50%,-50%) translateY(0) rotate(0deg); } 50% { transform: translate(-50%,-50%) translateY(-14px) rotate(-2deg); } }
.hs-spark { position: absolute; z-index: 3; border-radius: 50%; pointer-events: none; animation: hs-twinkle 3.4s ease-in-out infinite; }
.hs-spark.s1 { width: 9px; height: 9px; top: 12%; right: 20%; background: #ffd9a0; box-shadow: 0 0 14px 4px rgba(255,217,160,.6); animation-delay: 0s; }
.hs-spark.s2 { width: 6px; height: 6px; top: 22%; left: 12%; background: #f472b6; box-shadow: 0 0 12px 3px rgba(244,114,182,.6); animation-delay: .7s; }
.hs-spark.s3 { width: 7px; height: 7px; bottom: 18%; right: 14%; background: #f9a8d4; box-shadow: 0 0 12px 3px rgba(249,168,212,.55); animation-delay: 1.3s; }
.hs-spark.s4 { width: 5px; height: 5px; bottom: 26%; left: 18%; background: #d4af37; box-shadow: 0 0 10px 3px rgba(212,175,55,.6); animation-delay: 1.9s; }
.hs-spark.s5 { width: 6px; height: 6px; top: 48%; right: 4%; background: #f9a8d4; box-shadow: 0 0 10px 3px rgba(249,168,212,.6); animation-delay: 2.4s; }
.hs-spark.s6 { width: 4px; height: 4px; top: 60%; left: 6%; background: #ffd9a0; box-shadow: 0 0 9px 2px rgba(255,217,160,.6); animation-delay: 2.9s; }
@keyframes hs-twinkle { 0%,100% { transform: scale(.4); opacity: .35; } 50% { transform: scale(1.15); opacity: 1; } }

.hs-badges { display:flex; gap: .7rem; margin-top: 2rem; flex-wrap: wrap; }
.hs-badge { display:flex; align-items:center; gap:.5rem; font-size:.85rem; color: #fdeaf2;
    background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px; padding: .42rem 1rem; backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.hs-badge i { color: #ffd9a0; font-size: 1.05rem; }

/* نوار آمار — کارت شیشه‌ای شناور روی لبهٔ هیرو */
.hs-stats-band { padding: 0 1rem; margin-top: -4.2rem; position: relative; z-index: 3; }
.hs-stats-band .hs-stats { background: rgba(255,255,255,.88); backdrop-filter: blur(12px);
    border: 1px solid #fff; border-radius: 24px;
    box-shadow: 0 26px 60px -24px rgba(118,24,78,.4), 0 0 0 6px rgba(255,255,255,.15);
    padding: 1.6rem 1.4rem; max-width: 1000px; margin: 0 auto; }

/* ---------- سکشن‌ها ---------- */
.hs-section { padding: 4.4rem 1rem; }
.hs-section .inner { max-width: 1150px; margin: 0 auto; }
.hs-section.alt { background:
    radial-gradient(560px 280px at 92% 0%, rgba(244,114,182,.12), transparent 60%),
    radial-gradient(560px 280px at 6% 100%, rgba(124,58,237,.1), transparent 60%),
    linear-gradient(180deg, var(--hs-cream) 0%, var(--hs-blush) 100%); }
.hs-section h2 { text-align: center; font-weight: 800; color: var(--hs-ink); font-size: 1.75rem; margin-bottom: .5rem; position: relative; padding-bottom: 1.05rem; }
.hs-section h2::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 96px; height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, var(--hs-teal), var(--hs-primary) 30%, var(--hs-rose) 62%, var(--hs-gold)); }
.hs-section .sub { text-align:center; color: #6b6480; margin-bottom: 2.4rem; }

.hs-grid { display: grid; gap: 1.2rem; }
.hs-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.hs-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.hs-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.hs-grid.c5 { grid-template-columns: repeat(5, 1fr); }
.hs-grid.c6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .hs-grid.c6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .hs-grid.c3, .hs-grid.c4, .hs-grid.c5, .hs-grid.c6 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .hs-grid.c3, .hs-grid.c4, .hs-grid.c2, .hs-grid.c5, .hs-grid.c6 { grid-template-columns: 1fr; } }

.hs-card { position: relative; background: #fff; border: 1px solid #f2e3ec; border-radius: 20px; padding: 1.5rem; box-shadow: 0 10px 30px -16px rgba(142,42,94,.14); transition: .2s; overflow: hidden; }
.hs-card::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; opacity: 0; transition: opacity .2s;
    background: linear-gradient(90deg, var(--hs-primary), var(--hs-rose) 55%, var(--hs-gold)); }
.hs-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px -16px rgba(142,42,94,.3); border-color: #f0c9dd; }
.hs-card:hover::before { opacity: 1; }
.hs-card .ic { width: 52px; height: 52px; border-radius: 16px; display:flex; align-items:center; justify-content:center; font-size: 1.5rem; margin-bottom: 1rem;
    background: linear-gradient(135deg,#f6ecff,#ffe8f1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 16px -8px rgba(142,42,94,.35); }
/* آیکون کارت‌ها با رنگ چرخشی — شاداب‌تر */
.hs-grid .hs-card:nth-child(6n+1) .ic { background: linear-gradient(135deg,#ede9fe,#ddd6fe); }
.hs-grid .hs-card:nth-child(6n+2) .ic { background: linear-gradient(135deg,#ffe4ee,#fbcfe8); }
.hs-grid .hs-card:nth-child(6n+3) .ic { background: linear-gradient(135deg,#fdf3d8,#fbe7ae); }
.hs-grid .hs-card:nth-child(6n+4) .ic { background: linear-gradient(135deg,#d9f8f2,#bcf0e6); }
.hs-grid .hs-card:nth-child(6n+5) .ic { background: linear-gradient(135deg,#e0f2fe,#c7e7fb); }
.hs-grid .hs-card:nth-child(6n+6) .ic { background: linear-gradient(135deg,#ffe9d9,#fdd8b5); }
.hs-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--hs-ink); margin-bottom: .5rem; }
.hs-card p { color: #6b6480; font-size: .92rem; line-height: 1.9; margin: 0; }

/* ---------- گام‌های همسان‌گزینی ---------- */
.hs-steps { position: relative; }
@media (min-width: 901px) {
    .hs-steps::before { content: ""; position: absolute; top: 46px; inset-inline: 9%;
        border-top: 2px dashed #ecc9da; }
}
.hs-step { text-align: center; overflow: visible; }
.hs-step .n { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 50%;
    margin: -46px auto .9rem; display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; font-weight: 800; color: #fff; border: 4px solid #fff;
    background: linear-gradient(135deg, var(--hs-rose), var(--hs-wine));
    box-shadow: 0 12px 26px -8px rgba(142,42,94,.5), inset 0 2px 4px rgba(255,255,255,.35); }
.hs-step:nth-child(4n+2) .n { background: linear-gradient(135deg, var(--hs-violet), #5b21b6); box-shadow: 0 12px 26px -8px rgba(91,33,182,.5), inset 0 2px 4px rgba(255,255,255,.35); }
.hs-step:nth-child(4n+3) .n { background: linear-gradient(135deg, var(--hs-gold-2), #b8912a); box-shadow: 0 12px 26px -8px rgba(184,145,42,.5), inset 0 2px 4px rgba(255,255,255,.35); }
.hs-step:nth-child(4n+4) .n { background: linear-gradient(135deg, var(--hs-teal), #0d7d72); box-shadow: 0 12px 26px -8px rgba(13,125,114,.5), inset 0 2px 4px rgba(255,255,255,.35); }
@media (min-width: 901px) { .hs-steps { margin-top: 2.6rem; } .hs-steps::before { z-index: 0; } }

/* ---------- آیهٔ روم ۲۱ ---------- */
.hs-verse { position: relative; overflow: hidden; padding: 4.2rem 1rem; text-align: center;
    background: radial-gradient(720px 320px at 50% -10%, rgba(238,199,95,.28), transparent 62%),
                radial-gradient(520px 300px at 88% 112%, rgba(217,70,239,.26), transparent 60%),
                radial-gradient(460px 280px at 8% 112%, rgba(34,211,238,.12), transparent 60%),
                linear-gradient(135deg, #2b0e33 0%, #5c1746 55%, #8e2a5e 100%); }
.hs-verse::before, .hs-verse::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
    border: 1px solid rgba(244,114,182,.22); pointer-events: none; }
.hs-verse::before { top: -170px; right: -90px; }
.hs-verse::after { bottom: -190px; left: -110px; border-color: rgba(238,199,95,.22); }
.hs-verse-heart { width: 60px; height: auto; margin-bottom: 1.1rem;
    filter: drop-shadow(0 10px 26px rgba(219,39,119,.7)) drop-shadow(0 0 34px rgba(238,199,95,.35));
    animation: hs-heartbeat 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes hs-heartbeat { 0%,100% { transform: scale(1); } 12% { transform: scale(1.07); } 24% { transform: scale(1); } 36% { transform: scale(1.05); } 48% { transform: scale(1); } }
.hs-verse .q { font-size: 1.35rem; font-weight: 700; line-height: 2.4;
    background: linear-gradient(120deg, #fff6ec 30%, #ffe3a9 55%, #fff6ec 80%);
    background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    max-width: 840px; margin: 0 auto; text-shadow: 0 2px 18px rgba(0,0,0,.3);
    animation: hs-shimmer 9s ease-in-out infinite; }
.hs-verse .tr { margin-top: 1rem; font-size: 1.02rem; line-height: 2.1; font-weight: 500;
    color: #f3ddd8; max-width: 700px; margin-inline: auto; }
.hs-verse .src { margin-top: 1.1rem; color: #f0c898; font-size: .92rem; font-weight: 600; }

/* ---------- تعرفه ---------- */
.hs-plan { position: relative; overflow: visible; }
.hs-plan::before { inset-inline: 2px; border-radius: 8px 8px 0 0; }
.hs-plan.featured { border: 2px solid var(--hs-gold);
    box-shadow: 0 22px 50px -22px rgba(184,145,42,.5), 0 0 0 5px rgba(238,199,95,.14); }
.hs-plan .price { font-size: 1.6rem; font-weight: 800; margin: .6rem 0;
    background: linear-gradient(135deg, var(--hs-primary), var(--hs-fuchsia)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs-plan .price small { font-size: .8rem; color: #8a84a0; font-weight: 400; }
.hs-plan ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.hs-plan ul li { padding: .4rem 0; color: #57506e; font-size: .9rem; display: flex; gap: .5rem; align-items: baseline; }
.hs-plan ul li i { color: var(--hs-teal); }
.hs-plan ul li.off { color: #b3adbf; text-decoration: line-through; }
.hs-plan .badge-top { position: absolute; top: -12px; right: 20px; background: linear-gradient(135deg, #e9c25b, #c99b2e); color: #fff; padding: .15rem .8rem; border-radius: 20px; font-size: .75rem; font-weight: 700; box-shadow: 0 8px 18px -6px rgba(201,155,46,.6); }

/* ---------- آمار ---------- */
.hs-stats { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.hs-stat { text-align: center; position: relative; padding: 0 1.4rem; }
.hs-stat + .hs-stat::before { content: ""; position: absolute; inset-inline-start: -1.5rem; top: 15%; bottom: 15%; width: 1px; background: linear-gradient(180deg, transparent, #ecd4e0, transparent); }
.hs-stat .num { font-size: 2.2rem; font-weight: 800; background: linear-gradient(135deg, var(--hs-wine), var(--hs-rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs-stat:nth-child(5n+2) .num { background: linear-gradient(135deg, var(--hs-violet), var(--hs-fuchsia)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs-stat:nth-child(5n+3) .num { background: linear-gradient(135deg, #b8912a, var(--hs-gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs-stat:nth-child(5n+4) .num { background: linear-gradient(135deg, #0d9488, var(--hs-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs-stat:nth-child(5n+5) .num { background: linear-gradient(135deg, var(--hs-primary), var(--hs-rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs-stat .lbl { color: #6b6480; font-size: .9rem; }

/* ---------- نوار CTA پایانی ---------- */
.hs-cta { position: relative; overflow: hidden; text-align: center; border-radius: 28px; padding: 3.2rem 2rem;
    color: #fff;
    background: radial-gradient(620px 280px at 82% -10%, rgba(238,199,95,.32), transparent 60%),
                radial-gradient(480px 260px at 8% 112%, rgba(217,70,239,.32), transparent 62%),
                radial-gradient(320px 200px at 96% 96%, rgba(34,211,238,.14), transparent 60%),
                linear-gradient(120deg, #341038 0%, #7c1d5e 52%, #c2417f 100%);
    box-shadow: 0 30px 70px -28px rgba(94,20,66,.6); }
.hs-cta::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1.4px);
    background-size: 26px 26px; opacity: .3;
    -webkit-mask-image: radial-gradient(60% 100% at 50% 0%, #000, transparent 80%);
            mask-image: radial-gradient(60% 100% at 50% 0%, #000, transparent 80%); }
.hs-cta h2 { color: #fff; padding-bottom: 0; margin-bottom: .6rem; }
.hs-cta h2::after { display: none; }
.hs-cta .sub { color: #f3d3e2; margin-bottom: 1.8rem; }
.hs-cta .hs-btn-gold { background: linear-gradient(135deg, #eec75f, #c99b2e); box-shadow: 0 12px 30px -10px rgba(212,175,55,.6); }
.hs-cta .hs-btn-outline { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.5); color: #fff; backdrop-filter: blur(6px); }
.hs-cta .hs-btn-outline:hover { background: rgba(255,255,255,.18); }

/* ---------- فوتر ---------- */
.site-footer { background: linear-gradient(180deg, #2b0f28, #220b22); color: #d3aec4; margin-top: 4rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px;
    background: linear-gradient(90deg, var(--hs-teal), var(--hs-primary) 25%, var(--hs-fuchsia) 50%, var(--hs-rose) 75%, var(--hs-gold)); }
.site-footer .inner { max-width: 1150px; margin: 0 auto; padding: 3rem 1rem 1.5rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #f6d8e6; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #d3aec4; text-decoration: none; display: block; padding: .25rem 0; font-size: .88rem; }
.site-footer a:hover { color: #ffd9a0; }
.site-footer .copy { border-top: 1px solid #4c2645; margin-top: 2rem; padding-top: 1.2rem; text-align: center; font-size: .82rem; color: #a87f96; }
.site-install-btn { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .55rem 1.1rem; border: 1px solid #b03a6b; border-radius: 10px; background: rgba(244,114,182,.14); color: #f6c9dd; font-family: inherit; font-size: .85rem; cursor: pointer; transition: .15s; }
.site-install-btn:hover { background: #b03a6b; color: #fff; }
.site-install-hint { font-size: .78rem; color: #c497b2; margin-top: .6rem; }

/* ---------- کارت کاندید ---------- */
.cand-card { display: flex; gap: 1rem; background: #fff; border: 1px solid #eee8f8; border-radius: 16px; padding: 1rem; transition: .15s; }
.cand-card:hover { box-shadow: 0 10px 30px -14px rgba(124,58,237,.3); border-color: #ddd0f7; }
.cand-avatar { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; background: #f2ecff; flex-shrink: 0; }
.cand-avatar.ph { display:flex; align-items:center; justify-content:center; color:#a79bc8; font-size:2rem; }
.cand-info { flex: 1; min-width: 0; }
.cand-name { font-weight: 700; color: var(--hs-ink); display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .4rem; }
.cand-meta { color: #6b6480; font-size: .85rem; margin-top: .2rem; display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.cand-about { color: #7a7490; font-size: .84rem; margin-top: .4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cand-score { text-align: center; flex-shrink: 0; width: 76px; }
.cand-score .pct { font-size: 1.4rem; font-weight: 800; color: var(--hs-primary); }
.cand-score .lbl { font-size: .7rem; color: #8a84a0; }
.cand-actions { display: flex; gap: .4rem; margin-top: .5rem; flex-wrap: wrap; }

.badge-verified { display: inline-flex; align-items: center; gap: .2rem; color: var(--hs-teal); font-size: .75rem; }
.badge-mgr { font-size: .72rem; background: #f2ecff; color: var(--hs-primary); border-radius: 20px; padding: .1rem .55rem; }

/* ---------- ویزارد پروفایل ---------- */
.wiz-steps { display: flex; gap: .4rem; margin-bottom: 1.6rem; overflow-x: auto; padding-bottom: .3rem; }
.wiz-step { flex: 1; min-width: 90px; text-align: center; padding: .6rem .4rem; border-radius: 12px; background: #f6f3fc; color: #6b6480; font-size: .8rem; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; white-space: nowrap; }
.wiz-step.active { background: #f2ecff; border-color: var(--hs-primary); color: var(--hs-primary); }
.wiz-step.done { background: #eafaf3; color: var(--hs-teal); }
.wiz-progress { height: 6px; background: #f0ecf9; border-radius: 10px; overflow: hidden; margin-bottom: 1.2rem; }
.wiz-progress > div { height: 100%; background: linear-gradient(90deg, var(--hs-primary), var(--hs-rose)); border-radius: 10px; transition: width .3s; }

/* ---------- ویزارد گام‌به‌گام (onboarding) ---------- */
.ob-shell { max-width: 600px; margin: 0 auto; padding: 1.2rem 1rem .75rem; }
.ob-top { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.ob-close { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: #8a84a0; font-size: 1.2rem; text-decoration: none; flex-shrink: 0; }
.ob-close:hover { background: #f3f0fa; color: var(--hs-ink); }
.ob-progress { flex: 1; height: 8px; background: #f0ecf9; border-radius: 10px; overflow: hidden; }
.ob-progress > div { height: 100%; border-radius: 10px; transition: width .35s ease;
    background: linear-gradient(90deg, var(--hs-primary), var(--hs-rose)); }
.ob-count { font-size: .8rem; color: #8a84a0; font-weight: 600; flex-shrink: 0; min-width: 42px; text-align: center; }

.ob-card { background: #fff; border: 1px solid #eee8f8; border-radius: 20px; padding: 1.6rem 1.4rem;
    box-shadow: 0 10px 34px -18px rgba(124,58,237,.25); animation: ob-in .3s ease; }
@keyframes ob-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ob-q-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.ob-q-ic { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f2ecff, #fdeaf4); }
.ob-q-head h4 { margin: 0; font-weight: 800; color: var(--hs-ink); font-size: 1.15rem; }
.ob-priv { font-size: .78rem; color: #d63a3a; margin-bottom: .6rem; }
.ob-hint { background: #fef6e0; border: 1px solid #f3e4a8; color: #7a6510; border-radius: 12px;
    padding: .65rem .9rem; font-size: .82rem; margin-bottom: 1rem; line-height: 1.8; }
.ob-body { margin-top: .4rem; }
.ob-preview { margin-top: .7rem; font-size: .82rem; color: var(--hs-teal); font-weight: 600; }

.ob-opts { display: grid; gap: .6rem; }
.ob-opts.c2 { grid-template-columns: 1fr 1fr; }
.ob-opts.c3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 576px) { .ob-opts.c3 { grid-template-columns: 1fr 1fr; } }
.ob-opt { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border-radius: 14px;
    border: 1.5px solid #ece5f8; background: #fff; font-family: inherit; font-size: .95rem; font-weight: 600;
    color: var(--hs-ink); cursor: pointer; transition: .15s; text-align: start; }
.ob-opt:hover { border-color: var(--hs-primary-2); background: #faf7ff; transform: translateY(-1px); }
.ob-opt.sel { border-color: var(--hs-primary); background: #f4efff; color: var(--hs-primary);
    box-shadow: 0 6px 18px -8px rgba(124,58,237,.45); }
.ob-opt-ic { font-size: 1.3rem; }
.ob-opt.sm { padding: .5rem .8rem; justify-content: center; font-size: .88rem; }

.ob-nav { position: sticky; bottom: 0; z-index: 50; margin-top: .75rem;
    background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
    border: 1px solid #efeaf9; border-bottom: none; border-radius: 16px 16px 0 0;
    padding: .6rem .9rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.ob-nav-mid { flex: 1; display: flex; align-items: center; justify-content: center; gap: .35rem; min-width: 0; }
.ob-help { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--hs-primary);
    text-decoration: none; padding: .45rem .7rem; border-radius: 10px; }
.ob-help:hover { background: #f4efff; }
@media (max-width: 400px) {
    .ob-nav { padding: .6rem .6rem; gap: .3rem; }
    .ob-nav .hs-btn { padding: .5rem .8rem; font-size: .88rem; }
    .ob-help { padding: .4rem .5rem; }
}

.ob-finish { text-align: center; padding: 2.4rem 1.4rem; }
.ob-finish-ic { font-size: 3rem; margin-bottom: .6rem; }

/* جهت‌دار شدن انیمیشن گام‌ها (جلو/عقب) */
.ob-shell.dir-fwd .ob-card { animation-name: ob-in-fwd; }
.ob-shell.dir-back .ob-card { animation-name: ob-in-back; }
@keyframes ob-in-fwd { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
@keyframes ob-in-back { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* فیلدهای قفل هویتی (گام اول ویزارد) */
.ob-lock-list { display: grid; gap: .6rem; }
.ob-lock-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    background: #f8f6fd; border: 1.5px solid #ece5f8; border-radius: 14px; padding: .8rem 1rem; }
.ob-lock-tx { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ob-lock-lb { font-size: .74rem; color: #8a84a0; }
.ob-lock-val { font-weight: 700; color: var(--hs-ink); font-size: .95rem; }
.ob-lock-badge { flex-shrink: 0; display: inline-flex; align-items: center; gap: .25rem;
    font-size: .72rem; color: #8a84a0; background: #efeaf9; border-radius: 20px; padding: .3rem .7rem; }

@media (min-width: 601px) {
    .ob-nav { padding: .7rem 1rem; }
}

/* ---------- تقویم شمسی DatePickerZO ---------- */
/* ریشهٔ پکیج float/margin دارد که کنترل را از تراز فرم خارج می‌کند — خنثی می‌شود */
.picker-pack { float: none !important; margin: 0 !important; width: 100%; display: block; font-family: inherit; }
.picker-box .input-group-picker { display: flex; gap: .4rem; }
.picker-box .input-group-picker input { flex: 1; min-width: 0; height: 42px; box-sizing: border-box;
    border: 1.5px solid #ece5f8; border-radius: 12px; padding: 0 .8rem;
    font-family: inherit; font-size: .92rem; font-weight: 600; color: var(--hs-ink); background: #fff; }
.picker-box .input-group-picker input:focus { border-color: var(--hs-primary-2); outline: none; }
.picker-box .input-group-picker button { width: 42px; height: 42px; flex-shrink: 0; cursor: pointer;
    border: 1.5px solid #ece5f8; border-radius: 12px; background: #faf7ff; font-size: 1.15rem; line-height: 1; }
.picker-box .input-group-picker button:hover { border-color: var(--hs-primary-2); }
.frame-position-zo { z-index: 2000; }
.picker-pack .frame { font-family: inherit; }

/* ---------- پرسشنامهٔ فرم — مرور پاسخ‌ها (onboarding review) ---------- */
.rv-list { display: grid; gap: .5rem; }
.rv-row { display: flex; align-items: center; gap: .7rem; text-decoration: none;
    background: #f8f6fd; border: 1.5px solid #ece5f8; border-radius: 14px; padding: .6rem .8rem; transition: .15s; }
.rv-row:hover { border-color: var(--hs-primary-2); background: #f3eefd; }
.rv-ic { font-size: 1.15rem; flex-shrink: 0; }
.rv-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.rv-q { font-size: .76rem; color: #8a84a0; font-weight: 600; }
.rv-a { font-weight: 700; color: var(--hs-ink); font-size: .86rem; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-a.empty { color: var(--hs-primary); font-weight: 600; font-size: .8rem; }
.rv-go { color: #b9b0d4; font-size: 1.1rem; flex-shrink: 0; }
.rv-warn { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff3d6; color: #b8860b;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .75rem; }

/* ---------- ویزارد آزمون سازگاری (quiz) ---------- */
.qz-tools { display: flex; gap: .6rem; margin-bottom: 1rem; }
.qz-tool { flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .6rem .8rem; border-radius: 12px; font-size: .82rem; font-weight: 700; text-decoration: none;
    background: #fff; border: 1.5px solid #eee8f8; color: var(--hs-primary); transition: .15s; }
.qz-tool:hover { border-color: var(--hs-primary-2); background: #faf7ff; transform: translateY(-1px); }
.qz-cat { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700;
    color: var(--hs-primary); background: #f4efff; border-radius: 20px; padding: .3rem .75rem; margin-bottom: .7rem; }
.qz-optional { display: inline-flex; align-items: center; font-size: .68rem; font-weight: 600;
    color: #8a84a0; border: 1px solid #e6e0f2; border-radius: 20px; padding: .18rem .6rem; margin-bottom: .7rem; }
.qz-q { font-weight: 800; color: var(--hs-ink); font-size: 1.12rem; line-height: 1.9; margin: 0 0 1rem; }
.qz-multi { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600;
    color: var(--hs-teal); margin: -.4rem 0 .8rem; }
.qz-cb { width: 22px; height: 22px; border: 2px solid #c9c0e0; border-radius: 7px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; transition: .15s; }
.qz-cb i { font-size: .9rem; color: #fff; opacity: 0; transition: .15s; }
.qz-opt.sel .qz-cb { background: var(--hs-primary); border-color: var(--hs-primary); }
.qz-opt.sel .qz-cb i { opacity: 1; }
.qz-radio { font-size: 1.25rem; color: #c9c0e0; flex-shrink: 0; transition: .15s; }
.qz-opt.sel .qz-radio { color: var(--hs-primary); }
.qz-pos { font-size: .78rem; color: #8a84a0; font-weight: 600; }
.qz-scores { margin: 1.2rem auto; max-width: 380px; text-align: start; }
.qz-score-row { display: flex; align-items: center; gap: .8rem; margin-bottom: .65rem; }
.qz-score-lb { width: 110px; flex-shrink: 0; font-size: .8rem; color: var(--hs-ink); font-weight: 600; }
.qz-score-bar { flex: 1; height: 8px; background: #f0ecf9; border-radius: 10px; overflow: hidden; display: block; }
.qz-score-bar > span { display: block; height: 100%; border-radius: 10px;
    background: linear-gradient(90deg, var(--hs-primary), var(--hs-rose)); transition: width .4s ease; }
.qz-score-v { width: 44px; flex-shrink: 0; text-align: end; font-size: .8rem; font-weight: 700; color: var(--hs-primary); }

/* ---------- چت ---------- */
.chat-shell { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: #fff; border: 1px solid #eee8f8; border-radius: 18px; overflow: hidden; min-height: 65vh; }
@media (max-width: 800px) { .chat-shell { grid-template-columns: 1fr; } .chat-list { display:none; } .chat-shell.no-thread .chat-list { display:block; } .chat-shell.no-thread .chat-main { display:none; } }
.chat-list { border-inline-end: 1px solid #eee8f8; overflow-y: auto; max-height: 75vh; }
.chat-item { display: flex; gap: .7rem; padding: .85rem 1rem; cursor: pointer; border-bottom: 1px solid #f6f3fc; }
.chat-item:hover, .chat-item.active { background: #faf8ff; }
.chat-item .nm { font-weight: 600; font-size: .9rem; color: var(--hs-ink); }
.chat-item .pr { font-size: .78rem; color: #8a84a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.chat-item .un { margin-inline-start: auto; background: var(--hs-primary); color: #fff; font-size: .7rem; border-radius: 20px; min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.chat-main { display: flex; flex-direction: column; }
.chat-head { padding: .8rem 1.2rem; border-bottom: 1px solid #eee8f8; font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 1.2rem; background: #faf9fe; display: flex; flex-direction: column; gap: .6rem; }
.msg-bubble { max-width: 70%; padding: .6rem 1rem; border-radius: 16px; font-size: .9rem; line-height: 1.8; }
.msg-bubble.me { align-self: flex-end; background: linear-gradient(135deg, var(--hs-primary), var(--hs-primary-2)); color: #fff; border-bottom-left-radius: 4px; }
.msg-bubble.them { align-self: flex-start; background: #fff; border: 1px solid #eee8f8; color: var(--hs-ink); border-bottom-right-radius: 4px; }
.msg-bubble .tm { display: block; font-size: .65rem; opacity: .65; margin-top: .2rem; }
.chat-input { display: flex; gap: .6rem; padding: .8rem 1.2rem; border-top: 1px solid #eee8f8; }
.chat-input input { flex: 1; min-width: 0; border: 1px solid #e6dff5; border-radius: 12px; padding: .6rem 1rem; font-family: inherit; }
.chat-input input:focus { outline: none; border-color: var(--hs-primary); }
/* کامپوزر چندخطی چت — Enter=ارسال، Shift+Enter=خط جدید (js: .hs-enter-send) */
.hs-enter-send textarea { resize: none; max-height: 140px; overflow-y: auto; }
.list-group-item.active .text-muted { color: rgba(255, 255, 255, .8) !important; }

/* ---------- اعلان ---------- */
.notif-item { display: flex; gap: .8rem; padding: .8rem 1rem; border-bottom: 1px solid #f4f0fb; }
.notif-item.unread { background: #faf7ff; }
.notif-item .ic { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.notif-item .ti { font-weight: 600; font-size: .86rem; color: var(--hs-ink); }
.notif-item .bo { font-size: .78rem; color: #7a7490; }
.notif-item .dt { font-size: .68rem; color: #a09bb3; margin-top: .2rem; }

/* ---------- متفرقه ---------- */
/* ---------- بنر تکمیل پروفایل (داشبورد) ---------- */
.hs-complete-banner { display:flex; align-items:center; gap:1rem; flex-wrap:wrap;
    background: linear-gradient(135deg, var(--hs-primary), var(--hs-primary-2));
    color:#fff; border-radius:16px; padding:1.05rem 1.3rem;
    box-shadow: 0 12px 30px -12px rgba(124,58,237,.55); }
.hs-complete-banner .ic { width:44px; height:44px; border-radius:12px; flex-shrink:0;
    background:rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; font-size:1.35rem; }
.hs-complete-banner .bar { height:8px; background:rgba(255,255,255,.3); border-radius:10px; overflow:hidden; }
.hs-complete-banner .bar > div { height:100%; background:#fff; border-radius:10px; transition:width .3s; }
.hs-btn-light { background:#fff; color:var(--hs-primary); }
.hs-btn-light:hover { background:#f1ebff; color:var(--hs-primary); }

.hs-empty { text-align: center; padding: 3rem 1rem; color: #8a84a0; }
.hs-empty .ic { font-size: 3rem; margin-bottom: 1rem; opacity: .4; }
.hs-table { width:100%; border-collapse: collapse; font-size: .88rem; }
.hs-table th { text-align: right; padding: .7rem .8rem; color: #6b6480; font-weight: 600; border-bottom: 2px solid #f0ecf9; }
.hs-table td { padding: .7rem .8rem; border-bottom: 1px solid #f6f3fc; color: #3c3652; }
.hs-table tr:hover td { background: #faf8ff; }
.pill { display:inline-block; padding:.15rem .7rem; border-radius:20px; font-size:.75rem; font-weight:600; }
.pill.ok { background:#eafaf3; color:#0d9668; }
.pill.warn { background:#fef6e0; color:#b08a00; }
.pill.bad { background:#fdecec; color:#d63a3a; }
.pill.info { background:#eaf3ff; color:#2470d8; }
.pill.dim { background:#f0ecf9; color:#6b6480; }
.money { direction: ltr; unicode-bidi: embed; font-variant-numeric: tabular-nums; }

/* ---------- بادج‌های معیار همسان‌گزینی (کارت کارشناس + فرم + چیپ فیلتر) ---------- */
.crit-groups { display: flex; flex-direction: column; gap: .75rem; }
.crit-group .crit-title { font-size: .78rem; font-weight: 700; color: #6b6480; margin-bottom: .35rem; }
.crit-group .crit-title i { margin-inline-end: .2rem; }
.crit-row { display: flex; flex-wrap: wrap; gap: .35rem .4rem; }
.crit { display: inline-flex; align-items: center; gap: .28rem; padding: .18rem .7rem;
    border-radius: 20px; font-size: .78rem; font-weight: 600; border: 0; line-height: 1.6;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.crit i { font-size: .9em; }
.crit-a { background: #f2ecff; color: #6d28d9; }
.crit-b { background: #eaf3ff; color: #2470d8; }
.crit-c { background: #e6fbf4; color: #0d9668; }
.crit-d { background: #fef6e0; color: #b08a00; }
.crit-e { background: #fdeef4; color: #d6336c; }
.crit-f { background: #eee9fb; color: #4c1d95; }
button.crit { cursor: pointer; transition: filter .15s, transform .15s; }
button.crit:hover { filter: brightness(.94); transform: translateY(-1px); }
.crit.off { background: #f0ecf9 !important; color: #a29bb8 !important;
    text-decoration: line-through; opacity: .75; }
.crit-note-line { background: #fff5f5; border: 1px dashed #f3c4c4; color: #b03a3a;
    border-radius: 10px; padding: .4rem .8rem; font-size: .8rem; }
.crit-note-line i { margin-inline-end: .25rem; }
.for-banner { border: 1px solid #e3d9fb; background: linear-gradient(135deg, #fbfaff, #f3edff); }

/* در فرم چاپی، بادجها کمی کوچک‌تر */
.mfm-critbox { padding: 6px 11px; }
.mfm-sheet .crit { font-size: 7.6pt; padding: .1rem .55rem; }
.mfm-sheet .crit-title { font-size: 7.6pt; }
.mfm-sheet .crit-note-line { font-size: 7.8pt; }

.ai-note { background: #fffbe8; border: 1px solid #f3e4a8; border-radius: 12px; padding: .7rem 1rem; font-size: .82rem; color: #7a6510; margin-top: 1rem; }

/* ---------- reveal هنگام اسکرول (صفحات سایت) — فقط وقتی JS فعال است (hs-fx) ---------- */
.hs-fx .hs-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); transition-delay: var(--d, 0s); }
.hs-fx .hs-reveal.in { opacity: 1; transform: none; }
.hs-grid .hs-card.hs-reveal:nth-child(2) { --d: .08s; }
.hs-grid .hs-card.hs-reveal:nth-child(3) { --d: .16s; }
.hs-grid .hs-card.hs-reveal:nth-child(4) { --d: .24s; }
.hs-grid .hs-card.hs-reveal:nth-child(5) { --d: .32s; }
.hs-grid .hs-card.hs-reveal:nth-child(6) { --d: .4s; }
@media (prefers-reduced-motion: reduce) {
    .hs-fx .hs-reveal { opacity: 1 !important; transform: none !important; transition: none; }
    .hs-emblem, .hs-ring, .hs-spark, .hs-hero-halo, .hs-hero::after,
    .hs-hero h1 .grad, .hs-verse .q, .hs-verse-heart { animation: none !important; }
    .hs-btn-primary::after, .hs-btn-gold::after { display: none; }
}

@media (max-width: 1100px) {
    .site-header .inner { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; }
    .nav-toggle { display: inline-flex; }
    .site-logo { font-size: 1.2rem; margin-inline-end: auto; }
    .nav-panel {
        display: none; position: absolute; top: 100%; inset-inline: 0; z-index: 1;
        flex-direction: column; gap: .2rem; padding: .4rem .8rem .9rem;
        background: #fff; border-bottom: 1px solid #eee7fb;
        box-shadow: 0 22px 36px -18px rgba(76,29,149,.28);
    }
    .site-header.nav-open .nav-panel { display: flex; }
    .site-cta .cta-offices { display: none; }
    .hs-btn.nav-mobile-only { display: inline-flex; margin: .2rem 0 .5rem; }
    .site-nav { flex-direction: column; gap: .15rem; }
    .site-nav a { padding: .6rem .8rem; }
    .site-cta { gap: .3rem; }
    .site-cta .hs-btn { padding: .28rem .55rem; font-size: .78rem; white-space: nowrap; }
    .hs-hero h1 { font-size: 1.7rem; }
}

/* ---------- نوار خروجی استاندارد گریدها (اکسل/چاپ/ستون‌ها) ---------- */
.hs-export { display:inline-flex; align-items:center; gap:.4rem; position:relative; flex-wrap:wrap; }
.hs-export svg { width: 15px; height: 15px; }
.hs-export-note { font-size: .8rem; }
.hs-colpick { position: relative; }
.hs-colpick > summary { list-style: none; cursor: pointer; user-select: none; }
.hs-colpick > summary::-webkit-details-marker { display: none; }
.hs-colpick[open] > summary { background: #f4efff; }
.hs-colpick-body { position: absolute; z-index: 60; top: calc(100% + 6px); inset-inline-start: 0;
    background: #fff; border: 1px solid #e9e4f6; border-radius: 12px; box-shadow: 0 10px 30px #4c1d9522;
    padding: .6rem; min-width: 190px; max-height: 280px; overflow: auto; }
.hs-colpick-item { display: flex; align-items: center; gap: .45rem; padding: .28rem .3rem;
    font-size: .83rem; color: #3c3652; cursor: pointer; border-radius: 7px; white-space: nowrap; }
.hs-colpick-item:hover { background: #f6f3fc; }
.hs-colpick-item input { accent-color: var(--hs-primary); }

/* موبایل: دراپ‌داون انتخاب ستون نباید از لبهٔ ویوپورت بیرون بزند */
@media (max-width: 575.98px) {
    .hs-colpick-body { min-width: 160px; max-width: calc(100vw - 32px); }
    .hs-colpick-body .hs-colpick-item { white-space: normal; }
}

/* موبایل: برند (آرم + نام) بالای منوهای کشویی نمایش داده شود — تم آن را مخفی می‌کند */
@media (max-width: 991.98px) {
    .app-sidebar .main-sidebar-header { display: flex !important; }
    .app-sidebar .main-sidebar { margin-block-start: 3.72rem; }
}

/* چاپ داخلی صفحات پنل: فقط کارت اصلی، بدون منو/هدر */
@media print {
    .app-sidebar, .app-header, .hs-export, .hs-colpick-body, .side-app, .main-header, footer { display: none !important; }
    .app-content, .main-content { margin: 0 !important; padding: 0 !important; }
    .hs-card { box-shadow: none !important; border: 1px solid #ddd; }
    .hs-table th { background: #eee !important; color: #000 !important; -webkit-print-color-adjust: exact; }
    thead { display: table-header-group; }
    tr { page-break-inside: avoid; }
}

/* کنترل‌های تلریک با محتوای لاتین */
.dir-ltr input, input.dir-ltr { direction: ltr; text-align: left; }

/* چاپ فاکتور — نوارها و دکمه‌ها حذف می‌شوند */
@media print {
    .no-print, .valex-header, .app-header, .app-sidebar, .side-menu,
    .main-sidebar, .page-header-breadcrumb, footer, .footer { display: none !important; }
    .hs-card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* ─── مرکز راهنما و آموزش‌ها (قالب mf-* داخل شل سایت) ─── */
/* هدر سایت sticky است و در جریان صفحه می‌نشیند — پدینگ بزرگ هیروی محفل برای نوبار شناور بود */
.site-main .mf-page-hero { padding-top: 56px; }
.site-main .mf-site { min-height: auto; }
.site-main .mf-site .center { text-align: center; }
.mf-page-content img { border-radius: 14px; border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 14px 34px -14px rgba(15,23,42,.25); margin: 1.2rem auto; }

/* ویرایشگر مرکز راهنما (/admin/help) */
.hs-admin-item { border: 1px solid #efeaf9; border-radius: 12px; padding: 1rem; margin-bottom: 1rem; background: #fcfbff; }
.hs-admin-html textarea, .hs-admin-html { font-family: Consolas, monospace; direction: ltr; text-align: left; }

/* ─── صفحهٔ عمومی دفتر ازدواج و همسان‌گزینی (/office/{slug} و /o/{slug}) ─── */
/* هیروی درخشان — همان خانوادهٔ گرادیان/اورورای لندینگ یار ماندگار */
.of-hero { position: relative; overflow: hidden; text-align: center; color: #fdeef4;
    padding: 4.4rem 1rem 6.8rem;
    background:
        radial-gradient(760px 420px at 12% -12%, rgba(244,114,182,.44), transparent 62%),
        radial-gradient(620px 420px at 92% 112%, rgba(212,175,55,.3), transparent 58%),
        radial-gradient(560px 380px at 46% 118%, rgba(139,92,246,.44), transparent 62%),
        radial-gradient(400px 280px at 88% 8%, rgba(34,211,238,.16), transparent 55%),
        linear-gradient(157deg, #1d0b2e 0%, #3d1050 36%, #7c1d5e 72%, #b03a6b 100%); }
.of-hero::after { content: ""; position: absolute; inset: -20%; pointer-events: none;
    background:
        radial-gradient(34% 42% at 68% 30%, rgba(217,70,239,.2), transparent 70%),
        radial-gradient(30% 38% at 26% 66%, rgba(34,211,238,.12), transparent 70%),
        radial-gradient(26% 34% at 44% 16%, rgba(238,199,95,.16), transparent 70%);
    animation: hs-aurora 14s ease-in-out infinite alternate; }
.of-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.2) 1px, transparent 1.5px);
    background-size: 30px 30px; opacity: .32;
    -webkit-mask-image: radial-gradient(70% 90% at 50% 20%, #000 18%, transparent 80%);
            mask-image: radial-gradient(70% 90% at 50% 20%, #000 18%, transparent 80%); }
.of-hero-in { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; }
.of-hero h1 { font-size: 2.4rem; font-weight: 800; margin: .9rem 0 .8rem; line-height: 1.5;
    color: #fff8f4; text-shadow: 0 3px 26px rgba(0,0,0,.3); }
.of-kicker { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem 1.15rem;
    border-radius: 999px; font-size: .84rem; font-weight: 600; color: #ffe4b8;
    background: linear-gradient(120deg, rgba(217,70,239,.28), rgba(212,175,55,.22));
    border: 1px solid rgba(255,255,255,.34); backdrop-filter: blur(8px); }
.of-logo-wrap { position: relative; width: 196px; height: 196px; margin: 0 auto 1.1rem; }
.of-logo { position: absolute; inset: 34px; width: 128px; height: 128px; border-radius: 50%;
    object-fit: cover; border: 4px solid rgba(255,255,255,.94);
    box-shadow: 0 18px 42px -12px rgba(0,0,0,.5), 0 0 0 7px rgba(255,255,255,.1),
        0 0 50px rgba(244,114,182,.45); }
.of-logo-ph { display: flex; align-items: center; justify-content: center; font-size: 3rem;
    color: var(--hs-wine); background: radial-gradient(circle at 32% 26%, #ffffff, #ffd7e6); }
.of-ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(249,168,212,.45); pointer-events: none; }
.of-ring.r1 { inset: 0; border-style: dashed; animation: hs-spin 44s linear infinite; }
.of-ring.r2 { inset: 16px; border-style: dotted; border-color: rgba(238,199,95,.55);
    animation: hs-spin 30s linear infinite reverse; }
.of-logo-halo { position: absolute; inset: 8px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(244,114,182,.5), transparent 72%);
    filter: blur(10px); animation: hs-halo 7s ease-in-out infinite; }
.of-meta { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-top: .3rem; }
.of-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem 1rem;
    border-radius: 999px; font-size: .85rem; color: #fdeaf2;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26);
    backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.of-chip i { color: #ffd9a0; }
.of-chip-gold { background: rgba(238,199,95,.16); border-color: rgba(238,199,95,.55); color: #ffe9b8; }
.of-slogan { margin: 1.1rem auto 0; max-width: 640px; font-size: 1.04rem; line-height: 2.05; color: #f7dde8; }
.of-actions { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.of-hero .hs-btn-gold { box-shadow: 0 14px 34px -10px rgba(212,175,55,.65); }
.hs-btn-glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); color: #fff; backdrop-filter: blur(6px); }
.hs-btn-glass:hover { background: rgba(255,255,255,.2); border-color: #ffc2e3; color: #fff; }
.of-trust { margin-top: 1.9rem; justify-content: center; }

/* نشان لوگوی کروم دفتر — کاشی گرادیانی قلب */
.of-mark { border-radius: 12px !important; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--hs-primary), var(--hs-rose)) !important; color: #fff;
    font-size: 1.05rem; box-shadow: 0 8px 18px -6px rgba(217,70,239,.55); }
.of-solo .site-logo { font-size: 1.12rem; }

/* کارت آمار شناور روی لبهٔ هیرو — آیکون اختیاری داخل num */
.hs-stat .num i { font-size: .72em; opacity: .75; vertical-align: .12em; }

/* دربارهٔ دفتر — کارت نقل‌قول */
.of-about-card { padding: 2.1rem 2.3rem; }
.of-quote { font-size: 2.3rem; color: var(--hs-rose); opacity: .55; display: block; margin-bottom: .1rem; }
.of-about { color: #4a4458; line-height: 2.2; white-space: pre-line; text-align: justify; margin: 0; }

/* خدمات */
.of-svcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .of-svcs { grid-template-columns: 1fr; } }
.of-svc { padding: 1.3rem 1.3rem; }
.of-svc b { font-size: 1rem; color: var(--hs-ink); }
.of-price { flex: none; font-size: .78rem; font-weight: 700; color: #8a6d0b;
    background: linear-gradient(135deg, #fdf3d3, #fbe7ae); border: 1px solid #f3dd9e;
    border-radius: 999px; padding: .15rem .7rem; }

/* پرسش متداول */
.of-faq { border: 1px solid #efe4f2; border-radius: 14px; background: #fff;
    margin-bottom: .7rem; overflow: hidden; transition: .2s; }
.of-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center;
    justify-content: space-between; gap: .8rem; padding: .95rem 1.15rem;
    font-weight: 700; color: var(--hs-ink); }
.of-faq summary::-webkit-details-marker { display: none; }
.of-faq summary i { flex: none; width: 26px; height: 26px; border-radius: 8px;
    display: grid; place-items: center; color: var(--hs-primary); background: #f3ecfd; transition: .25s; }
.of-faq[open] { border-color: #e6c9e9; box-shadow: 0 14px 34px -18px rgba(142,42,94,.35); }
.of-faq[open] summary i { transform: rotate(45deg);
    background: linear-gradient(135deg, var(--hs-primary), var(--hs-rose)); color: #fff; }
.of-faq p { margin: 0; padding: 0 1.15rem 1rem; color: #6b6480; line-height: 2; font-size: .93rem; }

/* گالری */
.of-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 800px) { .of-gallery { grid-template-columns: repeat(2,1fr); } }
.of-gal-item { margin: 0; position: relative; border-radius: 18px; overflow: hidden;
    border: 1px solid #f2e3ec; background: #fff; box-shadow: 0 12px 30px -16px rgba(142,42,94,.2); }
.of-gal-item img { width: 100%; height: 190px; object-fit: cover; display: block; transition: transform .5s ease; }
.of-gal-item:hover img { transform: scale(1.07); }
.of-gal-item figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: 1.6rem .85rem .7rem;
    font-size: .8rem; color: #fff; background: linear-gradient(transparent, rgba(30,10,40,.78)); }

/* تماس */
.of-contact { max-width: 600px; margin: 0 auto; padding: 1.1rem 1.5rem; }
.of-row { display: flex; gap: .9rem; align-items: center; padding: .7rem 0;
    border-bottom: 1px dashed #f0e4f0; font-size: .95rem; }
.of-row:last-of-type { border-bottom: 0; }
.of-ic { flex: none; width: 42px; height: 42px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: var(--hs-wine);
    background: linear-gradient(135deg, #fde3ee, #fbd3e4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px -8px rgba(142,42,94,.4); }
.of-contact-val { font-weight: 700; color: var(--hs-ink); }
.of-links { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: 1.2rem; }

/* ─── مینی‌سایت دفتر: منو، سکشن‌ها، صفحات آزاد ─── */
.of-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px); border-bottom: 1px solid #f0e7f6; }
.of-nav .inner { max-width: 1100px; margin: 0 auto; display: flex; gap: .4rem;
    overflow-x: auto; padding: .55rem 1rem; }
.of-nav a { font-size: .9rem; font-weight: 600; color: #4a4458; text-decoration: none;
    white-space: nowrap; padding: .4rem .9rem; border-radius: 999px; }
.of-nav a:hover { color: var(--hs-primary,#7c3aed); background: #f4efff; }
.of-hero-sm { padding: 3.2rem 1rem 3.4rem; }
.of-hero-sm h1 { font-size: 1.7rem; margin-bottom: .5rem; }
.of-logo-wrap-sm { width: 130px; height: 130px; margin-bottom: .8rem; }
.of-logo-wrap-sm .of-logo { width: 86px; height: 86px; }
.of-page { line-height: 2.1; }
.of-page p { margin-bottom: .8rem; }
.of-sec-img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 16px;
    margin-bottom: 1rem; box-shadow: 0 16px 40px -18px rgba(142,42,94,.3); }
.of-sec-body { line-height: 2.1; color: #4a4458; }
.of-sec-body p { margin-bottom: .8rem; }

@media (max-width: 700px) {
    .of-hero { padding: 3.2rem 1rem 5.6rem; }
    .of-hero h1 { font-size: 1.55rem; }
    .of-logo-wrap { width: 160px; height: 160px; }
    .of-logo-wrap .of-logo { inset: 26px; width: 108px; height: 108px; }
    .of-slogan { font-size: .95rem; }
}

/* ─── ویرایشگر سایت دفتر (پنل) ─── */
.ocs-sec { border: 1px dashed #ddd0f7; border-radius: 12px; padding: .9rem; margin-bottom: .8rem;
    background: #fcfbff; }
.ocs-photo { position: relative; width: 132px; }
.ocs-photo img { width: 132px; height: 96px; object-fit: cover; border-radius: 10px; display: block; }
.ocs-photo-x { position: absolute; top: 4px; left: 4px; background: rgba(214,58,58,.9); color: #fff;
    padding: .1rem .45rem; }
.ocs-photo-cap { width: 100%; border: 1px solid #e9e2f7; border-radius: 8px; font-size: .72rem;
    padding: .2rem .45rem; margin-top: .25rem; }
.ocs-preview { border: 2px solid var(--hs-primary,#7c3aed); border-radius: 14px; overflow: hidden;
    margin-bottom: 2rem; }
.ocs-preview-bar { background: var(--hs-primary,#7c3aed); color: #fff; font-size: .8rem;
    padding: .4rem 1rem; }

/* ─── نوار اسپانسرها ─── */
.sp-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.sp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #efeaf9;
    border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: .15s; }
.sp-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -12px rgba(124,58,237,.3); border-color: #ddd0f7; }
.sp-card img { width: 100%; height: 110px; object-fit: cover; }
.sp-card-ph { height: 110px; display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; background: linear-gradient(135deg,#faf6ff,#f2ecff); }
.sp-card-body { padding: .7rem .9rem; display: flex; flex-direction: column; gap: .15rem; }
.sp-card-body b { font-size: .92rem; color: var(--hs-ink); }
.sp-card-body span { font-size: .75rem; color: #8a84a0; }
@media (max-width: 900px) { .sp-strip { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .sp-strip { grid-template-columns: 1fr; } }

/* ─── کارت‌های آماری گرادیانی (stat-card — الگوی KPI داشبورد AcrylicBlazor) ─── */
.stat-card { position: relative; border: 0; border-radius: 18px; overflow: hidden; color: #fff; height: 100%;
    isolation: isolate; box-shadow: 0 14px 30px -14px var(--stat-shadow, rgba(15,23,42,.4));
    transition: transform .35s cubic-bezier(.2,.7,.3,1.4), box-shadow .35s ease;
    background-size: 180% 180%; animation: stat-gradient-pan 14s ease-in-out infinite alternate; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -14px var(--stat-shadow, rgba(15,23,42,.5)); }
.stat-grad-primary { background: linear-gradient(135deg, #38bdf8 0%, #6366f1 55%, #8b5cf6 100%); --stat-shadow: rgba(79,70,229,.45); }
.stat-grad-danger  { background: linear-gradient(135deg, #fb7185 0%, #f43f5e 60%, #e11d48 100%); --stat-shadow: rgba(225,29,72,.45); }
.stat-grad-success { background: linear-gradient(135deg, #2dd4bf 0%, #10b981 55%, #059669 100%); --stat-shadow: rgba(5,150,105,.45); }
.stat-grad-warning { background: linear-gradient(135deg, #fbbf24 0%, #f97316 60%, #ea580c 100%); --stat-shadow: rgba(234,88,12,.45); }
.stat-grad-violet  { background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 55%, #4a3fa0 100%); --stat-shadow: rgba(112,94,200,.45); }
.stat-grad-rose    { background: linear-gradient(135deg, #f9a8d4 0%, #ec4899 55%, #be185d 100%); --stat-shadow: rgba(190,24,93,.45); }
@keyframes stat-gradient-pan { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }
.stat-blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.stat-blob-1 { width: 190px; height: 190px; top: -90px; right: -50px;
    background: radial-gradient(circle, rgba(255,255,255,.30), rgba(255,255,255,0) 70%); }
.stat-blob-2 { width: 230px; height: 230px; bottom: -140px; left: -70px;
    background: radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,0) 70%); }
.stat-shine { position: absolute; top: -40%; bottom: -40%; right: -45%; width: 45%; z-index: 0; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.3), transparent);
    transform: skewX(-18deg); transition: right .9s ease; }
.stat-card:hover .stat-shine { right: 135%; }
.stat-card-body { position: relative; z-index: 1; padding: 1.05rem 1.15rem 1.1rem; }
.stat-card-body h6 { color: #fff; font-size: .85rem; font-weight: 600; margin: 0; opacity: .92; }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 6px 14px -6px rgba(0,0,0,.25);
    font-size: 17px; color: #fff; }
.stat-num { font-size: 1.55rem; font-weight: 800; line-height: 1.3; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.stat-sub { margin: 0; font-size: .73rem; color: rgba(255,255,255,.85); }
.stat-valrow { display: flex; align-items: center; gap: .5rem; }
.stat-chips { margin-inline-start: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.stat-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    background: rgba(255,255,255,.2); backdrop-filter: blur(4px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); font-size: .7rem; font-weight: 700; color: #fff; white-space: nowrap; }
.stat-badge i { font-size: .95rem; }
.stat-badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff;
    animation: stat-live-pulse 1.6s ease-out infinite; }
@keyframes stat-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.65); } 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.stat-icon { transition: transform .3s ease; }
.stat-card:hover .stat-icon { transform: scale(1.1) rotate(-6deg); }
@media (prefers-reduced-motion: reduce) { .stat-card { animation: none; } .stat-card:hover { transform: none; } .stat-shine { display: none; } .stat-badge--live::before { animation: none; } .stat-card:hover .stat-icon { transform: none; } }

/* ─── صفحهٔ بازدید و آمار (/admin/visits) ─── */
.hsv-hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    padding: 1.05rem 1.35rem;
    background: linear-gradient(135deg, #ffffff 0%, #f4f0ff 55%, #fdeef7 100%);
    border: 1px solid #ece4fb; border-radius: 20px;
    box-shadow: 0 14px 32px -18px rgba(76,29,149,.22); }
.hsv-hero-user { display: flex; align-items: center; gap: .9rem; }
.hsv-hero-avatar { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px;
    background: linear-gradient(135deg, var(--hs-primary), var(--hs-rose));
    box-shadow: 0 12px 22px -8px rgba(124,58,237,.55); }
.hsv-hello { margin: 0; font-size: 1.08rem; font-weight: 800; color: var(--hs-ink); }
.hsv-hero-sub { margin: 2px 0 0; font-size: .78rem; color: #7a8498; }
.hsv-hero-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.hsv-meta-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .85rem; border-radius: 999px;
    background: #fff; border: 1px solid #ece4fb; color: #6b6480; font-size: .8rem;
    box-shadow: 0 6px 16px -10px rgba(76,29,149,.25); }
.hsv-meta-pill i { color: var(--hs-primary); font-size: .95rem; }
.hsv-meta-pill b { color: var(--hs-ink); font-weight: 800; }
.hsv-sec { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 1.9rem 0 .95rem; }
.hsv-sec .ic { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
    background: linear-gradient(135deg, var(--hs-primary), var(--hs-rose));
    box-shadow: 0 9px 18px -7px rgba(124,58,237,.5); }
.hsv-sec.alt .ic { background: linear-gradient(135deg, #38bdf8, #6366f1); box-shadow: 0 9px 18px -7px rgba(99,102,241,.5); }
.hsv-sec h6 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--hs-ink); }
.hsv-sec small { display: block; font-size: .74rem; color: #8a84a0; margin-top: 2px; font-weight: 400; }
.hsv-sec .grow { flex: 1; min-width: 0; }
.hsv-code { direction: ltr; unicode-bidi: embed; display: inline-block; padding: .08rem .55rem; border-radius: 7px;
    background: #f4f0ff; color: #7c3aed; font-size: .72rem; font-weight: 700; }
.hsv-guest { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .6rem; border-radius: 999px;
    background: #f4f2fa; color: #8a84a0; font-size: .74rem; }

/* ─── صفحهٔ دفاتر ازدواج و همسان‌گزینی (/managers) ─── */
.mgr-hero { padding: 4.2rem 1rem 6.6rem; }
.mgr-hero .inner { display: block; text-align: center; }
.mgr-hero h1 { font-size: 2.35rem; }
.mgr-hero .lead { max-width: 640px; margin-inline: auto; }
.mgr-hero .hs-badges { justify-content: center; }

/* کارت فیلتر شناور روی لبهٔ هیرو */
.mgr-filters { padding: 0 1rem; margin-top: -3.6rem; position: relative; z-index: 3; }
.mgr-filters .box { max-width: 1020px; margin: 0 auto; display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center;
    background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
    border: 1px solid #fff; border-radius: 22px; padding: .95rem 1.05rem;
    box-shadow: 0 26px 60px -24px rgba(118,24,78,.4), 0 0 0 6px rgba(255,255,255,.15); }
.mgr-filters .form-select { max-width: 215px; border-radius: 12px; }
.mgr-filters .form-control { max-width: 300px; border-radius: 12px; }
@media (max-width: 640px) { .mgr-filters .form-select, .mgr-filters .form-control, .mgr-filters .ssel { max-width: 100%; flex: 1 1 100%; } }

/* دراپ‌داون جستجوپذیر صفحات light (SearchableSelect) — ظاهر همان form-select */
.ssel { position: relative; width: 100%; }
.mgr-filters .ssel { max-width: 215px; }
.ssel-toggle { display: flex; align-items: center; width: 100%; cursor: pointer; }
.ssel-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.ssel-text.ph { color: var(--bs-secondary-color, #7987a1); }
.ssel-backdrop { position: fixed; inset: 0; z-index: 1050; }
.ssel-panel { position: absolute; inset-inline: 0; top: calc(100% + .3rem); z-index: 1060;
    background: #fff; border: 1px solid var(--default-border, #eae8f1); border-radius: 12px;
    box-shadow: 0 18px 40px -14px rgba(30,40,80,.28); overflow: hidden; }
.ssel-search { width: 100%; border: 0; border-bottom: 1px solid #eef0f6; outline: none;
    padding: .55rem .9rem; font: inherit; background: #fbfcfe; }
.ssel-list { max-height: 15rem; overflow-y: auto; }
.ssel-item { display: block; width: 100%; border: 0; background: none; text-align: right;
    padding: .5rem .9rem; font: inherit; cursor: pointer; }
.ssel-item:hover { background: #f3f5fb; }
.ssel-item.sel { background: rgba(124,58,237,.09); color: #7c3aed; font-weight: 700; }
.ssel-empty { padding: .7rem .9rem; color: #7987a1; font-size: .85rem; }

/* ---------- کمبوباکس‌های تلریک + انتخابگرها — هم‌تراز با تم سایت ----------
   متغیرهای kendo روی body تعریف می‌شوند تا بر :root تم kendo (که بعد از این فایل لود می‌شود) غلبه کنند. */
body {
    --kendo-font-family: var(--default-font-family);
    --kendo-color-primary: #7c3aed;
    --kendo-color-primary-hover: #6d28d9;
    --kendo-color-primary-active: #5b21b6;
    --kendo-color-primary-emphasis: rgba(124,58,237,.34);
    --kendo-color-primary-on-surface: #7c3aed;
    --kendo-color-primary-subtle: #ede9fe;
    --kendo-color-primary-subtle-hover: #ddd6fe;
    --kendo-color-primary-subtle-active: #c4b5fd;
}
body .k-picker-solid,
body .k-input-solid {
    border: 1.5px solid #e3dcf3;
    border-radius: 12px;
    background-color: #fff;
    background-image: none;
    color: var(--hs-ink);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
body .k-picker-solid:hover,
body .k-picker-solid.k-hover {
    border-color: #c9b8ec;
    background-color: #fdfbff;
    background-image: none;
}
body .k-input-solid:hover,
body .k-input-solid.k-hover { border-color: #c9b8ec; }
body .k-picker-solid:focus,
body .k-picker-solid.k-focus,
body .k-picker-solid:focus-within,
body .k-input-solid:focus,
body .k-input-solid.k-focus,
body .k-input-solid:focus-within {
    border-color: var(--hs-primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(124,58,237,.13);
}
body .k-picker-solid .k-input-inner,
body .k-dropdownlist .k-input-inner { font-weight: 600; }
body .k-picker-solid .k-input-button,
body .k-picker-solid .k-button { color: #8b7bb8; background: transparent; background-image: none; border: 0; }
body .k-picker-solid:hover .k-input-button,
body .k-picker-solid:hover .k-button { color: var(--hs-primary); }
body .k-popup {
    border-radius: 14px;
    border-color: #eee6fb;
    box-shadow: 0 18px 42px -14px rgba(30,40,80,.30);
}
body .k-list-item.k-selected,
body .k-selected.k-list-optionlabel,
body .k-selected.k-list-custom-value {
    color: #7c3aed;
    background-color: rgba(124,58,237,.09);
    font-weight: 700;
}
body .k-list-item.k-selected:hover,
body .k-selected.k-list-optionlabel:hover { background-color: rgba(124,58,237,.14); }
body .k-list-item:focus,
body .k-list-item.k-focus { box-shadow: inset 0 0 0 2px rgba(124,58,237,.25); }

/* اسکرول‌بار قابل‌مشاهده برای لیست‌های کمبو — لایت */
body .k-popup .k-list-scroller,
body .k-popup .k-list-content,
body .k-popup .k-virtual-scroller,
.ssel-list {
    scrollbar-width: thin;
    scrollbar-color: #c4b5fd rgba(124,58,237,.07);
}
body .k-popup ::-webkit-scrollbar { width: 9px; }
body .k-popup ::-webkit-scrollbar-track { background: rgba(124,58,237,.07); border-radius: 8px; }
body .k-popup ::-webkit-scrollbar-thumb {
    background: #c4b5fd; border-radius: 8px;
    border: 2px solid transparent; background-clip: padding-box;
}
body .k-popup ::-webkit-scrollbar-thumb:hover { background: #a78bfa; background-clip: padding-box; }
.ssel-list::-webkit-scrollbar { width: 9px; }
.ssel-list::-webkit-scrollbar-track { background: rgba(124,58,237,.07); border-radius: 8px; }
.ssel-list::-webkit-scrollbar-thumb {
    background: #c4b5fd; border-radius: 8px;
    border: 2px solid transparent; background-clip: padding-box;
}
.ssel-list::-webkit-scrollbar-thumb:hover { background: #a78bfa; background-clip: padding-box; }

/* ظاهر یکدست برای selectهای نیتیو (form-select) در صفحات light */
.form-select,
.ssel-toggle {
    border: 1.5px solid #e3dcf3;
    border-radius: 12px;
    color: var(--hs-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-select:focus,
.ssel-toggle:focus {
    border-color: var(--hs-primary);
    box-shadow: 0 0 0 4px rgba(124,58,237,.13);
}
.ssel-panel { border-color: #eee6fb; border-radius: 14px; }
.ssel-search:focus { background: #fff; }

/* تم تیره — همان کمبوباکس‌ها با سطح تیره */
html.mf-dark body .k-picker-solid,
html.mf-dark body .k-input-solid,
html[data-theme-mode="dark"] body .k-picker-solid,
html[data-theme-mode="dark"] body .k-input-solid {
    background-color: #141b34;
    border-color: rgba(148,163,216,.28);
    color: #eef2ff;
}
html.mf-dark body .k-picker-solid:hover,
html.mf-dark body .k-input-solid:hover,
html[data-theme-mode="dark"] body .k-picker-solid:hover,
html[data-theme-mode="dark"] body .k-input-solid:hover {
    background-color: #18203d;
    border-color: rgba(148,163,216,.5);
}
html.mf-dark body .k-popup,
html[data-theme-mode="dark"] body .k-popup {
    background-color: #141b34;
    border-color: rgba(148,163,216,.22);
    box-shadow: 0 18px 42px -12px rgba(0,0,0,.55);
}
html.mf-dark body .k-list,
html.mf-dark body .k-list-container,
html.mf-dark body .k-popup .k-popup-child,
html[data-theme-mode="dark"] body .k-list,
html[data-theme-mode="dark"] body .k-list-container,
html[data-theme-mode="dark"] body .k-popup .k-popup-child {
    background-color: #141b34;
    color: #e7ecfb;
}
html.mf-dark body .k-list-item,
html[data-theme-mode="dark"] body .k-list-item { color: #e7ecfb; }
html.mf-dark body .k-list-item:hover,
html[data-theme-mode="dark"] body .k-list-item:hover {
    color: #f4f6ff;
    background-color: rgba(148,163,216,.12);
}
html.mf-dark body .k-list-item.k-selected,
html.mf-dark body .k-selected.k-list-optionlabel,
html[data-theme-mode="dark"] body .k-list-item.k-selected,
html[data-theme-mode="dark"] body .k-selected.k-list-optionlabel {
    color: #c4b5fd;
    background-color: rgba(129,140,248,.18);
}
/* اسکرول‌بار قابل‌مشاهده برای لیست‌های کمبو — دارک */
html.mf-dark body .k-popup .k-list-scroller,
html.mf-dark body .k-popup .k-list-content,
html.mf-dark body .k-popup .k-virtual-scroller,
html.mf-dark .ssel-list,
html[data-theme-mode="dark"] body .k-popup .k-list-scroller,
html[data-theme-mode="dark"] body .k-popup .k-list-content,
html[data-theme-mode="dark"] body .k-popup .k-virtual-scroller,
html[data-theme-mode="dark"] .ssel-list {
    scrollbar-color: rgba(148,163,216,.45) rgba(148,163,216,.08);
}
html.mf-dark body .k-popup ::-webkit-scrollbar-track,
html.mf-dark .ssel-list::-webkit-scrollbar-track,
html[data-theme-mode="dark"] body .k-popup ::-webkit-scrollbar-track,
html[data-theme-mode="dark"] .ssel-list::-webkit-scrollbar-track {
    background: rgba(148,163,216,.08);
}
html.mf-dark body .k-popup ::-webkit-scrollbar-thumb,
html.mf-dark .ssel-list::-webkit-scrollbar-thumb,
html[data-theme-mode="dark"] body .k-popup ::-webkit-scrollbar-thumb,
html[data-theme-mode="dark"] .ssel-list::-webkit-scrollbar-thumb {
    background: rgba(148,163,216,.45); background-clip: padding-box;
}
html.mf-dark body .k-popup ::-webkit-scrollbar-thumb:hover,
html.mf-dark .ssel-list::-webkit-scrollbar-thumb:hover,
html[data-theme-mode="dark"] body .k-popup ::-webkit-scrollbar-thumb:hover,
html[data-theme-mode="dark"] .ssel-list::-webkit-scrollbar-thumb:hover {
    background: rgba(148,163,216,.65); background-clip: padding-box;
}
html.mf-dark .form-select,
html.mf-dark .ssel-toggle,
html[data-theme-mode="dark"] .form-select,
html[data-theme-mode="dark"] .ssel-toggle {
    background-color: #141b34;
    border-color: rgba(148,163,216,.28);
    color: #eef2ff;
}
html.mf-dark .ssel-panel,
html[data-theme-mode="dark"] .ssel-panel {
    background: #141b34;
    border-color: rgba(148,163,216,.22);
}
html.mf-dark .ssel-search,
html[data-theme-mode="dark"] .ssel-search {
    background: #0d1428;
    color: #eef2ff;
    border-bottom-color: rgba(148,163,216,.15);
}
html.mf-dark .ssel-search:focus,
html[data-theme-mode="dark"] .ssel-search:focus { background: #101833; }
html.mf-dark .ssel-item,
html[data-theme-mode="dark"] .ssel-item { color: #e7ecfb; }
html.mf-dark .ssel-item:hover,
html[data-theme-mode="dark"] .ssel-item:hover { background: rgba(148,163,216,.12); }
html.mf-dark .ssel-item.sel,
html[data-theme-mode="dark"] .ssel-item.sel { background: rgba(129,140,248,.18); color: #c4b5fd; }
html.mf-dark .ssel-text.ph,
html[data-theme-mode="dark"] .ssel-text.ph { color: #8b97bb; }

/* کارت دفتر */
.mgr-card { text-align: center; padding-top: 1.8rem; }
.mgr-logo { position: relative; width: 78px; height: 78px; margin: 0 auto .95rem; border-radius: 50%; padding: 3px;
    background: linear-gradient(135deg, var(--hs-primary), var(--hs-rose) 55%, var(--hs-gold));
    box-shadow: 0 12px 26px -10px rgba(217,70,239,.55); }
.mgr-logo .fb { width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg,#fdf7ff,#fff0f7);
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--hs-primary); }
.mgr-logo img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px);
    border-radius: 50%; object-fit: cover; background: #fff; }

.mgr-type { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700;
    border-radius: 999px; padding: .18rem .75rem; margin-bottom: .55rem;
    background: #f2ecff; color: var(--hs-primary); }
.mgr-card h3 { margin-bottom: .3rem; }
.mgr-desc { font-size: .85rem !important; }
.mgr-loc { font-size: .85rem; color: #6b6480; margin-top: .5rem; }
.mgr-meta { display: flex; justify-content: center; gap: .45rem; flex-wrap: wrap; margin-top: .7rem; }
.mgr-code { font-size: .72rem; font-weight: 700; background: #fdf3d8; color: #8a6d1f; border-radius: 8px; padding: .14rem .6rem; }
.mgr-code.lic { background: #e8f7f0; color: #1f7a54; }
.mgr-stats { display: flex; justify-content: center; gap: 1.1rem; flex-wrap: wrap; margin-top: .75rem; font-size: .84rem; color: #6b6480; }

/* ═══════════ فرم چاپی همسان‌گزینی (/member-form) — برگهٔ A4 ═══════════ */
.mfm-toolbar { display: flex; align-items: center; gap: .7rem; padding: .8rem 1.2rem;
    background: #fff; border-bottom: 1px solid #efeaf8; position: sticky; top: 0; z-index: 20; }
.mfm-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem;
    padding: 1.6rem 1rem 4rem;
    background: linear-gradient(180deg, #e9e5f2, #f3f1f8); min-height: 70vh; }
.mfm-pagelab { display: flex; align-items: center; gap: .4rem; font-size: .78rem;
    font-weight: 700; color: #6d6390; }
.mfm-sheet { width: 200mm; max-width: 100%; background: #fff; color: #1c1633;
    padding: 7mm 7mm 10mm; box-shadow: 0 24px 60px -20px rgba(60,40,120,.4);
    border: 4px double #9a8ec0; border-radius: 6px; font-size: 9.3pt; line-height: 1.55; }
.mfm-bism { text-align: center; font-size: 9.5pt; font-weight: 700; color: #3d2380; margin-bottom: 2px; }
.mfm-verse { text-align: center; font-size: 8pt; color: #8b80b4; letter-spacing: .2px;
    border-bottom: 1px solid #f0ecf8; padding-bottom: 5px; margin-bottom: 8px; }

/* سربرگ: هویت موسسه + عنوان + عکس */
.mfm-head { display: flex; gap: 12px; align-items: stretch; }
.mfm-org { display: flex; gap: 9px; align-items: center; flex: 1 1 0; min-width: 0; }
.mfm-org img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover;
    border: 1px solid #ece7f6; background: #fff; flex: 0 0 auto; }
.mfm-logo-ph { width: 54px; height: 54px; border-radius: 12px; flex: 0 0 auto;
    border: 1px solid #ece7f6; background: #f6f2fd; color: #8f83b8;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.mfm-org-name { font-size: 12.5pt; font-weight: 800; color: #2a1a5e; }
.mfm-org-sub { font-size: 7.6pt; color: #7d749c; line-height: 1.7; }
.mfm-title { flex: 0 0 auto; text-align: center; display: flex; flex-direction: column;
    justify-content: center; padding: 0 .6rem; }
.mfm-title h1 { font-size: 16pt; font-weight: 900; margin: 0; color: #2a1a5e; letter-spacing: -.2px; }
.mfm-title .sub { font-size: 7.8pt; color: #8b80b4; margin-top: 2px; }
.mfm-photo { flex: 0 0 auto; }
.mfm-photo .box { width: 30mm; height: 38mm; border: 1.5px solid #cdc4e4; border-radius: 7px;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    color: #a79cc8; font-size: 7.5pt; text-align: center; background: #faf9fd; }
.mfm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mfm-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px;
    border: 1px solid #ddd5ee; border-radius: 7px; padding: 4px 12px; background: #f8f6fd; }
.mfm-meta span { font-size: 8pt; color: #5d547c; }
.mfm-meta b { font-size: 8.6pt; color: #2a1a5e; }
.mfm-verified { color: #0d9668 !important; font-weight: 700; }

/* سکشن‌های فرم */
.mfm-sec { border: 1px solid #d8d0ec; border-radius: 8px; margin-top: 9px; overflow: hidden;
    page-break-inside: avoid; }
.mfm-sec-t { display: flex; align-items: center; gap: 7px;
    background: linear-gradient(90deg, #f2edfc, #faf8ff); color: #3d2380;
    font-weight: 800; font-size: 9.5pt; padding: 3.5px 11px; border-bottom: 1px solid #e5dff2; }
.mfm-sec-t .no { display: inline-flex; align-items: center; justify-content: center;
    width: 17px; height: 17px; border-radius: 50%; background: #5b3ea8; color: #fff;
    font-size: 7.5pt; font-weight: 800; flex: 0 0 auto;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.mfm-sec-t small { font-weight: 400; color: #8b80b4; font-size: 7.5pt; }

/* گرید سلول‌ها — فاصلهٔ ۱px پس‌زمینه به‌عنوان خط‌کشی یکدست */
.mfm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #e9e3f5; }
.mfm-cell { background: #fff; padding: 5px 10px; min-width: 0; }
.mfm-cell.s2 { grid-column: span 2; }
.mfm-cell.s3 { grid-column: span 3; }
.mfm-cell.s4 { grid-column: 1 / -1; }
.mfm-lb { display: block; font-size: 7.2pt; color: #8a7fb0; font-weight: 600; margin-bottom: 2px; }
.mfm-v { font-size: 9.3pt; font-weight: 600; color: #241d43; }
.mfm-v.mfm-txt { font-weight: 400; line-height: 1.9; white-space: pre-line; }
.mfm-opts { display: flex; flex-wrap: wrap; gap: 4px; }
.mfm-opt { border: 1px solid #d5cde9; border-radius: 5px; padding: 0 8px;
    font-size: 7.8pt; color: #8a80aa; line-height: 1.9; }
.mfm-opt.sel { background: #5b3ea8; border-color: #5b3ea8; color: #fff; font-weight: 700;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* نتایج آزمون */
.mfm-quiz { padding: 7px 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 22px; }
.mfm-qrow { display: flex; align-items: center; gap: 8px; }
.mfm-qlb { font-size: 8pt; color: #4a4170; width: 92px; flex: 0 0 auto; }
.mfm-bar { flex: 1; height: 6px; border-radius: 4px; background: #eee9f8; overflow: hidden; }
.mfm-bar i { display: block; height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, #7c3aed, #b06be0);
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.mfm-qv { font-size: 8pt; color: #2a1a5e; width: 26px; text-align: left; }

/* تعهدنامه و امضا */
.mfm-declare { margin-top: 10px; border: 1px dashed #c9bfe3; border-radius: 8px;
    background: #fbfaff; padding: 7px 12px; font-size: 8.3pt; color: #4a4170; line-height: 1.9; }
.mfm-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: #d8d0ec; border: 1px solid #d8d0ec; border-radius: 8px;
    overflow: hidden; margin-top: 8px; }
.mfm-sign .cell { background: #fff; min-height: 26mm; padding: 7px 11px;
    display: flex; flex-direction: column; }
.mfm-sign .lb { font-size: 7.6pt; color: #8a7fb0; font-weight: 700; }
.mfm-sign .who { font-size: 8.6pt; color: #241d43; margin-top: auto; padding-top: 14px; }
.mfm-trust { text-align: center; font-size: 7.8pt; color: #7d749c; margin-top: 8px; }
.mfm-foot { display: none; }

@media (max-width: 700px) {
    .mfm-sheet { font-size: 8.5pt; }
    .mfm-grid { grid-template-columns: repeat(2, 1fr); }
    .mfm-cell.s2, .mfm-cell.s3 { grid-column: 1 / -1; }
    .mfm-head { flex-wrap: wrap; }
    .mfm-title { order: -1; flex-basis: 100%; }
}

/* چاپ A4 — یک برگهٔ پشت‌و‌رو: صفحهٔ ۱ = رو (سکشن‌های ۱–۴)، صفحهٔ ۲ = پشت */
@page { size: A4 portrait; margin: 8mm 8mm 12mm;
    @bottom-center { content: "صفحهٔ " counter(page) " از " counter(pages);
        font: 8pt Tahoma; color: #999; } }
@media print {
    .mfm-wrap { padding: 0; background: #fff; min-height: 0; display: block; }
    .mfm-pagelab { display: none; }
    .mfm-sheet { width: 100%; box-shadow: none; border-radius: 0; padding: 2mm 3mm;
        min-height: 258mm; font-size: 8.7pt; }
    .mfm-back { break-before: page; display: flex; flex-direction: column; }
    /* بلوک تعهد/امضا همیشه ته برگهٔ پشت می‌چسبد */
    .mfm-back .mfm-declare { margin-top: auto; }
    .mfm-sec, .mfm-sign, .mfm-declare { break-inside: avoid; }
    /* ── فشرده‌سازی برای جا‌شدن هر سمت در یک صفحهٔ A4 ── */
    .mfm-bism { font-size: 8.5pt; margin-bottom: 1px; }
    .mfm-verse { font-size: 7.3pt; padding-bottom: 3px; margin-bottom: 5px; }
    .mfm-head { gap: 9px; }
    .mfm-org img, .mfm-logo-ph { width: 44px; height: 44px; }
    .mfm-org-name { font-size: 11pt; }
    .mfm-org-sub { font-size: 7.2pt; line-height: 1.55; }
    .mfm-title h1 { font-size: 13.5pt; }
    .mfm-title .sub { font-size: 7.4pt; }
    .mfm-photo .box { width: 26mm; height: 31mm; }
    .mfm-meta { margin-top: 5px; padding: 3px 10px; gap: 14px; }
    .mfm-meta span { font-size: 7.6pt; }
    .mfm-meta b { font-size: 8.1pt; }
    .mfm-sec { margin-top: 5px; }
    .mfm-sec-t { font-size: 8.7pt; padding: 2.5px 10px; }
    .mfm-sec-t .no { width: 15px; height: 15px; font-size: 7pt; }
    .mfm-sec-t small { font-size: 7.1pt; }
    .mfm-cell { padding: 3px 9px; }
    .mfm-lb { font-size: 6.8pt; margin-bottom: 1px; }
    .mfm-v { font-size: 8.6pt; }
    .mfm-v.mfm-txt { line-height: 1.75; }
    .mfm-opts { gap: 3px; }
    .mfm-opt { font-size: 7.3pt; line-height: 1.6; padding: 0 6px; }
    .mfm-sheet .crit-groups { gap: 5px; }
    .mfm-sheet .crit { font-size: 7pt; padding: 1px 7px; }
    .mfm-sheet .crit-row { gap: 3px 4px; }
    .mfm-sheet .crit-title { font-size: 7.2pt; margin-bottom: 2px; }
    .mfm-sheet .crit-note-line { font-size: 7.2pt; padding: 3px 9px; }
    .mfm-quiz { padding: 5px 10px; gap: 4px 18px; }
    .mfm-sign { margin-top: 6px; }
    .mfm-sign .cell { min-height: 21mm; padding: 5px 10px; }
    .mfm-declare { margin-top: 7px; padding: 5px 11px; font-size: 7.9pt; line-height: 1.8; }
    .mfm-trust { margin-top: 5px; font-size: 7.3pt; }
    .mfm-critbox { padding: 4px 10px; }
    /* ── سقف روی متن‌های آزاد تا خروجی هرگز از دو صفحه بیشتر نشود ── */
    .mfm-critbox { max-height: 58mm; overflow: hidden; }
    .mfm-v { display: -webkit-box; -webkit-box-orient: vertical;
        -webkit-line-clamp: 4; overflow: hidden; }
    .mfm-v.mfm-txt { -webkit-line-clamp: 10; }
    .mfm-sheet .crit-note-line { display: -webkit-box; -webkit-box-orient: vertical;
        -webkit-line-clamp: 3; overflow: hidden; }
    .mfm-foot { display: block; position: fixed; bottom: 0; left: 0; right: 0;
        font-size: 7.4pt; color: #999; text-align: center; background: #fff;
        border-top: 1px solid #ddd; padding-top: 3px; }
    /* المان‌های شناور شل که در انتهای صفحهٔ چاپ لو می‌رفتند */
    #mfSupWidget, .offcanvas, .pcr-app, .pickr,
    #components-reconnect-modal, .components-reconnect-modal { display: none !important; }
}

/* ─── آیتم فعال سایدبار — تم فقط رنگ متن + نوار باریک لبه می‌گذاشت و تشخیص صفحهٔ جاری سخت بود ─── */
.app-sidebar .side-menu__item.active {
    background: rgba(var(--primary-rgb), .1);
    font-weight: 600;
}
.app-sidebar .side-menu__item.active::before {
    width: 4px;
    border-radius: 4px 0 0 4px;
}
[data-menu-styles="dark"] .app-sidebar .side-menu__item.active,
[data-menu-styles="color"] .app-sidebar .side-menu__item.active,
[data-menu-styles="gradient"] .app-sidebar .side-menu__item.active {
    background: rgba(255, 255, 255, .12);
}

/* ---------- پیوست و پیام صوتی در تیکت/چت ---------- */
.msg-bubble .tk-att-audio { display: block; max-width: 230px; height: 38px; margin-top: .35rem; }
.msg-bubble .tk-att-img { display: block; max-width: 210px; max-height: 170px; border-radius: 10px; margin-top: .35rem; }
.tk-att-file { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem;
    padding: .35rem .7rem; border-radius: 10px; background: rgba(0, 0, 0, .06);
    font-size: .78rem; text-decoration: none; color: inherit; word-break: break-all; }
.msg-bubble.me .tk-att-file { background: rgba(255, 255, 255, .22); color: #fff; }
.tk-att-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .8rem;
    border: 1px dashed rgba(var(--primary-rgb, 124, 58, 237), .5); border-radius: 999px;
    font-size: .8rem; background: rgba(var(--primary-rgb, 124, 58, 237), .06); }
.tk-att-chip audio { height: 30px; max-width: 210px; }
.tk-att-x { border: none; background: none; color: rgb(var(--danger-rgb, 238, 51, 94));
    font-size: 1rem; cursor: pointer; line-height: 1; padding: 0 .1rem; }
.tk-mic-on { color: rgb(var(--danger-rgb, 238, 51, 94)) !important;
    border-color: rgb(var(--danger-rgb, 238, 51, 94)) !important; animation: tkRecPulse 1s infinite; }
.tk-rec { display: flex; align-items: center; gap: .5rem;
    color: rgb(var(--danger-rgb, 238, 51, 94)); font-size: .82rem; margin-bottom: .5rem; }
.tk-rec-dot { width: 10px; height: 10px; border-radius: 50%;
    background: rgb(var(--danger-rgb, 238, 51, 94)); animation: tkRecPulse 1s infinite; }
@keyframes tkRecPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(238, 51, 94, .4); }
    50% { box-shadow: 0 0 0 7px rgba(238, 51, 94, 0); } }

/* ===== کشوی راهنمای صفحه (PageHelpDrawer) ===== */
.hs-help-fab { position: fixed; inset-inline-start: 1.25rem; bottom: 1.25rem; z-index: 80;
    display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.05rem;
    border: none; border-radius: 999px; cursor: pointer;
    background: rgb(var(--primary-rgb, 132, 90, 223)); color: #fff;
    font-family: inherit; font-size: .85rem; font-weight: 600;
    box-shadow: 0 6px 18px rgba(var(--primary-rgb, 132, 90, 223), .45);
    transition: transform .2s, opacity .2s; }
.hs-help-fab:hover { transform: translateY(-2px); }
.hs-help-fab i { font-size: 1.05rem; }
.hs-help-fab.off { opacity: 0; pointer-events: none; transform: scale(.8); }
.hs-help-ov { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 90; }
.hs-help-panel { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 95;
    width: min(430px, 100vw); background: var(--custom-white, #fff); color: var(--default-text-color);
    display: flex; flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 0, 0, .18);
    transform: translateX(-105%); transition: transform .25s ease; }
[dir="rtl"] .hs-help-panel { transform: translateX(105%); }
.hs-help-panel.open { transform: none; }
.hs-help-head { display: flex; align-items: center; justify-content: space-between;
    padding: .9rem 1.1rem; border-bottom: 1px solid var(--default-border); }
.hs-help-head b { font-size: .95rem; }
.hs-help-x { border: none; background: none; font-size: 1.3rem; color: var(--text-muted);
    cursor: pointer; line-height: 1; }
.hs-help-body { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; }
.hs-help-foot { display: flex; gap: .5rem; padding: .8rem 1.1rem;
    border-top: 1px solid var(--default-border); }
.hs-help-item { display: flex; align-items: center; gap: .7rem; width: 100%;
    padding: .65rem .75rem; margin-bottom: .5rem; text-align: start;
    border: 1px solid var(--default-border); border-radius: .6rem;
    background: transparent; color: inherit; text-decoration: none; cursor: pointer; }
.hs-help-item:hover { border-color: rgba(var(--primary-rgb, 132, 90, 223), .5); }
.hs-help-item > i:first-child { font-size: 1.3rem;
    color: rgb(var(--primary-rgb, 132, 90, 223)); }
.hs-help-item span { flex: 1; min-width: 0; }
.hs-help-item b { display: block; font-size: .85rem; }
.hs-help-item small { display: block; font-size: .74rem; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-help-item-go { color: var(--text-muted); }
.hs-help-back { display: inline-flex; align-items: center; gap: .3rem;
    border: none; background: none; padding: 0 0 .6rem; cursor: pointer;
    color: rgb(var(--primary-rgb, 132, 90, 223)); font-size: .8rem; }

/* ═══════════ هیروی فشردهٔ صفحات داخلی سایت (SitePageHero) ═══════════ */
.hs-page-hero {
    position: relative; overflow: hidden; text-align: center;
    padding: 3.4rem 1rem 4.6rem;
    color: #fdeef4;
    background:
        radial-gradient(620px 340px at 88% -16%, rgba(244,114,182,.45), transparent 62%),
        radial-gradient(500px 320px at 5% 118%, rgba(212,175,55,.30), transparent 58%),
        radial-gradient(430px 300px at 96% 92%, rgba(217,70,239,.30), transparent 60%),
        radial-gradient(320px 240px at 10% 4%, rgba(34,211,238,.15), transparent 55%),
        linear-gradient(157deg, #1d0b2e 0%, #3d1050 36%, #7c1d5e 72%, #b03a6b 100%);
}
.hs-page-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background-image: radial-gradient(rgba(255,255,255,.2) 1px, transparent 1.5px);
    background-size: 28px 28px; opacity: .32;
    -webkit-mask-image: radial-gradient(68% 90% at 50% 18%, #000 18%, transparent 82%);
            mask-image: radial-gradient(68% 90% at 50% 18%, #000 18%, transparent 82%);
}
.hs-page-hero .inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.hs-page-hero h1 { font-size: 2.05rem; font-weight: 800; color: #fff8f4; line-height: 1.7;
    margin: .9rem 0 .45rem; text-shadow: 0 3px 22px rgba(0,0,0,.3); }
.hs-page-hero h1 .grad {
    background: linear-gradient(120deg, #ffe3a9 0%, #f9a8d4 38%, #d946ef 70%, #ffe3a9 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: hs-shimmer 8s ease-in-out infinite;
    filter: drop-shadow(0 2px 12px rgba(244,114,182,.4));
}
.hs-page-hero .lead { color: #f4d8e7; font-size: 1rem; line-height: 2; margin: 0 auto; max-width: 640px; }
.hs-page-hero .hs-kicker { margin-bottom: 0; }
.hs-page-hero .actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
.hs-page-hero .hs-btn-primary { background: linear-gradient(135deg, #fb7eb8, #e8448a 55%, #d946ef); box-shadow: 0 12px 30px -10px rgba(232,68,138,.72); }
.hs-page-hero .hs-btn-primary:hover { box-shadow: 0 18px 40px -10px rgba(232,68,138,.82); }
.hs-page-hero .hs-btn-outline { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); color: #fff; backdrop-filter: blur(6px); }
.hs-page-hero .hs-btn-outline:hover { background: rgba(255,255,255,.2); border-color: #ffc2e3; }
.hs-page-hero .hs-btn-gold { box-shadow: 0 12px 28px -10px rgba(212,175,55,.55); }

/* حلقه‌ها و جرقه‌های تزئینی هیروی داخلی */
.hs-ph-deco { position: absolute; border-radius: 50%; border: 1.5px solid rgba(249,168,212,.32);
    pointer-events: none; z-index: 1; }
.hs-ph-deco.d1 { width: 240px; height: 240px; top: -120px; inset-inline-start: -70px; border-style: dashed;
    animation: hs-spin 46s linear infinite; }
.hs-ph-deco.d2 { width: 170px; height: 170px; bottom: -85px; inset-inline-end: 5%;
    border-color: rgba(238,199,95,.3); animation: hs-spin 38s linear infinite reverse; }
.hs-ph-deco.d3 { width: 9px; height: 9px; border: none; top: 26%; inset-inline-end: 16%;
    background: #f9a8d4; box-shadow: 0 0 14px 4px rgba(249,168,212,.55);
    animation: hs-twinkle 3.2s ease-in-out infinite; }
.hs-ph-deco.d4 { width: 6px; height: 6px; border: none; bottom: 22%; inset-inline-start: 14%;
    background: #ffd9a0; box-shadow: 0 0 12px 3px rgba(255,217,160,.55);
    animation: hs-twinkle 3.2s ease-in-out infinite 1.4s; }
@media (max-width: 700px) {
    .hs-page-hero { padding: 2.6rem 1rem 4rem; }
    .hs-page-hero h1 { font-size: 1.55rem; }
    .hs-ph-deco.d2, .hs-ph-deco.d3 { display: none; }
}

/* کارت/محتوای شناور که روی لبهٔ پایینی هیرو می‌نشیند */
.hs-under-hero { padding: 0 1rem 3.6rem; margin-top: -3.4rem; position: relative; z-index: 3; }
.hs-under-hero .inner { margin: 0 auto; }
@media (max-width: 700px) { .hs-under-hero { margin-top: -2.6rem; } }
.hs-under-hero > .inner > .hs-card,
.hs-under-hero .hs-lift {
    border: 1px solid #fff;
    box-shadow: 0 26px 56px -24px rgba(118,24,78,.38), 0 0 0 5px rgba(255,255,255,.14);
}

/* متن‌های طولانی CMS (درباره/قوانین/حریم خصوصی/صفحات آزاد) */
.hs-prose { padding: 1.9rem 2rem; line-height: 2.1; }
@media (max-width: 700px) { .hs-prose { padding: 1.3rem 1.1rem; } }
.hs-prose h4 { color: var(--hs-primary); font-weight: 800; font-size: 1.02rem;
    margin: 1.5rem 0 .45rem; display: flex; align-items: center; gap: .5rem; }
.hs-prose h4:first-child { margin-top: 0; }
.hs-prose h4::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--hs-rose), var(--hs-gold));
    box-shadow: 0 0 0 4px rgba(244,114,182,.14); }
.hs-prose p { color: #57506e; margin-bottom: .95rem; }
.hs-prose p:last-child { margin-bottom: 0; }
.hs-prose b { color: var(--hs-ink); }
.hs-prose a { color: var(--hs-primary); font-weight: 600; }

/* ---------- پرسش‌های متداول — آکاردئون ---------- */
.fq-item { background: #fff; border: 1px solid #f2e3ec; border-radius: 16px; margin-bottom: .8rem;
    overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.fq-item:hover { border-color: #ecc9de; }
.fq-item[open] { border-color: #e9b8d5; box-shadow: 0 14px 34px -18px rgba(142,42,94,.28); }
.fq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .75rem;
    padding: 1rem 1.15rem; font-weight: 700; color: var(--hs-ink); font-size: .98rem; }
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item summary .fq-q-ic { width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--hs-primary);
    background: linear-gradient(135deg, #f6ecff, #ffe8f1); transition: .2s; }
.fq-item[open] summary .fq-q-ic { color: #fff;
    background: linear-gradient(135deg, var(--hs-primary), var(--hs-rose)); }
.fq-item summary .fq-chev { margin-inline-start: auto; color: #b9aecf; font-size: 1.15rem;
    transition: transform .22s ease; flex-shrink: 0; }
.fq-item[open] summary .fq-chev { transform: rotate(180deg); color: var(--hs-primary); }
.fq-item .fq-a { margin: 0; padding: .95rem 1.15rem 1.1rem; color: #6b6480; font-size: .92rem;
    line-height: 2.05; border-top: 1px dashed #f3e4ee; }

/* ---------- راه‌های ارتباط (صفحهٔ تماس) ---------- */
.ctc-row { display: flex; align-items: center; gap: .85rem; padding: .75rem 0;
    border-bottom: 1px dashed #f3e4ee; }
.ctc-row:last-child { border-bottom: 0; }
.ctc-ic { width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 14px -8px rgba(142,42,94,.35); }
.ctc-row:nth-child(1) .ctc-ic { background: linear-gradient(135deg,#ede9fe,#ddd6fe); color: #6d28d9; }
.ctc-row:nth-child(2) .ctc-ic { background: linear-gradient(135deg,#ffe4ee,#fbcfe8); color: #db2777; }
.ctc-row:nth-child(3) .ctc-ic { background: linear-gradient(135deg,#fdf3d8,#fbe7ae); color: #a16207; }
.ctc-row:nth-child(4) .ctc-ic { background: linear-gradient(135deg,#d9f8f2,#bcf0e6); color: #0d7d72; }
.ctc-tx { min-width: 0; }
.ctc-tx b { display: block; font-size: .76rem; color: #8a84a0; font-weight: 600; margin-bottom: .1rem; }
.ctc-tx span { font-weight: 700; color: var(--hs-ink); font-size: .95rem; word-break: break-word; }

/* آیکن قلب داخل پلیس‌هولدر لوگوی دفتر */
.of-logo-ic { width: 58%; height: auto; filter: drop-shadow(0 4px 14px rgba(219,39,119,.45)); }
