/*
Theme Name: Affitrove
Theme URI: https://affitrove.com/
Author: Affitrove
Description: SaaS & Digital Tools Affiliate Directory & Review Aggregator. Sastetools-style layout with instant search, instant category tabs, affiliate action cards, review pages and FTC-compliant footer. Two colour schemes (Cyan / Gold) in Customizer.
Version: 2.1.5
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: affitrove
*/

/* =========================================================
   1. TOKENS  (default = spec "gold"; body.af-scheme-gold = sastetools look)
   ========================================================= */
:root {
	--af-bg: #0b0f19;
	--af-bg-2: #0f1424;
	--af-card: #131b2e;
	--af-card-2: #18223a;
	--af-border: #1e293b;
	--af-accent: #38bdf8;
	--af-accent-2: #7dd3fc;
	--af-accent-ink: #0b0f19;
	--af-accent-soft: rgba(56, 189, 248, .12);
	--af-accent-glow: rgba(56, 189, 248, .15);
	--af-success: #10b981;
	--af-danger: #f87171;
	--af-text: #e5e7eb;
	--af-muted: #9ca3af;
	--af-radius: 16px;
	--af-radius-sm: 12px;
	--af-max: 1200px;
	--af-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.af-scheme-gold {
	--af-bg: #0a0a0a;
	--af-bg-2: #0f0f0f;
	--af-card: #141414;
	--af-card-2: #1a1a1a;
	--af-border: #262626;
	--af-accent: #facc15;
	--af-accent-2: #fde047;
	--af-accent-ink: #0a0a0a;
	--af-accent-soft: rgba(250, 204, 21, .12);
	--af-accent-glow: rgba(250, 204, 21, .18);
}

/* =========================================================
   2. BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--af-bg);
	color: var(--af-text);
	font-family: var(--af-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--af-accent); text-decoration: none; }
a:hover { color: var(--af-accent-2); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; margin: 0 0 .5em; color: #fff; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.af-accent { color: var(--af-accent); }
.af-muted { color: var(--af-muted); }
.af-container { width: 100%; max-width: var(--af-max); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; z-index: 999; background: var(--af-accent); color: var(--af-accent-ink); padding: 8px 12px; }

/* =========================================================
   3. BUTTONS & CHIPS
   ========================================================= */
.af-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 44px; padding: 0 20px;
	border-radius: 10px;
	border: 1px solid transparent;
	font: inherit; font-size: .9rem; font-weight: 700;
	cursor: pointer; white-space: nowrap;
	transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.af-btn:hover { transform: translateY(-1px); }
.af-btn--primary { background: var(--af-accent); color: var(--af-accent-ink); }
.af-btn--primary:hover { background: var(--af-accent-2); color: var(--af-accent-ink); }
.af-btn--outline { background: transparent; border-color: var(--af-border); color: #fff; }
.af-btn--outline:hover { border-color: var(--af-accent); color: var(--af-accent); }
.af-btn--ghost { background: transparent; border: 1px dashed var(--af-success); color: var(--af-success); }
.af-btn--ghost:hover { background: rgba(16,185,129,.1); color: var(--af-success); }
.af-btn--ghost.is-copied { border-style: solid; }
.af-btn--block { width: 100%; }
.af-btn--sm { min-height: 36px; padding: 0 14px; font-size: .8rem; border-radius: 8px; }
.af-btn--pill { border-radius: 999px; }

.af-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 16px 0 0; }
.af-chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 12px; border-radius: 999px;
	background: var(--af-card); border: 1px solid var(--af-border);
	color: var(--af-text); font-size: .78rem; font-weight: 600;
}
.af-chip i { font-style: normal; color: var(--af-accent); }
.af-badge {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 12px; border-radius: 999px;
	background: var(--af-accent-soft); border: 1px solid var(--af-accent-glow);
	color: var(--af-accent); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}

/* =========================================================
   4. HEADER
   ========================================================= */
