
/* =====================================================
   Settings tab redesign
   ===================================================== */
.ah-settings__section {
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.5rem 1.75rem;
	margin-bottom: 1.25rem;
}
.ah-settings__sec-head {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 1.1rem;
	padding-bottom: 0.7rem;
	border-bottom: 1px solid var(--border);
}
.ah-settings__sec-ico {
	width: 1.9rem;
	height: 1.9rem;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: var(--accent-soft);
	color: var(--accent-ink);
	font-size: 0.9rem;
}
.ah-settings__sec-title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1rem;
	color: var(--text);
}
.ah-settings__form {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}
.ah-settings__label {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--text-soft);
}
.ah-settings__label input {
	background: var(--surface-2);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 0.55rem 0.85rem;
	font-size: 0.9rem;
}
.ah-settings__label input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
.ah-settings__btn {
	align-self: flex-start;
	padding: 0.55rem 1.5rem;
	border: none;
	border-radius: 999px;
	background: var(--accent);
	color: #10130d;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 0.88rem;
	cursor: pointer;
	transition: all 0.2s ease;
}
[data-theme="light"] .ah-settings__btn { color: #fff; }
.ah-settings__btn:hover { transform: translateY(-1px); }

/* radio group */
.ah-settings__radio {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 1rem;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--panel);
	cursor: pointer;
	transition: all 0.2s ease;
}
.ah-settings__radio:hover { border-color: var(--accent); }
.ah-settings__radio.selected { border-color: var(--accent); background: var(--accent-soft); }
.ah-settings__radio input[type="radio"] { accent-color: var(--accent); width: 1rem; height: 1rem; }
.ah-settings__radio-ico { font-size: 1.1rem; width: 1.4rem; text-align: center; }
.ah-settings__radio-body { display: flex; flex-direction: column; gap: 0.1rem; }
.ah-settings__radio-body b { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.ah-settings__radio-body small { font-size: 0.76rem; color: var(--text-soft); }

/* avatar upload row */
.ah-settings__avatar-row {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	padding: 0.9rem 0;
}
.ah-settings__avatar-preview img {
	border-radius: 50%;
	border: 2px solid var(--accent);
	padding: 2px;
}
.ah-settings__file-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 1.2rem;
	border-radius: 10px;
	border: 1px dashed var(--border-strong);
	background: var(--surface-2);
	color: var(--text-soft);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}
.ah-settings__file-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.ah-settings__file-btn input[hidden] + span { pointer-events: none; }
.ah-settings__avatar-upload small { display: block; margin-top: 0.3rem; color: var(--text-soft); font-size: 0.72rem; }

/* =====================================================
   Sidebar profile redesign
   ===================================================== */
.ah-rail__profile {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.9rem 1rem 0.7rem;
	border-top: 1px solid var(--border);
	position: relative;
}
.ah-rail__profile .ah-ava { flex-shrink: 0; }
.ah-rail__profile-info {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	flex: 1;
	min-width: 0;
}
.ah-rail__profile-name {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ah-rail__profile-name a { color: var(--text); }
.ah-rail__profile-name a:hover { color: var(--accent-ink); }
.ah-rail__profile-actions {
	display: flex;
	gap: 0.55rem;
	align-items: center;
}
.ah-profile-link {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--accent-ink) !important;
	letter-spacing: 0.02em;
}
.ah-profile-link:hover { text-decoration: underline; }
.ah-profile-link--logout { color: var(--text-soft) !important; }
.ah-profile-link--logout:hover { color: #ff8589 !important; }

.ah-rail__tier-badge {
	position: absolute;
	top: -8px;
	right: 0.8rem;
	padding: 0.12rem 0.55rem;
	border-radius: 999px;
	font-family: var(--font-head);
	font-size: 0.62rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	line-height: 1.4;
}
.ah-tier--pro {
	background: var(--surface-2);
	border: 1px solid var(--border-strong);
	color: var(--text-soft);
}
.ah-tier--trusted {
	background: #3fb969;
	color: #fff;
}
.ah-tier--elite {
	background: linear-gradient(135deg, #b78bff, #7c3aed);
	color: #fff;
	box-shadow: 0 2px 12px rgba(183, 139, 255, 0.4);
}
.ah-tier--flagged {
	background: #d64545;
	color: #fff;
}

/* =====================================================
   Overview: Recent activity — styled feed cards
   ===================================================== */
.ah-dash__list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.ah-dash__list li {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 0.9rem 0.75rem 2.4rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
/* accent marker on the left edge */
.ah-dash__list li::before {
	content: "";
	position: absolute;
	left: 0.9rem;
	top: 50%;
	transform: translateY(-50%);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
	flex-shrink: 0;
}
.ah-dash__list li:hover {
	background: var(--surface-2);
	border-color: var(--border-strong);
	transform: translateX(3px);
	/* Keep the hover padding equal to the resting left padding so the text
	   never slides under the ::before accent dot (parent theme sets 0.6rem). */
	padding-left: 2.4rem;
}
/* Icon + title stay left-aligned; only the meta chip hugs the right edge
   (space-between would push the title to the center once the icon exists). */
.ah-dash__list li { justify-content: flex-start; }
.ah-dash__list li .ah-dash__list-meta { margin-left: auto; }
.ah-dash__list li > svg:first-child { width: 14px; height: 14px; flex: 0 0 auto; color: var(--accent-ink); margin-right: 0.15rem; }
.ah-dash__list li span:first-child {
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--text);
	min-width: 0;
}
.ah-dash__panel .ah-dash__list li:last-child,
.ah-dash__list li:last-child {
	border-bottom: 1px solid var(--border); /* keep card border with new radius */
}
.ah-dash__list-meta {
	background: var(--panel-2);
	border: 1px solid var(--border);
	color: var(--text-soft);
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	flex-shrink: 0;
}

/* =====================================================
   Settings: NSFW radio cards — highlight follows the
   actual checked state (fixes stuck .selected highlight)
   ===================================================== */
/* highlight follows the live checked state (class synced by JS, :has as fallback) */
.ah-settings__radio.selected,
.ah-settings__radio:has(input:checked) {
	border-color: var(--accent);
	background: var(--accent-soft);
	box-shadow: inset 3px 0 0 var(--accent);
}
/* neutralize the stale server-rendered .selected class when unchecked */
.ah-settings__radio.selected:not(:has(input:checked)) {
	border-color: var(--border);
	background: var(--panel);
	box-shadow: none;
}
.ah-settings__radio:has(input:checked) .ah-settings__radio-body b {
	color: var(--accent-ink);
}

/* =====================================================
   Sidebar rail: profile card redesign
   ===================================================== */
.ah-rail__profile {
	margin: 0.75rem 1rem 1rem;
	padding: 0.8rem 0.9rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	border-top: 1px solid var(--border); /* override parent's border-top */
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.ah-rail__profile:hover {
	background: var(--surface-2);
	border-color: var(--border-strong);
	transform: translateY(-2px);
}
.ah-rail__profile .ah-ava {
	border-radius: 50%;
	box-shadow: 0 0 0 2px var(--panel), 0 2px 8px rgba(0, 0, 0, 0.35);
}
.ah-rail__profile-name {
	font-size: 0.92rem;
	letter-spacing: 0.01em;
}
.ah-rail__profile-sub {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin-top: 0.2rem;
	font-size: 0.72rem;
}
.ah-rail__profile-sub a {
	color: var(--text-soft);
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	background: var(--panel-2);
	border: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.ah-rail__profile-sub a:hover {
	color: var(--accent-ink);
	border-color: var(--border);
}

/* =====================================================
   Imported product content — magazine layout
   ===================================================== */
.ah-imported {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	font-size: 0.95rem;
	line-height: 1.75;
}
.ah-imported > p:empty { display: none; }
.ah-imported img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: var(--surface);
}
.ah-imported > p:first-of-type {
	font-size: 1.08rem;
	color: var(--text);
	border-left: 3px solid var(--accent);
	padding-left: 1rem;
}
.ah-imported > p:not(:first-of-type) {
	color: var(--text-soft);
	margin: 0;
}
.ah-imported h3 {
	margin: 1.4rem 0 0;
	padding-bottom: 0.55rem;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--text);
	border-bottom: 1px solid var(--border);
	position: relative;
}
.ah-imported h3::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 3.5rem;
	height: 3px;
	border-radius: 3px;
	background: var(--accent);
}
.ah-imported > p:first-of-type + h3 {
	margin-top: 0.6rem;
}
/* loose uppercase captions that used to float around */
.ah-imported > p strong,
.ah-imported > p b {
	color: var(--text);
}
.ah-imported table {
	width: 100%;
	border-collapse: collapse;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	font-size: 0.88rem;
}
.ah-imported table th,
.ah-imported table td {
	padding: 0.55rem 0.9rem;
	border-bottom: 1px solid var(--border);
	text-align: left;
}
.ah-imported table th {
	color: var(--text-soft);
	font-weight: 600;
	width: 40%;
	background: var(--panel-2);
}
.ah-imported table tr:last-child th,
.ah-imported table tr:last-child td {
	border-bottom: none;
}
.ah-imported > p:last-of-type {
	margin-top: 1rem;
	padding-top: 0.9rem;
	border-top: 1px dashed var(--border);
	font-size: 0.82rem;
}

/* =====================================================
   Product profile card (imported posts — hero block)
   ===================================================== */
.ah-profile {
	position: relative;
	background:
		linear-gradient(135deg, rgba(205, 243, 76, 0.08), rgba(245, 121, 42, 0.06)),
		var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: 18px;
	padding: 1.4rem 1.6rem;
	margin: 0 0 1.6rem;
	overflow: hidden;
}
.ah-profile::before {
	content: "PRODUCT PROFILE";
	display: block;
	margin-bottom: 0.9rem;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--text-soft);
}
.ah-profile__head {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 1.1rem;
	padding-right: 9rem;
}
.ah-profile__creator {
	font-weight: 800;
	font-size: 1rem;
	color: var(--accent-ink);
}
.ah-profile__creator::before {
	content: "◆ ";
	font-size: 0.7rem;
}
.ah-profile__price {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 1.05rem;
	background: var(--accent);
	color: #17190a;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
}
.ah-profile__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 0.7rem;
}
.ah-profile__tile {
	background: var(--panel-2);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 0.65rem 0.85rem;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.ah-profile__tile:hover {
	border-color: var(--accent);
	transform: translateY(-2px);
}
.ah-profile__tile small {
	font-size: 0.66rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-soft);
}
.ah-profile__tile b {
	font-size: 0.95rem;
	color: var(--text);
}
.ah-profile__source {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 1.1rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text-soft);
	text-decoration: none;
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 0.35rem 0.9rem;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.ah-profile__source:hover {
	color: var(--accent-ink);
	border-color: var(--accent);
}

