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

: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;
}

/* ---------- صفحات عمومی ---------- */
.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: 1fr auto 1fr; 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; }
.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); }
@media (max-width: 900px) { .hs-grid.c3, .hs-grid.c4, .hs-grid.c5 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .hs-grid.c3, .hs-grid.c4, .hs-grid.c2, .hs-grid.c5 { 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 5.5rem; }
.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: fixed; bottom: 0; inset-inline: 0; z-index: 50;
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-top: 1px solid #efeaf9;
    padding: .7rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.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; }

.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 { position: static; background: none; border: none; backdrop-filter: none; padding: 1rem 0 0; }
}

/* ---------- پرسشنامهٔ فرم — مرور پاسخ‌ها (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); }

/* ---------- اعلان ---------- */
.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-kpi { background:#fff; border:1px solid #eee8f8; border-radius:16px; padding:1.2rem 1.4rem; display:flex; align-items:center; gap:1rem; }
.hs-kpi .ic { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:1.3rem; }
.hs-kpi .num { font-size:1.4rem; font-weight:800; color:var(--hs-ink); }
.hs-kpi .lbl { font-size:.8rem; color:#8a84a0; }
.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; }

.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 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 { padding: 5rem 1rem 3rem; text-align: center; color: #fff;
    background: linear-gradient(135deg, #2d1b52, #5b2d8e 55%, #7c3aed);
    background-size: cover; background-position: center; }
.of-hero h1 { font-size: 2rem; font-weight: 800; margin: 1rem 0 .4rem; }
.of-logo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
    border: 4px solid rgba(255,255,255,.85); box-shadow: 0 12px 34px -10px rgba(0,0,0,.45);
    background: #fff; margin: 0 auto; display: block; }
.of-logo-ph { display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.of-meta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; font-size: .95rem; opacity: .95; }
.of-type { background: rgba(255,255,255,.18); border-radius: 999px; padding: .15rem .8rem; }
.of-lic { display: inline-block; margin-top: .9rem; background: rgba(212,175,55,.18);
    border: 1px solid rgba(212,175,55,.55); color: #ffe9a8; border-radius: 999px;
    padding: .3rem 1.1rem; font-size: .9rem; }
.of-slogan { margin: 1rem auto 1.4rem; max-width: 620px; font-size: 1.05rem; line-height: 2; opacity: .95; }
.of-about { color: #4a4458; line-height: 2.2; white-space: pre-line; text-align: justify; }
.of-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.of-gal-item { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid #efeaf9; background: #fff; }
.of-gal-item img { width: 100%; height: 170px; object-fit: cover; display: block; }
.of-gal-item figcaption { font-size: .8rem; color: #6b6480; padding: .5rem .7rem; }
@media (max-width: 800px) { .of-gallery { grid-template-columns: repeat(2,1fr); } }
.of-contact { max-width: 560px; margin: 0 auto; }
.of-row { display: flex; gap: .7rem; align-items: center; padding: .55rem 0;
    border-bottom: 1px dashed #efeaf9; font-size: .95rem; }
.of-row:last-of-type { border-bottom: 0; }
.of-links { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }

/* ─── مینی‌سایت دفتر: منو، سکشن‌ها، صفحات آزاد ─── */
.of-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px); border-bottom: 1px solid #efeaf9; }
.of-nav .inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 1.4rem;
    overflow-x: auto; padding: .7rem 1rem; }
.of-nav a { font-size: .92rem; font-weight: 600; color: #4a4458; text-decoration: none;
    white-space: nowrap; padding: .2rem .1rem; }
.of-nav a:hover { color: var(--hs-primary,#7c3aed); }
.of-hero-sm { padding: 3rem 1rem 2rem; }
.of-logo-sm { width: 84px; height: 84px; }
.of-page { line-height: 2.1; }
.of-page p { margin-bottom: .8rem; }
.of-svcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .of-svcs { grid-template-columns: 1fr; } }
.of-svc { padding: 1rem 1.2rem; }
.of-faq { border: 1px solid #efeaf9; border-radius: 12px; background: #fff;
    padding: .8rem 1.1rem; margin-bottom: .6rem; }
.of-faq summary { cursor: pointer; font-weight: 600; color: var(--hs-ink,#232032); }
.of-faq p { margin: .6rem 0 0; color: #6b6480; line-height: 1.9; font-size: .92rem; }
.of-sec-img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 14px; margin-bottom: 1rem; }
.of-sec-body { line-height: 2.1; color: #4a4458; }
.of-sec-body p { margin-bottom: .8rem; }

/* ─── ویرایشگر سایت دفتر (پنل) ─── */
.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; }
.stat-sub { margin: 0; font-size: .73rem; color: rgba(255,255,255,.85); }
@media (prefers-reduced-motion: reduce) { .stat-card { animation: none; } .stat-card:hover { transform: none; } .stat-shine { display: 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 { max-width: 100%; flex: 1 1 100%; } }

/* کارت دفتر */
.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; }
.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; }
.mgr-type.permanent { background: #f2ecff; color: var(--hs-primary); }
.mgr-type.temporary { background: #ffe9f2; color: #d6336c; }
.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; }