.af-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(0, 0, 0, .82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--af-border);
}
.af-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.af-logo { display: flex; align-items: center; gap: 10px; color: #fff; flex: 0 0 auto; }
.af-logo__img { height: 42px; width: auto; display: block; }
.af-logo:hover { color: #fff; }
.af-logo__mark {
	width: 34px; height: 34px; border-radius: 9px;
	display: grid; place-items: center;
	background: var(--af-accent); color: var(--af-accent-ink);
	font-weight: 800; font-size: 1.05rem;
	box-shadow: 0 0 18px var(--af-accent-glow);
}
.af-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.af-logo__name { font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; }
.af-logo__name span { color: var(--af-accent); }
.af-logo__tag { font-size: .66rem; color: var(--af-muted); font-weight: 500; }
.custom-logo { max-height: 42px; width: auto; }

.af-nav { flex: 1; display: flex; justify-content: center; }
.af-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.af-nav li { position: relative; }
.af-nav a {
	display: block; padding: 7px 12px; border-radius: 8px;
	color: var(--af-text); font-size: .85rem; font-weight: 600;
}
.af-nav a:hover { color: #fff; background: var(--af-card); }
.af-nav .current-menu-item > a,
.af-nav .current_page_item > a,
.af-nav .current-menu-ancestor > a { background: var(--af-card-2); color: #fff; }
.af-nav .menu-item-has-children > a::after { content: "▾"; margin-left: 4px; font-size: .7rem; }
.af-nav .sub-menu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
	flex-direction: column; align-items: stretch; gap: 2px;
	padding: 8px; margin-top: 6px;
	background: var(--af-card); border: 1px solid var(--af-border); border-radius: 12px;
	box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.af-nav li:hover > .sub-menu, .af-nav li:focus-within > .sub-menu { display: flex; }

.af-header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.af-icon-btn {
	width: 38px; height: 38px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--af-card); border: 1px solid var(--af-border); color: #fff;
	cursor: pointer; transition: border-color .2s, color .2s;
}
.af-icon-btn:hover { border-color: var(--af-accent); color: var(--af-accent); }
.af-cta {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 38px; padding: 0 16px; border-radius: 999px;
	background: var(--af-accent); color: var(--af-accent-ink);
	font-size: .82rem; font-weight: 700; white-space: nowrap;
}
.af-cta:hover { background: var(--af-accent-2); color: var(--af-accent-ink); }
.af-burger { display: none; }

/* Search overlay */
.af-search-overlay {
	position: fixed; inset: 0; z-index: 90;
	background: rgba(0,0,0,.85); backdrop-filter: blur(6px);
	display: none; align-items: flex-start; justify-content: center; padding: 15vh 20px 0;
}
.af-search-overlay.is-open { display: flex; }
.af-search-overlay .af-searchbar { max-width: 640px; }
.af-search-overlay__close { position: absolute; top: 20px; right: 20px; }

/* =========================================================
   5. BREADCRUMB / PAGE HERO / SECTIONS
   ========================================================= */
.af-breadcrumb { padding: 14px 0 0; font-size: .78rem; color: var(--af-muted); }
.af-breadcrumb a { color: var(--af-muted); }
.af-breadcrumb a:hover { color: #fff; }
.af-breadcrumb span.sep { margin: 0 6px; }
.af-breadcrumb .current { color: var(--af-accent); }

.af-page-hero { text-align: center; padding: 28px 0 8px; }
.af-page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 8px; }
.af-page-hero p { color: var(--af-muted); max-width: 640px; margin: 0 auto; font-size: .92rem; }

.af-section { padding: 28px 0; }
.af-panel {
	background: linear-gradient(180deg, var(--af-card) 0%, var(--af-bg-2) 100%);
	border: 1px solid var(--af-border);
	border-radius: 20px;
	padding: 36px 28px;
}
.af-section__head { text-align: center; margin-bottom: 26px; }
.af-section__head h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 6px; }
.af-section__head p { color: var(--af-muted); margin: 0; font-size: .92rem; }
.af-section__foot { text-align: center; margin-top: 24px; }

/* =========================================================
   6. SEARCH PILL + FILTER PILLS
   ========================================================= */
.af-searchbar {
	position: relative; display: flex; align-items: center;
	width: 100%; max-width: 420px; margin: 20px auto 0;
	background: var(--af-card); border: 1px solid var(--af-border);
	border-radius: 999px; padding: 4px 4px 4px 42px;
	transition: border-color .2s, box-shadow .2s;
}
.af-searchbar:focus-within { border-color: var(--af-accent); box-shadow: 0 0 0 4px var(--af-accent-soft); }
.af-searchbar svg { position: absolute; left: 16px; color: var(--af-muted); pointer-events: none; }
.af-searchbar input {
	flex: 1; min-width: 0; height: 38px; border: 0; outline: 0;
	background: transparent; color: var(--af-text); font: inherit; font-size: .88rem;
}
.af-searchbar input::-webkit-search-cancel-button { filter: invert(1); }
.af-searchbar button {
	height: 36px; padding: 0 18px; border: 0; border-radius: 999px;
	background: var(--af-accent); color: var(--af-accent-ink);
	font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
}

.af-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 22px 0 12px; }
.af-tab {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 36px; padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--af-border);
	background: var(--af-card);
	color: var(--af-text);
	font: inherit; font-size: .8rem; font-weight: 600;
	cursor: pointer; transition: all .2s;
}
.af-tab:hover { border-color: var(--af-accent); }
.af-tab__count {
	min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px;
	display: inline-grid; place-items: center;
	background: var(--af-card-2); color: var(--af-muted); font-size: .7rem; font-weight: 700;
}
.af-tab.is-active { background: var(--af-accent); border-color: var(--af-accent); color: var(--af-accent-ink); }
.af-tab.is-active .af-tab__count { background: rgba(0,0,0,.18); color: var(--af-accent-ink); }
.af-showing { color: var(--af-muted); font-size: .8rem; margin: 6px 0 16px; }
.af-showing strong { color: var(--af-accent); }