/* =====================================================
   YouTube players inside imported content
   ===================================================== */
.ah-yt {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--border);
	background: #000;
}
.ah-yt iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* =====================================================
   Single post — full-bleed modern layout
   ===================================================== */
.ah-single {
	padding: 0;
	background: transparent;
}
article.ah-single {
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid var(--border-strong);
	background: var(--panel);
}

/* --- header band above the slider --- */
.ah-hero__head {
	padding: 2rem 2.4rem 1.4rem;
	border-bottom: 1px solid var(--border);
	background:
		radial-gradient(1200px 220px at 12% 0%, var(--accent-soft), transparent 65%),
		var(--panel);
}
.ah-hero__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 0.8rem;
}
.ah-hero__meta .post-categories,
.ah-hero__meta ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}
.ah-hero__meta .cat-item a,
.ah-hero__meta a[rel="category tag"] {
	display: inline-block;
	background: var(--accent-soft);
	border: 1px solid transparent;
	color: var(--accent-ink);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.22rem 0.7rem;
	border-radius: 999px;
	text-decoration: none;
	transition: background 0.2s ease;
}
.ah-hero__meta .cat-item a:hover {
	background: var(--accent);
	color: #17190a;
}
.ah-hero__chip {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--text-soft);
	border: 1px solid var(--border);
	padding: 0.22rem 0.7rem;
	border-radius: 999px;
}
.ah-hero__chip--price {
	background: var(--accent);
	border-color: var(--accent);
	color: #17190a;
	font-weight: 800;
}
.ah-single .ah-hero__title {
	margin: 0;
	font-family: var(--font-head);
	font-size: clamp(2rem, 3.8vw, 3.2rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: var(--text);
}
.ah-single .ah-hero__excerpt {
	margin: 0.8rem 0 0;
	max-width: 860px;
	font-size: 1.02rem;
	line-height: 1.65;
	color: var(--text-soft);
}

/* --- body --- */
.ah-single__body {
	margin-top: 0;
	padding: 2rem 2.4rem 0.6rem;
}
.ah-single__tags {
	margin: 2rem 2.4rem 0;
	padding-top: 1.2rem;
	border-top: 1px dashed var(--border);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: baseline;
}
.ah-single__tags-label {
	color: var(--accent-ink);
	font-weight: 800;
}
.ah-single__tags a {
	color: var(--text-soft);
	font-size: 0.8rem;
	margin-right: 0.6rem;
	text-decoration: none;
}
.ah-single__tags a:hover { color: var(--accent-ink); }
.ah-single__comments {
	margin: 1.5rem auto 0;
}
@media (max-width: 720px) {
	.ah-hero__head { padding: 1.4rem 1.1rem 1.1rem; }
	.ah-single__body, .ah-single__tags { padding-left: 1.1rem; padding-right: 1.1rem; margin-left: 0; margin-right: 0; }
}

/* =====================================================
   Imported content — image-left / text-right rows
   ===================================================== */
.ah-imported::after {
	content: "";
	display: table;
	clear: both;
}
/* image-only paragraphs float left; following text wraps beside them */
.ah-imported > p:has(> img:only-child) {
	float: left;
	width: min(380px, 40%);
	margin: 0.3rem 1.6rem 1.1rem 0;
	clear: left;
}
.ah-imported > p:has(> img:only-child) img {
	width: 100%;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: var(--surface);
	display: block;
}
.ah-imported > p {
	overflow: hidden; /* text wraps beside the floated image block */
}
.ah-imported h3 {
	clear: none;
}
.ah-imported > .ah-yt {
	clear: both;
}
.ah-imported > h3:has(+ .ah-yt) {
	clear: both;
}

/* --- load-more collapse --- */
.ah-imported__rest {
	position: relative;
	max-height: 260px;
	overflow: hidden;
}
.ah-imported__rest::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 150px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--panel) 85%);
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.ah-imported__rest.is-open {
	max-height: none;
}
.ah-imported__rest.is-open::after {
	opacity: 0;
}
.ah-imported__more {
	display: block;
	margin: 1.1rem auto 0;
	padding: 0.6rem 2.2rem;
	background: var(--surface-2);
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	color: var(--text);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.ah-imported__more:hover {
	border-color: var(--accent);
	color: var(--accent-ink);
	transform: translateY(-1px);
}

/* --- download gate relocated under the profile card --- */
.ah-single__body .ah-gate {
	margin: 1.4rem 0 2rem;
	padding: 1.2rem 1.5rem;
	background:
		linear-gradient(135deg, rgba(205, 243, 76, 0.1), rgba(245, 121, 42, 0.07)),
		var(--surface);
	border: 1px solid var(--accent);
	border-radius: 16px;
}
/* warning card spans the full panel width; button centered below it */
.ah-single__body .ah-gate .ah-insufficient {
	width: 100%;
	max-width: none;
}
.ah-single__body .ah-gate .ah-gate__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	width: 100%;
	margin-top: 0.9rem;
	font-size: 1rem;
}

/* =====================================================
   Post actions row (bookmark + report, under slider)
   ===================================================== */
.ah-single__actions {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 1rem 2.4rem 0;
}
.ah-single__actions .ah-bookmark,
.ah-single__actions .ah-report {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	border: 1px solid var(--border-strong);
	background: var(--surface);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 0.84rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.ah-single__actions .ah-bookmark:hover {
	border-color: var(--accent);
	color: var(--accent-ink);
	transform: translateY(-1px);
}
.ah-single__actions .ah-bookmark.active {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--accent-ink);
}
.ah-single__actions .ah-report:hover {
	border-color: #ff8589;
	color: #ff8589;
	transform: translateY(-1px);
}
.ah-single__actions .ah-report.is-done {
	border-color: var(--border);
	color: var(--text-soft);
	cursor: default;
	transform: none;
}

/* =====================================================
   Report modal — two steps (reason → description)
   ===================================================== */
