/*
Theme Name: پلاس حسابداری
Theme URI: https://chalak-plus.ir/
Author: پلاس حسابداری
Description: قالب اختصاصی سایت پلاس حسابداری؛ راست‌چین، فونت وزیرمتن، آیکن‌های فونت اوسام، سئوی داخلی، صفحهٔ قیمت و تسویه حساب بدون ووکامرس.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: plushesabdari
*/

/* ===== فونت‌ها ===== */
@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/Vazirmatn-FD-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/Vazirmatn-FD-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/Vazirmatn-FD-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/Vazirmatn-FD-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* ===== رنگ‌ها؛ همان پالت نرم‌افزار (Themes/Palette.xaml) ===== */
:root {
	--primary: #2563EB;
	--primary-dark: #1D4ED8;
	--primary-light: #DBEAFE;
	--primary-softer: #EFF6FF;
	--accent: #0EA5E9;
	--success: #16A34A;
	--success-light: #DCFCE7;
	--danger: #DC2626;
	--danger-light: #FEE2E2;
	--warning: #D97706;
	--warning-light: #FEF3C7;
	--bg: #F5F8FD;
	--surface: #FFFFFF;
	--surface-alt: #F8FAFC;
	--border: #E2E8F0;
	--border-strong: #CBD5E1;
	--text: #0F172A;
	--text-soft: #334155;
	--muted: #64748B;
	--faint: #94A3B8;
	--r-sm: 4px;
	--r-md: 7px;
	--r-lg: 11px;
	--r-xl: 18px;
	--shadow-card: 0 2px 14px rgba(15, 23, 42, .07);
	--shadow-pop: 0 8px 30px rgba(15, 23, 42, .14);
	--container: 1200px;
	--font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

/* ===== پایه ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.9;
	color: var(--text);
	background: var(--bg);
	direction: rtl;
	text-align: right;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.5; color: var(--text); margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; right: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: var(--surface); padding: 8px 16px; border-radius: var(--r-md); box-shadow: var(--shadow-pop); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); background: var(--primary-softer); border: 1px solid var(--primary-light); padding: 4px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; margin-bottom: 14px; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ===== دکمه‌ها ===== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1;
	padding: 14px 26px; border-radius: var(--r-md); border: 1px solid transparent;
	cursor: pointer; transition: background .15s, color .15s, box-shadow .15s, transform .15s;
	text-align: center; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, .28); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: var(--surface); color: var(--primary); border-color: var(--primary-light); }
.btn-outline:hover { background: var(--primary-softer); color: var(--primary-dark); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { background: var(--primary-softer); color: var(--primary-dark); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ===== سربرگ ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(15, 23, 42, .06); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.2rem; flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--primary-dark)); box-shadow: 0 6px 16px rgba(37,99,235,.35); font-size: 1.15rem; }
.brand small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); line-height: 1.2; }
.brand .custom-logo { max-height: 44px; width: auto; }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a { display: flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--text-soft); font-weight: 600; border-radius: var(--r-md); }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--primary); background: var(--primary-softer); }
.main-nav .menu-item-has-children > a::after { content: "\f107"; font-family: "Font Awesome 7 Free"; font-weight: 900; font-size: .75rem; opacity: .7; }
.main-nav .sub-menu {
	position: absolute; top: 100%; right: 0; min-width: 260px; padding: 10px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-pop);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s;
}
.main-nav .sub-menu.is-mega, .main-nav .sub-menu:has(> li:nth-child(9)) { min-width: 640px; columns: 3; column-gap: 6px; }
.main-nav .sub-menu li { break-inside: avoid; }
.main-nav .sub-menu a { font-weight: 500; font-size: .93rem; padding: 8px 12px; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-search { color: var(--muted); width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-md); }
.header-search:hover { background: var(--primary-softer); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); width: 44px; height: 44px; border-radius: var(--r-md); color: var(--text); font-size: 1.2rem; cursor: pointer; }

/* ===== قهرمان صفحهٔ اول ===== */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; background:
	radial-gradient(900px 420px at 85% -10%, rgba(14,165,233,.16), transparent 60%),
	radial-gradient(700px 380px at 0% 10%, rgba(37,99,235,.12), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.45; }
.hero h1 .hl { color: var(--primary); }
.hero-lead { font-size: 1.15rem; color: var(--text-soft); margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-soft); font-weight: 500; }
.hero-points i { color: var(--success); margin-left: 6px; }