/* =========================================================
   7. GRIDS & TOOL CARDS
   ========================================================= */
.af-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-bottom: 56px; }
.af-grid--mini { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; padding-bottom: 0; }
.af-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 0; }

.af-card {
	display: flex; flex-direction: column;
	background: var(--af-card);
	border: 1px solid var(--af-border);
	border-radius: var(--af-radius);
	padding: 12px;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.af-card:hover {
	border-color: var(--af-accent);
	box-shadow: 0 12px 24px -8px var(--af-accent-glow);
	transform: translateY(-4px);
}
.af-card.is-hidden { display: none; }
.af-card__media {
	position: relative; display: grid; place-items: center;
	aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
	background: radial-gradient(circle at 50% 40%, var(--af-card-2), var(--af-bg-2));
	border: 1px solid var(--af-border); margin-bottom: 12px;
}
.af-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.af-card__letter {
	width: 64px; height: 64px; border-radius: 16px;
	display: grid; place-items: center;
	background: var(--af-accent); color: var(--af-accent-ink);
	font-size: 1.8rem; font-weight: 800;
	box-shadow: 0 0 30px var(--af-accent-glow);
}
.af-card__access {
	position: absolute; left: 8px; top: 8px;
	padding: 3px 9px; border-radius: 999px;
	background: rgba(0,0,0,.72); border: 1px solid var(--af-border);
	color: var(--af-accent); font-size: .68rem; font-weight: 700;
	backdrop-filter: blur(4px);
}
.af-card__body { display: flex; flex-direction: column; flex: 1; padding: 0 4px; }
.af-card__title { font-size: .98rem; margin: 0 0 8px; }
.af-card__title a { color: #fff; }
.af-card__title a:hover { color: var(--af-accent); }
.af-card__features { list-style: none; margin: 0 0 12px; padding: 0; flex: 1; }
.af-card__features li { position: relative; padding-left: 20px; margin-bottom: 4px; color: var(--af-muted); font-size: .8rem; line-height: 1.45; }
.af-card__features li::before { content: "✓"; position: absolute; left: 0; color: var(--af-success); font-weight: 800; }
.af-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.af-price__old { color: var(--af-muted); text-decoration: line-through; font-size: .8rem; }
.af-price__deal { color: var(--af-accent); font-size: 1.15rem; font-weight: 800; }
.af-card__actions { display: flex; flex-direction: column; gap: 8px; }
.af-card__actions .af-btn { width: 100%; min-height: 40px; }

/* Mini card (homepage top picks) */
.af-mini {
	display: flex; flex-direction: column;
	background: var(--af-card); border: 1px solid var(--af-border);
	border-radius: 14px; padding: 8px;
	transition: border-color .2s, transform .2s;
}
.af-mini:hover { border-color: var(--af-accent); transform: translateY(-3px); }
.af-mini .af-card__media { aspect-ratio: 1 / 1; margin-bottom: 8px; border-radius: 10px; }
.af-mini .af-card__letter { width: 52px; height: 52px; font-size: 1.4rem; }
.af-mini__title { font-size: .8rem; font-weight: 700; color: #fff; margin: 0 2px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-mini .af-price { margin: 0 2px 8px; }
.af-mini .af-price__deal { font-size: .85rem; }
.af-mini .af-price__old { font-size: .7rem; }
.af-mini .af-btn { min-height: 32px; font-size: .74rem; border-radius: 8px; padding: 0 8px; }

.af-empty { text-align: center; color: var(--af-muted); padding: 40px 0 80px; display: none; }
.af-empty.is-visible { display: block; }
.af-empty-state { text-align: center; padding: 48px 0; color: var(--af-muted); }
.af-empty-state .af-empty-state__icon { font-size: 2rem; color: var(--af-accent); margin-bottom: 10px; }

/* =========================================================
   8. HOMEPAGE
   ========================================================= */
.af-hero { padding: 48px 0 24px; }
.af-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.af-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 14px 0 12px; }
.af-hero__sub { color: var(--af-muted); font-size: 1rem; max-width: 520px; }
.af-hero__btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 18px; }
.af-hero__trust { display: flex; gap: 16px; flex-wrap: wrap; color: var(--af-muted); font-size: .8rem; }
.af-hero__trust span::before { content: "✓ "; color: var(--af-accent); font-weight: 800; }
.af-hero__art { position: relative; display: grid; place-items: center; min-height: 360px; }
.af-hero__art::before {
	content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
	background: radial-gradient(circle, var(--af-accent-glow) 0%, transparent 70%);
	filter: blur(10px);
}
.af-hero__logo {
	position: relative; width: 200px; height: 200px; border-radius: 40px;
	display: grid; place-items: center;
	background: linear-gradient(145deg, var(--af-card-2), var(--af-bg));
	border: 1px solid var(--af-accent);
	box-shadow: 0 0 60px var(--af-accent-glow), inset 0 0 30px var(--af-accent-soft);
	font-size: 5rem; font-weight: 800; color: var(--af-accent);
}
.af-hero__logo img { width: 70%; height: auto; }

/* Orbiting tool icons around the hero mark (Sastetools-style hero) */
.af-orbit { position: relative; width: 340px; height: 340px; display: grid; place-items: center; }
.af-orbit__ring { position: absolute; inset: 0; animation: af-orbit-spin 40s linear infinite; }
.af-orbit__chip { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; transform: rotate(calc(var(--i) * 45deg)) translateY(-146px) rotate(calc(var(--i) * -45deg)); }
.af-orbit__chip-in { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--af-card); border: 1px solid var(--af-border); box-shadow: 0 0 18px var(--af-accent-glow); overflow: hidden; animation: af-orbit-spin-rev 40s linear infinite; }
.af-orbit__chip-in img { width: 36px; height: 36px; object-fit: contain; }
.af-orbit__chip-in .af-card__letter { width: 100%; height: 100%; border-radius: 50%; font-size: 1.3rem; box-shadow: none; }
@keyframes af-orbit-spin { to { transform: rotate(360deg); } }
@keyframes af-orbit-spin-rev { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .af-orbit__ring, .af-orbit__chip-in { animation: none; } }

