

@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2'), url('/fonts/Vazirmatn-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2'), url('/fonts/Vazirmatn-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-ExtraBold.woff2') format('woff2'), url('/fonts/Vazirmatn-ExtraBold.woff') format('woff'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
    --bg: #f6f8fc;
    --bg-alt: #eef2f9;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --text: #0f172a;
    --muted: #52627a;
    --line: #e2e8f0;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;
    --primary-text: #1d4ed8;
    --grad: linear-gradient(135deg, #2f6df0 0%, #2563eb 100%);
    --header-bg: rgba(255, 255, 255, .86);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 14px rgba(15, 23, 42, .05);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, .10);
    --hero-glow: radial-gradient(900px 380px at 82% -8%, rgba(59, 130, 246, .20), transparent 62%), radial-gradient(700px 320px at 4% 0%, rgba(99, 102, 241, .10), transparent 60%);
    --footer-bg: #0f172a;
    --footer-text: #cbd5e1;
    --radius: 18px;
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #0a1020;
    --bg-alt: #0d1427;
    --surface: #111a2f;
    --surface-2: #16213a;
    --text: #e8eefc;
    --muted: #9db0cc;
    --line: #1f2c47;
    --primary: #4c8dff;
    --primary-hover: #6aa1ff;
    --primary-soft: rgba(76, 141, 255, .13);
    --primary-text: #8db8ff;
    --grad: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --header-bg: rgba(10, 16, 32, .84);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 14px rgba(0, 0, 0, .25);
    --shadow-md: 0 14px 34px rgba(0, 0, 0, .45);
    --hero-glow: radial-gradient(900px 380px at 82% -8%, rgba(59, 130, 246, .22), transparent 62%), radial-gradient(700px 320px at 4% 0%, rgba(99, 102, 241, .14), transparent 60%);
    --footer-bg: #070c19;
    --footer-text: #aab8d0;
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg: #0a1020; --bg-alt: #0d1427; --surface: #111a2f; --surface-2: #16213a;
        --text: #e8eefc; --muted: #9db0cc; --line: #1f2c47;
        --primary: #4c8dff; --primary-hover: #6aa1ff; --primary-soft: rgba(76, 141, 255, .13); --primary-text: #8db8ff;
        --header-bg: rgba(10, 16, 32, .84);
        --footer-bg: #070c19; --footer-text: #aab8d0;
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    font-size: 16px; line-height: 1.9;
    background: var(--bg); color: var(--text);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.45; color: var(--text); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; top: -60px; right: 12px; z-index: 200; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 10px; }
.skip-link:focus { top: 10px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 46px; padding: 0 22px; border-radius: 14px; border: 1.5px solid transparent;
    font: 700 15px/1 'Vazirmatn', sans-serif; cursor: pointer; text-decoration: none !important;
    transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .28); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(37, 99, 235, .36); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-text); }
.btn-light { background: #fff; color: #1d4ed8; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 16px; }

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--header-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-in { display: flex; align-items: center; gap: 28px; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; flex-shrink: 0; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 11px; background: var(--grad); color: #fff;
    font: 800 15px/1 'Vazirmatn', sans-serif; letter-spacing: .5px; direction: ltr;
}
.brand-text { font: 800 21px/1 'Vazirmatn', sans-serif; direction: ltr; letter-spacing: -.2px; }
.brand-text small { font-size: 15px; font-weight: 700; color: var(--primary-text); margin-inline-start: 1px; }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px;
    background: none; border: 0; font: 700 14.5px/1.4 'Vazirmatn', sans-serif; color: var(--text); cursor: pointer; text-decoration: none !important;
    transition: background .15s, color .15s;
}
.nav-link:hover, .dd.open > .nav-link { background: var(--primary-soft); color: var(--primary-text); }
.nav-link svg { width: 10px; height: 7px; transition: transform .2s; }
.dd.open > .nav-link svg { transform: rotate(180deg); }

.dd { position: relative; }
.dd-menu {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 440px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; padding: 18px 20px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.dd.open > .dd-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 901px) {
    .dd:hover > .dd-menu { opacity: 1; visibility: visible; transform: none; }
    .dd:hover > .nav-link { background: var(--primary-soft); color: var(--primary-text); }
    .dd:hover > .nav-link svg { transform: rotate(180deg); }
}
.dd-col h6 { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; letter-spacing: .2px; }
.dd-col a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; color: var(--text); font-size: 14.5px; font-weight: 400; text-decoration: none !important; }
.dd-col a:hover { background: var(--primary-soft); color: var(--primary-text); }
.tag { font-size: 10.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); line-height: 1.7; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn {
    width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; background: transparent; border: 1.5px solid var(--line); color: var(--text); cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary-text); }
