/* ==========================================================================
   واعي نت (WaeiNet) v1.1 — styles matching the approved mockup.
   RTL-first, logical properties, light + dark.
   ========================================================================== */

:root {
	--accent: #6d28d9;
	--accent-ink: #fff;
	--accent-soft: color-mix(in srgb, var(--accent) 12%, #fff);
	--accent-tint: color-mix(in srgb, var(--accent) 7%, var(--bg));
	--link: color-mix(in srgb, var(--accent) 82%, #000);
	--bg: #f7f7fb;
	--surface: #ffffff;
	--surface-2: #f1f0f7;
	--tint: #efedf6;
	--text: #1b1830;
	--muted: #55516b;
	--border: #e4e2ee;
	--border-strong: #d9d6e6;
	--code-bg: #16131f;
	--code-head: #2f2552;
	--code-text: #ece9ff;
	--dark: #1b1830;
	--green: #0b5d43;
	--green-soft: #e3f5ec;
	--wa: #0f7a41;
	--amber: #f59e0b;
	--amber-btn: #b45309;
	--amber-ink: #92400e;
	--amber-soft: #fff7e6;
	--red-band: #9f1d1d;
	--success: #166534;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgb(20 16 40 / .05), 0 8px 24px rgb(20 16 40 / .06);
	--shadow-lg: 0 18px 50px rgb(20 16 40 / .12);
	--container: 1200px;
	--font: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0f0d17; --surface: #18151f; --surface-2: #221e2c; --tint: #14121c;
		--text: #ece9f6; --muted: #aba6bf; --border: #2e2a3a; --border-strong: #3a3548;
		--accent-soft: color-mix(in srgb, var(--accent) 24%, #18151f);
		--link: color-mix(in srgb, var(--accent) 45%, #fff);
		--amber-soft: #2b2108; --amber-ink: #fcd34d; --green-soft: #cdeee0; --code-bg: #0b0a12; --code-head: #2a2150;
		--shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #0f0d17; --surface: #18151f; --surface-2: #221e2c; --tint: #14121c;
	--text: #ece9f6; --muted: #aba6bf; --border: #2e2a3a; --border-strong: #3a3548;
	--accent-soft: color-mix(in srgb, var(--accent) 24%, #18151f);
	--link: color-mix(in srgb, var(--accent) 45%, #fff);
	--amber-soft: #2b2108; --amber-ink: #fcd34d; --green-soft: #cdeee0; --code-bg: #0b0a12; --code-head: #2a2150;
	--shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.8; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; font-weight: 800; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.icon { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 1000; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }
.container--narrow { max-width: 860px; margin-inline: auto; }
.container--mid { max-width: 860px; text-align: center; }

/* ---------- Buttons / chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: transform .15s, background .15s, filter .15s; }
.btn:active { transform: translateY(1px); }
.btn:hover { filter: brightness(.95); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--light { background: #fff; color: #1b1830; }
.btn--dark { background: #1b1830; color: #fff; }
.btn--glass { background: rgb(255 255 255 / .16); color: #fff; }
.btn--amber { background: var(--amber-btn); color: #fff; }
.btn--soft { background: var(--accent-soft); color: var(--accent); }
.btn--soft-dark { background: var(--surface-2); color: var(--text); }
.btn--ghost { color: var(--muted); padding-inline: 12px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.copy-btn.is-copied { background: var(--success) !important; color: #fff !important; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; padding: 2px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none !important; }
.chip--post_tag, .chip--ai_tool { background: var(--surface-2); color: var(--muted); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--border); color: var(--muted); }
.level { padding: 1px 10px; border-radius: 999px; background: #dcfce7; color: #166534; font-weight: 700; }
.level--intermediate { background: #fef3c7; color: #92400e; }
.level--advanced { background: #fee2e2; color: #991b1b; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--border); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.progress { height: 3px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { flex-shrink: 0; }
.brand img { max-height: 44px; width: auto; }
.brand__name { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--text); text-decoration: none !important; }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: #fff; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.nav .menu > li { position: relative; }
.nav .menu a { display: block; padding: 8px 10px; border-radius: 9px; color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav .menu a:hover { background: var(--surface-2); }
.nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav .current_page_item > a { background: var(--surface-2); color: var(--accent); }
.nav .menu-item--deals > a, .nav .menu-item--deals.current-menu-item > a { color: var(--amber-ink); }
.nav .menu-item--deals.current-menu-item > a { background: var(--amber-soft); }
.nav .sub-menu { list-style: none; margin: 0; padding: 6px; position: absolute; inset-inline-start: 0; top: 100%; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 5; }
.nav .menu li:hover > .sub-menu, .nav .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-header__actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.nav-toggle { display: none; }
.search-panel { border-top: 1px solid var(--border); padding: 14px 0; background: var(--surface); }
.search-form { display: flex; gap: 8px; max-width: 640px; }
.search-form__input { flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); }
.search-form__input:focus { border-color: var(--accent); outline: none; }
.search-form__btn { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; }
@media (max-width: 1240px) { .nav .menu a { padding: 8px 8px; font-size: 14px; } .site-header__inner { gap: 10px; } }
@media (max-width: 1140px) {
	.nav-toggle { display: grid; }
	.site-header__cta { display: none; }
	.nav { position: fixed; inset: 68px 0 auto 0; display: none; max-height: calc(100vh - 68px); overflow-y: auto; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 12px 16px 18px; }
	.nav.is-open { display: block; }
	.nav .menu { flex-direction: column; }
	.nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-inline-start: 16px; }
}

/* ---------- Ads (dashed placeholders in the mockup = reserved space) ---------- */
.ad { margin: 24px auto; text-align: center; overflow: hidden; min-height: 100px; clear: both; }
.ad__label { display: block; font-size: 11px; color: var(--muted); letter-spacing: .04em; margin-bottom: 4px; }
.ad--header { max-width: var(--container); padding-inline: 16px; min-height: 100px; margin-top: 20px; }
.ad--after_title { min-height: 120px; }
.ad--in_content { min-height: 280px; }
.ad--after_content, .ad--archive { min-height: 250px; }
.flex-grid > .ad--archive { flex-basis: 100%; margin: 0; }
.ad--sidebar { min-height: 600px; margin: 0; }
.ad--placeholder { display: flex; align-items: center; justify-content: center; border: 2px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: 14px; padding: 12px; }
.ad--placeholder small { font-size: 12px; }
.ad ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* ---------- Layout ---------- */
.site-main { min-height: 60vh; }
.layout { display: flex; flex-wrap: wrap; gap: 40px; padding-block: 20px 64px; }
.layout > .entry { flex: 999 1 560px; min-width: 0; }
.layout > .sidebar { flex: 1 1 300px; min-width: 0; }
.section { padding-block: 56px; }
.section--tight { padding-block: 24px 48px; }
.section--tint { background: var(--tint); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.section-title { font-size: clamp(24px, 2.6vw, 30px); margin: 0; }
.section-sub { color: var(--muted); margin: 4px 0 24px; }
.section-head .section-sub { margin-bottom: 0; }
.section-link { font-weight: 700; }
.flex-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.flex-grid > * { flex: 1 1 340px; min-width: 0; }
.flex-grid--paths > * { flex-basis: 240px; }

.breadcrumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: "‹"; margin-inline-start: 6px; }
[dir="ltr"] .breadcrumbs li:not(:last-child)::after { content: "›"; }
.breadcrumbs a { color: var(--muted); }

.page-header { padding-block: 20px 24px; }
.page-header__icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; }
.page-title { font-size: clamp(30px, 4vw, 44px); margin: 0 0 8px; }
.page-title span { color: var(--accent); }
.page-desc { color: var(--muted); font-size: 18px; margin: 0; }
.page-intro { padding: 44px 0 28px; }
.page-intro--tint { background: var(--accent-tint); }
.page-intro--amber { background: var(--amber-soft); }
.page-intro--amber .page-desc { color: var(--amber-ink); }
.page-intro__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 17px; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.page-intro__icon--yt { background: #fde2e2; color: #c4302b; }

.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; justify-content: center; }
.pills__label { font-weight: 700; color: var(--muted); margin-inline-end: 4px; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none !important; }
.pill:hover { border-color: var(--accent); }
.pill.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: #2d2350; overflow: hidden; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { color: #fff; opacity: .8; }
.card__play { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #c4302b; color: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / .35); }
.card__play svg { fill: #fff; margin-inline-start: 3px; }
.card__badge { position: absolute; bottom: 12px; right: 12px; background: rgb(0 0 0 / .72); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.card__chip { align-self: flex-start; position: relative; z-index: 1; }
.card__title { margin: 0; font-size: 18px; line-height: 1.6; font-weight: 800; }
.card__title a { color: var(--text); }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__excerpt { color: var(--muted); font-size: 15px; margin: 0; }
.card--mini { padding: 18px; gap: 8px; }
.card--mini .chip { align-self: flex-start; }
.card--mini b { line-height: 1.6; }

.card--prompt { padding: 20px; gap: 12px; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.card--prompt .card__title { font-size: 17px; }
.card__prompt { margin: 0; border: 1px solid var(--border); background: var(--code-bg); color: var(--code-text); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; line-height: 1.85; white-space: pre-wrap; max-height: 9.6em; overflow: hidden; }
.card__actions { display: flex; align-items: center; gap: 8px; margin-top: auto; position: relative; z-index: 1; }

.card--service { padding: 26px; gap: 10px; }
.card--service.is-featured { border: 2px solid var(--accent); }
.card__ribbon { align-self: flex-start; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; padding: 2px 12px; border-radius: 999px; }
.card--service .card__title { font-size: 20px; }
.card__cta { margin-top: auto; position: relative; z-index: 1; }
.price { margin: 6px 0; color: var(--muted); font-size: 14px; }
.price__value { font-size: 30px; font-weight: 800; color: var(--text); }
.price__cur { font-weight: 700; }
.price--ask { font-size: 15px; }
.price--ask b { color: var(--text); }

.path-card { padding: 24px; gap: 10px; }
.path-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--accent-soft); color: var(--accent); }
.path-card__title { font-weight: 800; font-size: 19px; }
.path-card__desc { color: var(--muted); font-size: 15px; }
.path-card__go { color: var(--accent); font-weight: 700; font-size: 14px; margin-top: auto; }

.tool-card { padding: 22px; gap: 8px; }
.tool-card.is-featured { border: 2px solid var(--accent); }
.tool-card.is-soon { cursor: default; }
.tool-card.is-soon:hover { transform: none; box-shadow: none; }
.tool-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tool-card__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 18px; }
.tool-card__title { font-weight: 800; font-size: 18px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 64px; }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero__text { flex: 1 1 520px; min-width: 0; }
.hero__visual { flex: 1 1 400px; min-width: 0; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--accent); font-weight: 700; font-size: 14px; }
.hero__yt { color: #c4302b; display: inline-flex; }
.hero__title { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.3; margin: 18px 0 16px; }
.hero__sub { color: var(--muted); font-size: 19px; margin: 0 0 28px; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__tools a { padding: 3px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; }
.term { background: var(--code-bg); color: var(--code-text); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgb(20 16 40 / .18); }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #221e2c; direction: ltr; }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term__bar i:nth-child(2) { background: #febc2e; }
.term__bar i:nth-child(3) { background: #28c840; }
.term__bar span { margin-left: auto; font-family: var(--mono); font-size: 12px; color: #b9b4cc; }
.term__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.term__line { margin: 0; background: #2a2536; padding: 12px 14px; border-radius: 12px; }
.term__line b { color: #c4b5fd; }
.term__line--ai { background: #3b2a66; }
.term__line--ai b { color: #ddd6fe; }
.term__files { display: flex; flex-wrap: wrap; gap: 8px; direction: ltr; font-family: var(--mono); font-size: 12px; }
.term__files span { padding: 4px 10px; border-radius: 8px; background: #2a2536; }

.play-band { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; padding: 32px; border-radius: 22px; background: var(--green); color: #fff; }
.play-band__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: rgb(255 255 255 / .14); flex-shrink: 0; }
.play-band__text { flex: 1 1 420px; min-width: 0; }
.play-band h2 { margin: 0 0 6px; font-size: 24px; }
.play-band p { margin: 0; color: var(--green-soft); }
.play-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Single lesson ---------- */
.entry-header { margin-bottom: 22px; }
.entry-title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.4; margin: 0 0 14px; }
.entry-lead { font-size: 19px; color: var(--muted); }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.entry-meta__author { display: flex; align-items: center; gap: 8px; }
.entry-meta__author a { color: var(--text); font-weight: 700; }
.entry-meta__avatar { border-radius: 50%; }
.entry-media { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.entry-media img { width: 100%; }
.entry-media--video { background: transparent; overflow: visible; }

.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #1a1630; }
.yt__btn, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.yt__btn:hover img { opacity: 1; }
.yt__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: #c4302b; color: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / .4); transition: transform .2s; }
.yt__play svg { fill: #fff; margin-left: 4px; }
.yt__btn:hover .yt__play { transform: translate(-50%, -50%) scale(1.08); }
.video-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 10px 4px 0; color: var(--muted); font-size: 14px; }
.video-meta > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.video-meta .icon-youtube { color: #c4302b; }
.video-meta__links { display: inline-flex; gap: 14px; font-weight: 700; }
.video-meta__sub { color: #c4302b; }
.chapters { margin: 0 0 24px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.chapters__title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 800; }
.chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.chapters a { display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--text); }
.chapters a:hover { background: var(--surface-2); text-decoration: none; }
.chapters__time { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 700; min-width: 52px; padding-top: 2px; }

.tldr { margin: 0 0 24px; padding: 18px 22px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--surface)); }
.tldr__title { margin: 0 0 6px; font-weight: 800; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.tldr ul { margin: 0; padding-inline-start: 20px; }
.tldr p:last-child { margin: 0; }

.toc { margin: 0 0 26px; padding: 14px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.toc summary { cursor: pointer; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.toc ol { margin: 10px 0 0; padding: 0; line-height: 2; list-style: none; counter-reset: toc; }
.toc .toc__h2 { counter-increment: toc; }
.toc .toc__h2::before { content: counter(toc) ". "; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc .toc__h3 { padding-inline-start: 26px; font-size: 15px; }
.toc .toc__h3::before { content: "◦ "; color: var(--muted); }
.toc a { color: var(--text); }
.toc a:hover, .toc a.is-active { color: var(--accent); }

.entry-content { font-size: 17px; line-height: 1.85; overflow-wrap: break-word; }
.entry-content p { margin: 0 0 18px; }
.entry-content h2 { font-size: 26px; margin: 34px 0 12px; line-height: 1.45; }
.entry-content h3 { font-size: 21px; margin: 28px 0 10px; }
.entry-content ul, .entry-content ol { padding-inline-start: 22px; margin: 0 0 18px; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote { margin: 24px 0; padding: 14px 20px; border-inline-start: 4px solid var(--accent); background: var(--surface-2); border-radius: var(--radius-sm); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin: 24px 0; }
.entry-content figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 12px; text-align: start; }
.entry-content th { background: var(--surface-2); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content iframe { width: 100%; border-radius: var(--radius-sm); }

code, kbd { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: .15em .4em; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
pre { position: relative; direction: ltr; text-align: left; margin: 0 0 22px; padding: 16px 18px; border-radius: var(--radius); background: var(--code-bg); color: var(--code-text); font-family: var(--mono); font-size: 14px; line-height: 1.75; overflow-x: auto; }
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.pre-copy { position: absolute; top: 10px; right: 10px; min-height: 30px; padding: 4px 10px; border: 0; border-radius: 8px; background: rgb(255 255 255 / .12); color: #fff; font-family: var(--font); font-size: 12px; cursor: pointer; }

.prompt-box { margin: 6px 0 22px; border-radius: var(--radius); overflow: hidden; background: var(--code-bg); }
.prompt-box__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 16px; background: var(--code-head); color: #fff; }
.prompt-box__title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.prompt-box__head .badge { border: 0; background: rgb(255 255 255 / .14); color: #fff; }
.prompt-box__head .copy-btn { margin-inline-start: auto; }
.prompt-box__text { margin: 0; border-radius: 0; padding: 18px 20px; direction: rtl; text-align: start; white-space: pre-wrap; unicode-bidi: plaintext; font-family: var(--font); font-size: 15px; line-height: 1.95; color: var(--code-text); max-height: 560px; }
.prompt-box__text code { font-family: inherit; unicode-bidi: plaintext; direction: inherit; }
.prompt-box__more { margin-top: -12px; font-size: 15px; }
.prompt-box--tall { flex: 1; display: flex; flex-direction: column; margin: 0; }
.prompt-box--tall .prompt-box__text { flex: 1; }

.vars { margin: 0 0 24px; padding: 18px 22px; border-radius: var(--radius); border: 1px dashed var(--border-strong); }
.vars h2 { font-size: 18px; }
.vars dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.vars dd { margin: 0; color: var(--muted); }

.note { margin: 24px 0; padding: 16px 20px; border-radius: var(--radius); background: #ecfdf5; border: 1px solid #a7f3d0; color: #064e3b; }
.note--warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.note--info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.note__title { display: flex; align-items: center; gap: 6px; font-weight: 800; margin-bottom: 4px; }
.note p:last-child { margin-bottom: 0; }

/* ---------- Editor boxes: نصيحة / تنبيه / معلومة (core Group + block style) ---------- */
.is-style-waeinet-tip, .is-style-waeinet-warning, .is-style-waeinet-info { margin: 24px 0; padding: 16px 20px; border-radius: 16px; border: 1px solid; }
.is-style-waeinet-tip::before, .is-style-waeinet-warning::before, .is-style-waeinet-info::before { display: block; font-weight: 800; margin-bottom: 4px; padding-inline-start: 26px; background-repeat: no-repeat; background-size: 18px 18px; background-position: right center; }
[dir="ltr"] .is-style-waeinet-tip::before, [dir="ltr"] .is-style-waeinet-warning::before, [dir="ltr"] .is-style-waeinet-info::before { background-position: left center; }
.is-style-waeinet-tip > :last-child, .is-style-waeinet-warning > :last-child, .is-style-waeinet-info > :last-child { margin-bottom: 0; }
.is-style-waeinet-tip > :first-child, .is-style-waeinet-warning > :first-child, .is-style-waeinet-info > :first-child { margin-top: 0; }
.is-style-waeinet-tip a, .is-style-waeinet-warning a, .is-style-waeinet-info a { color: inherit; font-weight: 700; }
.is-style-waeinet-tip { background: #ecfdf5; border-color: #a7f3d0; color: #064e3b; }
.is-style-waeinet-tip::before { content: "نصيحة"; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E"); }
.is-style-waeinet-warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.is-style-waeinet-warning::before { content: "تنبيه"; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E"); }
.is-style-waeinet-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.is-style-waeinet-info::before { content: "معلومة"; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] :is(.note, .is-style-waeinet-tip) { background: #0b2a20; border-color: #14532d; color: #d1fae5; }
:root[data-theme="dark"] .is-style-waeinet-tip::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] :is(.note--warning, .is-style-waeinet-warning) { background: #2b2108; border-color: #713f12; color: #fde68a; }
:root[data-theme="dark"] .is-style-waeinet-warning::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fcd34d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] :is(.note--info, .is-style-waeinet-info) { background: #0c1a33; border-color: #1e3a8a; color: #dbeafe; }
:root[data-theme="dark"] .is-style-waeinet-info::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) :is(.note, .is-style-waeinet-tip) { background: #0b2a20; border-color: #14532d; color: #d1fae5; }
	:root:not([data-theme="light"]) .is-style-waeinet-tip::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E"); }
	:root:not([data-theme="light"]) :is(.note--warning, .is-style-waeinet-warning) { background: #2b2108; border-color: #713f12; color: #fde68a; }
	:root:not([data-theme="light"]) .is-style-waeinet-warning::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fcd34d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E"); }
	:root:not([data-theme="light"]) :is(.note--info, .is-style-waeinet-info) { background: #0c1a33; border-color: #1e3a8a; color: #dbeafe; }
	:root:not([data-theme="light"]) .is-style-waeinet-info::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E"); }
}


.faq { margin: 0 0 26px; }
.faq h2 { font-size: 26px; margin-bottom: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 18px; margin-bottom: 10px; }
.faq__item summary { cursor: pointer; font-weight: 700; }
.faq__answer { color: var(--muted); padding-top: 8px; }
.faq__answer p { margin: 0; }

.transcript { margin: 0 0 26px; }
.transcript details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px; }
.transcript summary { cursor: pointer; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.transcript__body { padding-top: 12px; color: var(--muted); max-height: 520px; overflow-y: auto; }

.dl-box { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; margin: 6px 0 26px; }
.dl-box__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.dl-box__body { flex: 1 1 280px; min-width: 0; }
.dl-box__title { margin: 0; font-weight: 800; font-size: 18px; }
.dl-box__meta { margin: 2px 0 0; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.dl-box .btn { min-height: 48px; }
.dl-box__note { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- Deals ---------- */
.countdown { display: inline-flex; align-items: center; gap: 6px; direction: rtl; }
.tbox { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 4px 6px; border-radius: 10px; background: #1b1830; color: #fff; }
.tbox b { font-size: 18px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.tbox small { font-size: 11px; color: #d6d2e6; }
.countdown--sm { gap: 4px; }
.countdown--sm .tbox { min-width: 42px; padding: 3px 5px; border-radius: 9px; }
.countdown--sm .tbox b { font-size: 16px; }
.countdown--light .tbox { background: #fff; color: #1b1830; }
.countdown--light .tbox small { color: #55516b; }
.deal__ends { font-weight: 700; font-size: 14px; color: var(--amber-ink); margin-inline-end: 4px; }
.deal__timer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.deal__pct { color: var(--amber-btn); }
.deal__logo { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 18px; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.deal__logo img { width: 100%; height: 100%; object-fit: contain; }
.deal__logo--empty { border: 1px dashed var(--border-strong); color: var(--muted); }
.deal__title { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.5; }
.deal__desc { margin: 2px 0 8px; color: var(--muted); }
.deal__perk { margin: 0; font-size: 15px; }
.deal__code { display: flex; align-items: center; gap: 8px; border: 2px dashed var(--amber); border-radius: 12px; padding: 5px 5px 5px 12px; direction: ltr; }
.deal__code b { flex: 1; font-family: var(--mono); font-size: 17px; letter-spacing: 1px; }
.deal__codewrap { flex: 0 1 230px; display: flex; flex-direction: column; gap: 8px; }
.deal__codelabel { color: var(--muted); font-size: 13px; font-weight: 700; }
.deal__note { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.deal__flag { font-size: 13px; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.deal__flag--expired { color: #991b1b; background: #fee2e2; }
.deal__flag--always { color: #166534; background: #dcfce7; }
.deal.is-expired { opacity: .6; }

.deal--inline { border: 2px solid var(--amber); border-radius: 18px; background: var(--surface); overflow: hidden; margin-bottom: 28px; }
.deal--inline.is-expired, .deal--inline.is-always { border-color: var(--border); }
.deal--inline .deal__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; background: var(--amber-soft); }
.deal__exclusive { font-weight: 800; color: var(--amber-ink); }
.deal--inline .deal__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 22px; }
.deal--inline .deal__body { flex: 1 1 260px; min-width: 0; }
.deal__foot { padding: 0 22px 18px; display: flex; flex-direction: column; gap: 8px; }
.deal__foot .btn--lg { font-size: 17px; }

.deal--grid { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.deal--grid.is-live { border: 2px solid var(--amber); }
.deal--grid .deal__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; background: var(--bg); }
.deal--grid.is-live .deal__top { background: var(--amber-soft); }
.deal__cat { font-size: 13px; font-weight: 700; color: var(--muted); }
.deal--grid.is-live .deal__cat { color: var(--amber-ink); }
.deal--grid .deal__inner { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 18px 20px; }
.deal__head { display: flex; align-items: center; gap: 12px; }
.deal--grid .deal__logo { width: 52px; height: 52px; border-radius: 14px; }
.deal--grid .deal__title { font-size: 19px; }
.deal--grid .deal__desc { margin: 0; font-size: 15px; }
.deal--grid .deal__perk { font-size: 14px; }
.deal__cta { margin-top: auto; }
.deal--grid.is-hidden { display: none; }

.deal--featured { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 28px; border-radius: 22px; background: #1b1830; color: #fff; margin-bottom: 30px; }
.deal--featured .deal__logo { width: 84px; height: 84px; border-radius: 22px; background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .35); color: #d6d2e6; }
.deal--featured .deal__body { flex: 1 1 360px; min-width: 0; }
.deal__badge { display: inline-block; background: var(--amber); color: #1b1830; font-size: 12px; font-weight: 800; padding: 2px 12px; border-radius: 999px; }
.deal--featured .deal__title { font-size: 26px; margin: 8px 0 2px; }
.deal--featured .deal__pct { color: #fbbf24; }
.deal--featured .deal__desc { color: #d6d2e6; }
.deal--featured .deal__code { max-width: 320px; }
.deal--featured .deal__side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.deal--featured .deal__ends { color: #fbbf24; }
.deal--featured .btn--amber { background: var(--amber); color: #1b1830; }

.how-steps { display: flex; flex-wrap: wrap; gap: 20px; margin: 32px 0; }
.how-steps__item { flex: 1 1 240px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.how-steps__title { margin: 0 0 4px; font-weight: 800; font-size: 17px; }
.how-steps__item p:last-child { margin: 0; }
.disclosure { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 28px; }
.disclosure__title { margin: 0 0 4px; font-weight: 800; }
.disclosure p:last-child { margin: 0; }
.deals-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-radius: 18px; background: var(--amber); color: #1b1830; margin-bottom: 56px; }
.deals-band__title { margin: 0; font-size: 20px; font-weight: 800; }
.deals-band p { margin: 0; }
.deals-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Article footer pieces ---------- */
.source-btn { margin: 24px 0; }
.entry-footer { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); margin-bottom: 26px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); margin-inline-end: 6px; }
.share__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.share__btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.share__btn--whatsapp:hover { background: var(--wa); border-color: var(--wa); }

.cta-box { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--accent); margin-bottom: 24px; }
.cta-box__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: #fff; flex-shrink: 0; }
.cta-box__body { flex: 1 1 300px; }
.cta-box__title { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.cta-box__text { margin: 0 0 14px; color: var(--muted); }
.cta-box__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.author-box { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); margin-bottom: 34px; }
.author-box__avatar { border-radius: 50%; flex-shrink: 0; }
.author-box__label { margin: 0; font-size: 13px; color: var(--muted); }
.author-box__name { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
.author-box__name a { color: var(--text); }
.author-box__bio { margin: 0; color: var(--muted); }
.related { margin-bottom: 34px; }
.related__title { font-size: 24px; margin: 0 0 16px; }
.related__grid { display: flex; flex-wrap: wrap; gap: 16px; }
.related__grid > * { flex: 1 1 220px; }

.post-navigation .nav-links { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin: 0 0 32px; }
.post-navigation a { display: block; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); height: 100%; }
.post-navigation a:hover { border-color: var(--accent); text-decoration: none; }
.post-navigation .nav-next { text-align: end; }
.nav-label { display: block; font-size: 13px; color: var(--muted); }
.nav-title { font-weight: 700; }
.pagination { margin: 40px 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; }
.page-numbers.current, a.page-numbers:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; padding-top: 34px; }
.sidebar__sticky { position: sticky; top: 90px; }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.widget--search { padding: 14px; }
.widget__title { margin: 0 0 8px; font-weight: 800; font-size: 17px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.path-list li { line-height: 2.3; }
.widget--promo { background: var(--green); color: #fff; border: 0; padding: 20px; }
.widget--promo .widget__title { font-size: 18px; margin-bottom: 4px; }
.widget--promo p { color: var(--green-soft); margin: 0 0 14px; }
.widget--promo .btn--light { color: var(--green); }

/* ---------- Services ---------- */
.service-hero { background: var(--accent-tint); padding: 20px 0 56px; }
.service-hero__inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.service-hero__text { flex: 999 1 520px; min-width: 0; }
.service-hero__title { font-size: clamp(30px, 4vw, 46px); line-height: 1.35; margin: 0 0 14px; }
.service-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.service-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; margin: 34px 0 0; padding: 0; }
.service-steps li { flex: 1 1 160px; }
.service-steps__title { margin: 0; font-weight: 800; font-size: 17px; }
.service-steps li p:last-child { margin: 0; font-size: 15px; }
.price-card { flex: 1 1 340px; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-lg); }
.price-card .price { margin: 12px 0 6px; }
.price-card .price__value { font-size: 40px; }
.price-card .price__note { display: block; font-size: 14px; }
.price-card .price__cur { font-size: 18px; color: var(--muted); }
.price-card__delivery { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.checklist { list-style: none; margin: 0 0 20px; padding: 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.checklist .icon { color: #15803d; margin-top: 5px; }
.service-body { padding-top: 44px; padding-bottom: 64px; }
.order-section { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px; margin: 40px auto; }
.order-section h2 { font-size: 26px; margin: 0 0 4px; }
.order-section > .muted { margin-bottom: 22px; }
.order-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.order-form input, .order-form select, .order-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; min-height: 46px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--bg); }
.order-form :is(input, select, textarea):focus, .comment-form :is(input, textarea):focus { border-color: var(--accent); outline: none; }
.form-grid { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid__full { grid-column: 1 / -1; } }
.form-note { color: var(--muted); font-size: 14px; margin-top: 10px; }
.hp { position: absolute !important; inset-inline-start: -9999px; height: 0; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 700; }
.alert--success { background: #dcfce7; color: #166534; }
.alert--error { background: #fee2e2; color: #991b1b; }

/* ---------- Rejections library ---------- */
.rj-search { display: flex; gap: 8px; max-width: 640px; margin: 22px auto 0; }
.rj-search input, .rj-list__search { flex: 1; min-width: 0; min-height: 52px; border: 1.5px solid var(--border); border-radius: 999px; padding: 0 20px; background: var(--surface); font-size: 16px; }
.rj-search .btn { min-height: 52px; }
.reasons-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.reasons-grid > .reason { flex: 1 1 340px; }
.reason { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none !important; }
.reason:hover { border-color: var(--accent); }
.reason.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.reason.is-hidden { display: none; }
.reason__code { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: left; }
.reason__title { font-weight: 800; font-size: 16px; }
.rj-layout { display: flex; flex-wrap: wrap; gap: 28px; padding-bottom: 56px; }
.rj-list { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rj-list__search { min-height: 48px; }
.rj-list__items { display: flex; flex-direction: column; gap: 10px; }
.rj-detail { flex: 999 1 560px; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px; }
.rj-detail__title { font-size: clamp(26px, 3vw, 32px); margin: 10px 0 4px; }
.rj-detail__code { margin: 0 0 18px; font-family: var(--mono); color: var(--muted); text-align: right; }
.rj-detail__h { font-size: 20px; margin: 24px 0 8px; }
.rj-detail__steps { margin: 0 0 8px; padding-inline-start: 22px; }
.rj-detail__steps li { margin-bottom: 6px; }
.rj-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 26px 0 0; padding: 22px; border-radius: var(--radius); background: var(--green); color: #fff; }
.rj-cta > div { flex: 1 1 300px; }
.rj-cta__title { margin: 0 0 2px; font-size: 19px; font-weight: 800; }
.rj-cta p:last-child { margin: 0; color: var(--green-soft); }
.rj-cta .btn--light { color: var(--green); }
.rj-detail__src { margin: 22px 0 14px; font-size: 14px; }

/* ---------- Tools / generator ---------- */
.generator { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 30px; margin: 40px 0; }
.generator__title { font-size: 28px; margin: 0 0 4px; }
.generator > .muted { margin: 0 0 26px; }
.generator__grid { display: flex; flex-wrap: wrap; gap: 32px; }
.generator__form { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.generator__out { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; }
.generator__label { display: block; margin: 0 0 10px; font-weight: 800; font-size: 16px; }
.generator input[type="text"] { width: 100%; min-height: 48px; border: 1.5px solid var(--border); border-radius: 12px; padding: 0 16px; font-size: 16px; background: var(--bg); }
.generator input[type="text"]:focus { border-color: var(--accent); outline: none; }
.opt-group { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; }
.opt.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.generator__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tools-content { margin: 0 auto 56px; }

/* ---------- Learning paths (courses) ---------- */
.path-progress { position: relative; display: block; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.path-progress > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .4s; }
.path-progress--sm { width: 120px; height: 8px; flex-shrink: 0; }

.path-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); font-size: 15px; }
.path-banner__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.path-banner__text { flex: 1 1 260px; }
.path-banner__text a { font-weight: 800; }
.path-banner__count { font-weight: 800; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

.path-nav { margin: 0 0 26px; padding: 20px; border-radius: 18px; background: var(--surface); border: 2px solid color-mix(in srgb, var(--accent) 30%, var(--border)); }
.path-nav__done { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.path-nav__all { font-weight: 700; }
.path-done-btn__on { display: none; }
.path-done-btn.is-done { background: var(--success); border-color: var(--success); color: #fff; }
.path-done-btn.is-done .path-done-btn__off { display: none; }
.path-done-btn.is-done .path-done-btn__on { display: inline-flex; align-items: center; gap: 6px; }
.path-done-btn__off { display: inline-flex; align-items: center; gap: 6px; }
.path-nav__links { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .path-nav__links { grid-template-columns: 1fr; } }
.path-nav__link { display: block; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); color: var(--text); text-decoration: none !important; }
.path-nav__link:hover { border-color: var(--accent); }
.path-nav__link--next { text-align: end; background: var(--accent); border-color: var(--accent); color: #fff; }
.path-nav__link--next .nav-label { color: rgb(255 255 255 / .85); }
.path-nav__link--finish { background: var(--success); border-color: var(--success); }

.path-hero { background: var(--accent-tint); padding: 20px 0 48px; }
.path-hero__inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.path-hero__text { flex: 999 1 520px; min-width: 0; }
.path-hero__icon { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: var(--accent); color: #fff; margin-bottom: 12px; }
.path-hero__kicker { margin: 0; color: var(--accent); font-weight: 800; font-size: 14px; }
.path-hero__title { font-size: clamp(30px, 4vw, 46px); line-height: 1.3; margin: 2px 0 10px; }
.path-hero__desc { color: var(--muted); font-size: 18px; margin: 0 0 18px; max-width: 680px; }
.path-hero__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.path-hero__meta li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 700; }
.path-hero__meta .icon { color: var(--accent); }
.path-card-progress { flex: 1 1 320px; min-width: 0; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.path-card-progress__title { margin: 0 0 10px; font-weight: 800; font-size: 17px; }
.path-card-progress__count { margin: 8px 0 16px; color: var(--muted); font-size: 15px; }
.path-card-progress__count [data-progress-text] { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.path-card-progress__note { margin: 10px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.path-body { padding-top: 36px; }
.path-video { max-width: 860px; margin: 0 auto 32px; }
.path-intro { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; margin-bottom: 12px; }
.path-intro > .entry-content { flex: 999 1 520px; min-width: 0; }
.path-outcomes { flex: 1 1 300px; min-width: 0; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.path-outcomes__title { font-size: 19px; margin: 0 0 12px; }
.path-outcomes .checklist { margin: 0; }

.path-lessons { margin: 24px 0 40px; }
.path-lessons .section-title { margin-bottom: 18px; }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.lesson { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s; }
.lesson:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.lesson--ad { display: block; padding: 0; border: 0; background: none; }
.lesson--ad:hover { box-shadow: none; }
.lesson__num { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.lesson__check { display: none; }
.lesson.is-done .lesson__num { background: var(--success); color: #fff; }
.lesson.is-done .lesson__n { display: none; }
.lesson.is-done .lesson__check { display: grid; }
.lesson__body { flex: 1; min-width: 0; }
.lesson__title { display: block; font-weight: 800; font-size: 18px; line-height: 1.55; color: var(--text); }
.lesson__excerpt { margin: 4px 0 6px; color: var(--muted); font-size: 15px; }
.lesson__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.lesson__video { display: inline-flex; align-items: center; gap: 4px; color: #c4302b; }
.lesson__video svg { fill: currentColor; }
.lesson__done-label { display: none; color: var(--success); }
.lesson.is-done .lesson__done-label { display: inline; }

/* ---------- Membership ---------- */
.account-btn { overflow: hidden; padding: 0; }
.account-btn__avatar { width: 32px; height: 32px; border-radius: 50%; }
.btn--danger { background: #b91c1c; color: #fff; }
.btn--linkedin { background: #0a66c2; color: #fff; }

.fav-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; }
.fav-btn--sm { min-height: 40px; padding: 0 12px; }
.fav-btn:hover { border-color: #e11d48; color: #e11d48; }
.fav-btn__on { display: none; }
.fav-btn.is-on { border-color: #e11d48; background: #fff1f2; color: #be123c; }
.fav-btn.is-on .icon { fill: currentColor; }
.fav-btn.is-on .fav-btn__off { display: none; }
.fav-btn.is-on .fav-btn__on { display: inline; }
.card__actions .fav-btn { position: relative; z-index: 1; }
.entry-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.follow-btn { gap: 8px; }
.follow-btn__on { display: none; }
.follow-btn.is-on { background: var(--success); border-color: var(--success); color: #fff; }
.follow-btn.is-on .follow-btn__off { display: none; }
.follow-btn.is-on .follow-btn__on { display: inline; }
.path-hero__follow { margin-top: 16px; }

.toast { position: fixed; z-index: 300; inset-inline-start: 50%; bottom: 24px; transform: translate(50%, 20px); opacity: 0; max-width: min(560px, calc(100% - 32px)); padding: 14px 18px; border-radius: 14px; background: #1b1830; color: #fff; font-weight: 600; box-shadow: var(--shadow-lg); transition: .25s; }
[dir="ltr"] .toast { transform: translate(-50%, 20px); }
.toast.is-in { opacity: 1; transform: translate(50%, 0); }
[dir="ltr"] .toast.is-in { transform: translate(-50%, 0); }
.toast a { color: #c4b5fd; text-decoration: underline; }

.dl-box.is-locked { border: 2px dashed color-mix(in srgb, var(--accent) 40%, var(--border)); }

.deal__member { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); }
.deal__member-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--accent); }
.deal__member--open { flex-direction: column; align-items: stretch; }
.deal--featured .deal__member { margin-top: 10px; background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .2); }
.deal--featured .deal__member-label { color: #ddd6fe; }

.auth { padding: 40px 0 64px; background: var(--accent-tint); }
.auth__inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.auth__benefits { flex: 1 1 380px; min-width: 0; }
.auth__kicker { margin: 0; color: var(--accent); font-weight: 800; }
.auth__title { font-size: clamp(28px, 3.6vw, 40px); margin: 4px 0 8px; }
.auth__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.auth__list li { display: flex; gap: 12px; align-items: flex-start; }
.auth__list b { display: block; }
.auth__list small { color: var(--muted); font-size: 14px; }
.auth__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); color: var(--accent); flex-shrink: 0; border: 1px solid var(--border); }
.auth__card { flex: 1 1 380px; min-width: 0; max-width: 480px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-lg); }
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface-2); margin-bottom: 20px; }
.auth__tab { display: grid; place-items: center; min-height: 42px; border-radius: 999px; font-weight: 800; color: var(--muted); text-decoration: none !important; }
.auth__tab.is-active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.auth__form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.auth__form input[type="text"], .auth__form input[type="email"], .auth__form input[type="password"], .account-form input[type="text"], .account-form input[type="email"] { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--bg); }
.auth__form input:focus, .account-form input:focus { border-color: var(--accent); outline: none; }
.auth__check { display: flex !important; align-items: flex-start; gap: 8px; font-weight: 600 !important; }
.auth__check input { width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; }
.auth__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.auth__row label { margin: 0; }
.auth__terms { color: var(--muted); font-size: 13px; margin: 12px 0 0; text-align: center; }
.auth__or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin: 14px 0; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.google-login { display: flex; justify-content: center; min-height: 44px; }

.account-hero { background: var(--accent-tint); padding: 32px 0 0; }
.account-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-bottom: 20px; }
.account-hero__avatar { border-radius: 50%; }
.account-hero__title { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.account-hero__inner .muted { margin: 2px 0 0; }
.account-hero__logout { margin-inline-start: auto; }
.account-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.account-nav a { padding: 10px 16px; border-radius: 12px 12px 0 0; font-weight: 700; color: var(--text); }
.account-nav a:hover { background: var(--surface); text-decoration: none; }
.account-body { padding-top: 28px; padding-bottom: 56px; }
.account-section { margin-bottom: 40px; scroll-margin-top: 90px; }
.account-section__title { display: flex; align-items: center; gap: 8px; font-size: 22px; margin: 0 0 16px; }
.account-section__title .icon { color: var(--accent); }
.account-path { padding: 20px; gap: 10px; }
.account-path.is-new { opacity: .8; }
.account-path__head { display: flex; align-items: center; gap: 10px; }
.account-path__head .path-card__icon { width: 44px; height: 44px; border-radius: 12px; }
.account-path__name { font-weight: 800; font-size: 17px; color: var(--text); }
.account-path__count { margin: 0; color: var(--muted); font-size: 14px; }
.account-path .btn { align-self: flex-start; }
.account-path__note { margin: 0; color: var(--success); font-size: 13px; font-weight: 600; }
.cert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cert-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.cert-item__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: #fef3c7; color: #b45309; }
.cert-item__body { flex: 1 1 220px; }
.cert-item__body b, .cert-item__body small { display: block; }
.cert-item__body small { color: var(--muted); }
.follow-list { display: grid; gap: 10px; max-width: 760px; }
.follow-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); font-weight: 700; }
.follow-row .follow-btn { min-height: 40px; font-size: 14px; }
.account-form { max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.account-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.account-form input:disabled { opacity: .7; }
.account-form__pass { margin-inline-start: 14px; font-weight: 700; }
.account-delete { max-width: 560px; margin-top: 16px; padding: 14px 18px; border-radius: var(--radius); border: 1px solid #fecaca; background: var(--surface); }
.account-delete summary { cursor: pointer; font-weight: 700; color: #b91c1c; }

/* ---------- Free tools ---------- */
.tool-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; }
.tool-badges span { padding: 3px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--muted); }
.tool { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px; margin: 24px 0 40px; }
.tool__grid { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.tool__form, .tool__out { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tool__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tool__title { font-size: 20px; margin: 0; }
.tool__form label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.tool__form p { margin: 0 0 12px; }
.tool__form input[type="text"], .tool__form input[type="email"], .tool__form input[type="url"], .tool__form input[type="number"], .tool__form input[type="date"], .tool__form select, .tool__form textarea { width: 100%; min-height: 46px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--bg); }
.tool__form textarea { min-height: 220px; line-height: 1.8; }
.tool__form :is(input, select, textarea):focus { border-color: var(--accent); outline: none; }
.tool__form input[type="color"] { width: 100%; height: 46px; padding: 4px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--bg); }
.tool__form input[type="range"] { width: 100%; }
.tool__set { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 6px; margin: 0; }
.tool__set legend { font-weight: 800; padding: 0 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.checks label { display: inline-flex !important; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--bg); font-weight: 600 !important; cursor: pointer; margin: 0 !important; }
.checks label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.tool__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tool__preview { max-height: 560px; overflow-y: auto; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); font-size: 15px; }
.tool__preview h2 { font-size: 20px; margin-top: 0; }
.tool__preview h3 { font-size: 16px; margin: 16px 0 6px; }
.tool__box { padding: 16px 18px; border-radius: var(--radius); background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border)); }
.tool__box-title { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-weight: 800; }
.tool__box ul { margin: 0; padding-inline-start: 20px; }
.tool-note { color: var(--muted); font-size: 13px; margin: 0; }
.tool-note.is-bad { color: #b91c1c; font-weight: 700; }
.tool-ok { color: var(--success); font-weight: 700; margin: 0; }
.tool-hint { font-size: 13px; margin: 6px 0 0; }
.counter { font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); direction: ltr; }
.counter.is-ok { background: #dcfce7; color: #166534; }
.counter.is-near { background: #fef3c7; color: #92400e; }
.counter.is-over { background: #fee2e2; color: #991b1b; }
.tool-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tool-table td, .tool-table th { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: start; }
.tool-table tr.is-warn td { color: #b45309; font-weight: 700; }
.tool-table td:last-child { text-align: end; font-variant-numeric: tabular-nums; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { padding: 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); }
.kpi span { display: block; color: var(--muted); font-size: 13px; }
.kpi b { font-size: 22px; font-variant-numeric: tabular-nums; }
.kpi.is-good { background: #dcfce7; border-color: #86efac; }
.kpi.is-good b { color: #166534; }
.kpi.is-bad { background: #fee2e2; border-color: #fca5a5; }
.kpi.is-bad b { color: #991b1b; }
.play-preview { display: grid; grid-template-columns: 64px 1fr; gap: 6px 14px; align-items: center; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); }
.play-preview__icon { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), #0f766e); }
.play-preview__title { margin: 0; font-weight: 800; font-size: 18px; line-height: 1.4; }
.play-preview__dev { margin: 0; color: #0b8043; font-size: 13px; font-weight: 700; }
.play-preview__short { grid-column: 1 / -1; margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.gfx-previews { display: grid; gap: 16px; }
.gfx-previews figure { margin: 0; }
.gfx-previews canvas { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 20px 20px; }
.gfx-previews .gfx-icon { max-width: 220px; border-radius: 22%; }
.gfx-previews figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-weight: 700; font-size: 14px; }

/* ---------- Comments ---------- */
.comments { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-inline-start: 24px; }
.comment-body { padding: 16px 18px; margin-bottom: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata a { color: var(--muted); font-size: 13px; }
.comment-form .submit { background: var(--accent); color: #fff; border: 0; border-radius: 999px; min-height: 46px; padding: 0 26px; font-weight: 700; cursor: pointer; }

/* ---------- Footer ---------- */
.yt-band { background: var(--red-band); color: #fff; }
.yt-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; }
.yt-band__title { margin: 0; font-size: 22px; font-weight: 800; }
.yt-band p { margin: 0; color: #fde2e2; }
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 48px; }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: 40px; padding-bottom: 36px; }
.site-footer__about { flex: 2 1 280px; }
.site-footer__col { flex: 1 1 160px; }
.site-footer__name { margin: 0; font-weight: 800; font-size: 22px; }
.site-footer__about .muted { margin: 8px 0 0; }
.site-footer__head, .site-footer .widget__title { margin: 0 0 8px; font-weight: 800; font-size: 16px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; line-height: 2.1; }
.site-footer__col .muted { margin: 0 0 12px; }
.site-footer__widgets { display: flex; flex-wrap: wrap; gap: 40px; padding-bottom: 32px; }
.site-footer__widgets .widget { background: none; border: 0; padding: 0; }
.site-footer__bottom { border-top: 1px solid var(--border); padding-block: 14px; color: var(--muted); font-size: 14px; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.site-footer__bottom p { margin: 0; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }
.footer-menu a { color: var(--muted); }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); color: var(--text); text-decoration: none !important; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.social a:hover { background: var(--accent); color: #fff; }
.social--sm { gap: 6px; margin-top: 12px; }
.social--sm a { width: 36px; height: 36px; }
.social--sm .icon { width: 17px; height: 17px; }
.site-footer__follow { margin: 18px 0 0; font-weight: 800; font-size: 14px; }
.site-footer__follow + .social { margin-top: 8px; }
.site-footer__about .social { gap: 6px; }
.site-footer__about .social a { width: 40px; height: 40px; }

/* Outline style (approved): white circle, thin border, icon in the platform's color. */
.social__link--youtube { --brand: #e00000; }
.social__link--facebook { --brand: #1877f2; }
.social__link--x { --brand: #000000; }
.social__link--instagram { --brand: #c13584; }
.social__link--tiktok { --brand: #000000; }
.social__link--telegram { --brand: #1c8adb; }
.social__link--linkedin { --brand: #0a66c2; }
.social__link--github { --brand: #24292f; }
.social__link--whatsapp { --brand: #0f7a41; }
.social--outline a { background: var(--surface); border: 1.5px solid var(--border-strong); color: var(--brand, var(--text)); }
.social--outline a:hover { background: var(--brand, var(--accent)); border-color: var(--brand, var(--accent)); color: #fff; transform: translateY(-2px); }
[data-theme="dark"] .social--outline :is(.social__link--x, .social__link--tiktok, .social__link--github) { --brand: #ece9f6; }
[data-theme="dark"] .social--outline :is(.social__link--x, .social__link--tiktok, .social__link--github):hover { color: #1b1830; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .social--outline :is(.social__link--x, .social__link--tiktok, .social__link--github) { --brand: #ece9f6; }
	:root:not([data-theme="light"]) .social--outline :is(.social__link--x, .social__link--tiktok, .social__link--github):hover { color: #1b1830; }
}
.wa-float { position: fixed; left: 18px; bottom: 18px; z-index: 90; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 25px rgb(15 122 65 / .4); }
.error-404 { text-align: center; padding-block: 64px; }
.error-404__code { font-size: clamp(80px, 16vw, 140px); font-weight: 800; line-height: 1; margin: 0; color: var(--accent); }
.error-404 .search-form { margin: 24px auto; }

/* ---------- WP core ---------- */
.alignleft { float: inline-start; margin-inline-end: 24px; }
.alignright { float: inline-end; margin-inline-start: 24px; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { text-align: center; color: var(--muted); font-size: 14px; }
.page-links { margin: 24px 0; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .site-footer, .sidebar, .ad, .share, .cta-box, .wa-float, .yt-band, .comments, .related, .deal { display: none !important; }
	body { background: #fff; color: #000; }
}