.af-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.af-stat {
	text-align: center; padding: 18px 12px;
	background: var(--af-card); border: 1px solid var(--af-border); border-radius: 14px;
}
.af-stat strong { display: block; font-size: 1.6rem; color: var(--af-accent); font-weight: 800; line-height: 1.2; }
.af-stat span { color: var(--af-muted); font-size: .78rem; }

.af-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.af-cat {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
	padding: 22px 14px; border-radius: 14px;
	background: var(--af-bg-2); border: 1px solid var(--af-border); color: #fff;
	transition: border-color .2s, transform .2s;
}
.af-cat:hover { border-color: var(--af-accent); transform: translateY(-3px); color: #fff; }
.af-cat__icon {
	width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
	background: var(--af-accent-soft); color: var(--af-accent); font-size: 1.3rem;
}
.af-cat strong { font-size: .9rem; }
.af-cat small { color: var(--af-muted); font-size: .75rem; }

.af-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.af-step {
	position: relative; padding: 22px 20px;
	background: var(--af-bg-2); border: 1px solid var(--af-border); border-radius: 14px;
}
.af-step__num {
	display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
	background: var(--af-accent); color: var(--af-accent-ink); font-weight: 800; margin-bottom: 12px;
}
.af-step h3 { font-size: 1rem; margin-bottom: 6px; }
.af-step p { color: var(--af-muted); font-size: .85rem; margin: 0; }

.af-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.af-feature { padding: 20px; background: var(--af-bg-2); border: 1px solid var(--af-border); border-radius: 14px; }
.af-feature__icon { font-size: 1.4rem; color: var(--af-accent); margin-bottom: 8px; }
.af-feature h3 { font-size: .98rem; margin-bottom: 6px; }
.af-feature p { color: var(--af-muted); font-size: .84rem; margin: 0; }

.af-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.af-faq details {
	background: var(--af-bg-2); border: 1px solid var(--af-border); border-radius: 12px;
	padding: 0 18px; transition: border-color .2s;
}
.af-faq details[open] { border-color: var(--af-accent); }
.af-faq summary {
	list-style: none; cursor: pointer; padding: 15px 0; font-weight: 700; color: #fff; font-size: .92rem;
	display: flex; justify-content: space-between; gap: 12px;
}
.af-faq summary::-webkit-details-marker { display: none; }
.af-faq summary::after { content: "+"; color: var(--af-accent); font-size: 1.2rem; line-height: 1; }
.af-faq details[open] summary::after { content: "−"; }
.af-faq details p { color: var(--af-muted); font-size: .88rem; padding-bottom: 14px; margin: 0; }

.af-cta-banner {
	position: relative; overflow: hidden; text-align: center;
	padding: 44px 24px; border-radius: 20px;
	background: radial-gradient(ellipse at top, var(--af-accent-soft), transparent 70%), var(--af-card);
	border: 1px solid var(--af-accent);
}
.af-cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.af-cta-banner p { color: var(--af-muted); }

/* =========================================================
   9. BLOG
   ========================================================= */
.af-post-card {
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--af-card); border: 1px solid var(--af-border); border-radius: 14px;
	transition: border-color .2s, transform .2s;
}
.af-post-card:hover { border-color: var(--af-accent); transform: translateY(-3px); }
.af-post-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--af-bg-2); }
.af-post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.af-post-card:hover .af-post-card__img img { transform: scale(1.04); }
.af-post-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.af-post-card h3 { font-size: .95rem; margin-bottom: 6px; }
.af-post-card h3 a { color: #fff; }
.af-post-card h3 a:hover { color: var(--af-accent); }
.af-post-card p { color: var(--af-muted); font-size: .8rem; flex: 1; margin-bottom: 10px; }
.af-post-card time { color: var(--af-muted); font-size: .74rem; }

.navigation.pagination { margin: 32px 0 0; }
.nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-numbers {
	min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px;
	display: inline-grid; place-items: center;
	background: var(--af-card); border: 1px solid var(--af-border); color: #fff; font-size: .82rem; font-weight: 700;
}
.page-numbers:hover { border-color: var(--af-accent); color: var(--af-accent); }
.page-numbers.current { background: var(--af-accent); border-color: var(--af-accent); color: var(--af-accent-ink); }

.af-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; padding: 20px 0 56px; }
.af-article h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.af-article__meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.af-article__thumb { border-radius: 16px; overflow: hidden; margin-bottom: 22px; border: 1px solid var(--af-border); }
.af-widget { background: var(--af-card); border: 1px solid var(--af-border); border-radius: 14px; padding: 16px; margin-bottom: 18px; }
.af-widget h4 { font-size: .9rem; margin-bottom: 12px; }
.af-widget__tool { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--af-border); color: #fff; }
.af-widget__tool:first-of-type { border-top: 0; }
.af-widget__tool .af-card__letter, .af-widget__tool img { width: 38px; height: 38px; border-radius: 10px; font-size: 1rem; flex: 0 0 38px; object-fit: cover; }
.af-widget__tool span { flex: 1; font-size: .84rem; font-weight: 700; }
.af-widget__tool em { font-style: normal; color: var(--af-accent); font-size: .8rem; font-weight: 800; }
.af-sidebar { position: sticky; top: 88px; }