.icon-btn svg { width: 20px; height: 20px; }
[data-theme="dark"] .i-moon, :root:not([data-theme]) .i-moon { display: none; }
[data-theme="light"] .i-sun { display: none; }
[data-theme="dark"] .i-sun { display: inline; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .i-sun { display: none; } }
.burger { display: none; flex-direction: column; gap: 4px; }
.burger span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile-actions { display: none; }

.hero { background: var(--hero-glow), var(--bg); padding: 72px 0 64px; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary-text);
    background: var(--primary-soft); padding: 4px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; line-height: 1.4; margin-bottom: 18px; letter-spacing: -.3px; }
.lead { font-size: 17.5px; color: var(--muted); max-width: 580px; line-height: 2; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 20px; box-shadow: var(--shadow-sm);
}
.stat strong { display: block; font-size: 26px; font-weight: 800; color: var(--primary-text); line-height: 1.3; direction: ltr; text-align: right; }
.stat span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }

.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 16.5px; }

.group { margin-bottom: 52px; }
.group:last-child { margin-bottom: 0; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.group-head h3 { font-size: 20px; font-weight: 800; }
.group-head p { color: var(--muted); font-size: 14.5px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.svc { display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none !important; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.svc h4 { font-size: 17px; font-weight: 800; padding-inline-end: 64px; }
.svc p { color: var(--muted); font-size: 14.5px; flex: 1; }
.more { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--primary-text); }
.more::after { content: "←"; display: inline-block; margin-inline-start: 6px; transition: transform .2s; }
.svc:hover .more::after { transform: translateX(-4px); }
.badge {
    position: absolute; top: 20px; inset-inline-end: 20px; font-size: 11.5px; font-weight: 700;
    padding: 2px 11px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text);
}

.why { display: flex; gap: 20px; align-items: flex-start; padding: 28px; }
.why .num { flex-shrink: 0; font-size: 34px; font-weight: 800; line-height: 1; color: var(--primary); opacity: .35; direction: ltr; font-variant-numeric: tabular-nums; }
.why h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.why p { color: var(--muted); font-size: 15px; line-height: 2; }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 8px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
    flex-shrink: 0; padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
    color: var(--muted); font: 700 14.5px/1.4 'Vazirmatn', sans-serif; cursor: pointer; transition: all .15s;
}
.tab:hover { border-color: var(--primary); color: var(--primary-text); }
.tab[aria-selected="true"] { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(37, 99, 235, .25); }
.tab-intro { color: var(--muted); max-width: 760px; margin: 14px 0 24px; font-size: 16px; }
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.article {
    display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 16px;
    background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none !important;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.article:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-sm); }
.a-num { flex-shrink: 0; font-size: 14px; font-weight: 800; color: var(--primary-text); background: var(--primary-soft); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 11px; direction: ltr; }
.a-body strong { display: block; font-size: 15.5px; font-weight: 800; line-height: 1.7; }
.a-body small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.85; margin-top: 2px; }
.link-all { display: inline-block; margin-top: 22px; font-weight: 700; font-size: 15px; }
.link-all::after { content: "←"; margin-inline-start: 6px; }

.cta-section { padding-top: 0; }
.cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border-radius: 28px; padding: 44px 48px; color: #fff;
    position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; inset: auto auto -120px -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, .35), transparent 70%); }