.ah-report-modal[hidden] {
	display: none;
}
.ah-report-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}
.ah-report-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 6, 4, 0.72);
	backdrop-filter: blur(4px);
}
.ah-report-modal__card {
	position: relative;
	width: min(480px, 100%);
	background: var(--panel);
	border: 1px solid var(--border-strong);
	border-radius: 22px;
	padding: 1.8rem 1.9rem 1.9rem;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
	animation: ah-modal-pop 0.22s ease;
}
@keyframes ah-modal-pop {
	from { opacity: 0; transform: translateY(14px) scale(0.97); }
	to { opacity: 1; transform: none; }
}
.ah-report-modal__close {
	position: absolute;
	top: 0.9rem;
	right: 1rem;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text-soft);
	cursor: pointer;
	font-size: 0.85rem;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.ah-report-modal__close:hover {
	color: #ff8589;
	border-color: #ff8589;
}
.ah-report-modal__title {
	margin: 0 0 1.1rem;
	font-family: var(--font-head);
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--text);
}
.ah-report-modal__reasons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.6rem;
}
.ah-report-modal__reason {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.85rem 1rem;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 0.9rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.ah-report-modal__reason:last-child {
	grid-column: 1 / -1;
}
.ah-report-modal__reason:hover {
	border-color: #ff8589;
	background: rgba(255, 133, 137, 0.07);
	transform: translateY(-1px);
}
.ah-report-modal__reason-ico {
	width: 1.7rem;
	height: 1.7rem;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: rgba(255, 133, 137, 0.12);
	color: #ff8589;
	font-size: 0.85rem;
	flex-shrink: 0;
}
.ah-report-modal__picked {
	margin: -0.4rem 0 0.9rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: #ff8589;
}
.ah-report-modal__text {
	width: 100%;
	resize: vertical;
	min-height: 6rem;
	padding: 0.8rem 1rem;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 0.92rem;
	line-height: 1.6;
}
.ah-report-modal__text:focus {
	outline: none;
	border-color: var(--accent);
}
.ah-report-modal__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1.1rem;
}
.ah-report-modal__back {
	background: none;
	border: none;
	color: var(--text-soft);
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}
.ah-report-modal__back:hover { color: var(--text); }
.ah-report-modal__send {
	padding: 0.65rem 2rem;
	border-radius: 999px;
	border: none;
	background: var(--accent);
	color: #17190a;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 0.92rem;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.ah-report-modal__send:hover { transform: translateY(-1px); }
.ah-report-modal__send:disabled { opacity: 0.6; cursor: wait; }

/* =====================================================
   Full-bleed slider — breathing room for controls
   ===================================================== */
.ah-single .ah-slider__thumbs {
	padding: 0.55rem 1.4rem 0.7rem;
	box-sizing: border-box;
}
.ah-single .ah-slider__arrows .ah-slider__arrow,
.ah-single .ah-slider__arrow {
	margin: 0 1.2rem;
}
.ah-single .ah-slider__stage {
	margin: 0;
}

/* struck-through price + Free badge in free-downloads mode */
.ah-gate__price--free {
	background: var(--accent);
	color: #17190a;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	font-weight: 800;
}
.ah-gate__price + .ah-gate__price--free::before {
	content: none;
}
.ah-gate .ah-gate__btn .ah-gate__price:not(.ah-gate__price--free):has(+ .ah-gate__price--free) {
	text-decoration: line-through;
	opacity: 0.55;
}

/* free-mode pricing on cards */
.ah-card__foot .price s {
	opacity: 0.55;
	margin-right: 0.3rem;
}
.ah-card__foot .price .ah-price-free,
.ah-card__foot .price em.ah-price-free {
	font-style: normal;
	font-weight: 800;
	color: var(--accent-ink);
}

/* guest register callout inside the download gate */
.ah-gate__register {
	color: var(--text);
}
.ah-gate__register-link {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 0.2rem 0.8rem;
	border-radius: 999px;
	background: var(--accent);
	color: #17190a;
	font-weight: 700;
	text-decoration: none;
}
.ah-gate__register-link:hover {
	filter: brightness(1.08);
}

/* =====================================================
   Per-source profile card designs
   ===================================================== */
.ah-profile__site {
	display: inline-block;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 0.18rem 0.6rem;
	border-radius: 999px;
	margin-bottom: 0.9rem;
}
.ah-profile::before {
	display: none; /* replaced by .ah-profile__site badge */
}

/* --- Superhive (default) — lime on dark, existing palette --- */
.ah-profile--superhive {
	background:
		linear-gradient(135deg, rgba(205, 243, 76, 0.08), rgba(245, 121, 42, 0.06)),
		var(--surface);
	border-color: var(--border-strong);
}
.ah-profile--superhive .ah-profile__site {
	background: var(--accent-soft);
	color: var(--accent-ink);
	border: 1px solid var(--accent);
}
.ah-profile--superhive .ah-profile__tile:hover { border-color: var(--accent); }

/* --- Daz 3D — deep blue / teal, cool gradient --- */
.ah-profile--daz3d {
	background:
		linear-gradient(135deg, rgba(41, 128, 185, 0.16), rgba(22, 160, 133, 0.1)),
		var(--surface);
	border-color: rgba(41, 128, 185, 0.55);
}
.ah-profile--daz3d .ah-profile__site {
	background: rgba(41, 128, 185, 0.18);
	color: #7fb3e0;
	border: 1px solid rgba(41, 128, 185, 0.6);
}
.ah-profile--daz3d .ah-profile__tile:hover { border-color: #5490c4; }
.ah-profile--daz3d .ah-profile__source:hover { color: #7fb3e0; border-color: #5490c4; }

/* --- Renderotica — crimson adult theme --- */
.ah-profile--renderotica {
	background:
		linear-gradient(135deg, rgba(214, 69, 69, 0.14), rgba(120, 30, 40, 0.1)),
		var(--surface);
	border-color: rgba(214, 69, 69, 0.55);
}
.ah-profile--renderotica .ah-profile__site {
	background: rgba(214, 69, 69, 0.18);
	color: #ff9a9d;
	border: 1px solid rgba(214, 69, 69, 0.6);
}
.ah-profile--renderotica .ah-profile__site::before {
	content: "18+ ";
	font-weight: 900;
}
.ah-profile--renderotica .ah-profile__tile:hover { border-color: #d64545; }
.ah-profile--renderotica .ah-profile__source:hover { color: #ff9a9d; border-color: #d64545; }

/* --- Renderosity — purple/violet --- */
.ah-profile--renderosity {
	background:
		linear-gradient(135deg, rgba(142, 68, 173, 0.16), rgba(108, 52, 131, 0.1)),
		var(--surface);
	border-color: rgba(142, 68, 173, 0.55);
}
.ah-profile--renderosity .ah-profile__site {
	background: rgba(142, 68, 173, 0.18);
	color: #c39bd3;
	border: 1px solid rgba(142, 68, 173, 0.6);
}
.ah-profile--renderosity .ah-profile__tile:hover { border-color: #8e44ad; }
.ah-profile--renderosity .ah-profile__source:hover { color: #c39bd3; border-color: #8e44ad; }

/* --- RenderHub — warm amber --- */
.ah-profile--renderhub {
	background:
		linear-gradient(135deg, rgba(230, 126, 34, 0.14), rgba(211, 84, 0, 0.1)),
		var(--surface);
	border-color: rgba(230, 126, 34, 0.55);
}
.ah-profile--renderhub .ah-profile__site {
	background: rgba(230, 126, 34, 0.18);
	color: #f0b27a;
	border: 1px solid rgba(230, 126, 34, 0.6);
}
.ah-profile--renderhub .ah-profile__tile:hover { border-color: #e67e22; }
.ah-profile--renderhub .ah-profile__source:hover { color: #f0b27a; border-color: #e67e22; }

/* vendor bar layout for daz3d / renderhub / renderosity cards */
.ah-profile__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.ah-profile__vendor {
	color: var(--text-soft);
	font-size: 0.88rem;
}
.ah-profile__vendor b {
	color: var(--text);
}
.ah-profile__source {
	margin-top: 0; /* bar layout handles spacing */
}
.ah-profile--daz3d .ah-profile__source,
.ah-profile--renderhub .ah-profile__source,
.ah-profile--renderosity .ah-profile__source {
	margin-top: 0;
}

/* =====================================================
   GFXDL Exclusive Badge (README-3 §3)
   ===================================================== */
.ah-card__badge--exclusive {
	background: linear-gradient(135deg, #7C3AED, #A78BFA) !important;
	color: #F8FAFC !important;
	font-weight: 700;
	box-shadow: 0 2px 10px rgba(124, 58, 237, 0.35);
}

/* Category + Optional Subcategory Filter Bar (README-3 §16.3) */
.ah-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.85rem 1rem;
	margin-bottom: 1.5rem;
}
.ah-filter-bar__input {
	flex: 1 1 240px;
	background: var(--surface-2);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 0.55rem 0.85rem;
	font-size: 0.9rem;
}
.ah-filter-bar__select {
	background: var(--surface-2);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 0.55rem 0.85rem;
	font-size: 0.88rem;
	min-width: 170px;
}
.ah-filter-bar__btn {
	padding: 0.55rem 1.25rem;
}

/* Public Author Profile (README-3 §19) */
.ah-pubprof__card {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.75rem;
	flex-wrap: wrap;
}
.ah-pubprof__avatar img {
	border-radius: 50%;
	border: 3px solid var(--accent);
	display: block;
}
.ah-pubprof__info {
	flex: 1 1 320px;
}
.ah-pubprof__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 0.5rem;
}
.ah-pubprof__name {
	margin: 0;
	font-size: 1.6rem;
}
.ah-pubprof__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.22rem 0.7rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	background: var(--accent-soft);
	color: var(--accent);
	border: 1px solid var(--border-strong);
}
.ah-pubprof__badge--staff {
	background: var(--accent-2-soft);
	color: var(--accent-2);
}
.ah-pubprof__bio {
	margin: 0.4rem 0 1.1rem;
	color: var(--text);
	max-width: 68ch;
}
.ah-pubprof__bio--muted {
	color: var(--text-soft);
}
.ah-pubprof__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}
.ah-pubprof__stat {
	display: flex;
	flex-direction: column;
}
.ah-pubprof__stat strong {
	font-size: 1.15rem;
	color: var(--text);
}
.ah-pubprof__stat span {
	font-size: 0.78rem;
	color: var(--text-soft);
}

/* =====================================================
   Topbar redesign: WP-menu pills with SVG icons,
   pro search (category + text), icon actions.
   All colors ride on theme tokens → light + dark both work.
   ===================================================== */
.ah-topbar { gap: 0.9rem; padding: 0.7rem 1.6rem; }

/* --- Menu pills --- */
.ah-topbar__nav { flex: 0 0 auto; }
.ah-topnav { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.ah-topnav__item { display: inline-flex; }
.ah-topnav__link {
	display: inline-flex; align-items: center; gap: 0.45rem;
	padding: 0.5rem 0.95rem; border-radius: 999px;
	font-size: 0.86rem; font-weight: 600; text-decoration: none;
	color: var(--text-soft); border: 1px solid transparent;
	transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
	white-space: nowrap;
}
.ah-topnav__link .ah-ico { width: 15px; height: 15px; flex: 0 0 auto; opacity: 0.8; transition: color 0.18s ease, opacity 0.18s ease; }
.ah-topnav__link:hover { color: var(--text); background: var(--surface-2); }
.ah-topnav__link:hover .ah-ico { color: var(--accent-ink); opacity: 1; }
.ah-topnav__item.is-active > .ah-topnav__link {
	color: var(--accent-ink);
	background: var(--accent-soft);
	border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.ah-topnav__item.is-active > .ah-topnav__link .ah-ico { color: var(--accent-ink); opacity: 1; }

/* --- Pro search pill: [select | divider | input | go] --- */
.ah-search.ah-search--pro {
	display: flex; align-items: center; gap: 0.5rem;
	max-width: 470px;
	padding: 0.18rem 0.2rem 0.18rem 0.85rem;
	border-radius: 999px; border: 1px solid var(--border);
	background: var(--surface);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ah-search.ah-search--pro:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ah-search.ah-search--pro::before { content: none; }
.ah-search--pro select {
	appearance: none; -webkit-appearance: none;
	max-width: 150px; padding: 0.34rem 1.2rem 0.34rem 0.3rem;
	border: none; background-color: transparent; color: var(--text-soft);
	font: inherit; font-size: 0.8rem; font-weight: 600;
	cursor: pointer; outline: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 0.15rem center; background-size: 10px;
}
.ah-search--pro select option,
.ah-search--pro select optgroup { background: var(--surface); color: var(--text); }
.ah-search__sep { width: 1px; height: 1.15rem; background: var(--border); flex: 0 0 auto; }
.ah-search--pro input[type="search"] {
	flex: 1; min-width: 90px;
	padding: 0.42rem 0.25rem; border: none; border-radius: 0;
	background: transparent; color: var(--text);
	font: inherit; font-size: 0.86rem;
	box-shadow: none;
}
.ah-search--pro input[type="search"]:focus { outline: none; box-shadow: none; }
.ah-search--pro input[type="search"]::placeholder { color: var(--text-soft); }
.ah-search__go {
	display: grid; place-items: center; width: 2.1rem; height: 2.1rem;
	border: none; border-radius: 50%; background: var(--accent);
	color: #10130d; cursor: pointer; flex: 0 0 auto;
	transition: transform 0.18s ease, filter 0.18s ease;
}
[data-theme="light"] .ah-search__go { color: #fff; }
.ah-search__go:hover { transform: scale(1.07); filter: brightness(1.06); }
.ah-search__go .ah-ico { width: 14px; height: 14px; }

/* Dashboard active tab: dark ink on accent in dark mode, white in light mode */
.ah-dash__tab-link.active { color: #10130d; }
[data-theme="light"] .ah-dash__tab-link.active { color: #fff; }

/* --- Icon buttons: bell + theme toggle --- */
.ah-topbar__actions { gap: 0.5rem; }
.ah-icon-btn {
	position: relative; display: inline-grid; place-items: center;
	width: 2.25rem; height: 2.25rem; border-radius: 50%;
	border: 1px solid var(--border); background: var(--surface); color: var(--text);
	text-decoration: none; transition: all 0.2s ease; flex-shrink: 0;
}
.ah-icon-btn:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.ah-icon-btn .ah-ico { width: 16px; height: 16px; }
.ah-icon-btn__badge {
	position: absolute; top: -4px; right: -4px;
	min-width: 1.05rem; height: 1.05rem; padding: 0 0.25rem;
	border-radius: 999px; background: #ef4444; color: #fff;
	font-size: 0.62rem; font-weight: 800; line-height: 1;
	display: grid; place-items: center;
}
.ah-theme-toggle { display: inline-grid; place-items: center; font-size: inherit; }
.ah-theme-toggle .ah-ico { width: 16px; height: 16px; grid-area: 1 / 1; }
.ah-theme-toggle .ico-moon { display: none; }
[data-theme="light"] .ah-theme-toggle .ico-sun { display: none; }
[data-theme="light"] .ah-theme-toggle .ico-moon { display: inline-block; }

/* --- Responsive --- */
@media (max-width: 1180px) { .ah-search--pro select { max-width: 118px; } .ah-topnav__link { padding: 0.5rem 0.7rem; } .ah-topnav__link span { display: none; } .ah-topnav__link .ah-ico { width: 17px; height: 17px; opacity: 1; } }
@media (max-width: 980px) {
	.ah-topbar__nav { display: none; }
	.ah-search.ah-search--pro { max-width: none; }
}
@media (max-width: 560px) {
	.ah-search--pro select, .ah-search__sep { display: none; }
	.ah-topbar { padding: 0.7rem 1rem; }
}

/* =====================================================
   Topnav dropdowns (parent → child) + Account button
   ===================================================== */
.ah-topnav__item--parent { position: relative; }
.ah-topnav__item--parent > .ah-topnav__link .ah-chevron {
	width: 12px; height: 12px; opacity: 0.7;
	transition: transform 0.2s ease;
	margin-left: 0.05rem;
}
.ah-topnav__item--parent:hover > .ah-topnav__link .ah-chevron,
.ah-topnav__item--parent:focus-within > .ah-topnav__link .ah-chevron { transform: rotate(180deg); }

.ah-topnav__sub {
	position: absolute; top: 100%; left: 0;
	min-width: 215px; margin: 0; padding: 0.4rem;
	list-style: none; z-index: 95;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: 0 16px 44px rgba(2, 6, 23, 0.22);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
/* invisible bridge so the pointer can travel from the pill to the dropdown */
.ah-topnav__sub::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.ah-topnav__item--parent:hover > .ah-topnav__sub,
.ah-topnav__item--parent:focus-within > .ah-topnav__sub {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.ah-topnav__sub .ah-topnav__item { display: block; width: 100%; }
.ah-topnav__sub .ah-topnav__link {
	display: flex; width: 100%;
	padding: 0.6rem 0.75rem; border-radius: 9px;
	font-size: 0.85rem;
}
.ah-topnav__sub .ah-topnav__link:hover { background: var(--surface-2); }
.ah-topnav__sub .ah-topnav__item.is-active > .ah-topnav__link { background: var(--accent-soft); border-color: transparent; border-radius: 9px; }

/* Account as a distinct button */
.ah-topnav__item--account > .ah-topnav__link {
	border-color: color-mix(in srgb, var(--accent) 45%, transparent);
	background: var(--accent-soft);
	color: var(--accent-ink);
	padding: 0.45rem 1rem;
}
.ah-topnav__item--account > .ah-topnav__link .ah-ico { opacity: 1; color: var(--accent-ink); }
.ah-topnav__item--account > .ah-topnav__link:hover {
	filter: brightness(1.05);
	border-color: var(--accent);
	color: var(--accent-ink);
	background: var(--accent-soft);
}

/* =====================================================
   Breadcrumb removed — mobile-only brand + Account button
   ===================================================== */
.ah-topbar__brand {
	display: none;
	align-items: center; gap: 0.45rem;
	font-family: var(--font-head, "Space Grotesk", sans-serif);
	font-size: 1rem; font-weight: 700; color: var(--text);
	text-decoration: none; white-space: nowrap;
}
.ah-topbar__brand-mark { color: var(--accent); font-size: 0.9rem; }
@media (max-width: 1000px) {
	.ah-topbar__brand { display: inline-flex; }
}

.ah-topbar__account {
	display: inline-flex; align-items: center; gap: 0.45rem;
	padding: 0.45rem 1rem; border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
	background: var(--accent-soft); color: var(--accent-ink);
	font-size: 0.84rem; font-weight: 700; text-decoration: none;
	white-space: nowrap; transition: filter 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
	flex-shrink: 0;
}
.ah-topbar__account .ah-ico { width: 15px; height: 15px; }
.ah-topbar__account:hover { filter: brightness(1.05); border-color: var(--accent); transform: translateY(-1px); color: var(--accent-ink); }
@media (max-width: 560px) {
	.ah-topbar__account span { display: none; }
	.ah-topbar__account { padding: 0.5rem 0.6rem; }
}

/* =====================================================
   Community/forum: breathing room below the sticky topbar
   (parent theme zeroes the top padding on this page)
   ===================================================== */
body.ah-forum-page .ah-page { padding-top: 1.6rem; }

/* =====================================================
   Notifications feed: type-badged cards (dashboard tab)
   ===================================================== */
.ah-notifs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.ah-notifs__item {
	display: flex; gap: 0.85rem; align-items: flex-start;
	padding: 0.85rem 1rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	transition: border-color 0.18s ease, transform 0.18s ease;
}
.ah-notifs__item:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.ah-notifs__item.unread {
	border-left: 3px solid var(--accent);
	background: linear-gradient(90deg, var(--accent-soft), var(--surface) 45%);
}
.ah-notifs__badge {
	flex: 0 0 auto; width: 2.15rem; height: 2.15rem; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--accent-soft); color: var(--accent-ink);
}
.ah-notifs__badge .ah-ico { width: 16px; height: 16px; }
.ah-notifs__item--report   .ah-notifs__badge { background: rgba(245, 158, 11, 0.16); color: #f59e0b; }
.ah-notifs__item--sale     .ah-notifs__badge { background: rgba(16, 185, 129, 0.16); color: #10b981; }
.ah-notifs__item--referral .ah-notifs__badge { background: rgba(167, 139, 250, 0.16); color: #a78bfa; }
.ah-notifs__item--alert    .ah-notifs__badge { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.ah-notifs__item--success  .ah-notifs__badge { background: rgba(16, 185, 129, 0.16); color: #10b981; }
.ah-notifs__item--request  .ah-notifs__badge { background: rgba(96, 165, 250, 0.16); color: #60a5fa; }
.ah-notifs__item--shield   .ah-notifs__badge { background: rgba(148, 163, 184, 0.16); color: #94a3b8; }
.ah-notifs__main { flex: 1; min-width: 0; }
.ah-notifs__title {
	display: flex; align-items: center; gap: 0.5rem;
	font-weight: 700; font-size: 0.9rem; color: var(--text);
}
.ah-notifs__title .ah-notifs__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.ah-notifs__body { margin-top: 0.25rem; font-size: 0.85rem; color: var(--text-soft); line-height: 1.55; overflow-wrap: anywhere; }
.ah-notifs__meta {
	margin-top: 0.55rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem;
	font-size: 0.75rem; color: var(--text-soft);
}
.ah-notifs__meta .ah-ico { width: 12px; height: 12px; opacity: 0.7; }
.ah-notifs__link {
	margin-left: auto; display: inline-flex; align-items: center; gap: 0.3rem;
	padding: 0.28rem 0.75rem; border-radius: 999px;
	border: 1px solid var(--border); color: var(--text);
	font-weight: 600; font-size: 0.74rem; text-decoration: none;
	transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.ah-notifs__link .ah-ico { width: 11px; height: 11px; }
.ah-notifs__link:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

/* Empty state */
.ah-notifs__empty {
	display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
	padding: 2.6rem 1.4rem; text-align: center;
	border: 1px dashed var(--border); border-radius: 14px;
	background: var(--surface);
}
.ah-notifs__empty .ah-ico { width: 30px; height: 30px; color: var(--accent); opacity: 0.8; }
.ah-notifs__empty b { color: var(--text); font-size: 0.95rem; }
.ah-notifs__empty p { margin: 0; color: var(--text-soft); font-size: 0.82rem; max-width: 420px; }

/* =====================================================
   Notifications toolbar / mark buttons / pager
   ===================================================== */
.ah-notifs__toolbar {
	display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
	margin-bottom: 0.8rem; padding: 0.55rem 0.9rem;
	background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
}
.ah-notifs__toolbar-count { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; color: var(--text-soft); }
.ah-notifs__toolbar-count .ah-ico { width: 13px; height: 13px; }
.ah-notifs__toolbar-count--ok { color: #10b981; }
.ah-notifs__markall {
	display: inline-flex; align-items: center; gap: 0.35rem;
	padding: 0.32rem 0.85rem; border-radius: 999px;
	border: 1px solid var(--border); background: var(--surface); color: var(--text);
	font: inherit; font-size: 0.76rem; font-weight: 700; cursor: pointer;
	transition: all 0.18s ease;
}
.ah-notifs__markall .ah-ico { width: 12px; height: 12px; }
.ah-notifs__markall:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.ah-notifs__markall.is-done { opacity: 0.55; cursor: default; }

.ah-notifs__mark {
	display: inline-grid; place-items: center;
	width: 1.55rem; height: 1.55rem; border-radius: 50%;
	border: 1px solid var(--border); background: var(--surface);
	color: var(--text-soft); cursor: pointer; padding: 0;
	transition: all 0.18s ease; flex: 0 0 auto;
}
.ah-notifs__mark .ah-ico { width: 12px; height: 12px; }
.ah-notifs__mark:hover { border-color: #10b981; color: #10b981; background: rgba(16, 185, 129, 0.12); transform: scale(1.08); }

.ah-notifs__pager {
	display: flex; align-items: center; justify-content: center; gap: 0.9rem;
	margin-top: 0.9rem; font-size: 0.8rem; color: var(--text-soft);
}
.ah-notifs__pager-link {
	display: inline-flex; align-items: center; gap: 0.3rem;
	padding: 0.4rem 0.95rem; border-radius: 999px;
	border: 1px solid var(--border); background: var(--surface);
	color: var(--text); font-weight: 600; text-decoration: none;
	transition: all 0.18s ease;
}
.ah-notifs__pager-link:hover { border-color: var(--accent); color: var(--accent-ink); }
.ah-notifs__pager-link.is-off { opacity: 0.4; pointer-events: none; }
.ah-notifs__pager-info { font-weight: 600; }

/* Daily claim banner (Overview) — lime is reserved for the daily reward */
.ah-notice--daily {
	display: flex; align-items: center; gap: 0.9rem;
	margin-bottom: 1.2rem; padding: 0.95rem 1.1rem;
	border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
	border-left: 4px solid var(--accent);
	border-radius: 14px;
	background: linear-gradient(90deg, var(--accent-soft), var(--surface) 55%);
}
.ah-notice--daily .ah-notice__ico { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; }
.ah-notice__main { flex: 1; min-width: 0; }
.ah-notice__main b { display: block; color: var(--text); font-size: 0.92rem; }
.ah-notice__main p { margin: 0.15rem 0 0; color: var(--text-soft); font-size: 0.8rem; line-height: 1.45; }
.ah-notice__claim {
	flex: 0 0 auto; padding: 0.55rem 1.15rem; border: none; border-radius: 999px;
	background: var(--accent); color: #10130d;
	font: inherit; font-size: 0.82rem; font-weight: 800; cursor: pointer;
	transition: transform 0.18s ease, filter 0.18s ease;
}
.ah-notice__claim:hover { transform: translateY(-1px); filter: brightness(1.06); }
[data-theme="light"] .ah-notice__claim { color: #fff; }
.ah-notice__claim:disabled { opacity: 0.6; cursor: wait; }

/* Daily chip as a claim button (header) */
button.ah-daily-chip { cursor: pointer; }
button.ah-daily-chip:hover { border-color: var(--accent); filter: brightness(1.05); }
.ah-daily-chip .ah-daily-chip__ico--bolt { color: var(--accent); }
button.ah-daily-chip .ah-daily-chip__label b { font-weight: 800; }

/* Unread alert states: topbar bell pulse + rail badge */
.ah-icon-btn.has-unread { border-color: rgba(239, 68, 68, 0.65); color: #ef4444; }
.ah-icon-btn.has-unread .ah-icon-btn__badge { animation: ahPulse 2s infinite; }
@keyframes ahPulse {
	0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
	70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
	100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.ah-rail__notif {
	display: inline-flex; align-items: center; gap: 0.25rem;
	margin-left: 0.45rem; padding: 0.1rem 0.5rem;
	border-radius: 999px; background: #ef4444; color: #fff !important;
	font-size: 0.68rem; font-weight: 800; line-height: 1.5;
	text-decoration: none; vertical-align: middle;
}
.ah-rail__notif .ah-ico { width: 10px; height: 10px; }
.ah-rail__notif:hover { background: #dc2626; }
.ah-rail__notif.is-empty { display: none; }

/* Daily-type notification badge: gold, distinct from every other type */
.ah-notifs__item--daily .ah-notifs__badge { background: rgba(251, 191, 36, 0.16); color: #fbbf24; }

/* =====================================================
   Submit forms (listing + request): selects, file dropzone,
   two-col rows, submit button — light & dark
   ===================================================== */
[data-theme="dark"] { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }

.ah-req-form { display: flex; flex-direction: column; gap: 1.15rem; }
.ah-req-form label { gap: 0.35rem; font-size: 0.82rem; font-weight: 600; color: var(--text-soft); }
.ah-req-form input[type="text"],
.ah-req-form input[type="url"],
.ah-req-form input[type="number"],
.ah-req-form input[type="date"],
.ah-req-form textarea,
.ah-req-form select {
	width: 100%; padding: 0.62rem 0.85rem;
	border-radius: 10px; border: 1px solid var(--border);
	background: var(--surface); color: var(--text);
	font: inherit; font-size: 0.88rem;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ah-req-form input:focus,
.ah-req-form textarea:focus,
.ah-req-form select:focus {
	outline: none; border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
.ah-req-form select {
	appearance: none; -webkit-appearance: none; cursor: pointer;
	padding-right: 2.3rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 12px;
}
.ah-req-form select option { background: var(--surface); color: var(--text); }
.ah-req-form textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.ah-req-form small { line-height: 1.5; }

.ah-req-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; align-items: end; }
@media (max-width: 760px) { .ah-req-form__row { grid-template-columns: 1fr; } }

/* File dropzone */
.ah-req-form label:has(input[type="file"]) {
	position: relative;
	padding: 1.15rem 1.2rem;
	border: 1.5px dashed var(--border-strong, var(--border));
	border-radius: 14px;
	background: var(--surface-2, var(--surface));
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease;
}
.ah-req-form label:has(input[type="file"]):hover,
.ah-req-form label:has(input[type="file"]).is-drag {
	border-color: var(--accent); background: var(--accent-soft);
}
.ah-req-form label:has(input[type="file"]) input[type="file"] {
	position: absolute; width: 1px; height: 1px;
	opacity: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.ah-req-form label:has(input[type="file"])::after {
	content: "Click to choose files — or drag & drop here";
	display: inline-flex; align-items: center;
	width: fit-content; margin-top: 0.6rem;
	padding: 0.5rem 1rem 0.5rem 2.2rem; border-radius: 999px;
	background-color: var(--accent-soft);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4m0 0 4 4m-4-4L8 8'/%3E%3Cpath d='M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: 0.7rem center; background-size: 14px;
	color: var(--accent-ink); font-size: 0.76rem; font-weight: 700;
}
.ah-file-names { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.45rem; }
.ah-file-names__item {
	padding: 0.3rem 0.65rem; border-radius: 8px;
	background: var(--surface); border: 1px solid var(--border);
	color: var(--text); font-size: 0.76rem; font-weight: 400;
	overflow-wrap: anywhere;
}

/* Dynamic media link rows */
.ah-media-row { display: flex; gap: 0.5rem; }
.ah-media-row input { flex: 1; }
.ah-media-add {
	display: inline-flex; align-items: center; gap: 0.4rem; width: fit-content;
	padding: 0.45rem 1rem; border-radius: 999px;
	border: 1px dashed var(--border-strong, var(--border));
	background: transparent; color: var(--text-soft);
	font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer;
	transition: all 0.18s ease;
}
.ah-media-add:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }

/* Submit button */
.ah-req-form button[type="submit"] {
	margin-top: 0.4rem; padding: 0.85rem 1.7rem;
	border: none; border-radius: 999px;
	background: var(--accent); color: #10130d;
	font: inherit; font-size: 0.95rem; font-weight: 800; cursor: pointer;
	transition: transform 0.18s ease, filter 0.18s ease;
}
.ah-req-form button[type="submit"]:hover { transform: translateY(-1px); filter: brightness(1.06); }
[data-theme="light"] .ah-req-form button[type="submit"] { color: #fff; }

/* Notice boxes */
.ah-req__notice {
	padding: 0.7rem 1rem; border-radius: 12px;
	font-size: 0.85rem; font-weight: 500; line-height: 1.5;
	border: 1px solid var(--border); background: var(--surface-2, var(--surface)); color: var(--text);
}
.ah-req__notice--ok { border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.1); color: #10b981; }
.ah-req__notice--error { border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.1); color: #f87171; }

/* =====================================================
   Rail: SVG icon sizing (replaces text/emoji glyphs)
   ===================================================== */
.ah-rail .ico { display: inline-grid; place-items: center; }
.ah-rail__links .ico svg,
.ah-rail .ico svg { width: 15px; height: 15px; }
.ah-rail__logo-mark svg { width: 13px; height: 13px; fill: var(--accent); stroke: none; }
.ah-rail__tip svg { width: 13px; height: 13px; color: var(--accent); vertical-align: -2px; }

/* =====================================================
   Vector icon sizing across remaining components
   ===================================================== */
.ah-catcard__icon svg { width: 22px; height: 22px; }
.ah-catcard__icon { display: inline-grid; place-items: center; }
.ah-slide__play svg,
.ah-card__play svg,
.ah-req-card__play svg { width: 15px; height: 15px; }
.ah-slider__thumb-video svg { width: 10px; height: 10px; }
.ah-card__meta svg,
.ah-card__ph svg { width: 12px; height: 12px; vertical-align: -2px; }
.ah-card__dl svg { width: 12px; height: 12px; vertical-align: -2px; }
.ah-overview__action-ico svg { width: 17px; height: 17px; }
.ah-gate__btn-ic svg { width: 15px; height: 15px; }
.ah-gate__owned svg,
.ah-gate__sold svg { width: 14px; height: 14px; vertical-align: -2px; }
.ah-settings__sec-ico svg { width: 14px; height: 14px; }
.ah-credits-chip svg { width: 12px; height: 12px; }
.ah-credits-chip__coin { color: var(--accent-ink); }
.ah-badge--exclusive svg { width: 12px; height: 12px; vertical-align: -2px; }
.ah-dash__list > li > svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--accent-ink); }
.ah-dash__list li { align-items: center; }
.ah-topbar__burger svg { width: 17px; height: 17px; }
.ah-topbar__brand-mark svg { width: 11px; height: 11px; fill: var(--accent); stroke: none; }
.ah-bookmark { display: inline-flex; align-items: center; gap: 0.4rem; }
.ah-bookmark__star { width: 14px; height: 14px; }
.ah-bookmark__star--f { display: none; }
.ah-bookmark.active .ah-bookmark__star--f { display: inline-block; }
.ah-bookmark.active .ah-bookmark__star--o { display: none; }
.ah-notifs__link svg { width: 11px; height: 11px; }
.ah-report-modal__reason-ico svg { width: 14px; height: 14px; }
.ah-report-modal__reason-ico { display: inline-grid; place-items: center; }
.ah-single__actions .ah-report svg { width: 13px; height: 13px; vertical-align: -2px; }
.ah-report-modal__close svg { width: 14px; height: 14px; }
.ah-media-remove svg { width: 11px; height: 11px; }

/* =====================================================
   Referral share box (dashboard → Referrals tab)
   ===================================================== */
.ah-ref__linkbox {
	display: flex; align-items: center;
	max-width: 640px;
	padding: 5px 5px 5px 4px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ah-ref__linkbox:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
.ah-ref__linkbox-ico {
	display: grid; place-items: center;
	width: 42px; height: 42px; flex: 0 0 auto;
	color: var(--accent-ink);
	background: var(--accent-soft);
	border-radius: 10px;
	margin-left: 3px;
}
.ah-ref__linkbox-ico svg { width: 16px; height: 16px; }
#ah-ref-link {
	flex: 1; min-width: 0;
	border: none; background: transparent;
	color: var(--text); font-size: 0.88rem;
	padding: 0.6rem 0.5rem 0.6rem 0.6rem;
}
#ah-ref-link:focus { outline: none; }
.ah-ref__copy {
	display: inline-flex; align-items: center; gap: 0.4rem; flex: 0 0 auto;
	padding: 0.62rem 1.2rem; border: none; border-radius: 999px;
	background: var(--accent); color: #10130d;
	font: inherit; font-size: 0.82rem; font-weight: 800;
	cursor: pointer; transition: filter 0.18s ease, background 0.18s ease;
}
[data-theme="light"] .ah-ref__copy { color: #fff; }
.ah-ref__copy svg { width: 13px; height: 13px; }
.ah-ref__copy:hover { filter: brightness(1.06); }
.ah-ref__copy.is-copied { background: #10b981; color: #fff; }
.ah-ref__hint { margin: 0.5rem 0 0; color: var(--text-soft); font-size: 0.78rem; max-width: 640px; }
@media (max-width: 560px) {
	.ah-ref__linkbox { flex-wrap: wrap; }
	.ah-ref__linkbox-ico { display: none; }
	#ah-ref-link { flex: 1 1 auto; padding: 0.6rem 0.8rem; }
	.ah-ref__copy { flex: 1 1 100%; justify-content: center; margin: 0 4px 4px; }
}

/* =====================================================
   5 balance-based levels: avatar rings + wheel level-up
   ===================================================== */
.ah-ava--noob { background: linear-gradient(135deg, #9aa48c, #4d5643); }
.ah-ava--aura {
	background: linear-gradient(135deg, #60a5fa, #2563eb);
	box-shadow: 0 0 14px rgba(96, 165, 250, 0.5);
}
.ah-ava--god {
	background: linear-gradient(135deg, #fbbf24, #d97706);
	box-shadow: 0 0 16px rgba(251, 191, 36, 0.55);
}
.ah-dash__avatar.ah-ava--aura,
.ah-dash__avatar.ah-ava--god { background: linear-gradient(135deg, #60a5fa, #2563eb); }

.ah-wheel-levelup-badge {
	display: inline-block; margin-left: 10px; padding: 3px 11px;
	border-radius: 999px; background: #F59E0B; color: #17190a;
	font-size: 10px; font-weight: 800; letter-spacing: 0.5px; vertical-align: middle;
}
.ah-wheel-btn.is-levelup { background: #F59E0B; color: #17190a; animation: ahLevelPulse 1.6s infinite; }
@keyframes ahLevelPulse {
	0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
	70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
	100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Bookmark: hidden in its default render spot (below the gate) until the
   init script places it in the actions row — prevents the load-time jump. */
.ah-single__body .ah-bookmark:not(.ah-bookmark--placed) { display: none; }

/* Gate download links: theme link styles inflate them (tall pill) — normalize
   to match the main gate button (full-width, centered, single line). */
.ah-single__body .ah-gate .ah-gate__download,
.ah-single__body .ah-gate__links .ah-gate__download {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	line-height: 1.2 !important;
	padding: 0.85rem 1.25rem !important;
	border-radius: 10px !important;
	text-decoration: none !important;
	white-space: nowrap;
}
.ah-single__body .ah-gate .ah-gate__download .ah-ico {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}

/* Sidebar link count bubble (Notifications / multi-user) — matches the bell badge. */
.ah-rail__links .cnt {
	display: inline-grid;
	place-items: center;
	min-width: 1.05rem;
	height: 1.05rem;
	padding: 0 0.3rem;
	margin-left: auto;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: 0.62rem;
	font-weight: 800;
	line-height: 1;
}

/* Pagination pills — WordPress paginate_links markup (.page-numbers), which the
   parent theme's .ah-dash__pager a rule doesn't fully cover (current page is a span). */
.ah-dash__pager .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.2rem;
	height: 2.2rem;
	padding: 0 0.6rem;
	border-radius: 10px;
	border: 1px solid var(--border);
	color: var(--text-soft);
	font-size: 0.84rem;
	font-weight: 700;
	text-decoration: none !important;
	transition: all 0.2s ease;
}
.ah-dash__pager .page-numbers:hover { color: var(--accent-ink); border-color: var(--accent); }
.ah-dash__pager .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
	cursor: default;
}
.ah-dash__pager .page-numbers.dots { border: none; background: none; }

/* Current-page pill contrast fix: in dark mode --accent-ink equals --accent
   (lime on lime), so the number vanished inside the pill. */
.ah-dash__pager .page-numbers.current { color: #171b10; }
[data-theme="light"] .ah-dash__pager .page-numbers.current { color: #fff; }

/* Unread bell: dark mode left the button a near-black circle with a faint red
   border — give the alert state a tinted fill, solid border and bright icon. */
.ah-icon-btn.has-unread {
	border-color: #ef4444;
	background: rgba(239, 68, 68, 0.14);
	color: #f87171;
}
[data-theme="light"] .ah-icon-btn.has-unread {
	background: rgba(239, 68, 68, 0.08);
	color: #dc2626;
}
.ah-icon-btn.has-unread:hover {
	border-color: #ef4444;
	color: #fca5a5;
}
[data-theme="light"] .ah-icon-btn.has-unread:hover {
	color: #b91c1c;
}

/* ============================================================
   Comments + post ratings
   ============================================================ */
.ah-single__comments { margin-top: 1.5rem; }

.ah-comments__title,
.ah-comments__reply-title {
	font-size: 1.15rem;
	font-weight: 800;
	margin: 0 0 1rem;
}

/* Comment list */
.ah-comments__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.ah-comments__list .children { list-style: none; margin: 0.8rem 0 0; padding: 0 0 0 1.4rem; display: grid; gap: 0.8rem; }

.ah-comment__card {
	background: var(--panel-2, #1a1f14);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 0.9rem 1rem;
}
.ah-comment__head { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.ah-comment__avatar .avatar { width: 40px; height: 40px; border-radius: 50%; display: block; }
.ah-comment__who { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.ah-comment__author { font-weight: 700; font-size: 0.92rem; }
.ah-comment__when { font-size: 0.75rem; color: var(--text-soft); text-decoration: none; }
.ah-comment__when:hover { color: var(--accent-ink); }

/* Stars (per comment + average chip) */
.ah-stars { display: inline-flex; gap: 2px; font-size: 0.95rem; line-height: 1; }
.ah-stars__s { color: var(--border-strong, rgba(127,127,127,0.4)); }
.ah-stars__s.is-on { color: #f5b301; }

.ah-comment__body { margin-top: 0.6rem; font-size: 0.95rem; }
.ah-comment__body p { margin: 0.3rem 0; }
.ah-comment__pending { color: #f59e0b; font-size: 0.85rem; }
.ah-comment__actions { margin-top: 0.55rem; display: flex; gap: 0.9rem; font-size: 0.82rem; }
.ah-comment__actions a { color: var(--text-soft); text-decoration: none; font-weight: 600; }
.ah-comment__actions a:hover { color: var(--accent-ink); }

/* Comment form */
.ah-comments__form p { margin: 0 0 0.9rem; }
.ah-comments__form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text-soft); }
.ah-comments__form textarea,
.ah-comments__form input[type="text"],
.ah-comments__form input[type="email"],
.ah-comments__form input[type="url"] {
	width: 100%;
	box-sizing: border-box;
	background: var(--surface, #12160e);
	border: 1px solid var(--border);
	border-radius: 10px;
	color: var(--text);
	padding: 0.7rem 0.85rem;
	font: inherit;
}
.ah-comments__form textarea:focus,
.ah-comments__form input:focus { outline: none; border-color: var(--accent); }
.ah-comments__form .logged-in-as { font-size: 0.85rem; color: var(--text-soft); margin: 0 0 0.9rem; }
.ah-comments__form .logged-in-as a { color: var(--accent-ink); text-decoration: none; }
.ah-comments__form .required { color: #ef4444; }

/* Star picker in the form */
.ah-rating__pick { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 0.9rem; }
.ah-rating__label { font-size: 0.85rem; font-weight: 600; color: var(--text-soft); }
.ah-rating__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.ah-rating__stars input[type="radio"] {
	position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.ah-rating__stars label {
	font-size: 1.5rem; line-height: 1; cursor: pointer;
	color: var(--border-strong, rgba(127,127,127,0.4));
	transition: color 0.12s ease, transform 0.12s ease;
	margin: 0;
}
.ah-rating__stars label.is-on { color: #f5b301; transform: scale(1.05); }
.ah-rating__stars input[type="radio"]:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Average rating chip in the post header */
.ah-hero__chip--rating { display: inline-flex; align-items: center; gap: 4px; }
.ah-hero__chip--rating .ah-hero__chip-star { color: #f5b301; }
.ah-hero__chip--rating .ah-hero__chip-count { color: var(--text-soft); }

/* Standalone rating box (single post actions row). */
.ah-ratebox {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.35rem 0.8rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface-2, #1c2216);
}
.ah-ratebox__label { font-size: 0.82rem; font-weight: 700; color: var(--text-soft); }
.ah-ratebox__stars label { font-size: 1.15rem; }
.ah-ratebox__note { font-size: 0.78rem; color: var(--accent-ink); }

/* Rating box redesign: vertical mini-card — label over stars, credit hint under. */
.ah-ratebox {
	flex-direction: column;
	align-items: center;
	gap: 0.1rem;
	padding: 0.55rem 1.1rem 0.5rem;
	border-radius: 14px;
	background: linear-gradient(180deg, var(--panel-2, #1a1f14), var(--surface, #12160e));
}
.ah-ratebox__label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em; }
.ah-ratebox__stars { gap: 3px; }
.ah-ratebox__stars label {
	font-size: 1.6rem;
	transition: transform 0.12s ease, color 0.12s ease;
}
.ah-ratebox__stars label:hover { transform: scale(1.25) rotate(8deg); }
.ah-ratebox__hint {
	font-size: 0.72rem;
	font-weight: 800;
	color: var(--accent-ink);
	background: var(--accent-soft);
	border-radius: 999px;
	padding: 0.1rem 0.55rem;
	line-height: 1.4;
}
.ah-ratebox__note { font-size: 0.72rem; color: var(--text-soft); font-weight: 600; }

/* Stars fill left→right (row-reverse was a leftover from the CSS-only trick). */
.ah-rating__stars { flex-direction: row; }

/* Locked rating: frozen stars, no hover/click. */
.ah-ratebox.is-locked .ah-rating__stars,
.ah-ratebox.is-locked .ah-ratebox__stars { pointer-events: none; }
.ah-ratebox.is-locked .ah-ratebox__label { color: var(--text); }

/* Comment credit hint pill. */
.ah-comment-hint { display: inline-block; margin: 0 0 0.9rem; }

/* Credit hint on the same row as the "Comment *" label (pill rides right). */
.ah-comments__form .comment-form-comment { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.7rem; }
.ah-comments__form .comment-form-comment label { display: inline-flex; align-items: center; width: auto; margin: 0; }
.ah-comments__form .comment-form-comment .ah-comment-hint { margin: 0 0 0 auto; }

/* Muted variant: "download the file first" — same pill, calmer colors. */
.ah-comment-hint--muted {
	background: var(--surface-2, #1c2216);
	color: var(--text-soft);
	border: 1px solid var(--border);
	font-weight: 600;
}

/* Card rating + comment chips (archive & home cards). */
.ah-card__rating { display: inline-flex; align-items: center; gap: 4px; }
.ah-card__rating .ah-stars { font-size: 0.78rem; }
.ah-card__rating .ah-stars__s.is-on { color: #f5b301; }
.ah-card__comments { display: inline-flex; align-items: center; gap: 3px; }
.ah-card__comments .ah-ico { width: 12px; height: 12px; }

/* Rail (guest view): style the tip as an info card and pin tip+profile to
   the bottom of the fixed rail — the profile-card redesign dropped the
   parent's margin-top:auto pin. */
.ah-rail__tip {
	margin: auto 1rem 0.6rem;
	padding: 0.6rem 0.75rem;
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	background: var(--accent-soft);
	border: 1px solid var(--border);
	border-radius: 12px;
	font-size: 0.8rem;
	line-height: 1.45;
	color: var(--text-soft);
}
.ah-rail__tip svg { flex: 0 0 auto; margin-top: 2px; }
.ah-rail__profile { margin-top: auto; }
.ah-rail__tip + .ah-rail__profile { margin-top: 0.75rem; }

/* Rail tip — promo card: rotating gradient border + breathing glow + bolt flash. */
.ah-rail__tip {
	position: relative;
	margin: auto 1rem 0.6rem;
	padding: 0.7rem 0.85rem;
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	border: 1.5px solid transparent;
	border-radius: 14px;
	background:
		linear-gradient(var(--panel-2, #1a1f14), var(--panel-2, #1a1f14)) padding-box,
		linear-gradient(115deg, #cdf34c, #f5b301, #7fa312, #cdf34c) border-box;
	background-size: 100% 100%, 250% 250%;
	color: var(--text);
	font-size: 0.8rem;
	line-height: 1.5;
	overflow: hidden;
	animation:
		ahTipIn 0.5s ease both,
		ahTipBorder 7s linear infinite,
		ahTipGlow 3.5s ease-in-out infinite;
}
@keyframes ahTipIn {
	from { opacity: 0; transform: translateY(10px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ahTipBorder {
	0% { background-position: 0 0, 0% 50%; }
	50% { background-position: 0 0, 100% 50%; }
	100% { background-position: 0 0, 0% 50%; }
}
@keyframes ahTipGlow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(205, 243, 76, 0); }
	50% { box-shadow: 0 0 16px 1px rgba(205, 243, 76, 0.28); }
}
.ah-rail__tip svg {
	flex: 0 0 auto;
	margin-top: 1px;
	width: 16px;
	height: 16px;
	color: #cdf34c;
	animation: ahTipBolt 3.5s ease-in-out infinite;
}
@keyframes ahTipBolt {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.2) rotate(-4deg); filter: drop-shadow(0 0 5px rgba(205, 243, 76, 0.85)); }
}
@media (prefers-reduced-motion: reduce) {
	.ah-rail__tip, .ah-rail__tip svg { animation: none; }
}

/* Bottom group: credits card + profile must travel as ONE pinned block —
   two margin-top:auto values split the free space and float the card mid-rail. */
.ah-credits-card + .ah-rail__profile { margin-top: 0.75rem; }

/* Buyer badge on comments + received/ok credit hint state. */
.ah-comment__buyer {
	display: inline-flex;
	align-items: center;
	padding: 0.14rem 0.55rem;
	border-radius: 999px;
	background: rgba(127, 163, 18, 0.16);
	color: var(--accent-ink);
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.ah-comment-hint--ok {
	background: rgba(63, 185, 129, 0.14);
	color: #3fb969;
}

/* Rate box final: compact single-row pill for BOTH states (locked + voting).
   Overrides the earlier vertical card layout. */
.ah-ratebox {
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
}
.ah-ratebox__stars { gap: 1px; }
.ah-ratebox__stars label { font-size: 1.25rem; margin: 0; }
.ah-ratebox__note { font-size: 0.76rem; }
.ah-ratebox.is-locked {
	background: var(--surface, #12160e);
	cursor: default;
}
.ah-ratebox.is-locked .ah-stars { font-size: 1rem; }

/* ------------------------------------------------------------------
   Portrait media
   93% of the library is portrait (median w/h 0.77, measured over a
   300-image sample), but the cards, the request gallery and the product
   slider were all sized 16/10 and 16/9, so the thumbnails were cropped
   to a thin landscape strip. 3/4 matches the real median almost exactly
   and lets the artwork fill the card.
   ------------------------------------------------------------------ */

.ah-card__thumb {
	aspect-ratio: 3 / 4;
}

.ah-gallery img {
	aspect-ratio: 3 / 4;
}

.ah-slider__stage {
	aspect-ratio: 3 / 4;
	max-height: 760px;
}

.ah-slider__thumbs button {
	aspect-ratio: 3 / 4;
}

.ah-req-card__thumb {
	aspect-ratio: 3 / 4;
}

/* ------------------------------------------------------------------
   Product hero: give the portrait artwork the room it needs.
   A later rule in the parent pins .ah-slider__stage to
   height: min(64vh, 560px) with aspect-ratio: auto, so on a wide
   column the box stayed short and landscape while .ah-slide img uses
   object-fit: contain - the portrait image ended up as a narrow strip
   in the middle with dead space either side. Setting height back to
   auto lets aspect-ratio drive the box, and capping the width keeps it
   from growing absurdly tall on a wide screen.
   ------------------------------------------------------------------ */

.ah-single .ah-slider__stage {
	aspect-ratio: 3 / 4;
	height: auto;
	max-height: none;
	width: min(100%, 620px);
	margin: 0 auto;
}

.ah-single .ah-slide img {
	object-fit: contain !important;
}

/* ------------------------------------------------------------------
   Product slider: replace the flat letterbox with the artwork itself.
   .ah-slide img uses object-fit: contain, so a 16:9 shot inside the 3:4
   stage left wide bands of dead colour above and below. Painting a
   blurred, darkened copy of the same image behind it fills that space
   and makes the frame look deliberate rather than accidental.
   ------------------------------------------------------------------ */

.ah-slide {
	background: #0e1114;
}

.ah-slide::before {
	content: "";
	position: absolute;
	inset: -10%;
	background-image: var(--slide-bg, none);
	background-size: cover;
	background-position: center;
	filter: blur(26px) brightness(0.4) saturate(1.35);
	transform: scale(1.08);
	z-index: 0;
	pointer-events: none;
}

.ah-slide img {
	position: relative;
	z-index: 1;
}

/* softer, deeper frame */
.ah-single .ah-slider__stage {
	border-radius: 22px;
	box-shadow:
		0 28px 64px -24px rgba(0, 0, 0, 0.65),
		0 0 0 1px rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .ah-single .ah-slider__stage {
	box-shadow:
		0 28px 64px -24px rgba(30, 40, 20, 0.28),
		0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* gentle vignette so the frame edges do not cut hard into the artwork */
.ah-single .ah-slider__stage::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	border-radius: inherit;
	background: radial-gradient(
		120% 90% at 50% 45%,
		transparent 55%,
		rgba(0, 0, 0, 0.28) 100%
	);
}

/* thumbnails: match the new frame language */
.ah-single .ah-slider__thumbs button {
	border-radius: 10px;
	overflow: hidden;
	opacity: 0.55;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.ah-single .ah-slider__thumbs button:hover,
.ah-single .ah-slider__thumbs button.is-active {
	opacity: 1;
	transform: translateY(-2px);
}

/* ------------------------------------------------------------------
   Download gate: two-step mirror flow.
   Picking a host builds the link server-side; the visitor then presses
   Download instead of being redirected automatically.
   ------------------------------------------------------------------ */

.ah-gate__ready {
	display: grid;
	gap: 0.55rem;
}

.ah-gate__ready-note {
	font-size: 0.86rem;
	line-height: 1.4;
	opacity: 0.75;
	text-align: center;
}

.ah-gate__ready-btn {
	width: 100%;
	justify-content: center;
}

.ah-gate__mirror.is-busy {
	opacity: 0.85;
	cursor: progress;
}

.ah-gate__mirror.is-busy .ah-gate__spin {
	vertical-align: -2px;
}

/* ------------------------------------------------------------------
   Gate mirror buttons.
   These are <button> elements, not <a>, so they never inherited the
   theme's link cursor, hover or press states. .ah-gate__btn had
   cursor: pointer but .ah-gate__download did not, and gate.css only
   recoloured the background on hover - no lift, no press, and on the
   accent-green theme that blue hover never even showed.
   ------------------------------------------------------------------ */

.ah-gate__mirror,
.ah-gate__ready-btn {
	cursor: pointer;
	border: 0;
	font: inherit;
	-webkit-tap-highlight-color: transparent;
	transition: filter 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.ah-gate__mirror:hover,
.ah-gate__ready-btn:hover {
	background-color: var(--accent) !important;
	color: #fff !important;
	filter: brightness(1.12);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5);
}

.ah-gate__mirror:active,
.ah-gate__ready-btn:active {
	background-color: var(--accent) !important;
	color: #fff !important;
	filter: brightness(0.9);
	transform: translateY(1px);
	box-shadow: none;
}

.ah-gate__mirror:focus-visible,
.ah-gate__ready-btn:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.ah-gate__mirror.is-busy {
	cursor: progress;
	filter: none;
	transform: none;
	box-shadow: none;
}

/* ------------------------------------------------------------------
   Mirror buttons vs the finished button.
   Both used to be accent-green with the same "Download — MEGA" label, so
   pressing one looked like nothing had happened. Now the mirror buttons sit
   back a little and the finished button is the loud one, with a different
   label ("Download now") and a green note above it.
   ------------------------------------------------------------------ */

.ah-gate__mirror {
	opacity: 0.9;
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.ah-gate__mirror:hover {
	opacity: 1;
}

.ah-gate__mirror.is-busy,
.ah-gate__mirror.is-busy:hover {
	opacity: 0.55;
	border: 1px dashed rgba(255, 255, 255, 0.28) !important;
	cursor: progress;
	transform: none;
	box-shadow: none;
}

.ah-gate__ready-btn {
	font-weight: 800 !important;
	letter-spacing: 0.01em;
	box-shadow:
		0 0 0 2px rgba(205, 243, 76, 0.55),
		0 12px 28px -14px rgba(0, 0, 0, 0.6) !important;
	animation: ah-ready-pop 0.35s ease;
}

.ah-gate__ready-btn:hover {
	filter: brightness(1.07);
	transform: translateY(-1px);
}

.ah-gate__ready-btn:active {
	transform: translateY(1px);
}

.ah-gate__ready-note {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--accent);
	text-align: center;
	animation: ah-ready-pop 0.3s ease;
}

@keyframes ah-ready-pop {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ------------------------------------------------------------------
   Sidebar: stop the rail from squashing its cards.
   .ah-rail is a fixed-height flex column with overflow-y: auto. Flex
   children shrink by default, so expanding the category tree compressed
   the credits card to half its height instead of letting the rail
   scroll - and collapsing the tree made it snap back. Nothing in a
   fixed sidebar should shrink.
   ------------------------------------------------------------------ */

.ah-rail > * {
	flex-shrink: 0;
}

/* The category tree may be long; let it scroll on its own instead of
   pushing the cards out of view. */
.ah-rail__section {
	flex-shrink: 0;
	min-height: 0;
}


/* NSFW card: the line under the Show button that says the blur can be turned off.
   Lives in the child theme so a parent update cannot wipe it. */
.ah-card .ah-nsfw-hint {
	position: absolute;
	left: 50%;
	/* Sits just under the Show pill. 1.7rem left a visible gap that made it read as a
	   stray caption rather than something attached to the button. */
	top: calc(50% + 1.25rem);
	transform: translateX(-50%);
	z-index: 6;
	max-width: 92%;
	padding: 0.32rem 0.7rem;
	border-radius: 999px;
	background: rgba(10, 12, 8, 0.86);
	color: #f2f2f2;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background 0.15s ease, color 0.15s ease;
}
.ah-card .ah-nsfw-hint:hover {
	background: var(--accent);
	color: #10130d;
	opacity: 1;
}


/* Archive and search pagination. the_posts_pagination() outputs
   nav.navigation.pagination > div.nav-links > .page-numbers, and nothing styled it -
   the numbers rendered as plain inline text with no spacing, so they read as part of
   the sentence above and visitors never realised there were more pages. */
.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 2.2rem 0 1.4rem;
}
.navigation.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding: 0 0.7rem;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.02);
	color: var(--text-soft);
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.navigation.pagination .page-numbers:hover {
	color: var(--accent-ink);
	border-color: var(--accent);
	background: rgba(255, 255, 255, 0.05);
}
.navigation.pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	/* Not --accent-ink: in dark mode it resolves to the same lime as --accent, so the
	   current page number disappeared inside its own pill. Same trap as .ah-dash__pager. */
	color: #171b10;
	cursor: default;
}
.navigation.pagination .page-numbers.dots {
	border: none;
	background: none;
	min-width: auto;
	padding: 0 0.25rem;
}
.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
	padding: 0 1rem;
	font-weight: 700;
}
/* The blanket light-mode background used to include .current, and because it came last it
   overrode the accent fill - leaving white text on a near-white pill. Scope it to the
   non-current pages only, and keep dark ink on the accent in BOTH themes: --accent is
   #7fa312 in light and #cdf34c in dark, and #171b10 reads on both. */
[data-theme="light"] .navigation.pagination .page-numbers:not(.current) { background: rgba(0, 0, 0, 0.02); }