/* =========================================================
   10. CONTENT / SINGLE TOOL
   ========================================================= */
.af-box { background: var(--af-card); border: 1px solid var(--af-border); border-radius: var(--af-radius); padding: 24px; margin-bottom: 20px; }
.af-content { color: var(--af-text); }
.af-content h2 { font-size: 1.35rem; margin-top: 1.4em; }
.af-content h3 { font-size: 1.1rem; margin-top: 1.2em; }
.af-content ul, .af-content ol { padding-left: 1.3em; }
.af-content li { margin-bottom: .35em; }
.af-content img { border-radius: 12px; }
.af-content blockquote { margin: 1em 0; padding: 12px 18px; border-left: 3px solid var(--af-accent); background: var(--af-bg-2); border-radius: 0 10px 10px 0; }
.af-content a { text-decoration: underline; }

.af-single { padding: 16px 0 80px; }
.af-single__head { display: flex; align-items: center; gap: 18px; margin: 16px 0 28px; flex-wrap: wrap; }
.af-single__head .af-card__media { width: 88px; aspect-ratio: 1 / 1; margin: 0; flex: 0 0 88px; }
.af-single__head .af-card__letter { width: 56px; height: 56px; }
.af-single__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.af-compare { width: 100%; border-collapse: collapse; }
.af-compare th, .af-compare td { padding: 13px; border-bottom: 1px solid var(--af-border); text-align: left; }
.af-compare th { color: var(--af-muted); font-weight: 600; font-size: .85rem; }
.af-compare td.af-old { color: var(--af-muted); text-decoration: line-through; }
.af-compare td.af-deal { color: var(--af-accent); font-weight: 800; }
.af-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.af-proscons ul { list-style: none; padding: 0; margin: 0; }
.af-proscons li { padding-left: 24px; position: relative; margin-bottom: 8px; color: var(--af-muted); }
.af-pros li::before { content: "✓"; position: absolute; left: 0; color: var(--af-success); font-weight: 800; }
.af-cons li::before { content: "✕"; position: absolute; left: 0; color: var(--af-danger); font-weight: 800; }
.af-pros h3 { color: var(--af-success); }
.af-cons h3 { color: var(--af-danger); }
.af-sticky-bar { display: none; }
.af-main { padding: 20px 0 64px; min-height: 55vh; }