.cta h2 { color: #fff; font-size: clamp(21px, 2.8vw, 28px); font-weight: 800; position: relative; }
.cta p { color: #b6c3da; margin-top: 6px; position: relative; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }

.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { margin-top: 14px; font-size: 14.5px; line-height: 2; max-width: 320px; }
.brand-on-dark { color: #fff; }
.brand-on-dark .brand-text small { color: #8db8ff; }
.footer-contact a { color: #fff; font-weight: 700; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer-social a { padding: 5px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); color: var(--footer-text); font-size: 13px; text-decoration: none !important; }
.footer-social a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.footer-col h4 { color: #fff; font-size: 15.5px; font-weight: 800; margin-bottom: 14px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; bottom: 0; right: 0; width: 30px; height: 3px; border-radius: 3px; background: var(--primary); }
.footer-col a { display: block; padding: 4px 0; color: var(--footer-text); font-size: 14.5px; text-decoration: none !important; }
.footer-col a:hover { color: #fff; }
.footer-col .enamad { margin-top: 12px; display: inline-block; background: #fff; padding: 6px; border-radius: 12px; line-height: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 26px; font-size: 13.5px; text-align: center; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    * { transition-duration: .01ms !important; }
}

@media (max-width: 1000px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-in { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 900px) {
    .burger { display: inline-flex; }
    .hide-sm { display: none; }
    .nav {
        position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
        padding: 14px 20px 22px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
        max-height: calc(100vh - 70px); overflow-y: auto; display: none;
    }
    .nav.open { display: flex; }
    .nav-link { padding: 13px 12px; width: 100%; justify-content: space-between; font-size: 15.5px; }
    .dd-menu {
        position: static; min-width: 0; display: none; grid-template-columns: 1fr; gap: 4px; padding: 6px 12px 12px;
        border: 0; box-shadow: none; background: var(--surface-2); border-radius: 12px; opacity: 1; visibility: visible; transform: none; margin: 2px 0 6px;
    }
    .dd.open > .dd-menu { display: grid; }
    .nav-mobile-actions { display: flex; gap: 10px; margin-top: 12px; }
    .nav-mobile-actions .btn { flex: 1; }
}

@media (max-width: 640px) {
    .section { padding: 60px 0; }
    .hero { padding: 48px 0 44px; }
    .lead { font-size: 16px; }
    .grid-2, .grid-3, .grid-4, .articles { grid-template-columns: 1fr; }
    .hero-panel { gap: 10px; }
    .stat { padding: 18px 16px; }
    .stat strong { font-size: 21px; }
    .cta { padding: 32px 24px; border-radius: 22px; }
    .cta-actions, .cta-actions .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .why { flex-direction: column; gap: 10px; }
    .hero-cta .btn { flex: 1 1 100%; }
}

.page-top { background: var(--bg); padding-top: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "‹"; margin: 0 9px; opacity: .6; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary-text); }
.crumbs [aria-current] { color: var(--text); font-weight: 700; }

.page-hero { background: var(--hero-glow), var(--bg); padding: 28px 0 40px; }
.page-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.5; margin-bottom: 14px; max-width: 900px; }
.page-hero .lead { max-width: 760px; }
.service-wrap { padding-top: 40px; padding-bottom: 84px; }
.service-wrap > * + * { margin-top: 44px; }
.feat h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 14.5px; }
.plans-title, .related h2, .faq-block h2 { font-size: 24px; font-weight: 800; margin-bottom: 18px; }

.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.plan-hot { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm); }
.plan h3 { font-size: 19px; font-weight: 800; }
.plan-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.plan-price { margin: 16px 0 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price strong { font-size: 30px; font-weight: 800; color: var(--primary-text); line-height: 1.2; }
.plan-price span { color: var(--muted); font-size: 13.5px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.plan li { position: relative; padding: 5px 24px 5px 0; font-size: 14px; color: var(--text); }
.plan li::before { content: ""; position: absolute; right: 2px; top: 13px; width: 11px; height: 6px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg) scale(.9); transform-origin: center; }
.plan .btn { width: 100%; }

.article-wrap { max-width: 820px; padding-top: 24px; padding-bottom: 84px; }
.article-head h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; line-height: 1.55; margin-bottom: 14px; }
.article-head .lead { font-size: 17px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.toc { margin: 28px 0; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.toc strong { display: block; margin-bottom: 8px; font-weight: 800; }
.toc ol { margin: 0; padding: 0 20px 0 0; display: grid; gap: 4px; }
.toc a { color: var(--text); font-size: 15px; }
.toc a:hover { color: var(--primary-text); }

.prose { font-size: 16.5px; line-height: 2.15; color: var(--text); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 24px; font-weight: 800; margin-top: 44px; padding-top: 8px; scroll-margin-top: 90px; }
.prose h3 { font-size: 19px; font-weight: 800; margin-top: 30px; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding: 0 24px 0 0; margin-left: 0; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose strong { font-weight: 800; }
.prose code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 7px; border-radius: 7px; direction: ltr; unicode-bidi: isolate; }
.prose pre { direction: ltr; text-align: left; background: #0f172a; color: #e2e8f0; border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.8; border: 1px solid var(--line); }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 11px 14px; border: 1px solid var(--line); text-align: right; vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 800; }
.prose td code { white-space: nowrap; }
.callout { padding: 16px 20px; border-radius: 14px; background: var(--primary-soft); border-right: 4px solid var(--primary); font-size: 15.5px; line-height: 2; }
.callout strong { color: var(--primary-text); }
.callout.warn { background: rgba(245, 158, 11, .12); border-right-color: #f59e0b; }
.callout.warn strong { color: #b45309; }
[data-theme="dark"] .callout.warn strong { color: #fbbf24; }
.prose-wide { max-width: 860px; }

.cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 44px 0 0; padding: 24px 28px; border-radius: 20px; background: var(--primary-soft); border: 1px solid var(--line); }
.cta-inline h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.cta-inline p { color: var(--muted); font-size: 14.5px; }

.faq-block { margin-top: 48px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 20px; padding-left: 48px; font-weight: 800; font-size: 15.5px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; left: 22px; top: 50%; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(-45deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(135deg); }
.faq-item[open] summary { color: var(--primary-text); }
.faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 15.5px; line-height: 2.05; }
.faq-a > * + * { margin-top: 10px; }
.faq-a ul { padding: 0 22px 0 0; }
.faq-a strong { color: var(--text); }

.related { margin-top: 52px; }
.rel { display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none !important; padding: 20px 22px; }
.rel:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.rel h4 { font-size: 16.5px; font-weight: 800; padding-inline-end: 80px; line-height: 1.7; }
.rel p { color: var(--muted); font-size: 14px; flex: 1; }
.rel .badge { top: 18px; }

.rules-block { margin-top: 26px; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rules-block h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.faq-cat-title { font-size: 21px; font-weight: 800; margin: 38px 0 14px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.contact-grid .card h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.contact-grid .card p { color: var(--muted); font-size: 14.5px; }
.contact-grid .card a { font-weight: 700; }

@media (max-width: 640px) {
    .article-wrap { padding-bottom: 60px; }
    .prose { font-size: 16px; }
    .toc { padding: 16px 18px; }
    .cta-inline { padding: 20px; }
    .cta-inline .btn { width: 100%; }
    .plans { grid-template-columns: 1fr; }
    .rules-block { padding: 20px; }
}

.prose ol.steps { list-style: none; counter-reset: s; padding: 0; }
.prose ol.steps > li { counter-increment: s; position: relative; padding: 16px 68px 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.prose ol.steps > li + li { margin-top: 12px; }
.prose ol.steps > li::before { content: counter(s, persian); position: absolute; right: 16px; top: 14px; width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.shot { margin: 26px 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.shot figcaption { margin-top: 8px; text-align: center; font-size: 13.5px; color: var(--muted); }
.gg-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); font-weight: 700; font-size: 13.5px; }

:root { --ok: #16a34a; --bad: #dc2626; }
[data-theme="dark"] { --ok: #34d399; --bad: #f87171; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --ok: #34d399; --bad: #f87171; } }

.st-updated { margin-top: 12px; font-size: 14px; color: var(--muted); }
.st-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.st-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.st-tile strong { display: block; font-size: 30px; font-weight: 800; line-height: 1.3; color: var(--primary-text); }
.st-tile span { color: var(--muted); font-size: 14px; }
.st-title { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.st-list { display: grid; gap: 12px; }
.st-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) auto auto; gap: 14px 22px; align-items: center; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.st-card.is-off { opacity: .8; }
.st-name { font-size: 17px; font-weight: 800; line-height: 1.6; overflow-wrap: anywhere; }
.st-map, .st-muted { color: var(--muted); font-size: 14px; }
.st-uptime { display: inline-block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.st-pl-top { display: flex; align-items: baseline; gap: 6px; }
.st-pl-top strong { font-size: 22px; font-weight: 800; }
.st-pl-top span { color: var(--muted); font-size: 14px; }
.st-bar { height: 8px; margin-top: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.st-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.st-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.st-ping { font-size: 12.5px; color: var(--muted); }
.st-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.st-pill.on { background: rgba(22, 163, 74, .12); color: var(--ok); }
.st-pill.off { background: rgba(220, 38, 38, .12); color: var(--bad); }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-pill.on .st-dot { box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }
.st-copy { font: 700 13px/1 ui-monospace, Consolas, monospace; padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.st-copy:hover { border-color: var(--primary); color: var(--primary-text); }
.st-plist { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; }
.st-plist summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--primary-text); }
.st-plist ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; }
.st-plist li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.st-plist .pn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.st-plist .ps, .st-plist .pt { color: var(--muted); font-size: 12.5px; }
.st-svcs { display: grid; gap: 10px; }
.st-svc { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.st-svc-name { font-weight: 700; }
.st-svc-r { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.st-note { color: var(--muted); font-size: 14px; }
.st-skel { height: 82px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: st-shimmer 1.4s infinite; }
@keyframes st-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 760px) {
    .st-summary { gap: 10px; }
    .st-tile { padding: 16px 14px; }
    .st-tile strong { font-size: 22px; }
    .st-card { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
    .st-side { flex-direction: row; align-items: center; gap: 12px; }
    .st-copy { width: 100%; }
}
