/* سامانه‌های نصر وب — main.css
   فونت: وزیرمتن (محلی) — بدون هیچ منبع خارجی */
@font-face {
	font-family: "VazirmatnLocal";
	src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--accent: #0b7a6f;
	--accent-ink: #065a52;
	--accent-soft: color-mix(in srgb, var(--accent) 10%, #fff);
	--copper: #d9622b;
	--ink: #0e1218;
	--ink-2: #1b222c;
	--text: #1d242e;
	--muted: #667085;
	--paper: #f5f3ee;
	--card: #ffffff;
	--line: #e5e1d7;
	--radius: 18px;
	--shadow: 0 1px 2px rgba(14, 18, 24, .05), 0 10px 30px -12px rgba(14, 18, 24, .18);
	--shadow-lg: 0 2px 4px rgba(14, 18, 24, .06), 0 28px 60px -20px rgba(14, 18, 24, .35);
	--font: "VazirmatnLocal", Tahoma, "Segoe UI", system-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-weight: 500;
	font-size: 16px;
	line-height: 1.9;
	color: var(--text);
	background: var(--paper);
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
}
body.nw-lock { overflow: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 500; line-height: 1.5; margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
button, input, select { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.nw-skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.nw-skip:focus { inset-inline-start: 8px; }
.nw-wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.nw-i { flex: none; }

/* ---------- Buttons ---------- */
.nw-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
	font-weight: 500; line-height: 1.4; cursor: pointer; white-space: nowrap;
	transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
.nw-btn:hover { transform: translateY(-1px); }
.nw-btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px var(--accent); }
.nw-btn--primary:hover { background: var(--accent-ink); color: #fff; }
.nw-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.nw-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.nw-btn--lg { padding: 14px 26px; font-size: 1.02rem; }
.nw-btn--block { display: flex; width: 100%; margin-top: 10px; }

/* ---------- Header ---------- */
.nw-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 86%, transparent);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.nw-header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px -16px rgba(14, 18, 24, .3); }
.nw-header__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.nw-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.nw-brand:hover { color: var(--ink); }
.nw-brand img { max-height: 44px; width: auto; }
.nw-brand__mark {
	width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
	background: linear-gradient(145deg, var(--accent), var(--ink));
	color: #fff; font-size: 1.3rem; box-shadow: 0 8px 18px -8px var(--accent);
}
.nw-brand__text { font-size: 1.15rem; }
.nw-nav { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }
.nw-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nw-menu a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text); }
.nw-menu a:hover, .nw-menu .current-menu-item > a { background: var(--accent-soft); color: var(--accent-ink); }
.nw-burger { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.nw-hero { position: relative; background: var(--ink); color: #e9edf2; overflow: hidden; isolation: isolate; }
.nw-hero__bg { position: absolute; inset: 0; z-index: -1; }
.nw-hero__bg::before {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 20%, transparent 75%);
}
.nw-hero__bg::after {
	content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%;
	inset-block-start: -320px; inset-inline-start: 50%; transform: translateX(50%);
	background: radial-gradient(circle, color-mix(in srgb, var(--accent) 65%, transparent), transparent 65%);
	filter: blur(30px); opacity: .55;
}
.nw-hero__in { padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 84px); text-align: center; }
.nw-badge-hero {
	display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 999px;
	background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: .92rem; color: #cfe9e5;
}
.nw-badge-hero i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); animation: nw-pulse 2s infinite; }
.nw-hero h1 { color: #fff; font-size: clamp(2rem, 5.4vw, 3.7rem); line-height: 1.35; margin: 22px auto 14px; max-width: 18ch; }
.nw-hero p { max-width: 60ch; margin: 0 auto 30px; color: #aeb8c4; font-size: clamp(1rem, 2vw, 1.15rem); }

.nw-search {
	display: flex; align-items: center; gap: 12px; max-width: 580px; margin: 0 auto;
	padding: 6px 20px; border-radius: 999px; background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .16); color: #aeb8c4; transition: border-color .2s, background .2s;
}
.nw-search:focus-within { border-color: var(--accent); background: rgba(255, 255, 255, .12); }
.nw-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; padding: 12px 0; }
.nw-search input::placeholder { color: #8b97a6; }
.nw-search--light { background: #fff; border-color: var(--line); color: var(--muted); margin: 22px 0 0; max-width: 520px; margin-inline: 0; }
.nw-search--light input { color: var(--ink); }
.nw-search--light input::placeholder { color: #98a2b3; }

.nw-stats { display: flex; justify-content: center; gap: clamp(20px, 6vw, 64px); margin: 44px 0 0; padding: 0; }
.nw-stats div { text-align: center; }
.nw-stats dt { font-size: .88rem; color: #8b97a6; order: 2; }
.nw-stats dd { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.3rem); color: #fff; line-height: 1.3; }

/* ---------- Sections ---------- */
.nw-section { padding: clamp(40px, 6vw, 72px) 0; }
.nw-section--tight { padding-top: 12px; }
.nw-section--alt { background: #efece4; border-top: 1px solid var(--line); }
.nw-section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.nw-section__head h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }

.nw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nw-chips button {
	padding: 7px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
	color: var(--text); cursor: pointer; transition: all .18s;
}
.nw-chips button:hover { border-color: var(--accent); color: var(--accent-ink); }
.nw-chips button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Grid & cards ---------- */
.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.nw-card-sys {
	display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.nw-card-sys:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.nw-card-sys.is-hidden { display: none; }
.nw-card-sys__media { position: relative; display: block; aspect-ratio: 8 / 5; overflow: hidden; background: #e9e6dd; }
.nw-card-sys__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.nw-card-sys:hover .nw-card-sys__media img { transform: scale(1.05); }
.nw-live {
	position: absolute; inset-block-start: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 7px;
	padding: 3px 12px; border-radius: 999px; background: rgba(14, 18, 24, .78); backdrop-filter: blur(6px);
	color: #fff; font-size: .8rem;
}
.nw-live i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: nw-pulse 2s infinite; }
.nw-card-sys__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.nw-kicker { font-size: .82rem; color: var(--copper); }
.nw-card-sys h3 { font-size: 1.2rem; }
.nw-card-sys h3 a { color: var(--ink); }
.nw-card-sys h3 a:hover { color: var(--accent); }
.nw-card-sys__body > p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.85; }
.nw-card-sys__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; }
.nw-card-sys__actions .nw-btn { padding: 8px 18px; font-size: .94rem; }

.nw-tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nw-tags li { padding: 1px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-size: .78rem; line-height: 1.9; }

/* placeholder thumbnail */
.nw-ph {
	position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden;
	background: linear-gradient(135deg, hsl(var(--h1) 55% 24%), hsl(var(--h2) 60% 38%));
}
.nw-ph span { position: relative; z-index: 2; font-size: clamp(3rem, 8vw, 5rem); color: rgba(255, 255, 255, .92); line-height: 1; }
.nw-ph i { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); }
.nw-ph i:nth-of-type(1) { width: 70%; aspect-ratio: 1; inset-inline-end: -14%; inset-block-end: -40%; }
.nw-ph i:nth-of-type(2) { width: 46%; aspect-ratio: 1; inset-inline-start: -10%; inset-block-start: -30%; background: rgba(255, 255, 255, .05); }

.nw-empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.nw-empty[hidden] { display: none; }
.nw-empty strong { color: var(--ink); font-weight: 500; font-size: 1.1rem; }
.nw-empty span { color: var(--muted); }
.nw-empty--big { padding: 90px 20px; }
.nw-empty .nw-btn { margin-top: 14px; }

/* ---------- Page heads ---------- */
.nw-pagehead { background: var(--ink); color: #fff; padding: clamp(36px, 6vw, 64px) 0; position: relative; overflow: hidden; }
.nw-pagehead::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; inset-block-start: -240px; inset-inline-end: -80px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%); opacity: .6; }
.nw-pagehead .nw-wrap { position: relative; z-index: 1; }
.nw-pagehead h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.nw-pagehead .nw-search--light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.nw-pagehead .nw-search--light input { color: #fff; }
.nw-lead { color: #b6c0cc; font-size: 1.1rem; margin: 10px 0 0; max-width: 62ch; }
.nw-pagehead__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.nw-pagehead__actions .nw-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.nw-pagehead__actions .nw-btn--ghost:hover { border-color: #fff; color: #fff; }
.nw-crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: #8b97a6; font-size: .9rem; margin-bottom: 14px; }
.nw-crumbs a { color: #b6c0cc; }
.nw-crumbs a:hover { color: #fff; }

/* ---------- Single system ---------- */
.nw-sys { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; margin-top: -40px; position: relative; z-index: 2; align-items: start; }
.nw-sys__shot {
	position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
	box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; background: #e9e6dd;
}
.nw-sys__shot img { width: 100%; height: 100%; object-fit: cover; }
.nw-sys__play {
	position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(255, 255, 255, .25), 0 16px 40px -10px rgba(0, 0, 0, .5);
	transition: transform .2s;
}
.nw-sys__play:hover { transform: scale(1.08); }
.nw-sys__play svg { width: 30px; height: 30px; fill: currentColor; }
.nw-sys__main .nw-prose { margin-top: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.nw-sys__side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }
.nw-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.nw-box h3 { font-size: 1.05rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.nw-meta { margin: 0; display: grid; gap: 10px; }
.nw-meta div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.nw-meta div:last-child { border: 0; padding-bottom: 0; }
.nw-meta dt { color: var(--muted); }
.nw-meta dd { margin: 0; color: var(--ink); }
.nw-box .nw-tags { margin-top: 16px; }
.nw-box--demo { background: linear-gradient(160deg, #0e1218, #1b2a2a); border: 0; color: #dfe7ef; }
.nw-box--demo h3 { color: #fff; }
.nw-box--admin { background: #fffaf3; border-color: #f0dcc3; }
.nw-cred { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 8px 12px; margin-top: 8px; }
.nw-cred span { color: #94a3b4; font-size: .85rem; min-width: 64px; }
.nw-cred code { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95rem; color: #fff; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.nw-cred button { background: none; border: 0; color: #cfe9e5; cursor: pointer; padding: 4px; border-radius: 8px; display: grid; }
.nw-cred button:hover { background: rgba(255, 255, 255, .12); }
.nw-cred button.is-done { color: #34d399; }

/* ---------- Viewer overlay ---------- */
.nw-viewer { position: fixed; inset: 0; z-index: 1000; background: #0a0d12; display: flex; flex-direction: column; animation: nw-fade .25s ease; }
.nw-viewer[hidden] { display: none; }
.nw-viewer__bar {
	display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #131922; border-bottom: 1px solid #222b38; color: #dfe7ef;
}
.nw-viewer__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.nw-vbtn {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; cursor: pointer;
	background: #1d2633; border: 1px solid #2b3647; color: #dfe7ef; line-height: 1.4; transition: background .15s;
}
.nw-vbtn:hover { background: #28344a; color: #fff; }
.nw-vbtn--close { background: #3a1f24; border-color: #5a2a31; color: #ffd8dc; }
.nw-vbtn--close:hover { background: #55262e; color: #fff; }
.nw-devices { display: flex; gap: 4px; padding: 4px; background: #1d2633; border-radius: 12px; border: 1px solid #2b3647; }
.nw-devices button { width: 40px; height: 34px; border: 0; background: none; color: #8b97a6; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.nw-devices button:hover { color: #fff; }
.nw-devices button.is-active { background: var(--accent); color: #fff; }
.nw-viewer__tools { display: flex; gap: 8px; align-items: center; }
.nw-pop { position: relative; }
.nw-pop__body { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: 280px; background: #131922; border: 1px solid #2b3647; border-radius: 14px; padding: 10px; box-shadow: var(--shadow-lg); z-index: 5; }
.nw-pop__body[hidden] { display: none; }
.nw-viewer__stage { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; align-items: stretch; padding: 0; overflow: auto; background:
	radial-gradient(circle at 1px 1px, #1a212c 1px, transparent 0) 0 0 / 22px 22px, #0a0d12; }
.nw-viewer__frame { width: 100%; height: 100%; background: #fff; transition: width .35s cubic-bezier(.2, .7, .2, 1), height .35s, margin .35s, border-radius .35s; }
.nw-viewer__frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.nw-viewer__frame[data-device="tablet"] { width: 820px; max-width: 100%; height: calc(100% - 40px); margin-block: 20px; border-radius: 22px; box-shadow: 0 0 0 10px #1d2633, var(--shadow-lg); overflow: hidden; }
.nw-viewer__frame[data-device="mobile"] { width: 390px; max-width: 100%; height: min(844px, calc(100% - 40px)); margin-block: 20px; border-radius: 34px; box-shadow: 0 0 0 10px #1d2633, var(--shadow-lg); overflow: hidden; }
.nw-viewer__loader { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; color: #8b97a6; background: #0a0d12; transition: opacity .3s; pointer-events: none; }
.nw-viewer__loader.is-done { opacity: 0; }
.nw-viewer__loader i { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #26303f; border-top-color: var(--accent); animation: nw-spin .8s linear infinite; }

/* ---------- Prose & footer ---------- */
.nw-prose-wrap { max-width: 860px; }
.nw-prose { font-size: 1.04rem; }
.nw-prose h2, .nw-prose h3 { margin: 1.6em 0 .6em; }
.nw-prose ul, .nw-prose ol { padding-inline-start: 1.4em; }
.nw-prose img { border-radius: 12px; }
.nw-post { padding: 22px 0; border-bottom: 1px solid var(--line); }
.nw-post h2 a { color: var(--ink); }
.navigation.pagination { margin-top: 36px; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { padding: 6px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }

.nw-footer { background: var(--ink); color: #9aa6b4; margin-top: 0; }
.nw-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding: 40px 0; }
.nw-footer__brand { display: flex; align-items: center; gap: 14px; }
.nw-footer__brand strong { color: #fff; font-weight: 500; }
.nw-footer__brand p { margin: 0; font-size: .92rem; }
.nw-footer__dev { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; text-align: left; align-items: flex-start; border-inline-start: 1px solid #243040; padding-inline-start: 24px; }
.nw-footer__dev strong { color: #fff; font-weight: 500; }
.nw-footer__contact { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.nw-footer a { color: #b9e5df; }
.nw-footer a:hover { color: #fff; }

/* ---------- Motion ---------- */
@keyframes nw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes nw-spin { to { transform: rotate(360deg); } }
@keyframes nw-fade { from { opacity: 0; } }
@keyframes nw-rise { from { opacity: 0; transform: translateY(14px); } }
.nw-card-sys { animation: nw-rise .5s both; }
.nw-grid .nw-card-sys:nth-child(2) { animation-delay: .05s; }
.nw-grid .nw-card-sys:nth-child(3) { animation-delay: .1s; }
.nw-grid .nw-card-sys:nth-child(4) { animation-delay: .15s; }
.nw-grid .nw-card-sys:nth-child(n+5) { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.nw-sys { grid-template-columns: 1fr; margin-top: 0; padding-top: 28px; }
	.nw-sys__side { position: static; }
}
@media (max-width: 820px) {
	.nw-burger { display: inline-flex; }
	.nw-nav {
		position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 10px;
		padding: 16px 20px 22px; background: var(--paper); border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px -24px rgba(14, 18, 24, .4); display: none;
	}
	.nw-nav.is-open { display: flex; }
	.nw-menu { flex-direction: column; }
	.nw-nav__cta { width: 100%; }
	.nw-devices { display: none; }
	.nw-vbtn span { display: none; }
	.nw-vbtn--close span { display: inline; }
	.nw-footer__dev { border: 0; padding: 0; }
}
@media (max-width: 520px) {
	.nw-stats { gap: 20px; }
	.nw-card-sys__actions { flex-wrap: wrap; }
	.nw-sys__main .nw-prose { padding: 20px; }
	.nw-viewer__title { display: none; }
	.nw-viewer__tools { margin-inline-start: auto; }
}

/* ---------- v1.1: WordPress preview, kind chip, hidden flag ---------- */
.nw-kind { display: inline-block; margin-inline-start: 8px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .76rem; line-height: 1.8; }
.nw-flag { margin: 12px 0 0; padding: 8px 14px; border-radius: 12px; background: #fff4e5; border: 1px solid #fcd9a8; color: #8a4b08; font-size: .92rem; }
.nw-note { margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-size: .9rem; line-height: 1.9; }
.nw-note code { background: rgba(255, 255, 255, .7); padding: 0 6px; border-radius: 6px; }
.nw-seg { display: flex; gap: 4px; padding: 4px; background: #1d2633; border-radius: 12px; border: 1px solid #2b3647; }
.nw-seg button { height: 34px; padding: 0 16px; border: 0; background: none; color: #8b97a6; border-radius: 8px; cursor: pointer; font: inherit; font-size: .88rem; }
.nw-seg button:hover { color: #fff; }
.nw-seg button.is-active { background: var(--accent); color: #fff; }

/* =====================================================================
   v2 — طراحی نسل جدید: شیشه‌ای، شفق قطبی، انیمیشن اسکرول، پوسته تیره
   ===================================================================== */
:root {
	--deep: #0a0e13;
	--accent-2: color-mix(in srgb, var(--accent) 50%, #7c5cff);
	--glow: color-mix(in srgb, var(--accent) 38%, transparent);
	--surface: #fff;
	--ease: cubic-bezier(.2, .8, .2, 1);
}
html[data-theme="dark"] {
	color-scheme: dark;
	--paper: #0c1117; --card: #131a23; --surface: #131a23; --line: #222d3b;
	--text: #cfd8e3; --ink: #f2f5f9; --muted: #8b97a8;
	--accent-soft: color-mix(in srgb, var(--accent) 20%, #0c1117);
	--accent-ink: color-mix(in srgb, var(--accent) 55%, #fff);
	--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 34px -14px rgba(0, 0, 0, .7);
}
body { transition: background-color .4s, color .4s; }
::selection { background: var(--accent); color: #fff; }
html { scrollbar-color: var(--accent) transparent; scrollbar-width: thin; }

/* surfaces that were hard-coded white */
.nw-chips button, .nw-empty, .nw-box, .nw-sys__main .nw-prose, .page-numbers, .nw-search--light { background: var(--surface); }
.nw-section--alt { background: color-mix(in srgb, var(--accent) 5%, var(--paper)); }
.nw-box--admin { background: color-mix(in srgb, #f59e0b 10%, var(--surface)); border-color: color-mix(in srgb, #f59e0b 30%, var(--line)); }
.nw-hero, .nw-pagehead, .nw-footer { background: var(--deep); }
.nw-chips button.is-active, .page-numbers.current, .nw-skip { background: var(--accent); border-color: var(--accent); color: #fff; }
.nw-brand__mark { background: linear-gradient(145deg, var(--accent), var(--accent-2)); }
.nw-btn--ghost { color: var(--ink); }

/* progress bar + header */
.nw-scroll { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.nw-scroll i { display: block; height: 100%; width: 0; background: linear-gradient(270deg, var(--accent), var(--accent-2), var(--accent)); background-size: 200% 100%; animation: nw-shift 4s linear infinite; transform-origin: right; }
.nw-header { background: color-mix(in srgb, var(--paper) 72%, transparent); }
.nw-header__in { min-height: 68px; }
.nw-menu a { position: relative; transition: background .2s, color .2s; }
.nw-theme-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; position: relative; overflow: hidden; transition: transform .3s var(--ease), border-color .2s; }
.nw-theme-btn:hover { transform: rotate(18deg) scale(1.06); border-color: var(--accent); }
.nw-theme-btn span { position: absolute; display: grid; transition: transform .5s var(--ease), opacity .3s; }
.nw-theme-btn__moon { transform: translateY(120%) rotate(-60deg); opacity: 0; }
html[data-theme="dark"] .nw-theme-btn__sun { transform: translateY(-120%) rotate(60deg); opacity: 0; }
html[data-theme="dark"] .nw-theme-btn__moon { transform: none; opacity: 1; }
.nw-nav { margin-inline-start: auto; }
.nw-burger { margin-inline-start: 0; }
.nw-theme-btn { margin-inline-start: 12px; }

/* hero: aurora + floating windows */
.nw-hero__bg::after { display: none; }
.nw-aur { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.nw-aur--1 { width: 560px; height: 560px; inset-block-start: -240px; inset-inline-start: 8%; background: var(--accent); animation: nw-drift 14s ease-in-out infinite alternate; }
.nw-aur--2 { width: 480px; height: 480px; inset-block-start: -120px; inset-inline-end: 6%; background: var(--accent-2); animation: nw-drift 17s ease-in-out -4s infinite alternate-reverse; }
.nw-aur--3 { width: 420px; height: 420px; inset-block-end: -260px; inset-inline-start: 38%; background: color-mix(in srgb, var(--accent) 60%, #ff7a3d); opacity: .28; animation: nw-drift 19s ease-in-out -8s infinite alternate; }
.nw-hero h1 { background: linear-gradient(100deg, #fff 10%, color-mix(in srgb, var(--accent) 45%, #fff) 45%, #fff 75%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nw-shift 7s linear infinite; }
.nw-hero__in > * { animation: nw-rise .8s var(--ease) both; }
.nw-hero__in > *:nth-child(2) { animation-delay: .08s; }
.nw-hero__in > *:nth-child(3) { animation-delay: .16s; }
.nw-hero__in > *:nth-child(4) { animation-delay: .24s; }
.nw-hero__in > *:nth-child(5) { animation-delay: .32s; }
.nw-hero__in { position: relative; z-index: 2; }
.nw-search { backdrop-filter: blur(12px); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .8); }
.nw-search:focus-within { box-shadow: 0 0 0 4px var(--glow), 0 20px 50px -24px rgba(0, 0, 0, .8); }
.nw-stats { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; padding: 18px clamp(20px, 5vw, 48px); width: fit-content; margin-inline: auto; backdrop-filter: blur(10px); }
.nw-stats dd { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--accent) 50%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.nw-hero__art { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: none; }
.nw-float { position: absolute; width: 210px; padding: 12px; border-radius: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9); display: grid; gap: 8px; animation: nw-float 7s ease-in-out infinite; }
.nw-float__bar { display: flex; gap: 5px; }
.nw-float__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.nw-float__bar i:first-child { background: #ff6b6b; } .nw-float__bar i:nth-child(2) { background: #ffd166; } .nw-float__bar i:nth-child(3) { background: #34d399; }
.nw-float b { display: block; height: 72px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.nw-float s { display: block; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .22); text-decoration: none; }
.nw-float s:nth-of-type(2) { width: 62%; }
.nw-float u { display: block; height: 28px; width: 46%; border-radius: 999px; background: rgba(255, 255, 255, .2); text-decoration: none; }
.nw-float--a { inset-block-start: 22%; inset-inline-start: 4%; transform: rotate(-6deg); }
.nw-float--b { inset-block-start: 58%; inset-inline-start: 11%; width: 170px; animation-delay: -2.5s; transform: rotate(5deg); }
.nw-float--c { inset-block-start: 30%; inset-inline-end: 5%; width: 190px; animation-delay: -4.5s; transform: rotate(7deg); }
@media (min-width: 1180px) { .nw-hero__art { display: block; } }

/* marquee */
.nw-marquee { background: var(--deep); border-top: 1px solid rgba(255, 255, 255, .06); overflow: hidden; direction: ltr; padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.nw-marquee__track { display: flex; gap: 14px; width: max-content; animation: nw-marq 38s linear infinite; }
.nw-marquee:hover .nw-marquee__track { animation-play-state: paused; }
.nw-marquee span { padding: 4px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); color: #9fb0c3; font-size: .85rem; white-space: nowrap; background: rgba(255, 255, 255, .03); }

/* section heads */
.nw-section__head h2 { position: relative; padding-inline-start: 18px; }
.nw-section__head h2::before { content: ""; position: absolute; inset-inline-start: 0; top: 12%; bottom: 12%; width: 5px; border-radius: 4px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }

/* cards */
.nw-card-sys { position: relative; will-change: transform; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.nw-card-sys::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 55%); mix-blend-mode: soft-light; }
.nw-card-sys:hover::before { opacity: 1; }
.nw-card-sys__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(8, 12, 18, .75), transparent 55%); opacity: 0; transition: opacity .35s; }
.nw-card-sys__media::after { content: "مشاهده پیش‌نمایش"; position: absolute; z-index: 2; inset-inline: 0; bottom: 14px; margin-inline: auto; width: fit-content; padding: 6px 18px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #0e1218; font-size: .85rem; transform: translateY(14px); opacity: 0; transition: transform .35s var(--ease), opacity .35s; }
.nw-card-sys:hover .nw-card-sys__media::before { opacity: 1; }
.nw-card-sys:hover .nw-card-sys__media::after { opacity: 1; transform: none; }
.nw-live { z-index: 4; }
.nw-kind { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.nw-card-sys:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 30px 70px -26px var(--glow), var(--shadow-lg); }
.nw-card-sys h3 a { background: linear-gradient(currentColor, currentColor) 100% 100% / 0 2px no-repeat; transition: background-size .4s var(--ease), color .2s; }
.nw-card-sys:hover h3 a { background-size: 100% 2px; }

/* generated cover (no image set) */
.nw-ph { background: linear-gradient(135deg, hsl(var(--h1) 60% 22%), hsl(var(--h2) 65% 40%), hsl(var(--h1) 60% 22%)); background-size: 220% 220%; animation: nw-bg 9s ease-in-out infinite; align-content: center; justify-items: center; gap: 10px; }
.nw-ph span { position: absolute; inset: auto; font-size: clamp(8rem, 22vw, 14rem); opacity: .1; transform: rotate(-8deg); }
.nw-ph strong { position: relative; z-index: 2; color: #fff; font-weight: 500; font-size: clamp(1rem, 2.2vw, 1.4rem); text-align: center; padding-inline: 18px; text-shadow: 0 4px 20px rgba(0, 0, 0, .4); }
.nw-ph em { position: relative; z-index: 2; font-style: normal; font-size: .75rem; padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); color: #fff; backdrop-filter: blur(6px); }

/* scroll reveal (only with JS) */
.nw-js .nw-card-sys { animation: none; }
.nw-js .nw-reveal { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.nw-js .nw-reveal.is-in { opacity: 1; transform: none; }
.nw-js .nw-card-sys.nw-reveal.is-in { transition: opacity .7s var(--ease) var(--d, 0s), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }

/* single page */
.nw-sys__shot { padding-top: 38px; background: #151c27; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: 20px; box-shadow: 0 40px 90px -34px var(--glow), var(--shadow-lg); }
.nw-sys__shot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 38px; z-index: 3; background:
	radial-gradient(circle at 20px 19px, #ff6b6b 5px, transparent 6px), radial-gradient(circle at 38px 19px, #ffd166 5px, transparent 6px), radial-gradient(circle at 56px 19px, #34d399 5px, transparent 6px),
	linear-gradient(#1b2433, #1b2433); }
.nw-sys__shot img, .nw-sys__shot .nw-ph { height: 100%; }
.nw-sys__play { top: 38px; animation: nw-ring 2.4s ease-out infinite; }
.nw-sys__side .nw-box { transition: transform .3s var(--ease), box-shadow .3s; }
.nw-sys__side .nw-box:hover { transform: translateY(-3px); }
.nw-box--demo { background: linear-gradient(160deg, #0a0e13, color-mix(in srgb, var(--accent) 35%, #0a0e13)); }
.nw-pagehead::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.nw-pagehead::after { filter: blur(40px); animation: nw-drift 16s ease-in-out infinite alternate; }

/* viewer */
.nw-viewer__bar { background: rgba(19, 25, 34, .88); backdrop-filter: blur(16px); }
.nw-viewer__loader i { border-top-color: var(--accent); box-shadow: 0 0 30px var(--glow); }

/* footer */
.nw-footer { position: relative; }
.nw-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent); }

/* buttons */
.nw-btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); position: relative; overflow: hidden; }
.nw-btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(120%); transition: transform .7s var(--ease); }
.nw-btn--primary:hover { background: linear-gradient(135deg, var(--accent-ink), var(--accent)); }
.nw-btn--primary:hover::after { transform: translateX(-120%); }

@keyframes nw-shift { to { background-position: -220% 0; } }
@keyframes nw-drift { from { transform: translate3d(-40px, 0, 0) scale(1); } to { transform: translate3d(60px, 50px, 0) scale(1.18); } }
@keyframes nw-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
@keyframes nw-marq { to { transform: translateX(-50%); } }
@keyframes nw-bg { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes nw-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent), 0 0 0 12px rgba(255, 255, 255, .25), 0 16px 40px -10px rgba(0, 0, 0, .5); } 100% { box-shadow: 0 0 0 34px transparent, 0 0 0 12px rgba(255, 255, 255, .25), 0 16px 40px -10px rgba(0, 0, 0, .5); } }
@media (max-width: 820px) { .nw-theme-btn { margin-inline-start: 0; } .nw-nav { margin-inline-start: 0; } .nw-header__in { gap: 12px; } .nw-burger { margin-inline-start: auto; } .nw-stats { width: auto; } }
@media (prefers-reduced-motion: reduce) { .nw-js .nw-reveal { opacity: 1; transform: none; } }

/* =====================================================================
   v2.1 — سرعت: حذف افکت‌های سنگین (blur متحرک، backdrop-filter، mix-blend،
   انیمیشن روی پس‌زمینه/متن)، فقط transform/opacity؛ توقف خارج از دید
   ===================================================================== */
.nw-aur { filter: none; animation: none; opacity: 1; will-change: auto; }
.nw-aur--1 { background: radial-gradient(circle closest-side, color-mix(in srgb, var(--accent) 60%, transparent), transparent); }
.nw-aur--2 { background: radial-gradient(circle closest-side, color-mix(in srgb, var(--accent-2) 55%, transparent), transparent); }
.nw-aur--3 { background: radial-gradient(circle closest-side, rgba(255, 122, 61, .22), transparent); opacity: 1; }
.nw-hero__bg .nw-aur--1, .nw-hero__bg .nw-aur--2 { animation: nw-sway 18s ease-in-out infinite alternate; }
.nw-pagehead::after { filter: none; animation: none; }
.nw-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--paper) 94%, transparent); }
.nw-search, .nw-stats, .nw-float, .nw-viewer__bar, .nw-ph em { backdrop-filter: none; -webkit-backdrop-filter: none; }
.nw-viewer__bar { background: #131922; }
.nw-hero h1 { animation: none; background: linear-gradient(100deg, #fff 10%, color-mix(in srgb, var(--accent) 40%, #fff) 60%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nw-ph { animation: none; background-size: 100% 100%; }
.nw-card-sys::before { mix-blend-mode: normal; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%); }
.nw-scroll i { animation: none; width: 100%; transform: scaleX(0); transform-origin: right; background: linear-gradient(270deg, var(--accent), var(--accent-2)); }
.nw-marquee { mask-image: none; -webkit-mask-image: none; position: relative; }
.nw-marquee::before, .nw-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.nw-marquee::before { left: 0; background: linear-gradient(90deg, var(--deep), transparent); }
.nw-marquee::after { right: 0; background: linear-gradient(270deg, var(--deep), transparent); }
.nw-marquee__track, .nw-float { will-change: transform; }
.nw-sys__play { animation: none; }
.nw-grid .nw-card-sys { content-visibility: auto; contain-intrinsic-size: auto 540px; }
.nw-card-sys__media img { content-visibility: auto; }
@keyframes nw-sway { from { transform: translate3d(-30px, 0, 0); } to { transform: translate3d(40px, 24px, 0); } }

/* توقف انیمیشن‌ها خارج از دید یا تب پنهان؛ دستگاه ضعیف: بدون انیمیشن تزئینی */
.nw-hero.nw-paused *, .nw-paused-all *, .nw-paused-all *::before, .nw-paused-all *::after { animation-play-state: paused !important; }
.nw-lite .nw-aur, .nw-lite .nw-float, .nw-lite .nw-marquee__track, .nw-lite .nw-badge-hero i, .nw-lite .nw-live i, .nw-lite .nw-hero__in > * { animation: none !important; }
.nw-lite .nw-reveal { opacity: 1; transform: none; transition: none; }
.nw-lite .nw-card-sys::before, .nw-lite .nw-card-sys__media::before { display: none; }
@media (max-width: 820px) { .nw-aur, .nw-float, .nw-marquee__track { animation: none !important; } .nw-hero__in > * { animation-duration: .4s; } }

/* ---------- تصویر قاب‌دار به‌جای آیکن‌ها ---------- */
.nw-float--img { width: 250px; padding: 10px; gap: 8px; background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); }
.nw-float--img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; display: block; background: #151c27; }
.nw-float--b.nw-float--img { width: 215px; }
.nw-float--c.nw-float--img { width: 235px; }
.nw-brand__mark--img { padding: 3px; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 8px 18px -10px var(--accent); overflow: hidden; }
.nw-brand__mark--img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }

/* =====================================================================
   v3 — فیلتر و مرتب‌سازی، علاقه‌مندی، نشان‌ها، تب‌ها، گالری، جستجوی سریع
   ===================================================================== */
.nw-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.nw-toolbar__r { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nw-seg2 { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; }
.nw-seg2 button { border: 0; background: none; color: var(--muted); font: inherit; font-size: .92rem; padding: 7px 16px; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.nw-seg2 button:hover { color: var(--ink); }
.nw-seg2 button.is-active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.nw-toolbar select { font: inherit; font-size: .92rem; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.nw-favtoggle { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .92rem; cursor: pointer; transition: border-color .2s, color .2s; }
.nw-favtoggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nw-favtoggle b { min-width: 22px; height: 22px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: .78rem; font-weight: 500; }
.nw-favtoggle.is-on { border-color: #e11d48; color: #e11d48; }
.nw-favtoggle.is-on svg { fill: currentColor; }
.nw-grid { display: grid; }

/* card extras */
.nw-fav { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(10, 14, 19, .55); color: #fff; cursor: pointer; transition: transform .25s var(--ease), background .2s; }
.nw-fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; transition: fill .2s; }
.nw-fav:hover { transform: scale(1.12); background: rgba(225, 29, 72, .85); }
.nw-fav.is-on { background: #e11d48; }
.nw-fav.is-on svg { fill: #fff; }
.nw-flags { position: absolute; z-index: 4; bottom: 12px; inset-inline-start: 12px; display: flex; gap: 6px; }
.nw-flags b { font-weight: 500; font-size: .74rem; padding: 2px 11px; border-radius: 999px; color: #fff; }
.nw-flags .is-feat { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.nw-flags .is-new { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.nw-price { margin-inline-start: auto; font-size: .9rem; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.nw-price.is-free { background: #dcfce7; color: #166534; }
html[data-theme="dark"] .nw-price.is-free { background: #0f3a22; color: #86efac; }

/* header quick-search button */
.nw-cmd-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; margin-inline-start: 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; transition: border-color .2s, color .2s; }
.nw-cmd-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.nw-cmd-btn:hover { border-color: var(--accent); color: var(--ink); }
.nw-cmd-btn kbd, .nw-cmd__hint kbd { font: 500 .72rem/1 system-ui, sans-serif; padding: 3px 7px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); direction: ltr; }
.nw-cmd-btn + .nw-theme-btn { margin-inline-start: 8px; }
@media (max-width: 820px) { .nw-cmd-btn { margin-inline-start: auto; width: 42px; padding: 0; justify-content: center; } .nw-cmd-btn span, .nw-cmd-btn kbd { display: none; } .nw-cmd-btn + .nw-theme-btn { margin-inline-start: 0; } .nw-burger { margin-inline-start: 0; } }

/* quick-search palette */
.nw-cmd { position: fixed; inset: 0; z-index: 300; background: rgba(5, 8, 12, .6); display: grid; place-items: start center; padding: 12vh 16px 0; }
.nw-cmd[hidden] { display: none; }
.nw-cmd__box { width: min(640px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .7); overflow: hidden; animation: nw-pop .22s var(--ease); }
.nw-cmd__box input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 1.05rem; padding: 20px 22px; outline: none; }
.nw-cmd__box ul { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.nw-cmd__box li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.nw-cmd__box li a span { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.nw-cmd__box li.is-sel a, .nw-cmd__box li a:hover { background: var(--accent-soft); }
.nw-cmd__box li.is-empty { padding: 22px; text-align: center; color: var(--muted); }
.nw-cmd__hint { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.nw-cmd__hint kbd { margin-inline: 2px; }
@keyframes nw-pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* item page: tabs, features, changelog, gallery */
.nw-tabs { margin-top: 26px; }
.nw-tabs__nav { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.nw-tabs__nav button { border: 0; background: none; font: inherit; color: var(--muted); padding: 12px 20px; cursor: pointer; position: relative; white-space: nowrap; transition: color .2s; }
.nw-tabs__nav button:hover { color: var(--ink); }
.nw-tabs__nav button.is-active { color: var(--ink); }
.nw-tabs__nav button.is-active::after { content: ""; position: absolute; inset-inline: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.nw-tabs--single .nw-tabs__nav { display: none; }
.nw-tabs--single { margin-top: 20px; }
.nw-tabs__pane[hidden] { display: none; }
.nw-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.nw-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.nw-checks svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); fill: none; stroke: currentColor; stroke-width: 2.4; margin-top: 2px; }
.nw-log { list-style: none; margin: 0; padding: 0 22px 0 0; position: relative; }
.nw-log::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: auto; right: 6px; width: 2px; background: var(--line); }
.nw-log li { position: relative; padding: 4px 0 18px; }
.nw-log li::before { content: ""; position: absolute; right: -22px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.nw-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.nw-gal a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); background: var(--surface); }
.nw-gal img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.nw-gal a:hover img { transform: scale(1.06); }
.nw-lb { position: fixed; inset: 0; z-index: 310; background: rgba(5, 8, 12, .92); display: grid; place-items: center; padding: 24px; }
.nw-lb[hidden] { display: none; }
.nw-lb img { max-width: 100%; max-height: 88vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.nw-lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.nw-lb button:hover { background: rgba(255, 255, 255, .25); }
.nw-lb__x { top: 20px; left: 20px; }
.nw-lb__n { left: 20px; top: 50%; transform: translateY(-50%); }
.nw-lb__p { right: 20px; top: 50%; transform: translateY(-50%); }

/* buy + share boxes, sticky mobile CTA */
.nw-box--buy { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--accent) 7%, var(--surface))); display: grid; gap: 10px; }
.nw-buy__price { font-size: 1.7rem; font-weight: 600; color: var(--ink); }
.nw-buy__price.is-free { color: #16a34a; }
.nw-buy__req { margin: 0; color: var(--muted); font-size: .85rem; direction: ltr; text-align: right; }
.nw-box--share h3 svg { width: 18px; height: 18px; vertical-align: -3px; margin-inline-end: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nw-share { display: flex; flex-wrap: wrap; gap: 8px; }
.nw-chip { font: inherit; font-size: .88rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s; }
.nw-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.nw-chip[hidden] { display: none; }
.nw-sticky-cta { display: none; }
@media (max-width: 820px) {
	.nw-sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 90; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 96%, transparent); border-top: 1px solid var(--line); }
	.nw-sticky-cta .nw-btn { flex: 1; justify-content: center; }
	.nw-footer { padding-bottom: 80px; }
}

.nw-price { position: absolute; z-index: 4; bottom: 12px; inset-inline-end: 12px; margin: 0; background: rgba(10, 14, 19, .8); color: #fff; font-size: .82rem; }
.nw-price.is-free { background: #16a34a; color: #fff; }
html[data-theme="dark"] .nw-price.is-free { background: #15803d; color: #fff; }
.nw-card-sys__media::after { bottom: 52px; }

/* =====================================================================
   v4 — مقایسه، فرم درخواست، نوار اعلان، شبکه‌های اجتماعی
   ===================================================================== */
.nw-ann { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; font-size: .92rem; }
.nw-ann[hidden] { display: none; }
.nw-ann__in { display: flex; align-items: center; justify-content: center; gap: 14px; padding-block: 9px; position: relative; }
.nw-ann a { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.nw-ann__x { position: absolute; inset-inline-end: 0; border: 0; background: rgba(255, 255, 255, .18); color: #fff; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.nw-footer__soc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nw-footer .nw-chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #d6dee9; }
.nw-footer .nw-chip:hover { background: rgba(255, 255, 255, .14); border-color: var(--accent); }

.nw-cmp { position: absolute; top: 12px; inset-inline-end: 56px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(10, 14, 19, .55); color: #fff; cursor: pointer; transition: transform .25s var(--ease), background .2s; }
.nw-cmp svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.nw-cmp:hover { transform: scale(1.12); background: var(--accent); }
.nw-cmp.is-on { background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.nw-cmpbar { position: fixed; z-index: 95; inset-inline: 0; bottom: 18px; margin-inline: auto; width: fit-content; max-width: calc(100% - 24px); display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 999px; background: var(--deep); color: #e6edf5; box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .12); animation: nw-pop .25s var(--ease); }
.nw-cmpbar[hidden] { display: none; }
.nw-cmpbar .nw-btn[disabled] { opacity: .45; pointer-events: none; }
.nw-cmpbar__x { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.nw-cmpmodal { position: fixed; inset: 0; z-index: 300; background: rgba(5, 8, 12, .7); display: grid; place-items: center; padding: 16px; }
.nw-cmpmodal[hidden] { display: none; }
.nw-cmpmodal__box { position: relative; width: min(1000px, 100%); max-height: 90vh; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .7); display: flex; flex-direction: column; animation: nw-pop .22s var(--ease); }
.nw-cmpmodal__x { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; border: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 1.3rem; line-height: 1; }
.nw-cmpmodal__scroll { overflow: auto; padding: 22px; padding-top: 56px; }
.nw-cmptable { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; }
.nw-cmptable th, .nw-cmptable td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; font-weight: 400; }
.nw-cmptable tr > th:first-child { color: var(--muted); width: 110px; white-space: nowrap; }
.nw-cmptable__h img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }
.nw-cmptable__h a { color: var(--ink); font-weight: 600; text-decoration: none; }
.nw-cmptable ul { margin: 0; padding: 0 18px 0 0; display: grid; gap: 4px; }
.nw-cmptable__tags { display: flex; flex-wrap: wrap; gap: 4px; direction: ltr; }
.nw-cmptable__tags span { font-size: .78rem; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }

.nw-box--lead h3 { margin-bottom: 12px; }
.nw-lead { display: grid; gap: 12px; }
.nw-lead label { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.nw-lead input[type=text], .nw-lead textarea { font: inherit; font-size: .95rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; width: 100%; box-sizing: border-box; transition: border-color .2s, box-shadow .2s; }
.nw-lead input:focus, .nw-lead textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.nw-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.nw-lead__msg { margin: 0; min-height: 1.4em; font-size: .88rem; }
.nw-lead__msg.is-ok { color: #16a34a; }
.nw-lead__msg.is-err { color: #dc2626; }
@media (max-width: 820px) { .nw-cmpbar { bottom: 80px; } }