/* =========================================================
   11. FOOTER
   ========================================================= */
.af-footer { border-top: 1px solid var(--af-border); background: #000; padding: 48px 0 20px; color: var(--af-muted); font-size: .85rem; margin-top: 40px; }
.af-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.af-footer h4 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 6px 0 16px; }
.af-footer ul { list-style: none; margin: 0; padding: 0; }
.af-footer li { margin-bottom: 9px; }
.af-footer a { color: var(--af-muted); }
.af-footer a:hover { color: var(--af-accent); }
.af-footer__about { margin: 14px 0 16px; color: var(--af-text); max-width: 320px; }
.af-social { display: flex; gap: 8px; flex-wrap: wrap; }
.af-social a {
	width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
	background: var(--af-card); border: 1px solid var(--af-border); color: #fff;
}
.af-social a:hover { border-color: var(--af-accent); color: var(--af-accent); }
.af-social svg { width: 15px; height: 15px; fill: currentColor; }
.af-contact li { display: flex; align-items: center; gap: 10px; color: var(--af-text); }
.af-contact li i { font-style: normal; color: var(--af-accent); width: 16px; text-align: center; }
.af-disclaimer {
	margin-top: 32px; padding: 14px 18px;
	background: var(--af-card); border: 1px solid var(--af-border); border-left: 3px solid var(--af-accent);
	border-radius: 10px; font-size: .8rem; line-height: 1.6;
}
.af-disclaimer strong { color: #fff; }
.af-footer__bottom {
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--af-border); font-size: .76rem;
}
.af-footer__bottom ul { display: flex; gap: 0; flex-wrap: wrap; }
.af-footer__bottom li { margin: 0; }
.af-footer__bottom li + li::before { content: "|"; margin: 0 10px; color: var(--af-border); }

