@font-face { font-display: swap; font-family: iranyekan; font-weight: 400;
    src: url('../fonts/woff/iranyekanwebregular.woff') format('woff'),
            url('../fonts/ttf/iranyekanwebregular.ttf') format('truetype'); }
@font-face { font-display: swap; font-family: iranyekan; font-weight: 700;
    src: url('../fonts/woff/iranyekanwebbold.woff') format('woff'),
            url('../fonts/ttf/iranyekanwebbold.ttf') format('truetype'); }
/* فونت جایگزین هم‌اندازه برای جلوگیری از جهش چیدمان هنگام لود فونت */
@font-face { font-family: "iranyekan-fb"; src: local("Tahoma"), local("Arial"); font-weight: 400;
    size-adjust: 97%; ascent-override: 100%; descent-override: 40%; line-gap-override: 0%; }
@font-face { font-family: "iranyekan-fb"; src: local("Tahoma Bold"), local("Arial Bold"); font-weight: 700;
    size-adjust: 97%; ascent-override: 100%; descent-override: 40%; line-gap-override: 0%; }

:root {
    --ink: #0b1626; --muted: #5b6676; --line: #e6eaf0; --soft: #f5f7fa; --bg: #fff;
    --brand: #1478d0; --brand-dark: #0d5fae; --brand-soft: rgba(20,120,208,.10); --ok: #12a150;
    /* رنگ ثابت برای پس‌زمینه دکمه‌ها و باکس‌های پر (متن سفید روی آن‌ها در هر دو تم خوانا بماند) */
    --fill: #1478d0; --fill-dark: #0d5fae;
    --pan: #0b1626; --pan-ink: #eef2f7; --pan-muted: #9fb0c4; --pan-line: rgba(255,255,255,.14);
    --foot: #0b1626; --foot-ink: #eef2f7; --foot-muted: #93a0b2; --foot-line: rgba(255,255,255,.12);
    --r: 14px; --shadow: 0 20px 40px -24px rgba(11,22,38,.25);
}
@media (prefers-color-scheme: dark) {
    :root { --ink: #eef2f7; --muted: #9aa6b6; --line: #232d3b; --soft: #111a26; --bg: #0a111a;
        --brand: #4aa3f0; --brand-dark: #78baf5; --brand-soft: rgba(74,163,240,.14); --ok: #3ccf7a; --shadow: 0 20px 40px -24px #000;
        --foot: #060b12; --pan: #111a26; }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: iranyekan, "iranyekan-fb", Tahoma, sans-serif;
    font-size: 16px; line-height: 1.9; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
html.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.tel { direction: ltr; unicode-bidi: isolate; display: inline-block; font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding-inline: 28px;
    border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn svg.i { width: 18px; height: 18px; stroke-width: 2; transition: transform .2s; }
.btn-primary { background: var(--fill); color: #fff; }
.btn-primary:hover { background: var(--fill-dark); box-shadow: 0 10px 24px -12px var(--fill); }
.btn-primary:hover svg.i { transform: translateX(-3px); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-outline { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn:active { transform: scale(.98); }
.btn-lg { height: 56px; padding-inline: 36px; font-size: 16px; }
.btn-sm { height: 40px; padding-inline: 20px; font-size: 14px; }

/* Header (not fixed) */
.site-header { position: relative; z-index: 40; background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; height: 76px; gap: 28px; }
.logo { display: block; width: 128px; height: 32px; flex-shrink: 0;
    background: url('../images/logo-500-122.png') no-repeat center / contain; }
.nav { display: flex; gap: 6px; margin-inline-end: auto; }
.nav a:not(.btn) { padding: 6px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; transition: color .2s, background .2s; }
.nav a:not(.btn):hover { color: var(--ink); background: var(--soft); }
.nav .nav-cta { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-inline-end: -10px; background: none; border: 0; color: var(--ink); cursor: pointer; place-items: center; }
.menu-toggle .x { display: none; }
html.menu-open .menu-toggle .bars { display: none; }
html.menu-open .menu-toggle .x { display: block; }

/* Hero */
.hero { min-height: calc(100vh - 76px); min-height: calc(100dvh - 76px);
    display: flex; flex-direction: column; justify-content: center; gap: 40px;
    text-align: center; padding-block: 48px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.35; font-weight: 700; max-width: 13em; margin-inline: auto;
    text-wrap: balance;
    color: var(--brand); /* fallback */
    background: linear-gradient(90deg, var(--brand), #ffffff, var(--brand), var(--brand-dark));
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGradient 6s ease-in-out infinite; }
@keyframes titleGradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero .lead { margin: 18px auto 0; font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); max-width: 30em; }
.hero .actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; }
.help { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
    padding: 8px 18px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 14px; }
.help svg.i { width: 18px; height: 18px; color: var(--brand); }
.help a { color: var(--ink); }
.help a:hover { color: var(--brand); }
@media (min-width: 901px) and (max-height: 860px) {
    .hero { gap: 48px; }
    .hero h1 { font-size: 46px; }
    .hero .lead { margin-top: 12px; font-size: 18px; }
    .hero .actions { margin-top: 24px; }
    .hero .btn-lg { height: 52px; }
    .help { margin-top: 16px; }
}

/* Trust strip */
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 22px 24px; text-align: start; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--line); }

a.trust-item { position: relative; cursor: pointer; transition: background .2s; }
a.trust-item:hover { background: var(--soft); }
a.trust-item:hover b { color: var(--brand); }
.trust-item .view { position: absolute; top: 10px; inset-inline-end: 14px; display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; line-height: 1.4; color: var(--muted); transition: color .2s; }
.trust-item .view svg.i { width: 14px; height: 14px; stroke-width: 2; color: currentColor; transition: transform .2s; }
a.trust-item:hover .view { color: var(--brand); }

.trust-item svg.i { color: var(--brand); width: 30px; height: 30px; stroke-width: 1.5; }
.trust-item b { display: block; line-height: 1.5; font-size: 15px; }
.trust-item span { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section#start { padding-block: 64px; }
.section.tight { padding-top: 0; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 72px; }
.feature { display: flex; gap: 20px; }
.feature .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.feature h3 { font-size: 19px; font-weight: 700; line-height: 1.6; }
.feature p { margin-top: 6px; color: var(--muted); }

/* Two audiences */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { border-radius: 28px; padding: clamp(28px, 4.5vw, 48px); display: flex; flex-direction: column; }
.panel h2 { font-size: clamp(22px, 2.8vw, 28px); line-height: 1.55; font-weight: 700; }
.panel > p { margin-top: 12px; }
.panel-owner { background: var(--soft); }
.panel-owner > p { color: var(--muted); }
.checks { margin-top: 24px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg.i { width: 22px; height: 22px; margin-top: 4px; color: var(--ok); stroke-width: 2.2; }
.panel-foot { margin-top: auto; padding-top: 32px; }
.panel-dev { background: var(--pan); color: var(--pan-ink); border: 1px solid var(--pan-line); }
.panel-dev > p { color: var(--pan-muted); }
.devlinks { margin-top: 24px; display: grid; gap: 10px; }
.devlinks a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border: 1px solid var(--pan-line); border-radius: 16px; transition: background .2s, border-color .2s; }
.devlinks a:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.3); }
.devlinks b { display: block; line-height: 1.6; }
.devlinks span { display: block; font-size: 13px; line-height: 1.7; color: var(--pan-muted); }
.devlinks svg.i { width: 18px; height: 18px; }
.devlinks a.hl { background: var(--fill); border-color: transparent; color: #fff; margin-top: 8px; }
.devlinks a.hl:hover { background: var(--fill-dark); }
.devlinks a.hl span { color: rgba(255,255,255,.92); }

/* Final CTA */
.cta { padding-bottom: clamp(64px, 9vw, 112px); }
.cta-box { background: var(--fill); color: #fff; border-radius: 28px; padding: clamp(36px, 6vw, 64px);
    display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: center; }
.cta-box h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; line-height: 1.55; }
.cta-box p { margin-top: 10px; color: rgba(255,255,255,.92); max-width: 30em; }
.cta-box .actions { display: flex; flex-direction: column; gap: 12px; min-width: 240px; }
.cta-box .btn-light { background: #fff; color: #0d5fae; }
.cta-box .btn-light:hover { background: #eef5fc; }
.cta-box .btn-line { border-color: rgba(255,255,255,.55); color: #fff; }
.cta-box .btn-line:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.cta-phone { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.25); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 15px; }
.cta-phone svg.i { width: 20px; height: 20px; }
.cta-phone a { color: #fff; font-size: 18px; }

/* Footer */
.site-footer { background: var(--foot); color: var(--foot-ink); padding-top: 64px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-grid h3 { margin-bottom: 14px; font-size: 15px; font-weight: 700; color: var(--foot-ink); }
.footer-grid li a { display: block; padding-block: 5px; color: var(--foot-muted); transition: color .2s; }
.footer-grid li a:hover { color: #fff; }
.site-footer .logo { filter: brightness(0) invert(1); }
.footer-brand p { color: var(--foot-muted); margin-top: 16px; max-width: 26em; }
.footer-contact {margin-top: 20px; padding: 16px 20px; background: rgba(255, 255, 255, .08); border-radius: 16px; display: flex; gap: 14px; align-items: center;}
.footer-contact svg.i { color: #fff; width: 28px; height: 28px; stroke-width: 1.8;
    padding: 10px; box-sizing: content-box; border-radius: 50%; background:  #0b1626; }
.footer-contact small { display: block; color: var(--foot-ink); font-size: 13px; line-height: 1.6; opacity: .85; }
.footer-phone { direction: ltr; unicode-bidi: isolate; display: inline-block; font-weight: 700;
    font-size: 22px; color: #fff; line-height: 1.5; letter-spacing: .5px; }
.footer-trust { display: inline-block; background: #fff; padding: 6px; border-radius: 12px; line-height: 0; }
.footer-trust img { width: 72px; height: auto; }
.fb-start { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { padding-block: 22px; border-top: 1px solid var(--foot-line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; color: var(--foot-muted); font-size: 13px; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; height: 38px; padding-inline: 16px; color: var(--foot-ink); font-size: 14px; transition: background .2s, border-color .2s; }
.copyright { direction: ltr; }

/* Mobile sticky CTA */
.sticky-cta { display: none; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .trust-bar { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(3) { border-inline-start: 0; }
    .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
    .features { gap: 40px 40px; }
    .split { grid-template-columns: 1fr; }
    .cta-box { grid-template-columns: 1fr; }
    .cta-box .actions { flex-direction: row; min-width: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .hero { min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); padding-block: 40px 48px; }
    .nav { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; gap: 0; margin: 0; background: var(--bg);
        padding: 96px 24px calc(24px + env(safe-area-inset-bottom)); height: 100vh; height: 100dvh; overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
    html.menu-open .nav { opacity: 1; visibility: visible; transform: none; }
    .nav a:not(.btn) { padding: 16px 4px; font-size: 22px; font-weight: 700; color: var(--ink); border-radius: 0; background: none; }
    .nav a:not(.btn):hover { background: none; }
    .nav .nav-cta { display: inline-flex; margin-top: auto; width: 100%; font-size: 16px; }
    .menu-toggle { display: grid; position: relative; z-index: 40; }
    .site-header .wrap { height: 64px; gap: 12px; padding-inline: 20px; }
    .site-header .btn-sm { margin-inline-end: auto; }
    .logo { width: 108px; position: relative; z-index: 40; }
}
@media (max-width: 640px) {
    .wrap { padding-inline: 20px; }
    .hero .actions, .cta-box .actions { flex-direction: column; }
    .hero .btn, .cta-box .btn, .panel .btn { width: 100%; height: 54px; }
    .hero .actions { margin-top: 32px; }
    .trust-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 16px; }
    .trust-item b { font-size: 14px; }
    .features { grid-template-columns: 1fr; gap: 28px; }
    .feature { gap: 16px; }
    .feature .ic { width: 46px; height: 46px; border-radius: 14px; }
    .panel, .cta-box { border-radius: 24px; }
    .footer-grid { padding-bottom: 32px; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
    .footer-brand .logo { margin-inline: auto; }
    .footer-brand p { margin-inline: auto; }
    .footer-contact { width: 100%; max-width: 360px; justify-content: center; }
    .footer-bottom { flex-direction: column-reverse; align-items: center; text-align: center; gap: 20px; }
    .fb-start { align-items: center; width: 100%; }
    .social { justify-content: center; }
    .social a { height: 44px; padding-inline: 20px; font-size: 15px; }
    .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .sticky-cta { display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 35; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
        background: var(--bg);
        background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
        transform: translateY(110%); visibility: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility .35s; }
    .sticky-cta.show { transform: none; visibility: visible; }
    .sticky-cta .btn { width: 100%; height: 52px; }
    html.menu-open .sticky-cta { transform: translateY(110%); visibility: hidden; }
}

/*affliate page*/
/* ==========================================================
   Affiliate page
   به انتهای <style> هدر اضافه کنید (نسخه‌های قبلیِ af- را اول حذف کنید).
   متغیرهای سایت: --ink --muted --line --soft --bg --brand --brand-soft --fill --pan --pan-ink --pan-muted --shadow
   ========================================================== */

/* همه بخش‌ها یک ریتم عمودی دارند */
.af-sec { padding-block: clamp(48px, 7vw, 88px); }
.af-sec-h { margin-bottom: clamp(24px, 3.5vw, 36px); }
.af-sec-h h2 { font-size: clamp(22px, 2.8vw, 28px); line-height: 1.5; font-weight: 700; }
.af-sec-h p { margin-top: 6px; color: var(--muted); }

/* Hero */
.af-hero { position: relative; overflow: hidden; }
.af-hero::before { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 70%; pointer-events: none;
    background: radial-gradient(closest-side, var(--brand-soft), transparent); }
.af-hero .wrap { position: relative; display: grid; grid-template-columns: 1fr minmax(360px, 440px); gap: clamp(32px, 6vw, 80px); align-items: center;
    padding-block: clamp(40px, 7vw, 88px); }
.af-eyebrow { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 700; color: var(--brand); }
.af-hero h1 { font-size: clamp(24px, 4.4vw, 46px); line-height: 1.4; font-weight: 700; text-wrap: balance; }
.af-hero .lead { margin-top: 16px; max-width: 28em; color: var(--muted); }
.af-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.af-call { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.af-call svg.i { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); stroke-width: 1.8; }
.af-call span { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); }
.af-call b { display: block; font-size: 17px; line-height: 1.5; color: var(--ink); transition: color .2s; }
.af-call:hover b { color: var(--brand); }

/* Earnings card */
.af-card { padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: 24px; background: var(--bg); box-shadow: var(--shadow); }
.af-out small { display: block; font-size: 14px; color: var(--muted); }
.af-out output#afProfit { display: block; font-size: clamp(30px, 4vw, 38px); line-height: 1.5; font-weight: 700; color: var(--brand); }
.af-out p { font-size: 13px; color: var(--muted); }
.af-fields { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 22px; }
.af-field > label, .af-field > .lbl { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.af-field output { font-weight: 700; color: var(--ink); }
.af-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; margin: 14px 0 0; border-radius: 6px; outline: none; cursor: pointer;
    --p: 50%; background: linear-gradient(to left, var(--fill) var(--p), var(--line) var(--p)); }
.af-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--fill); box-shadow: 0 4px 10px -2px rgba(11,22,38,.35); }
.af-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--fill); box-shadow: 0 4px 10px -2px rgba(11,22,38,.35); }
.af-range:focus-visible { outline: 2px solid var(--brand); outline-offset: 8px; }
.af-seg { margin-top: 10px; display: flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--soft); }
.af-seg input { position: absolute; opacity: 0; pointer-events: none; }
.af-seg label { flex: 1; display: flex; align-items: center; justify-content: center; padding: 6px 4px; border-radius: 8px; font-size: 13px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.af-seg label:hover { color: var(--ink); }
.af-seg input:checked + label { background: var(--bg); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(11,22,38,.18); }
.af-seg input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 1px; }

/* Benefits: یک نوار سه‌قسمتی با خطوط جداکننده */
.af-benefits { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.af-benefit { padding: 28px; }
.af-benefit + .af-benefit { border-inline-start: 1px solid var(--line); }
.af-benefit .ic { width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.af-benefit h3 { font-size: 17px; font-weight: 700; line-height: 1.7; }
.af-benefit p { margin-top: 2px; font-size: 15px; color: var(--muted); }

/* Tiers: جدول */
.af-table-wrap { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.af-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.af-table th, .af-table td { padding: 16px 24px; text-align: start; line-height: 1.7; }
.af-table thead th { background: var(--soft); font-size: 13px; font-weight: 400; color: var(--muted); }
.af-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.af-table tbody th { font-weight: 700; direction: ltr; text-align: right; }
.af-table .pct { font-weight: 700; color: var(--brand); }
.af-table td { color: var(--muted); }
.af-table td.pct { color: var(--brand); }

/* End */
.af-end { margin-bottom: clamp(48px, 7vw, 88px); padding: clamp(28px, 5vw, 52px); border-radius: 28px; background: var(--pan); color: var(--pan-ink);
    background-image: radial-gradient(60% 120% at 0% 100%, rgba(74,163,240,.22), transparent 70%);
    display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.af-end h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.5; font-weight: 700; color: #fff; }
.af-end p { margin-top: 4px; color: var(--pan-muted); font-size: 15px; }
.af-end p a { color: #fff; }
.af-end .btn-light { background: #fff; color: #0d5fae; }
.af-end .btn-light:hover { background: #eef5fc; }

@media (max-width: 900px) {
    .af-hero .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .af-benefits { grid-template-columns: 1fr; }
    .af-benefit { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
    .af-benefit + .af-benefit { border-inline-start: 0; border-top: 1px solid var(--line); }
    .af-benefit .ic { margin-bottom: 0; flex-shrink: 0; }
    /* جدول به کارت‌های عمودی تبدیل می‌شود: مستقل از عرض صفحه و فونت، هیچ‌وقت سرریز نمی‌کند */
    .af-table, .af-table tbody, .af-table tr, .af-table th, .af-table td { display: block; }
    .af-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .af-table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 18px; }
    .af-table tbody tr + tr { border-top: 1px solid var(--line); }
    .af-table tbody tr + tr > * { border-top: 0; }
    .af-table th, .af-table td { padding: 0; }
    .af-table tbody th { font-size: 16px; }
    .af-table td.pct { grid-column: 2; grid-row: 1; font-size: 16px; text-align: end; }
    .af-table td:not(.pct) { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink); font-weight: 700; }
    .af-table td.pct::after { content: " از کارمزد"; font-size: 12px; font-weight: 400; color: var(--muted); }
    .af-table td:not(.pct)::before { content: attr(data-label); font-weight: 400; color: var(--muted); }
}
@media (max-width: 640px) {
    .af-hero .btn, .af-end .btn { width: 100%; height: 54px; }
    .af-actions { flex-direction: column; align-items: stretch; }
    .af-call { justify-content: center; }
    .af-card { border-radius: 20px; }
}
/*pricing*/
/* ==========================================================
   Pricing — فقط همین چند خط را به انتهای affiliate.css (یا <style> هدر) اضافه کنید.
   بقیه استایل صفحه از کلاس‌های af- موجود می‌آید.
   ========================================================== */

/* کارمزد و سقف، کنار هم */
.pr-stats { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pr-stats b { display: block; font-size: clamp(26px, 3.4vw, 32px); line-height: 1.5; font-weight: 700; color: var(--brand); }
.pr-stats b small { display: inline; font-size: 14px; font-weight: 400; color: var(--muted); }
.pr-stats span { display: block; font-size: 13px; color: var(--muted); }

/* نتیجه */
.pr-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--soft); font-size: 14px; color: var(--muted); }
.pr-row output { font-size: 17px; font-weight: 700; color: var(--ink); }
.pr-hint { font-size: 13px; color: #1378d0; }

/* تراکنش زیاد، تعرفه توافقی */
.pr-deal { padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line); border-radius: 24px; background: var(--soft);
    display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.pr-deal h2 { font-size: clamp(20px, 2.6vw, 24px); line-height: 1.6; font-weight: 700; }
.pr-deal p { margin-top: 2px; max-width: 32em; color: var(--muted); }
.pr-deal .btn { background: var(--bg); }
.pr-deal .btn:hover { border-color: var(--muted); }
@media (max-width: 640px) {
    .pr-deal .btn { width: 100%; height: 54px; }
}
/*webservice*/
/* ==========================================================
   Webservice docs — روی کلاس‌های موجود صفحه استایل می‌دهد (HTML محتوا عوض نمی‌شود)
   به انتهای <style> هدر اضافه کنید.
   متغیرهای سایت: --ink --muted --line --soft --bg --brand --brand-soft --fill --pan --pan-ink --pan-muted --pan-line
   ========================================================== */

.webservice-container { max-width: 1120px; margin-inline: auto; padding: 0 24px clamp(56px, 8vw, 96px); }

/* Page header */
.ws-head { position: relative; padding-block: clamp(36px, 6vw, 72px) clamp(32px, 5vw, 56px); }
.ws-head::before { content: ""; position: absolute; z-index: -1; inset: -40px 0; pointer-events: none;
    background: radial-gradient(closest-side at 78% 45%, var(--brand-soft), transparent); }
.ws-head span { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 700; color: var(--brand); }
.ws-head h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.35; font-weight: 700; }
.ws-head p { margin-top: 14px; max-width: 34em; font-size: clamp(16px, 1.9vw, 18px); color: var(--muted); }

/* Layout */
.webservice-row { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.webservice-left { min-width: 0; }

/* Sidebar */
.webservice-right, .webservice-right ul { list-style: none; margin: 0; padding: 0; }
.webservice-right { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--soft); }
.webservice-right > li + li { margin-top: 24px; }
.webservice-category { display: block; margin-bottom: 6px; padding-inline: 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); direction: ltr; text-align: right; }
.webservice-right ul a { display: block; }
.webservice-right ul li { padding: 7px 10px; border-radius: 10px; font-size: 14px; line-height: 1.8; color: var(--muted); transition: color .2s, background .2s, box-shadow .2s; }
.webservice-right ul a:hover li { color: var(--ink); }
.webservice-right ul a.active li { color: var(--brand); background: var(--bg); font-weight: 700; box-shadow: 0 1px 3px rgba(11,22,38,.10); }

/* Headings: برچسب گروه (REST / SOAP) در یک خط جدا بالای عنوان */
.webservice-left h2 { margin: 64px 0 0; padding-top: 48px; border-top: 1px solid var(--line); font-size: clamp(24px, 3vw, 30px); line-height: 1.45; font-weight: 700; }
.webservice-left > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.webservice-left h2::before { content: "REST API"; display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; line-height: 1.6; color: var(--brand); direction: ltr; text-align: right; }
.webservice-left h2[id^="soap-"]::before { content: "SOAP API"; color: var(--muted); }
.webservice-left h2.ws-plain::before { content: none; }

.webservice-left section { margin-top: 20px; min-width: 0; }
.webservice-left section > * + * { margin-top: 18px; }
.webservice-left section > ul { padding-inline-start: 20px; list-style: disc; color: var(--muted); }
.webservice-left section > p { color: var(--muted); }

/* Address */
.webservice-address { padding: 14px 18px; border-left: 3px solid var(--brand); border-radius: 4px 12px 12px 4px; background: var(--soft); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, iranyekan, Tahoma, monospace; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; direction: ltr; text-align: left; }

/* Description / notes */
.webservice-description { padding: 14px 18px; border-radius: 12px; background: var(--brand-soft); font-size: 15px; }
.webservice-description h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.webservice-description ul { margin: 8px 0 0; padding-inline-start: 20px; list-style: disc; }
.webservice-description p { margin-top: 8px; }

/* Parameters table */
.webservice-left table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 14px; }
.webservice-left td { padding: 14px 18px; text-align: start; line-height: 1.8; vertical-align: top; }
.webservice-left thead td { background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700; }
.webservice-left tbody tr + tr td { border-top: 1px solid var(--line); }
.webservice-left tbody tr { transition: background .15s; }
.webservice-left tbody tr:hover { background: var(--soft); }
.webservice-left tbody td:nth-child(1) { direction: ltr; text-align: right; white-space: nowrap; }
.webservice-left tbody td:nth-child(2) { white-space: nowrap; }
.webservice-left tbody td:nth-child(3) { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--muted); direction: ltr; text-align: right; }
.webservice-left tbody td:nth-child(4) { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, iranyekan, Tahoma, monospace; font-size: 13px; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.ws-param { padding: 2px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; font-weight: 700; }
.ws-badge { display: inline-block; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 22px; }
.ws-badge.req { background: rgba(229,72,77,.10); color: #d6393f; }
.ws-badge.opt { background: var(--soft); color: var(--muted); border: 1px solid var(--line); line-height: 20px; }

/* Code blocks */
.codes { border-radius: 16px; background: var(--pan); border: 1px solid var(--pan-line); overflow: hidden; box-shadow: 0 24px 48px -28px rgba(11,22,38,.55); }
.codes-bar { display: flex; align-items: center; direction: ltr; border-bottom: 1px solid var(--pan-line); }
.webservice_code_types { display: flex; gap: 2px; margin: 0; padding: 8px; list-style: none; overflow-x: auto; direction: ltr; scrollbar-width: thin; }
.codes-bar .webservice_code_types { flex: 1; min-width: 0; }
.codes > .webservice_code_types { border-bottom: 1px solid var(--pan-line); }
.b-w-c { flex-shrink: 0; padding: 4px 11px; border-radius: 8px; font-size: 13px; line-height: 1.8; color: var(--pan-muted); cursor: pointer; user-select: none; transition: background .2s, color .2s; }
.b-w-c:hover { color: #fff; }
.b-w-c.active { background: rgba(255,255,255,.12); color: #fff; font-weight: 700; }
.b-w-c:focus-visible { outline: 2px solid #4aa3f0; outline-offset: -2px; }
.codes-copy { flex-shrink: 0; margin-inline: 4px 10px; height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: var(--pan-ink); font: inherit; font-size: 13px; cursor: pointer; transition: background .2s, color .2s; }
.codes-copy:hover { background: rgba(255,255,255,.16); }
.codes-copy:focus-visible { outline: 2px solid #4aa3f0; outline-offset: 2px; }
.codes-copy.done { background: rgba(60,207,122,.18); color: #7fe3aa; }

.code-textarea, .code-pre { display: block; width: 100%; height: 240px; max-height: 520px; margin: 0; padding: 18px 22px; border: 0; outline: 0; resize: none; background: transparent; color: var(--pan-ink);
    font: 13px/1.85 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; direction: ltr; text-align: left; white-space: pre; overflow: auto; tab-size: 4; }
.code-pre { height: auto; }
.code-pre code { font: inherit; }
.js .code-textarea, .js .code-pre { display: none; }
.js .codes:not(.has-pre) .code-textarea.is-active { display: block; }
.js .code-pre.is-active { display: block; }
/* رنگ‌بندی کد */
.t-c { color: #6f7f97; font-style: italic; }
.t-s { color: #8ee0a6; }
.t-n { color: #ffc277; }
.t-k { color: #6cb4ff; }
.t-l { color: #ff9ac1; }

/* Overview */
.ws-overview > p { max-width: 40em; color: var(--muted); }
.ws-steps { margin: 0; padding: 0; list-style: none; counter-reset: ws; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ws-steps li { counter-increment: ws; padding: 22px 20px; }
.ws-steps li + li { border-inline-start: 1px solid var(--line); }
.ws-steps li::before { content: counter(ws, persian); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%; background: var(--fill); color: #fff; font-size: 14px; font-weight: 700; }
.ws-steps a { display: block; font-weight: 700; line-height: 1.7; transition: color .2s; }
.ws-steps a:hover { color: var(--brand); }
.ws-steps span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.ws-facts { margin: 0; padding: 20px 22px; border-radius: 16px; background: var(--soft); display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; }
.ws-facts > div:last-child { grid-column: 1 / -1; }
.ws-facts dt { font-size: 13px; color: var(--muted); }
.ws-facts dd { margin: 0; font-size: 15px; line-height: 1.9; }
.ws-overview code { padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }

/* Tablet / mobile */
@media (max-width: 900px) {
    .webservice-row { display: block; }
    /* نوار چسبان: فقط منوی گروه جاری را نشان می‌دهد */
    .webservice-right { position: sticky; top: 0; z-index: 20; max-height: none; overflow: visible; margin: 0 -24px 24px; padding: 10px 24px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--bg); }
    .webservice-right > li { display: none; align-items: center; gap: 12px; min-width: 0; }
    .webservice-right > li + li { margin-top: 0; }
    .webservice-right:not([data-group]) > li:nth-child(1),
    .webservice-right[data-group="start"] > li:nth-child(1),
    .webservice-right[data-group="rest"] > li:nth-child(2),
    .webservice-right[data-group="soap"] > li:nth-child(3) { display: flex; }
    .webservice-category { flex-shrink: 0; margin: 0; padding-inline: 0; }
    .webservice-right > li > ul { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
    .webservice-right > li > ul::-webkit-scrollbar { display: none; }
    .webservice-right ul a { flex-shrink: 0; }
    .webservice-right ul li { white-space: nowrap; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; }
    .webservice-right ul a.active li { border-color: transparent; background: var(--brand-soft); box-shadow: none; }
    .webservice-left h2 { scroll-margin-top: 24px; }
    .ws-steps { grid-template-columns: 1fr; }
    .ws-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; align-items: start; }
    .ws-steps li::before { grid-row: 1 / span 2; margin-bottom: 0; }
    .ws-steps a, .ws-steps span { grid-column: 2; }
    .ws-steps li + li { border-inline-start: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
    .webservice-container { padding-inline: 20px; }
    .webservice-right { margin-inline: -20px; padding-inline: 20px; }
    /* جدول پارامترها: هر ردیف یک کارت */
    .webservice-left table, .webservice-left tbody, .webservice-left tr, .webservice-left td { display: block; }
    .webservice-left table { border: 0; border-radius: 0; overflow: visible; }
    .webservice-left thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .webservice-left tbody tr { padding: 10px 16px; border: 1px solid var(--line); border-radius: 14px; }
    .webservice-left tbody tr + tr { margin-top: 10px; }
    .webservice-left tbody tr + tr td { border-top: 0; }
    .webservice-left tbody td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 0; overflow-wrap: anywhere; }
    .webservice-left tbody td:nth-child(n) { direction: rtl; unicode-bidi: normal; text-align: start; white-space: normal; }
    .webservice-left tbody td::before { content: attr(data-label); flex-shrink: 0; font-family: inherit; font-weight: 400; font-size: 13px; color: var(--muted); }
        .code-textarea, .code-pre { padding: 16px; font-size: 12.5px; }
    .ws-facts { grid-template-columns: 1fr; }
}
/*blog*/
/* ==========================================================
   Blog — لیست مطالب + صفحهٔ مطلب
   به انتهای <style> هدر اضافه کنید.
   متغیرهای سایت: --ink --muted --line --soft --bg --brand --brand-soft --fill --pan --pan-ink --pan-muted --pan-line --shadow
   ========================================================== */

.blog-page { padding-bottom: clamp(56px, 8vw, 96px); }

/* ---------- لیست مطالب ---------- */
.blog-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); align-items: start; padding-top: clamp(32px, 5vw, 64px); }
.blog-side { position: sticky; top: 24px; display: grid; gap: 14px; }
.blog-search input { width: 100%; height: 46px; padding-inline: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color .2s; -webkit-appearance: none; appearance: none; }
.blog-search input::placeholder { color: var(--muted); }
.blog-search input:focus { border-color: var(--brand); }
.blog-cats { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--soft); }
.blog-cats-title { padding: 2px 12px 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.blog-cats a { display: block; padding: 7px 12px; border-radius: 10px; font-size: 14px; line-height: 1.8; color: var(--muted); transition: color .2s, background .2s, box-shadow .2s; }
.blog-cats a:hover { color: var(--ink); }
.blog-cats a.is-child { margin-inline-start: 14px; font-size: 13px; }
.blog-cats a.is-active { background: var(--bg); color: var(--brand); font-weight: 700; box-shadow: 0 1px 3px rgba(11,22,38,.10); }
.blog-head { padding-bottom: 24px; }
.blog-head h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.4; font-weight: 700; }
.blog-note { margin-bottom: 20px; }

.blog-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.blog-card { position: relative; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.blog-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card header { flex: 1; display: flex; flex-direction: column; }
.blog-card-img { order: -1; aspect-ratio: 2 / 1; background: var(--soft); overflow: hidden; }
.blog-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card h2 { padding: 18px 22px 0; font-size: 17px; line-height: 1.8; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card h2 a::after { content: ""; position: absolute; inset: 0; }   /* کل کارت قابل کلیک می‌شود */
.blog-card footer { padding: 12px 22px 20px; }
.blog-more { font-size: 14px; font-weight: 700; color: var(--brand); }
.blog-more::after { content: "←"; display: inline-block; margin-inline-start: 6px; transition: transform .2s; }
.blog-card:hover .blog-more::after { transform: translateX(-3px); }

.blog-paging { margin-top: clamp(32px, 5vw, 56px); text-align: center; }
.blog-paging a, .blog-paging span, .blog-paging strong, .blog-paging b { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; margin: 0 3px; padding-inline: 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--muted); }
.blog-paging a:hover { color: var(--ink); border-color: var(--muted); }
.blog-paging strong, .blog-paging b, .blog-paging .current, .blog-paging .active, .blog-paging .selected { background: var(--fill); border-color: var(--fill); color: #fff; }

/* ---------- صفحهٔ مطلب ---------- */
.post-wrap { max-width: 800px; margin-inline: auto; }
.post-head { display: grid; grid-template-columns: minmax(0, 1fr) 351px; gap: 24px 36px; align-items: center; padding-block: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 40px); }
.post-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.post-cats a { padding: 0 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; line-height: 26px; }
.post-head h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.55; font-weight: 700; text-wrap: balance; }
.post-head h1 a { color: inherit; }
.post-date { margin-top: 12px; font-size: 14px; color: var(--muted); }
.post-img img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }

/* متن مقاله (HTML آزاد از پنل) */
.post_content { font-size: 17px; line-height: 2.1; overflow-wrap: break-word; }
.post_content > :first-child { margin-top: 0; }
.post_content p { margin: 0 0 1.1em; }
.post_content h2, .post_content h3, .post_content h4 { margin: 1.9em 0 .6em; font-weight: 700; line-height: 1.6; }
.post_content h2 { font-size: 26px; padding-top: .9em; border-top: 1px solid var(--line); }
.post_content h2:first-child { padding-top: 0; border-top: 0; }
.post_content h3 { font-size: 21px; }
.post_content h4 { font-size: 18px; }
.post_content a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post_content a:hover { text-decoration-thickness: 2px; }
.post_content ul, .post_content ol { margin: 0 0 1.2em; padding-inline-start: 1.6em; }
.post_content ul { list-style: disc; }
.post_content ol { list-style: decimal; }
.post_content li { margin-bottom: .35em; }
.post_content img, .post_content video, .post_content iframe { max-width: 100%; height: auto; border-radius: 12px; }
.post_content iframe { aspect-ratio: 16 / 9; width: 100%; border: 0; }
.post_content figure { margin: 1.5em 0; }
.post_content figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.post_content blockquote { margin: 1.5em 0; padding: 12px 20px; border-inline-start: 3px solid var(--brand); background: var(--soft); border-radius: 12px; color: var(--muted); }
.post_content blockquote > :last-child { margin-bottom: 0; }
.post_content hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.post_content table { display: block; max-width: 100%; margin: 0 0 1.4em; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.8; }
.post_content th, .post_content td { min-width: 110px; padding: 10px 14px; border: 1px solid var(--line); text-align: start; vertical-align: top; }
.post_content th { background: var(--soft); font-weight: 700; }
.post_content code { padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; direction: ltr; unicode-bidi: isolate; }
.post_content pre { margin: 0 0 1.4em; padding: 18px 20px; border-radius: 14px; background: var(--pan); color: var(--pan-ink); overflow-x: auto; direction: ltr; text-align: left; font-size: 13px; line-height: 1.85; }
.post_content pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }

/* اشتراک‌گذاری */
.post-foot { margin-top: clamp(32px, 5vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); }
.post-share { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-share-label { margin-inline-end: 4px; font-size: 14px; color: var(--muted); }
.post-share a { display: inline-flex; align-items: center; height: 36px; padding-inline: 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); transition: color .2s, border-color .2s; }
.post-share a:hover { color: var(--ink); border-color: var(--muted); }

/* مطلب قبلی / بعدی */
.post-nav { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: block; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; font-weight: 700; line-height: 1.8; transition: border-color .2s, box-shadow .2s; }
.post-nav a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.post-nav a::before { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.post-prev { grid-column: 1; }
.post-next { grid-column: 2; }
.post-prev::before { content: "مطلب قبلی"; }
.post-next::before { content: "مطلب بعدی"; }

@media (max-width: 900px) {
    /* موبایل/تبلت: ترتیب عنوان، جستجو، دسته‌ها (یک ردیف قابل اسکرول)، مطالب */
    .blog-layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 32px; }
    .blog-side, .blog-content { display: contents; }
    .blog-head { order: 1; padding-bottom: 16px; }
    .blog-search { order: 2; margin-bottom: 12px; }
    .blog-cats { order: 3; flex-direction: row; flex-wrap: nowrap; gap: 8px; margin: 0 -24px 24px; padding: 0 24px; border: 0; border-radius: 0; background: none; overflow-x: auto; scrollbar-width: none; }
    .blog-cats::-webkit-scrollbar { display: none; }
    .blog-cats-title { display: none; }
    .blog-cats a { flex-shrink: 0; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; }
    .blog-cats a.is-child { margin-inline-start: 0; border-style: dashed; }
    .blog-cats a.is-active { background: var(--fill); border-color: var(--fill); color: #fff; box-shadow: none; }
    .blog-note { order: 4; }
    .blog-grid { order: 5; }
    .blog-paging { order: 6; }
}
@media (max-width: 800px) {
    .post-head { grid-template-columns: 1fr; }
    .post-img { max-width: 420px; }
}
@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; gap: 16px; }
    .blog-cats { margin-inline: -20px; padding-inline: 20px; }
    .post_content { font-size: 16px; }
    .post_content h2 { font-size: 22px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-prev, .post-next { grid-column: 1; }
}
/*contacts*/
/* ==========================================================
   Contact — به انتهای <style> هدر اضافه کنید.
   متغیرهای سایت: --ink --muted --line --soft --bg --brand --brand-soft --shadow
   ========================================================== */

.contact-page { padding-bottom: clamp(56px, 8vw, 96px); }

.ct-head { padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 44px); }
.ct-head h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.35; font-weight: 700; }
.ct-head .lead { margin-top: 12px; max-width: 34em; font-size: clamp(16px, 1.9vw, 18px); color: var(--muted); }

.ct-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }

/* اطلاعات تماس */
.ct-info { display: grid; gap: 12px; }
.ct-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--soft); }
.ct-item svg.i { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); stroke-width: 1.8; }
.ct-item small { display: block; font-size: 13px; color: var(--muted); line-height: 1.7; }
.ct-item a { display: inline-block; font-size: 20px; font-weight: 700; line-height: 1.6; transition: color .2s; }
.ct-item a:hover { color: var(--brand); }
.ct-item address { font-style: normal; font-size: 15px; line-height: 1.9; }

/* فرم */
.ct-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: clamp(22px, 3.5vw, 36px); border: 1px solid var(--line); border-radius: 24px; background: var(--bg); box-shadow: var(--shadow); }
.ct-field { grid-column: 1 / -1; min-width: 0; }
.ct-field.is-half { grid-column: auto; }
.ct-field label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.ct-field input, .ct-field select, .ct-field textarea { width: 100%; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.ct-field input, .ct-field select { height: 48px; }
.ct-field textarea { min-height: 150px; padding-block: 12px; line-height: 1.9; resize: vertical; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ct-field input[type="email"], .ct-field input[type="tel"] { direction: ltr; text-align: right; }
.ct-field select { padding-inline-end: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6676' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; cursor: pointer; }
.ct-captcha { max-width: 100%; overflow-x: auto; }
.ct-actions { grid-column: 1 / -1; }

@media (max-width: 900px) {
    .ct-layout { grid-template-columns: minmax(0, 1fr); }
    .ct-info { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .ct-info { grid-template-columns: 1fr; }
    .ct-form { grid-template-columns: 1fr; gap: 16px; border-radius: 20px; }
    .ct-field.is-half { grid-column: 1 / -1; }
    .ct-actions .btn { width: 100%; height: 54px; }
}