/* پنجرهٔ نمایشی برنامه */
.app-window { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 30px 70px rgba(15,23,42,.18); overflow: hidden; }
.app-titlebar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface-alt); border-bottom: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.app-titlebar .dots { display: flex; gap: 6px; margin-left: auto; direction: ltr; }
.app-titlebar .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.app-body { display: grid; grid-template-columns: 120px 1fr; min-height: 330px; }
.app-side { background: var(--surface); border-left: 1px solid var(--border); padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; order: -1; }
.app-side span { font-size: .72rem; padding: 6px 8px; border-radius: 6px; color: var(--text-soft); display: flex; gap: 6px; align-items: center; }
.app-side span.on { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }
.app-main { background: var(--bg); padding: 14px; display: grid; gap: 10px; align-content: start; }
.app-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.app-card b { display: block; font-size: .95rem; }
.app-card small { color: var(--muted); font-size: .68rem; }
.app-card .up { color: var(--success); font-size: .68rem; }
.app-chart { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
.app-chart svg { display: block; width: 100%; height: 110px; }
.app-rows { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: .7rem; }
.app-rows div { display: flex; justify-content: space-between; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.app-rows div:last-child { border: 0; }
.tag-ok { color: var(--success); background: var(--success-light); padding: 0 8px; border-radius: 999px; }
.tag-wait { color: var(--warning); background: var(--warning-light); padding: 0 8px; border-radius: 999px; }

/* ===== نوار آمار ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -42px; position: relative; z-index: 2; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-card); display: flex; gap: 14px; align-items: center; }
.stat i { font-size: 1.4rem; color: var(--primary); width: 48px; height: 48px; display: grid; place-items: center; background: var(--primary-softer); border-radius: 12px; flex-shrink: 0; }
.stat b { display: block; font-size: 1.05rem; }
.stat span { color: var(--muted); font-size: .88rem; }

/* ===== کارت‌ها ===== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.feature-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; color: var(--text); transition: transform .18s, box-shadow .18s, border-color .18s; height: 100%; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); border-color: var(--primary-light); color: var(--text); }
.feature-card .ico { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; color: var(--primary); background: var(--primary-softer); }
.feature-card h2, .feature-card h3 { margin: 0; font-size: 1.08rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.8; }
.feature-card .more { margin-top: auto; color: var(--primary); font-weight: 700; font-size: .9rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--primary-softer); color: var(--primary-dark); border: 1px solid var(--primary-light); }
.badge-simple { background: var(--success-light); color: #15803D; border-color: #BBF7D0; }
.badge-pro { background: #EDE9FE; color: #6D28D9; border-color: #DDD6FE; }
.badge-advanced { background: var(--warning-light); color: #B45309; border-color: #FDE68A; }

/* جریان یکپارچه */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: flow; }
.flow-step { padding: 20px 16px; text-align: center; position: relative; }
.flow-step i { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; display: block; }
.flow-step h3 { font-size: .98rem; margin: 0 0 4px; }
.flow-step p { color: var(--muted); font-size: .86rem; margin: 0; line-height: 1.7; }
.flow-origin { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 22px; padding: 14px 22px; width: fit-content; background: var(--primary); color: #fff; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 24px rgba(37,99,235,.3); }

/* مخاطبان */
.audience { padding: 26px; }
.audience i.big { font-size: 1.6rem; color: #fff; width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--primary)); margin-bottom: 14px; }
.audience ul { list-style: none; padding: 0; margin: 12px 0 0; }
.audience li { padding: 4px 0; color: var(--text-soft); font-size: .93rem; }
.audience li i { color: var(--success); margin-left: 8px; }

/* ===== قیمت‌ها ===== */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; }
.plan.is-featured { border: 2px solid var(--primary); box-shadow: 0 18px 44px rgba(37,99,235,.18); transform: translateY(-8px); }
.plan-ribbon { position: absolute; top: -14px; right: 50%; transform: translateX(50%); background: var(--primary); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 16px; border-radius: 999px; white-space: nowrap; }
.plan-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.plan-head i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; color: var(--primary); background: var(--primary-softer); }
.plan h3 { margin: 0; font-size: 1.3rem; }
.plan-for { color: var(--muted); font-size: .92rem; min-height: 3.4em; margin-bottom: 12px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.plan-price b { font-size: 2rem; font-weight: 800; color: var(--text); letter-spacing: -.5px; }
.plan-price span { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.plan li { display: flex; gap: 10px; font-size: .95rem; color: var(--text-soft); line-height: 1.7; }
.plan li i { color: var(--success); margin-top: 6px; }
.plan li.inherit { font-weight: 700; color: var(--text); }
.plan li.inherit i { color: var(--primary); }
.plan .btn { margin-top: auto; }

.compare-wrap { position: relative; overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-card); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: center; font-size: .95rem; }
.compare th:first-child, .compare td:first-child { text-align: right; }
.compare thead th { background: var(--surface-alt); font-weight: 800; position: sticky; top: 0; }
.compare thead th small { display: block; color: var(--muted); font-weight: 500; }
.compare tr.group td { background: var(--primary-softer); color: var(--primary-dark); font-weight: 800; text-align: right; }
.compare .yes { color: var(--success); }
.compare .no { color: var(--faint); }

/* ===== مقاله‌ها و فهرست‌ها ===== */
.post-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: transform .18s, box-shadow .18s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.post-thumb { position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--primary), var(--accent)); color: rgba(255,255,255,.95); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb i { font-size: 2.6rem; filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.post-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 160px at 20% 0%, rgba(255,255,255,.22), transparent 60%); pointer-events: none; }
.post-thumb.cat-tax { background: linear-gradient(135deg, #1D4ED8, #7C3AED); }
.post-thumb.cat-inventory { background: linear-gradient(135deg, #0EA5E9, #14B8A6); }
.post-thumb.cat-sales { background: linear-gradient(135deg, #2563EB, #06B6D4); }
.post-thumb.cat-treasury { background: linear-gradient(135deg, #0F766E, #16A34A); }
.post-thumb.cat-payroll { background: linear-gradient(135deg, #D97706, #F59E0B); }
.post-thumb.cat-production { background: linear-gradient(135deg, #475569, #2563EB); }
.post-thumb.cat-business { background: linear-gradient(135deg, #1E3A8A, #0EA5E9); }
.post-thumb.cat-software { background: linear-gradient(135deg, #4F46E5, #0EA5E9); }
.post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body h2, .post-body h3 { font-size: 1.05rem; margin: 0; line-height: 1.7; }
.post-body h2 a, .post-body h3 a { color: var(--text); }
.post-body h2 a:hover, .post-body h3 a:hover { color: var(--primary); }
.post-body p { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.8; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .84rem; }
.post-meta i { margin-left: 5px; color: var(--faint); }
.post-meta a { color: var(--muted); }
.post-meta a:hover { color: var(--primary); }

.page-hero { padding: 46px 0 34px; background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-bottom: 10px; }
.page-hero .lead { color: var(--text-soft); font-size: 1.08rem; max-width: 820px; margin: 0; }
.page-hero .hero-icon { width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--primary)); margin-bottom: 14px; }
.breadcrumbs { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs li + li::before { content: "\f104"; font-family: "Font Awesome 7 Free"; font-weight: 900; font-size: .7rem; margin-left: 6px; color: var(--faint); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; padding: 40px 0 70px; align-items: start; }
.layout-narrow { max-width: 860px; margin: 0 auto; padding: 40px 0 70px; }
.sidebar { position: sticky; top: 92px; display: grid; gap: 18px; }
.widget { padding: 22px; }
.widget h2, .widget h3 { font-size: 1.02rem; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.widget h2 i, .widget h3 i { color: var(--primary); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { border-bottom: 1px dashed var(--border); }
.widget li:last-child { border: 0; }
.widget li a { display: block; padding: 8px 0; color: var(--text-soft); font-size: .93rem; line-height: 1.7; }
.widget li a:hover { color: var(--primary); }
.widget-cta { background: linear-gradient(150deg, var(--primary-dark), var(--accent)); color: #fff; border: 0; }
.widget-cta h3 { color: #fff; }
.widget-cta p { color: rgba(255,255,255,.88); font-size: .93rem; }
.widget-cta .btn { width: 100%; margin-top: 8px; }

/* ===== محتوای مقاله ===== */
.entry { padding: 34px 38px; }
.entry-content { font-size: 1.04rem; line-height: 2.05; color: var(--text-soft); }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 1.8em; padding-top: .3em; font-size: 1.45rem; scroll-margin-top: 96px; }
.entry-content h3 { margin-top: 1.5em; font-size: 1.15rem; scroll-margin-top: 96px; }
.entry-content h4 { margin-top: 1.3em; }
.entry-content ul, .entry-content ol { padding-right: 1.4em; padding-left: 0; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--primary); }
.entry-content strong { color: var(--text); }
.entry-content a { text-decoration: underline; text-decoration-color: var(--primary-light); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.entry-content a:hover { text-decoration-color: var(--primary); }
.entry-content blockquote { margin: 1.5em 0; padding: 16px 20px; background: var(--warning-light); border-right: 4px solid var(--warning); border-radius: var(--r-md); color: #78350F; }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content code { background: var(--surface-alt); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.entry-content figure { margin: 1.5em 0; }
.entry-content .wp-block-table, .entry-content .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.8; }
.entry-content th { background: var(--primary-softer); color: var(--primary-dark); font-weight: 800; }
.entry-content th, .entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: top; }
.entry-content tbody tr:nth-child(even) td { background: var(--surface-alt); }
.entry-content tbody tr:last-child td { border-bottom: 0; }
.entry-content h2#faq + h3, .entry-content .faq-q { margin-top: 1em; }

.toc { margin: 0 0 1.6em; padding: 16px 20px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--r-lg); }
.toc summary { cursor: pointer; font-weight: 800; color: var(--text); list-style: none; display: flex; gap: 8px; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary i { color: var(--primary); }
.toc ol { margin: 12px 0 0; padding-right: 1.3em; }
.toc li { margin: 2px 0; font-size: .95rem; }
.toc a { text-decoration: none; color: var(--text-soft); }
.toc a:hover { color: var(--primary); }

.entry-header .post-meta { margin-top: 6px; }
.entry-footer { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); display: grid; gap: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-size: .84rem; background: var(--surface-alt); border: 1px solid var(--border); color: var(--text-soft); padding: 3px 12px; border-radius: 999px; }
.tags a:hover { border-color: var(--primary-light); color: var(--primary); }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .9rem; }
.share a, .share button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-alt); border: 1px solid var(--border); color: var(--text-soft); cursor: pointer; font-size: 1rem; }
.share a:hover, .share button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.author-box { display: flex; gap: 16px; align-items: center; padding: 18px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--r-lg); }
.author-box .avatar-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-light); color: var(--primary-dark); font-size: 1.3rem; flex-shrink: 0; }
.author-box b { display: block; }
.author-box p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.8; }
.cta-box { margin-top: 30px; padding: 26px 28px; border-radius: var(--r-lg); color: #fff; background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--accent)); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: space-between; }
.cta-box h2, .cta-box h3 { color: #fff; margin: 0 0 6px; font-size: 1.25rem; }
.cta-box p { margin: 0; color: rgba(255,255,255,.9); }
.cta-box .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.post-nav a { padding: 16px 18px; color: var(--text); display: block; }
.post-nav small { display: block; color: var(--muted); }
.post-nav .next { text-align: left; }

/* فهرست اقلام مرتبط با یک بخش */
.related-list { display: grid; gap: 10px; }
.related-list a { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); color: var(--text-soft); background: var(--surface); }
.related-list a:hover { border-color: var(--primary-light); color: var(--primary); }
.related-list i { color: var(--primary); margin-top: 6px; }
.edition-note { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--primary-softer); border: 1px solid var(--primary-light); margin-bottom: 18px; color: var(--primary-dark); font-weight: 600; }

/* ===== بایگانی ===== */
.archive-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 7px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); font-size: .9rem; font-weight: 600; }
.chip:hover, .chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); font-weight: 700; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 3rem; color: var(--primary-light); margin-bottom: 16px; }

/* ===== فرم‌ها ===== */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--text); }
.field label .req { color: var(--danger); }
.field small { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], select, textarea {
	width: 100%; font-family: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
	border: 1px solid var(--border-strong); border-radius: var(--r-md); padding: 11px 14px; min-height: 48px;
	transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
input.ltr { direction: ltr; text-align: right; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--text-soft); cursor: pointer; }
.check input { margin-top: 7px; width: 18px; height: 18px; accent-color: var(--primary); }
.notice { padding: 14px 18px; border-radius: var(--r-md); margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.notice-error { background: var(--danger-light); color: #991B1B; border: 1px solid #FECACA; }
.notice-success { background: var(--success-light); color: #166534; border: 1px solid #BBF7D0; }
.notice-info { background: var(--primary-softer); color: var(--primary-dark); border: 1px solid var(--primary-light); }
.notice i { margin-top: 6px; }

/* ===== تسویه حساب ===== */
.checkout-steps { display: flex; justify-content: center; gap: 10px; margin: 0 auto 30px; flex-wrap: wrap; }
.checkout-steps li { list-style: none; display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: .93rem; }
.checkout-steps li span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border-strong); }
.checkout-steps li.on { color: var(--primary-dark); }
.checkout-steps li.on span { background: var(--primary); border-color: var(--primary); color: #fff; }
.checkout-steps li.done span { background: var(--success); border-color: var(--success); color: #fff; }
.checkout-steps li + li::before { content: ""; width: 44px; height: 2px; background: var(--border-strong); margin-left: 10px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.checkout-box { padding: 26px; margin-bottom: 20px; }
.checkout-box h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.checkout-box h2 i { color: var(--primary); width: 36px; height: 36px; display: grid; place-items: center; background: var(--primary-softer); border-radius: 10px; font-size: 1rem; }
.edition-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.edition-pick label { position: relative; display: block; padding: 16px; border: 2px solid var(--border); border-radius: var(--r-lg); cursor: pointer; transition: border-color .15s, background .15s; }
.edition-pick input { position: absolute; opacity: 0; }
.edition-pick label:hover { border-color: var(--primary-light); }
.edition-pick input:checked + .ed { color: var(--primary-dark); }
.edition-pick label:has(input:checked) { border-color: var(--primary); background: var(--primary-softer); }
.edition-pick label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.edition-pick .ed b { display: block; font-size: 1.05rem; }
.edition-pick .ed span { color: var(--muted); font-size: .9rem; }
.edition-pick .ed i { position: absolute; top: 14px; left: 14px; color: var(--primary); opacity: 0; }
.edition-pick label:has(input:checked) .ed i { opacity: 1; }
.pay-methods { display: grid; gap: 10px; }
.pay-method { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--r-lg); cursor: pointer; }
.pay-method:has(input:checked) { border-color: var(--primary); background: var(--primary-softer); }
.pay-method.is-disabled { opacity: .55; cursor: not-allowed; }
.pay-method i.lead { font-size: 1.3rem; color: var(--primary); width: 30px; text-align: center; }
.pay-method b { display: block; }
.pay-method small { color: var(--muted); }
.summary { position: sticky; top: 92px; padding: 24px; }
.summary h2 { font-size: 1.1rem; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.summary h2 i { color: var(--primary); }
.summary-item { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.summary-item .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--primary)); font-size: 1.2rem; flex-shrink: 0; }
.summary-item b { display: block; }
.summary-item small { color: var(--muted); }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; color: var(--text-soft); }
.summary-row.discount { color: var(--success); }
.summary-row[hidden] { display: none; }
.summary-row.total { border-top: 2px dashed var(--border); margin-top: 8px; padding-top: 14px; font-weight: 800; color: var(--text); font-size: 1.15rem; }
.coupon { display: flex; gap: 8px; margin: 12px 0 6px; }
.coupon input { min-height: 44px; }
.coupon .btn { padding: 10px 16px; }
.coupon-msg { font-size: .85rem; min-height: 1.4em; }
.coupon-msg.ok { color: var(--success); }
.coupon-msg.bad { color: var(--danger); }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; color: var(--muted); font-size: .85rem; }
.secure-note i { color: var(--success); }
.receipt { max-width: 720px; margin: 0 auto; padding: 34px; text-align: center; }
.receipt .big-ico { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; font-size: 2rem; color: #fff; background: var(--success); box-shadow: 0 12px 30px rgba(22,163,74,.3); }
.receipt table { width: 100%; border-collapse: collapse; margin: 22px 0; text-align: right; }
.receipt td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.receipt td:first-child { color: var(--muted); width: 40%; }

/* ===== تماس ===== */
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 18px; }
.contact-card i { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; color: var(--primary); background: var(--primary-softer); flex-shrink: 0; }
.contact-card b { display: block; }
.contact-card span, .contact-card a { color: var(--text-soft); direction: ltr; unicode-bidi: plaintext; }

/* ===== پرسش‌های رایج ===== */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 4px 20px; transition: box-shadow .15s; }
.faq details[open] { box-shadow: var(--shadow-card); border-color: var(--primary-light); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\2b"; font-family: "Font Awesome 7 Free"; font-weight: 900; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-soft); margin: 0 0 16px; }

/* ===== نوار دعوت پایانی ===== */
.cta-band { padding: 64px 0; background: linear-gradient(135deg, var(--primary-dark), var(--primary) 50%, var(--accent)); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 15% 0%, rgba(255,255,255,.18), transparent 60%), radial-gradient(500px 220px at 90% 100%, rgba(255,255,255,.12), transparent 60%); }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.08rem; margin-bottom: 24px; }
.cta-band .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== پانویس ===== */
.site-footer { background: #0B1220; color: #CBD5E1; padding: 60px 0 0; font-size: .94rem; }
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer h2 { color: #fff; font-size: 1.02rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand small { color: #94A3B8; }
.footer-about { color: #94A3B8; line-height: 2; }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.social a:hover { background: var(--primary); border-color: var(--primary); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--accent); margin-top: 6px; width: 16px; }
.footer-contact .ltr { direction: ltr; unicode-bidi: plaintext; }
.trust-seals { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.trust-seals img { background: #fff; border-radius: 8px; padding: 4px; max-height: 100px; width: auto; }
.footer-bottom { margin-top: 44px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #94A3B8; font-size: .86rem; }
.footer-bottom nav ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.to-top { position: fixed; bottom: 22px; left: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; box-shadow: var(--shadow-pop); cursor: pointer; opacity: 0; visibility: hidden; transition: all .2s; z-index: 40; }
.to-top.show { opacity: 1; visibility: visible; }

/* ===== واکنش‌گرا ===== */
@media (max-width: 1080px) {
	.grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.flow { grid-template-columns: repeat(3, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.layout { grid-template-columns: minmax(0, 1fr) 280px; }
	.checkout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 920px) {
	.nav-toggle { display: grid; place-items: center; }
	/* backdrop-filter برای فرزندان fixed قاب می‌سازد و منوی تمام‌صفحه را در سربرگ حبس می‌کند */
	.site-header { backdrop-filter: none; background: var(--surface); }
	.header-inner { gap: 12px; }
	.main-nav { position: fixed; inset: 72px 0 0 0; background: var(--surface); padding: 18px 20px 40px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .2s, transform .2s, visibility .2s; border-top: 1px solid var(--border); }
	.main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
	.main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.main-nav a { padding: 12px 14px; }
	.main-nav .sub-menu, .main-nav .sub-menu.is-mega, .main-nav .sub-menu:has(> li:nth-child(9)) { position: static; min-width: 0; columns: 1; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 16px 0 0; display: none; }
	.main-nav li.is-open > .sub-menu { display: block; }
	.header-actions .btn-cta-text { display: none; }
	.hero-grid, .layout, .checkout { grid-template-columns: 1fr; }
	.sidebar, .summary { position: static; }
	.stats { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
	.pricing { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
	.plan.is-featured { transform: none; }
	.grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero { padding-top: 46px; }
}
@media (max-width: 640px) {
	body { font-size: 15.5px; }
	.section { padding: 52px 0; }
	.grid-2, .grid-3, .grid-4, .form-grid, .edition-pick { grid-template-columns: 1fr; }
	.flow { grid-template-columns: 1fr 1fr; }
	.stats { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.entry { padding: 22px 18px; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav .next { text-align: right; }
	.app-body { grid-template-columns: 1fr; }
	.app-side { display: none; }
	.checkout-steps li + li::before { width: 16px; }
	.header-actions .btn { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .site-footer, .sidebar, .share, .cta-box, .to-top, .toc { display: none !important; }
	.layout { display: block; }
	.card { box-shadow: none; border: 0; }
}