.af-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 70;
	width: 52px; height: 52px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--af-accent); color: var(--af-accent-ink); font-size: 1.3rem;
	box-shadow: 0 10px 30px var(--af-accent-glow);
	transition: transform .2s;
}
.af-float:hover { transform: scale(1.08); color: var(--af-accent-ink); }

.af-toast {
	position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px);
	background: var(--af-success); color: #fff; font-weight: 700;
	padding: 12px 20px; border-radius: 12px; z-index: 100; transition: transform .3s;
}
.af-toast.is-visible { transform: translate(-50%, 0); }

/* =========================================================
   12. RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
	.af-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.af-grid--mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.af-burger { display: grid; }
	.af-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		background: #000; border-bottom: 1px solid var(--af-border); padding: 12px 20px 18px;
	}
	.af-nav.is-open { display: block; }
	.af-nav ul { flex-direction: column; align-items: stretch; }
	.af-nav a { padding: 12px; }
	.af-nav .sub-menu { position: static; display: flex; box-shadow: none; margin: 0 0 0 12px; border: 0; background: transparent; }
	.af-header__inner { justify-content: space-between; }
	.af-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.af-hero__grid { grid-template-columns: 1fr; text-align: center; }
	.af-hero__sub { margin: 0 auto; }
	.af-hero__btns, .af-hero__trust { justify-content: center; }
	.af-hero__art { min-height: 280px; order: -1; }
	.af-orbit { width: 260px; height: 260px; }
	.af-orbit__chip { width: 44px; height: 44px; margin: -22px 0 0 -22px; transform: rotate(calc(var(--i) * 45deg)) translateY(-108px) rotate(calc(var(--i) * -45deg)); }
	.af-orbit__chip-in img { width: 30px; height: 30px; }
	.af-hero__logo { width: 150px; height: 150px; font-size: 3.6rem; border-radius: 32px; }
	.af-cats { grid-template-columns: repeat(2, 1fr); }
	.af-steps, .af-features { grid-template-columns: 1fr; }
	.af-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.af-single__layout, .af-article-layout { grid-template-columns: 1fr; }
	.af-sidebar { position: static; }
	.af-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 14.5px; }
	.af-cta { padding: 0 12px; font-size: .74rem; }
	.af-cta__long { display: none; }
	.af-logo__tag { display: none; }
	.af-grid, .af-grid--3 { grid-template-columns: 1fr; }
	.af-grid--mini { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.af-stats { grid-template-columns: repeat(2, 1fr); }
	.af-panel { padding: 26px 16px; border-radius: 16px; }
	.af-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; scrollbar-width: none; }
	.af-tabs::-webkit-scrollbar { display: none; }
	.af-tab { flex: 0 0 auto; min-height: 44px; }
	.af-proscons { grid-template-columns: 1fr; }
	.af-footer__grid { grid-template-columns: 1fr; }
	.af-footer__bottom { flex-direction: column; align-items: center; text-align: center; }
	.af-sticky-bar {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		padding: 12px 16px; background: rgba(10,10,10,.97); border-top: 1px solid var(--af-accent);
	}
	.af-sticky-bar .af-price { margin: 0; }
	body.single-tools { padding-bottom: 76px; }
	body.single-tools .af-float { bottom: 88px; }
}
