/**
 * Nine Heavens Child Theme - Modern Dark CSS Style
 * Overhauled to match the provided layout screenshots (desktop & mobile)
 */

:root {
	--font-primary: 'Inter', sans-serif;
	--font-secondary: 'Inter', sans-serif;

	--background-color: #0a0b10; /* Sleek Deep Slate-Navy background */
	--background-color-alt: #10121a;
	--card-background-color: #151824; /* Slate card background */
	--card-background-color-alt: #1c2030;
	
	--text-color: #f8fafc; /* Crystal clear bright slate 50 */
	--text-color-alt: #cbd5e1; /* Brighter slate 300 for readable meta items */
	--text-color-muted: #94a3b8; /* Slate 400 - high contrast muting */
	
	--primary-color: #ff3c56; /* Neon Crimson Accent - extremely modern & high visibility */
	--primary-color-hover: #ff6075;
	--primary-color-active: #e2203b;
	--primary-color-rgb: 255, 60, 86;
	
	--accent-color: #ff3c56;
	--border-color: #222638; /* Visible, clean border */
	--border-color-alt: #2c3249;
	
	--shadow-color: rgba(0, 0, 0, 0.7);
	--shadow-color-alt: rgba(0, 0, 0, 0.5);
	
	--border-radius: 8px;
	--border-radius-card: 12px;
}

/* Base Body Styles */
body {
	background-color: var(--background-color);
	color: var(--text-color);
	font-family: var(--font-primary);
	-webkit-font-smoothing: antialiased;
}

/* =============================================================================
   NAVIGATION & HEADER (Glassmorphic)
   ============================================================================= */
.main-navigation {
	background: rgba(11, 11, 13, 0.9) !important;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(138, 43, 226, 0.25) !important;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.main-navigation__wrapper {
	max-width: 1300px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
}

.main-navigation__list a {
	font-weight: 500;
	letter-spacing: 0.3px;
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

.main-navigation__list a:hover {
	color: var(--primary-color) !important;
	text-shadow: 0 0 10px rgba(138, 43, 226, 0.4);
}

.main-navigation__list .current-menu-item > a,
.main-navigation__list .current-page-ancestor > a {
	color: var(--primary-color) !important;
	border-bottom: 2px solid var(--primary-color);
	padding-bottom: 4px;
}

/* Header utilities: coin counter + profile avatar */
.main-navigation__right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
	flex-shrink: 0;
	margin-left: auto;
}

.main-navigation__left {
	flex: 1 1 auto;
	min-width: 0;
}

/* Utility icons belong in the slide-out menu, not the header bar */
.main-navigation__right .icon-menu._in-navigation {
	display: none !important;
}

.nh-header-utilities {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	margin-left: auto;
}

.nh-header-coins {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 0 12px;
	border-radius: 999px;
	background: rgba(251, 191, 36, 0.1);
	border: 1px solid rgba(251, 191, 36, 0.28);
	color: #fcd34d;
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nh-header-coins:hover,
.nh-header-coins:focus-visible {
	background: rgba(251, 191, 36, 0.18);
	border-color: rgba(251, 191, 36, 0.45);
	color: #fde68a;
	box-shadow: 0 0 14px rgba(251, 191, 36, 0.14);
}

.nh-header-coins .fa-coins {
	font-size: 0.92rem;
}

.nh-header-coins__count {
	font-variant-numeric: tabular-nums;
}

.nh-header-login {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	background: rgba(255, 60, 86, 0.12);
	border: 1px solid rgba(255, 60, 86, 0.32);
	color: #fda4af;
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nh-header-login:hover,
.nh-header-login:focus-visible {
	background: rgba(255, 60, 86, 0.2);
	border-color: rgba(255, 60, 86, 0.5);
	color: #ffe4e6;
	box-shadow: 0 0 14px rgba(255, 60, 86, 0.16);
}

.nh-header-login .icon,
.nh-header-login i {
	font-size: 0.92rem;
}

.nh-header-utilities .nh-profile-menu {
	order: unset;
	margin-left: 0;
}

.nh-header-utilities .nh-profile-menu > :is(a, button),
.nh-header-utilities .nh-profile-menu__cluster > :is(a, button) {
	height: auto !important;
	padding: 0 !important;
}

.nh-profile-menu__cluster {
	display: inline-flex;
	align-items: stretch;
	height: 38px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	overflow: hidden;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nh-profile-menu__cluster:hover,
.nh-profile-menu__cluster:focus-within {
	background: rgba(255, 60, 86, 0.1);
	border-color: rgba(255, 60, 86, 0.28);
	box-shadow: 0 0 12px rgba(255, 60, 86, 0.12);
}

.nh-profile-menu__avatar {
	width: 38px;
	height: 38px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
	text-decoration: none;
	color: inherit;
	line-height: 0;
}

.nh-profile-menu__avatar img,
.nh-profile-menu__avatar .nh-user-avatar,
.nh-profile-menu__avatar img.avatar {
	width: 32px !important;
	height: 32px !important;
	max-width: 32px !important;
	max-height: 32px !important;
	min-width: 0;
	min-height: 0;
	object-fit: cover;
	border-radius: 0;
	display: block;
}

.nh-profile-menu__avatar .user-icon {
	font-size: 1.35rem;
	color: #cbd5e1;
}

.nh-profile-menu__avatar:not(:has(.nh-user-avatar)):not(:has(img.avatar)) .user-icon {
	display: block;
}

.nh-profile-menu__avatar:has(.nh-user-avatar) .user-icon,
.nh-profile-menu__avatar:has(img.avatar) .user-icon {
	display: none;
}

.nh-profile-menu__caret {
	width: 24px;
	height: 38px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	color: #94a3b8;
	cursor: pointer;
	font-size: 0.62rem;
	transition: color 0.2s ease, background 0.2s ease;
}

.nh-profile-menu__caret:hover,
.nh-profile-menu__caret:focus-visible {
	color: var(--primary-color);
	background: rgba(255, 255, 255, 0.04);
}

.main-navigation__right .icon-menu i,
.main-navigation__right .icon-menu .icon,
.mobile-menu__top .icon-menu i,
.mobile-menu__top .icon-menu .icon {
	width: auto !important;
	height: auto !important;
	font-size: 1rem;
	line-height: 1;
}

.main-navigation__right .icon-menu .icon._user {
	transform: none !important;
}

/* Header profile dropdown */
.nh-profile-menu {
	position: relative;
	flex-shrink: 0;
}

.nh-profile-menu__toggle,
.nh-profile-menu__caret {
	cursor: pointer;
	background: transparent;
	border: none;
	padding: 0;
	color: inherit;
	font: inherit;
}

.nh-profile-menu__dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 188px;
	padding: 6px;
	margin: 0;
	list-style: none;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(13, 15, 23, 0.98);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
	z-index: 120;
}

.nh-profile-menu.is-open .nh-profile-menu__dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nh-profile-menu__dropdown .menu-item a,
.nh-profile-menu__dropdown .menu-item button {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border-radius: 8px;
	color: #e2e8f0 !important;
	font-size: 0.92rem;
	font-weight: 600;
	text-align: left;
	text-decoration: none;
	background: transparent;
	border: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.nh-profile-menu__dropdown .menu-item a:hover,
.nh-profile-menu__dropdown .menu-item a:focus-visible,
.nh-profile-menu__dropdown .menu-item button:hover,
.nh-profile-menu__dropdown .menu-item button:focus-visible {
	background: rgba(255, 60, 86, 0.12);
	color: var(--primary-color) !important;
}

.nh-profile-menu__dropdown .nh-profile-menu__logout a {
	color: #fca5a5 !important;
}

.nh-profile-menu__dropdown .nh-profile-menu__logout a:hover,
.nh-profile-menu__dropdown .nh-profile-menu__logout a:focus-visible {
	background: rgba(239, 68, 68, 0.12);
	color: #fecaca !important;
}

@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
	.nh-profile-menu:hover .nh-profile-menu__dropdown {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}

/* =============================================================================
   BREADCRUMBS
   ============================================================================= */
.nh-breadcrumbs {
	font-size: 11px;
	font-weight: 600;
	color: #626575;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin-bottom: 25px;
	display: flex;
	gap: 8px;
}

.nh-breadcrumbs a {
	color: #9da0b0;
	text-decoration: none;
	transition: color 0.2s;
}

.nh-breadcrumbs a:hover {
	color: var(--primary-color);
}

.nh-breadcrumbs span.active {
	color: #fff;
}

/* =============================================================================
   STORY PAGE HERO GRADIENT BACKGROUND (Cover-based)
   ============================================================================= */

/* The story page itself — position relative for hero layers */
.main.story {
	position: relative !important;
	overflow: hidden;
	padding-top: 0 !important;
}

/* Blurred cover image stretched across the whole page (fixed viewport background) */
.nh-story-hero-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-size: cover;
	background-position: center top;
	filter: blur(60px) brightness(0.35) saturate(1.4);
	transform: scale(1.15); /* Prevent blur edge gaps */
	z-index: 0;
	pointer-events: none;
}

/* Fixed dark overlay to tint the cover and ensure high-contrast text readability */
.nh-story-hero-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(11, 11, 16, 0.88) !important; /* Dark slate overlay */
	z-index: 1;
	pointer-events: none;
}

/* Force container backgrounds and Fictioneer's page background helper to be transparent */
.main.story,
.main.chapter,
.main.story .main__background,
.main.chapter .main__background {
	background: transparent !important;
	background-color: transparent !important;
}

/* Main content wrapper must stack on top of the fixed background elements */
.single-fcn_story .main__wrapper,
.single-fcn_chapter .main__wrapper {
	position: relative;
	z-index: 2;
}

/* Ensure reading content elements on chapter pages are transparent */
.single-fcn_chapter .chapter,
.single-fcn_chapter .chapter__container,
.single-fcn_chapter .chapter__content,
.single-fcn_chapter .chapter__text,
.single-fcn_chapter .chapter__text-section {
	background: transparent !important;
	background-color: transparent !important;
}

/* Reset all potential Fictioneer top spacing/margins on story pages */
.single-fcn_story #site,
.single-fcn_story #main,
.single-fcn_story .main {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* Main wrapper sits above the hero background and clears the sticky nav */
.single-fcn_story .main__wrapper,
.single-fcn_chapter .main__wrapper {
	position: relative;
	z-index: 2;
	padding-top: 75px !important; /* Clear header nicely on mobile viewports */
	margin-top: 0 !important;
}

@media only screen and (min-width: 1024px) {
	.single-fcn_story .main__wrapper,
	.single-fcn_chapter .main__wrapper {
		padding-top: 105px !important; /* Clear desktop sticky nav bar cleanly */
	}
}

/* Kill Fictioneer default background styling on story pages */
.main.story .main__background {
	border: none !important;
	box-shadow: none !important;
}

/* Hide default Fictioneer header backgrounds and inner headers on story pages */
.single-fcn_story .header-background,
.single-fcn_story .header {
	display: none !important;
}

/* =============================================================================
   DESKTOP STORY DETAILS GRID
   ============================================================================= */
.story__article_modern {
	background: transparent;
	border-radius: 12px;
	padding: 6px 0;
}

.nh-story-tabs-content {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nh-story-grid {
	display: grid;
	grid-template-columns: minmax(160px, 180px) minmax(0, 1fr);
	gap: 18px;
	margin-bottom: 24px;
	align-items: start;
}

.nh-story-left {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nh-cover-wrapper {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.1);
	aspect-ratio: 2 / 3;
}

.nh-story-cover {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block;
}

.nh-status-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background: var(--primary-color);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	letter-spacing: 0.5px;
	z-index: 2;
}

.nh-status-badge.completed { background: #3b82f6; }
.nh-status-badge.hiatus { background: #eab308; }

/* Desktop actions */
.nh-cover-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nh-btn-first,
.nh-btn-collect,
.nh-btn-latest {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	transition: all 0.2s ease;
	cursor: pointer;
	width: 100%;
	border: none;
	font-family: inherit;
}

.nh-btn-first {
	background: var(--primary-color) !important;
	color: #fff !important;
	border: none;
}

.nh-btn-first:hover {
	background: var(--primary-color-hover) !important;
	box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.nh-btn-collect,
.nh-btn-latest {
	background: #141419 !important;
	color: #fff !important;
	border: 1px solid var(--border-color) !important;
}

.nh-btn-collect:hover,
.nh-btn-latest:hover {
	background: #1e1e25 !important;
	border-color: var(--primary-color) !important;
}

.nh-btn-collect.active {
	background: rgba(255, 60, 86, 0.16) !important;
	color: #fff !important;
	border-color: rgba(255, 60, 86, 0.45) !important;
}

/* Right Section details */
.nh-story-right {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nh-story-info-card {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: 16px 18px;
	border-radius: 16px;
	background: #0d0f17;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nh-story-info-card__bg {
	position: absolute;
	inset: -18%;
	background-size: cover;
	background-position: center 18%;
	filter: blur(32px) saturate(1.3) brightness(0.52);
	transform: scale(1.08);
	pointer-events: none;
	z-index: 0;
}

.nh-story-info-card__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(10, 11, 16, 0.2) 0%, rgba(10, 11, 16, 0.55) 42%, rgba(10, 11, 16, 0.92) 100%),
		linear-gradient(180deg, rgba(255, 60, 86, 0.08) 0%, rgba(255, 60, 86, 0) 38%);
	pointer-events: none;
	z-index: 1;
}

.nh-story-info-card__overlay--fallback {
	background: linear-gradient(180deg, rgba(21, 24, 36, 0.82) 0%, rgba(14, 16, 24, 0.96) 100%);
}

.nh-story-info-card__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.nh-story-info-card__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nh-story-meta-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 12px;
}

.nh-story-title {
	font-size: clamp(1.55rem, 3vw, 2rem) !important;
	font-weight: 800 !important;
	color: #fff !important;
	margin: 0 !important;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.nh-story-credits {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

.nh-story-credits--mobile {
	justify-content: center;
	margin: 4px 0 0;
}

.nh-credit-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 10px 5px 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(8px);
}

.nh-credit-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(99, 102, 241, 0.16);
	color: var(--primary-color);
	font-size: 0.68rem;
	flex-shrink: 0;
}

.nh-credit-item--alternative .nh-credit-icon {
	background: rgba(56, 189, 248, 0.16);
	color: #38bdf8;
}

.nh-credit-item--tl .nh-credit-icon {
	background: rgba(52, 211, 153, 0.16);
	color: #34d399;
}

.nh-credit-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 0;
}

.nh-credit-label {
	display: block;
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #94a3b8;
	line-height: 1.2;
}

.nh-credit-value {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	color: #e2e8f0;
	line-height: 1.25;
}

.nh-credit-value a {
	color: var(--primary-color) !important;
	text-decoration: none;
}

.nh-credit-value a:hover {
	color: var(--primary-color-hover) !important;
}

/* Badges row */
.nh-meta-badges {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

.nh-badge,
.nh-badge-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	color: #e5e5eb;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.nh-badge.rating {
	background: rgba(251, 191, 36, 0.14);
	color: #fbbf24;
	border-color: rgba(251, 191, 36, 0.28);
}

.nh-badge.status.ongoing {
	background: rgba(16, 185, 129, 0.12);
	color: #34d399;
	border-color: rgba(16, 185, 129, 0.28);
}

.nh-badge.status.completed {
	background: rgba(59, 130, 246, 0.12);
	color: #60a5fa;
	border-color: rgba(59, 130, 246, 0.28);
}

.nh-badge.status.hiatus {
	background: rgba(245, 158, 11, 0.12);
	color: #fbbf24;
	border-color: rgba(245, 158, 11, 0.28);
}

.nh-badge-btn.flag {
	cursor: pointer;
	color: #ef4444;
	border-color: rgba(239, 68, 68, 0.2);
}

.nh-badge-btn.flag:hover {
	background: rgba(239, 68, 68, 0.1);
}

/* Push notification bell */
.nh-push-bell {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 999px;
	background: #141419;
	color: #e5e5eb;
	border: 1px solid var(--border-color);
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1;
}

.nh-push-bell:hover:not(:disabled) {
	border-color: var(--primary-color);
	color: var(--primary-color);
}

.nh-push-bell.is-active {
	background: rgba(255, 60, 86, 0.12);
	color: var(--primary-color);
	border-color: rgba(255, 60, 86, 0.45);
}

.nh-push-bell.is-active i {
	animation: nh-bell-ring 0.8s ease;
}

.nh-push-bell.is-denied,
.nh-push-bell.is-unsupported {
	opacity: 0.55;
	cursor: not-allowed;
}

.nh-push-bell:disabled {
	opacity: 0.7;
	cursor: wait;
}

.nh-push-bell-label {
	white-space: nowrap;
}

@keyframes nh-bell-ring {
	0%, 100% { transform: rotate(0deg); }
	20% { transform: rotate(12deg); }
	40% { transform: rotate(-10deg); }
	60% { transform: rotate(8deg); }
	80% { transform: rotate(-6deg); }
}

/* Compact series stats strip */
.nh-series-info-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
	padding: 8px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.nh-series-stat {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	padding: 6px 8px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.04);
}

.nh-series-stat__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
	color: #94a3b8;
	font-size: 0.72rem;
	flex-shrink: 0;
}

.nh-series-stat--updated .nh-series-stat__icon { color: #38bdf8; }
.nh-series-stat--chapters .nh-series-stat__icon { color: #a78bfa; }
.nh-series-stat--views .nh-series-stat__icon { color: #ff3c56; }
.nh-series-stat--saves .nh-series-stat__icon { color: #fb7185; }
.nh-series-stat--pace .nh-series-stat__icon { color: #38bdf8; }
.nh-series-stat--since .nh-series-stat__icon { color: #fbbf24; }

.nh-series-stat__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 0;
}

.nh-series-stat__value {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	color: #f1f5f9;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nh-series-stat__label {
	display: block;
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
	line-height: 1.2;
}

.nh-story-right .nh-series-info-strip {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 1280px) {
	.nh-story-right .nh-series-info-strip {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

/* Story Summary / Excerpt Show More */
.nh-story-summary {
	background: rgba(255, 255, 255, 0.02);
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	padding: 12px 14px 10px;
	position: relative;
}

.nh-summary-text {
	font-size: 0.84rem;
	line-height: 1.6;
	color: #cbd5e1;
	max-height: 84px;
	overflow: hidden;
	position: relative;
}

.nh-summary-text p {
	margin: 0 0 0.85em;
}

.nh-summary-text p:last-child {
	margin-bottom: 0;
}

.nh-story-summary:not(.is-expanded) .nh-summary-text::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 42px;
	background: linear-gradient(180deg, rgba(14, 16, 24, 0) 0%, rgba(14, 16, 24, 0.92) 100%);
	pointer-events: none;
}

.nh-story-mobile .nh-story-summary:not(.is-expanded) .nh-summary-text::after {
	background: linear-gradient(180deg, rgba(14, 16, 24, 0) 0%, rgba(14, 16, 24, 0.96) 100%);
}

.nh-summary-more-btn {
	background: transparent;
	border: none;
	color: var(--primary-color);
	font-weight: 700;
	font-size: 0.68rem;
	cursor: pointer;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0;
	margin-top: 12px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.nh-summary-more-btn:hover {
	color: var(--primary-color-hover);
}

/* Genre list tags */
.nh-genres-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

.nh-genre-tag {
	font-size: 10px !important;
	font-weight: 600 !important;
	letter-spacing: 0.4px;
	padding: 5px 10px !important;
	border-radius: 999px !important;
	background: #141419 !important;
	color: #fff !important;
	border: 1px solid var(--border-color) !important;
	text-decoration: none;
	transition: all 0.2s ease;
}

.nh-genre-tag:hover {
	background: var(--primary-color) !important;
	border-color: var(--primary-color) !important;
	box-shadow: 0 4px 10px rgba(138, 43, 226, 0.3);
}

/* Tags list */
.nh-tags-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.nh-tag-item {
	font-size: 12px;
	color: #ff6b7d;
	background: rgba(255, 60, 86, 0.06);
	border: 1px solid rgba(255, 60, 86, 0.15);
	padding: 4px 10px;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.nh-tag-item:hover {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: #fff;
}

.nh-tag-item-more {
	font-size: 12px;
	color: #cbd5e1;
	text-decoration: none;
	padding: 4px 8px;
}

/* Fictioneer Taxonomy Pills Styling (Capsules UI) */
.tag-pill {
	font-size: 11.5px !important;
	font-weight: 600 !important;
	padding: 6px 14px !important;
	border-radius: 20px !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	margin: 3px 4px !important;
	transition: all 0.2s ease !important;
}

/* Default / General Tags */
.tag-pill._taxonomy-post_tag {
	background: rgba(255, 255, 255, 0.03) !important;
	color: #cbd5e1 !important;
	border: 1px solid rgba(255, 255, 255, 0.07) !important;
}
.tag-pill._taxonomy-post_tag:hover {
	background: var(--primary-color) !important;
	border-color: var(--primary-color) !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(255, 60, 86, 0.3) !important;
}

/* Genres */
.tag-pill._taxonomy-fcn_genre {
	background: rgba(255, 60, 86, 0.05) !important;
	color: #ff6b7d !important;
	border: 1px solid rgba(255, 60, 86, 0.15) !important;
}
.tag-pill._taxonomy-fcn_genre:hover {
	background: var(--primary-color) !important;
	border-color: var(--primary-color) !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(255, 60, 86, 0.3) !important;
}

/* Content Warnings */
.tag-pill._taxonomy-fcn_content_warning {
	background: rgba(239, 68, 68, 0.06) !important;
	color: #f87171 !important;
	border: 1px solid rgba(239, 68, 68, 0.18) !important;
}
.tag-pill._taxonomy-fcn_content_warning:hover {
	background: #ef4444 !important;
	border-color: #ef4444 !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

/* Modernized Tabs and Chapter Controls */
.tabs {
	display: flex !important;
	gap: 8px !important;
	flex-wrap: wrap !important;
	margin-bottom: 20px !important;
	align-items: center !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
	padding-bottom: 12px !important;
	width: 100% !important;
}

.tabs__item {
	background: rgba(255, 255, 255, 0.03) !important;
	border: 1px solid rgba(255, 255, 255, 0.07) !important;
	color: #cbd5e1 !important;
	padding: 8px 16px !important;
	border-radius: 20px !important;
	font-weight: 700 !important;
	font-size: 12px !important;
	transition: all 0.2s ease !important;
	cursor: pointer !important;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
	height: auto !important;
	line-height: 1 !important;
}

.tabs__item._current,
.tabs__item:hover {
	background: var(--primary-color) !important;
	border-color: var(--primary-color) !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(255, 60, 86, 0.25) !important;
}

/* Modernized List Toggles (bullet lists, arrows, view icons) */
.list-button {
	background: rgba(255, 255, 255, 0.03) !important;
	border: 1px solid rgba(255, 255, 255, 0.07) !important;
	color: #cbd5e1 !important;
	padding: 8px 14px !important;
	border-radius: 20px !important;
	font-size: 11.5px !important;
	font-weight: 600 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	transition: all 0.2s ease !important;
	cursor: pointer !important;
	height: auto !important;
	line-height: 1 !important;
}

.list-button._on,
.list-button:hover {
	background: var(--primary-color) !important;
	border-color: var(--primary-color) !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(255, 60, 86, 0.25) !important;
}

/* Rating stars — compact inline row */
.nh-rate-widget {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin: 0;
	padding: 4px 8px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 999px;
	width: fit-content;
	max-width: 100%;
	align-self: flex-start;
}

.nh-rate-label {
	font-size: 0.58rem;
	font-weight: 700;
	color: #64748b;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	margin: 0;
	line-height: 1;
}

.nh-stars {
	color: #ffb703;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	cursor: pointer;
	line-height: 1;
}

.nh-stars .nh-star-btn,
.nh-stars i.fa-star {
	font-size: 0.9rem;
	color: #64748b;
	transition: transform 0.15s ease, color 0.15s ease;
}

.nh-stars i.fa-star.fa-solid {
	color: #ffc107;
}

.nh-stars i.fa-star:hover {
	transform: scale(1.12);
}

.nh-rating-feedback {
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1;
}

.nh-rate-widget.nh-rate-highlight {
	border-color: rgba(255, 193, 7, 0.45);
	box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.12);
}

/* Hidden layouts */
.nh-story-mobile {
	display: none;
}

/* =============================================================================
   MOBILE LAYOUT DESIGN
   ============================================================================= */
@media (max-width: 900px) {
	.nh-story-grid {
		display: none;
	}

	.single-fcn_story .nh-breadcrumbs {
		display: none;
	}

	.nh-story-mobile {
		position: relative;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 0 16px 28px;
		margin: 0 -4px 32px;
		background: transparent !important;
		z-index: 1;
		border: none !important;
		box-shadow: none !important;
	}

	.nh-story-hero-card {
		width: 100%;
		max-width: 520px;
		align-items: center;
		text-align: center;
		padding: 14px 14px 16px;
		box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
	}

	.nh-story-hero-card .nh-story-info-card__bg {
		filter: blur(36px) saturate(1.35) brightness(0.48);
	}

	.nh-story-hero-card .nh-story-info-card__overlay {
		background:
			linear-gradient(180deg, rgba(10, 11, 16, 0.15) 0%, rgba(10, 11, 16, 0.72) 48%, rgba(10, 11, 16, 0.95) 100%),
			linear-gradient(180deg, rgba(255, 60, 86, 0.1) 0%, rgba(255, 60, 86, 0) 42%);
	}

	.nh-story-hero-card .nh-story-info-card__content {
		align-items: center;
		text-align: center;
		gap: 12px;
	}

	.nh-story-credits--mobile {
		justify-content: center;
		width: 100%;
	}

	.nh-story-credits--mobile .nh-credit-item {
		justify-content: center;
	}

	.nh-story-credits--mobile .nh-credit-copy {
		align-items: center;
		text-align: center;
	}

	.nh-mobile-cover {
		position: relative;
		width: 112px;
		height: 160px;
		border-radius: 12px;
		overflow: hidden;
		margin-bottom: 4px;
		box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
	}

	.nh-mobile-cover::after {
		content: '';
		position: absolute;
		inset: 0;
		border-radius: inherit;
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
		pointer-events: none;
	}

	.nh-mobile-img {
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
	}

	.nh-mobile-cover-badge {
		position: absolute;
		bottom: 10px;
		left: 50%;
		transform: translateX(-50%);
		font-size: 9px;
		font-weight: 800;
		color: #fff;
		padding: 4px 12px;
		border-radius: 999px;
		text-transform: uppercase;
		letter-spacing: 0.6px;
		box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
		white-space: nowrap;
		backdrop-filter: blur(8px);
	}

	.nh-mobile-cover-badge.ongoing { background: rgba(16, 185, 129, 0.92); }
	.nh-mobile-cover-badge.completed { background: rgba(59, 130, 246, 0.92); }
	.nh-mobile-cover-badge.hiatus { background: rgba(245, 158, 11, 0.92); }

	.nh-mobile-heading {
		width: 100%;
		margin-bottom: 0;
	}

	.nh-mobile-title {
		font-size: clamp(1.25rem, 4.8vw, 1.55rem) !important;
		font-weight: 800 !important;
		color: #fff !important;
		margin: 0 0 4px !important;
		line-height: 1.18;
		letter-spacing: -0.03em;
	}

	.nh-mobile-alt-title {
		margin: 0 0 8px;
		font-size: 0.82rem;
		color: #94a3b8;
		font-weight: 500;
	}

	.nh-mobile-author {
		font-size: 0.88rem;
		color: #94a3b8;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		flex-wrap: wrap;
	}

	.nh-accent-author {
		color: var(--primary-color) !important;
		font-weight: 700;
		text-decoration: none;
	}

	.nh-accent-author:hover {
		color: var(--primary-color-hover) !important;
	}

	.nh-story-meta-toolbar--mobile {
		width: 100%;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 8px;
	}

	.nh-meta-badges--mobile {
		justify-content: center;
	}

	.nh-mobile-genres {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		margin-bottom: 0;
		width: 100%;
		justify-content: center;
		padding-bottom: 2px;
	}

	.nh-mobile-genre {
		flex-shrink: 0;
		font-size: 0.62rem;
		background: rgba(255, 255, 255, 0.04);
		border: 1px solid rgba(255, 255, 255, 0.1);
		color: #cbd5e1;
		padding: 5px 10px;
		border-radius: 999px;
		text-decoration: none;
		font-weight: 600;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
	}

	.nh-mobile-genre:hover {
		background: rgba(255, 60, 86, 0.1);
		border-color: rgba(255, 60, 86, 0.35);
		color: #fff;
	}

	.nh-mobile-rate-widget {
		justify-content: center;
		padding: 4px 10px;
	}

	.nh-mobile-actions {
		display: flex;
		gap: 8px;
		width: 100%;
		margin-bottom: 0;
		align-items: stretch;
	}

	.nh-mobile-actions .nh-push-bell {
		flex: 0 0 52px;
		min-width: 52px;
		padding: 0;
		justify-content: center;
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.04);
		border: 1px solid rgba(255, 255, 255, 0.1);
	}

	.nh-mobile-actions .nh-push-bell .nh-push-bell-label {
		display: none;
	}

	.nh-mobile-actions .nh-push-bell.is-active {
		background: rgba(255, 60, 86, 0.16);
		border-color: rgba(255, 60, 86, 0.45);
		color: #fff;
	}

	.nh-mobile-btn-read,
	.nh-mobile-btn-collect {
		flex: 1;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		min-height: 42px;
		padding: 10px 12px;
		border-radius: 10px;
		font-size: 0.76rem;
		font-weight: 700;
		text-decoration: none;
		border: none;
		cursor: pointer;
		transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
	}

	.nh-mobile-btn-read {
		background: linear-gradient(135deg, #ff3c56 0%, #d91e45 100%) !important;
		color: #fff !important;
		box-shadow: 0 10px 24px rgba(255, 60, 86, 0.28);
	}

	.nh-mobile-btn-read:hover {
		transform: translateY(-1px);
		box-shadow: 0 14px 28px rgba(255, 60, 86, 0.38);
	}

	.nh-mobile-btn-collect {
		background: rgba(255, 255, 255, 0.04) !important;
		border: 1px solid rgba(255, 255, 255, 0.12) !important;
		color: #f8fafc !important;
	}

	.nh-mobile-btn-collect:hover,
	.nh-mobile-btn-collect.active {
		background: rgba(255, 60, 86, 0.12) !important;
		border-color: rgba(255, 60, 86, 0.35) !important;
	}

	.nh-story-mobile .nh-series-info-strip {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		padding: 10px;
		margin-bottom: 0;
		width: 100%;
	}

	.nh-story-mobile .nh-series-stat {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 5px;
		padding: 10px 8px;
	}

	.nh-story-mobile .nh-series-stat__copy {
		align-items: center;
		text-align: center;
		gap: 3px;
		width: 100%;
	}

	.nh-story-mobile .nh-series-stat__icon {
		width: 26px;
		height: 26px;
		font-size: 0.72rem;
	}

	.nh-story-mobile .nh-series-stat__value {
		font-size: 0.74rem;
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
		line-height: 1.25;
	}

	.nh-story-mobile .nh-series-stat__label {
		font-size: 0.56rem;
		letter-spacing: 0.05em;
	}

	.nh-story-mobile .nh-story-summary {
		width: 100%;
		margin-top: 0;
		text-align: left;
	}
}

/* =============================================================================
   PAGINATED CHAPTER INDEX PAGINATOR (Screenshot 1 styling)
   ============================================================================= */
.nh-pagination-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 30px;
	padding: 15px 12px !important; /* Add left/right padding so text doesn't touch edges */
	border-top: 1px solid var(--border-color);
	flex-wrap: wrap;
	gap: 15px;
}

.nh-pagination-row--top {
	margin-top: 16px;
	margin-bottom: 8px;
	border-top: none;
	border-bottom: 1px solid var(--border-color);
}

.nh-pagination-buttons {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Square page buttons matching Screenshot 1 */
.nh-pagination-buttons .nh-page-btn {
	background: #141419 !important;
	border: 1px solid #222226 !important;
	color: #888899 !important;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
	padding: 0;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nh-pagination-buttons .nh-page-btn:hover:not(.disabled):not(.dots) {
	border-color: var(--primary-color) !important;
	color: #fff !important;
}

.nh-pagination-buttons .nh-page-btn.active {
	background: var(--primary-color) !important; /* Solid Purple from Screenshot 1 */
	color: #fff !important;
	border-color: var(--primary-color) !important;
	box-shadow: 0 0 12px rgba(138, 43, 226, 0.4);
}

.nh-pagination-buttons .nh-page-btn.dots {
	background: transparent !important;
	border-color: transparent !important;
	cursor: default;
	color: #555566 !important;
}

.nh-pagination-buttons .nh-page-btn.disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

/* Range summary display matching Screenshot 1 */
.nh-pagination-summary {
	font-size: 13px;
	font-weight: 500;
	color: #4361ee; /* Muted blue-gray/light blue from screenshot */
	letter-spacing: 0.3px;
	user-select: none;
}

/* =============================================================================
   LAYOUT OVERRIDES & CLEANUP
   ============================================================================= */

/* Hide default Fictioneer action buttons, media-buttons, and story footer as they are now unified in the modernized layout */
.story__actions,
.media-buttons,
.story__footer {
	display: none !important;
}

/* Add interactive pointer cursor to custom badges that now trigger actions */
.nh-badge.bookmarks,
.nh-mobile-badge.bookmark,
.nh-badge.rating,
.nh-ribbon-item.rating,
.nh-push-bell:not(:disabled):not(.is-unsupported):not(.is-denied) {
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.nh-badge.bookmarks:hover,
.nh-mobile-badge.bookmark:hover,
.nh-badge.rating:hover,
.nh-ribbon-item.rating:hover {
	opacity: 0.85;
}

/* Active followed/bookmarked state styling */
.nh-badge.bookmarks.active,
.nh-mobile-badge.bookmark.active,
.nh-btn-collect.active,
.nh-mobile-btn-collect.active {
	background: var(--primary-color) !important;
	color: #fff !important;
	border-color: var(--primary-color) !important;
}

/* =============================================================================
   LOGIN PAGE STYLES
   ============================================================================= */
.nh-login-page {
	padding: 40px 0 60px;
}

.nh-login-shell {
	display: flex;
	justify-content: center;
	padding: 10px 0 30px;
}

.nh-login-card {
	width: min(100%, 460px);
	background: var(--card-background-color);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius-card);
	padding: 32px 28px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.nh-login-card__header {
	text-align: center;
	margin-bottom: 24px;
}

.nh-login-card__header i {
	font-size: 1.6rem;
	color: var(--primary-color);
	margin-bottom: 10px;
}

.nh-login-card__title {
	margin: 0 0 8px;
	font-size: 1.6rem;
	font-weight: 800;
	color: #f8fafc;
}

.nh-login-card__subtitle {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: #94a3b8;
}

.nh-login-card__form .user-registration,
.nh-login-card__form #nh-loginform {
	margin-top: 4px;
}

.nh-login-card__form .user-registration-form__label,
.nh-login-card__form label {
	color: #cbd5e1;
	font-weight: 600;
}

.nh-login-card__form .user-registration-form__input,
.nh-login-card__form input[type="text"],
.nh-login-card__form input[type="password"],
.nh-login-card__form input[type="email"] {
	width: 100%;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	color: #f8fafc;
}

.nh-login-card__form .user-registration-Button,
.nh-login-card__form #wp-submit {
	background: var(--primary-color) !important;
	border: none !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
}

.nh-login-card__form .user-registration-Button:hover,
.nh-login-card__form #wp-submit:hover {
	filter: brightness(1.08);
}

#mobile-menu-user-panel .nh-mobile-login-link {
	text-decoration: none;
	color: inherit;
}

/* =============================================================================
   USER PROFILE PAGE STYLES
   ============================================================================= */
.profile-modern {
	padding: 40px 0;
}

.nh-profile-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 30px;
}

@media (max-width: 900px) {
	.nh-profile-grid {
		grid-template-columns: 1fr;
	}
}

.nh-profile-card {
	background: var(--card-background-color);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius-card);
	padding: 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nh-profile-card.text-center {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.nh-avatar-container {
	margin-bottom: 20px;
}

.nh-avatar-display {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid var(--primary-color);
	box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
	display: inline-block;
}

.nh-avatar-display img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nh-profile-name {
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 12px 0;
}

.nh-profile-meta {
	font-size: 13px;
	color: var(--text-color-alt);
	margin: 0 0 8px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.nh-profile-meta i {
	color: var(--primary-color);
	width: 16px;
}

.nh-profile-sidebar-actions {
	width: 100%;
	margin-top: 25px;
	border-top: 1px solid var(--border-color);
	padding-top: 20px;
}

.nh-btn-logout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 10px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	background: transparent;
	color: #ef4444 !important;
	border: 1px solid rgba(239, 68, 68, 0.3);
	transition: all 0.2s ease;
	cursor: pointer;
}

.nh-btn-logout:hover {
	background: rgba(239, 68, 68, 0.08);
	border-color: #ef4444;
}

.nh-profile-card-title {
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 25px 0;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border-color);
}

.nh-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

@media (max-width: 600px) {
	.nh-form-row {
		grid-template-columns: 1fr;
		gap: 15px;
	}
}

.nh-form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 20px;
}

.nh-form-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-color-alt);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.nh-form-input {
	background: #141419;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: #fff;
	padding: 12px;
	font-size: 14px;
	transition: all 0.2s ease;
}

.nh-form-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 8px rgba(138, 43, 226, 0.25);
}

.nh-file-upload-wrapper {
	background: #141419;
	border: 1px dashed var(--border-color);
	border-radius: 6px;
	padding: 20px;
	text-align: center;
	transition: all 0.2s ease;
}

.nh-file-upload-wrapper:hover {
	border-color: var(--primary-color);
}

.nh-form-file {
	font-size: 13px;
	color: var(--text-color-alt);
}

.nh-form-help {
	font-size: 11px;
	color: var(--text-color-muted);
	margin-top: 6px;
}

.nh-form-help-alt {
	font-size: 12px;
	color: var(--text-color-muted);
	margin: -10px 0 20px 0;
}

.nh-form-section-title {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	margin: 25px 0 15px 0;
	padding-top: 15px;
	border-top: 1px solid var(--border-color);
}

.nh-form-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 30px;
	border-top: 1px solid var(--border-color);
	padding-top: 25px;
}

.nh-profile-submit-btn {
	background: var(--primary-color);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 30px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.nh-profile-submit-btn:hover:not(:disabled) {
	background: var(--primary-color-hover);
	box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.nh-profile-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.nh-profile-msg {
	font-size: 14px;
	font-weight: 600;
}

.nh-profile-msg.success {
	color: #22c55e;
}

.nh-profile-msg.error {
	color: #ef4444;
}

/* Tab Buttons */
.nh-profile-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 25px;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 10px;
}

.nh-profile-tab-btn {
	background: transparent;
	border: none;
	color: var(--text-color-alt);
	font-size: 15px;
	font-weight: 600;
	padding: 10px 20px;
	cursor: pointer;
	border-radius: 6px 6px 0 0;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.nh-profile-tab-btn:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.05);
}

.nh-profile-tab-btn.active {
	color: #fff;
	border-bottom: 3px solid var(--primary-color);
}

/* Tab Contents */
.nh-profile-tab-content {
	display: none;
}

.nh-profile-tab-content.active {
	display: block;
}

/* Profile Sections */
.nh-profile-section {
	background: var(--card-background-color);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius-card);
	padding: 25px;
	margin-bottom: 30px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nh-profile-section-title {
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 20px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.nh-profile-section-title i {
	color: var(--primary-color);
}

/* Series Cards Grid */
.nh-profile-series-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.nh-profile-series-card {
	background: #141419;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.nh-profile-series-card:hover {
	transform: translateY(-2px);
	border-color: var(--primary-color);
}

.nh-series-card-cover {
	width: 80px;
	height: 110px;
	flex-shrink: 0;
	overflow: hidden;
}

.nh-series-card-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nh-series-card-details {
	padding: 15px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.nh-series-card-title {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 10px 0;
	line-height: 1.3;
}

.nh-series-card-title a {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nh-series-card-title a:hover {
	color: var(--primary-color);
}

/* Progress Bar */
.nh-series-progress-label {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: var(--text-color-alt);
	margin-bottom: 5px;
}

.nh-series-progress-bar {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	height: 6px;
	width: 100%;
	overflow: hidden;
}

.nh-series-progress-fill {
	background: var(--primary-color);
	height: 100%;
	border-radius: 4px;
	transition: width 0.3s ease;
}

/* Comments List */
.nh-profile-comments-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.nh-profile-comment-item {
	background: #141419;
	border: 1px solid var(--border-color);
	border-left: 4px solid var(--primary-color);
	border-radius: 0 8px 8px 0;
	padding: 15px;
}

.nh-profile-comment-header {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--text-color-alt);
	margin-bottom: 8px;
}

.nh-comment-on a {
	color: #fff;
	text-decoration: none;
}

.nh-comment-on a:hover {
	color: var(--primary-color);
}

.nh-comment-time {
	color: var(--text-color-muted);
}

.nh-profile-comment-body {
	font-size: 13px;
	color: #e2e8f0;
	line-height: 1.4;
	font-style: italic;
}

.nh-profile-empty-text {
	font-size: 14px;
	color: var(--text-color-muted);
	font-style: italic;
	margin: 0;
}

/* =============================================================================
   HOMEPAGE MODERN STYLES
   ============================================================================ */
.home-modern {
	padding-top: 0 !important;
}

.home-modern .main__wrapper {
	position: relative;
	z-index: 2;
	padding: 75px 20px 40px;
	max-width: 1300px;
	margin: 0 auto;
}

@media only screen and (min-width: 1024px) {
	.home-modern .main__wrapper {
		padding-top: 105px;
	}
}

.nh-site-directory {
	margin-top: 48px;
	padding: 28px 24px;
	border-radius: var(--border-radius-card);
	border: 1px solid var(--border-color);
	background: rgba(255, 255, 255, 0.02);
}

.nh-site-directory h2 {
	margin: 0 0 20px;
	font-size: 1.15rem;
	font-weight: 700;
	color: #e2e8f0;
}

.nh-site-directory h3 {
	margin: 0 0 12px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #94a3b8;
}

.nh-site-directory__sections,
.nh-site-directory__series {
	margin-bottom: 24px;
}

.nh-site-directory__series:last-child {
	margin-bottom: 0;
}

.nh-site-directory ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px 20px;
}

.nh-site-directory li {
	margin: 0;
}

.nh-site-directory a {
	color: var(--primary-color);
	font-weight: 600;
	text-decoration: none;
}

.nh-site-directory a:hover {
	color: var(--primary-color-hover);
	text-decoration: underline;
}

.nh-site-directory p {
	margin: 4px 0 0;
	font-size: 0.82rem;
	line-height: 1.45;
	color: #94a3b8;
}

.nh-site-directory__chapter {
	display: inline-block;
	margin-top: 6px;
	font-size: 0.8rem;
}

.nh-site-directory__chapter-desc {
	font-size: 0.76rem !important;
}

@media (max-width: 640px) {
	.nh-site-directory {
		padding: 20px 16px;
	}

	.nh-site-directory ul {
		grid-template-columns: 1fr;
	}
}

/* Pinned Slideshow Slider */
.nh-home-banner-slider-section {
	margin-top: 0 !important;
	margin-bottom: 40px;
	display: block;
}

.nh-home-banner-slider {
	position: relative;
	height: 420px;
	border-radius: var(--border-radius-card);
	overflow: hidden;
	background: #0d0d11;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	border: 1px solid var(--border-color);
}

.nh-slider-wrapper {
	position: relative;
	height: 100%;
	width: 100%;
}

.nh-slide {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.nh-slide.active {
	display: flex;
}

/* Blurred Background Cover */
.nh-slide-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: center 20%;
	filter: blur(25px) brightness(0.22) saturate(1.2);
	transform: scale(1.1);
	z-index: 1;
}

/* Content Container overlay */
.nh-slide-content-wrap {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	padding: 40px 60px;
}

.nh-slide-left {
	width: 65%;
	display: flex;
	flex-direction: column;
	gap: 15px;
	align-items: flex-start;
}

.nh-slide-right {
	width: 35%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.nh-slide-meta-row {
	display: flex;
	gap: 10px;
	align-items: center;
}

.nh-badge.type {
	background: rgba(16, 185, 129, 0.15) !important;
	border: 1px solid rgba(16, 185, 129, 0.3) !important;
	color: #10b981 !important;
}

.nh-badge.rating {
	background: rgba(245, 158, 11, 0.15) !important;
	border: 1px solid rgba(245, 158, 11, 0.3) !important;
	color: #f59e0b !important;
}

.nh-slide-title {
	font-size: 38px;
	font-weight: 800;
	line-height: 1.15;
	margin: 0;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nh-slide-title a {
	color: #fff;
	text-decoration: none;
}

.nh-slide-title a:hover {
	color: var(--primary-color);
}

.nh-slide-excerpt {
	color: var(--text-color-alt);
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.nh-slide-genres {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nh-slide-genre-pill {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: var(--text-color-alt);
	font-size: 11px;
	font-weight: 600;
	padding: 4px 14px;
	border-radius: 20px;
}

.nh-slide-actions {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.nh-slide-btn {
	padding: 10px 25px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.nh-slide-btn.read-now {
	background: #10b981;
	color: #fff !important;
}

.nh-slide-btn.read-now:hover {
	background: #059669;
	box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.nh-slide-btn.details {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff !important;
}

.nh-slide-btn.details:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.2);
}

.nh-slide-chapters-count {
	font-size: 13px;
	color: var(--text-color-muted);
	font-weight: 500;
}

/* Card Cover Display for Slideshow */
.nh-slide-cover-card {
	position: relative;
	width: 190px;
	height: 270px;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.nh-slide-cover-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nh-slide-updated-badge {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.85);
	border: 1px solid #10b981;
	color: #10b981;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 20px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	letter-spacing: 0.5px;
}

.pulse-dot {
	width: 6px;
	height: 6px;
	background: #10b981;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	animation: pulse 1.6s infinite;
}

@keyframes pulse {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	}
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
	}
}

/* Slideshow navigation buttons */
.nh-slider-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.08);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	cursor: pointer;
	z-index: 3;
	transition: all 0.2s ease;
}

.nh-slider-nav-btn:hover {
	background: var(--primary-color);
	border-color: var(--primary-color);
}

.nh-slider-nav-btn.prev {
	left: 20px;
}

.nh-slider-nav-btn.next {
	right: 20px;
}

/* Indicators */
.nh-slider-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 3;
}

.nh-slider-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	transition: all 0.25s ease;
}

.nh-slider-dot.active {
	background: #10b981;
	width: 24px;
	border-radius: 4px;
}
/* Hide mobile specific elements by default on desktop */
.nh-slide-mobile-header,
.nh-slide-mobile-swipe,
.nh-slide-cover-card.prev,
.nh-slide-cover-card.next,
.nh-slide-chapters-count-badge {
	display: none;
}

/* Mobile Slideshow Overrides */
@media (max-width: 768px) {
	.nh-home-banner-slider {
		height: 550px !important; /* Premium tall card height */
	}
	.nh-slide-content-wrap {
		flex-direction: column; /* Stack vertically (covers top, details bottom) */
		padding: 20px 20px 25px 20px;
		gap: 15px;
		justify-content: space-between;
		align-items: center;
	}
	.nh-slide-mobile-header {
		display: flex;
		justify-content: space-between;
		width: 100%;
		z-index: 5;
		font-size: 11px;
		font-weight: 800;
		color: rgba(255, 255, 255, 0.7);
		text-transform: uppercase;
		letter-spacing: 1px;
		margin-bottom: 5px;
	}
	.nh-slide-mobile-featured {
		color: #fff;
	}
	.nh-slide-right {
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		margin-top: 10px;
	}
	.nh-slide-covers-group {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 15px;
		width: 100%;
		position: relative;
	}
	.nh-slide-cover-card.prev,
	.nh-slide-cover-card.next {
		display: block;
		width: 90px;
		height: 135px;
		opacity: 0.35;
		filter: blur(0.5px) grayscale(10%);
		transform: scale(0.9);
		z-index: 1;
		border-radius: 6px;
		overflow: hidden;
		border: 1px solid rgba(255, 255, 255, 0.1);
		transition: all 0.3s ease;
		box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
	}
	.nh-slide-cover-card.active {
		display: block;
		width: 125px;
		height: 187px;
		border: 2px solid #ff5a00 !important; /* Glowing orange border */
		box-shadow: 0 0 15px rgba(255, 90, 0, 0.45);
		opacity: 1;
		z-index: 3;
		transform: scale(1);
		border-radius: 8px;
		overflow: hidden;
	}
	.nh-slide-left {
		width: 100%;
		text-align: center;
		align-items: center;
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	.nh-slide-meta-row {
		display: flex;
		gap: 10px;
		align-items: center;
		justify-content: center;
	}
	.nh-badge.type {
		background: #ff5a00 !important; /* Orange pill */
		border: none !important;
		color: #fff !important;
		font-size: 10px !important;
		font-weight: 800 !important;
		padding: 3px 10px !important;
		border-radius: 4px !important;
	}
	.nh-badge.rating {
		background: transparent !important;
		border: none !important;
		color: #ffaa00 !important;
		font-size: 11px !important;
		font-weight: 700 !important;
		padding: 0 !important;
		display: flex;
		align-items: center;
		gap: 3px;
	}
	.nh-slide-chapters-count-badge {
		display: inline-block;
		color: rgba(255, 255, 255, 0.7);
		font-size: 11px;
		font-weight: 600;
	}
	.nh-slide-title {
		font-size: 20px !important;
		font-weight: 800;
		line-height: 1.3;
		margin: 5px 0 0 0;
		color: #fff;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.nh-slide-excerpt {
		display: -webkit-box !important;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font-size: 11.5px;
		line-height: 1.5;
		color: rgba(255, 255, 255, 0.7);
		margin: 0;
		max-width: 90%;
	}
	.nh-slide-actions {
		margin-top: 10px;
		width: 100%;
		display: flex;
		justify-content: center;
	}
	.nh-slide-btn.read-now {
		background: #ff5a00 !important;
		color: #fff !important;
		padding: 10px 45px; /* Wide premium button */
		font-size: 13px;
		font-weight: 700;
		border-radius: 6px;
		display: inline-flex;
		align-items: center;
		gap: 8px;
		transition: all 0.2s ease;
		box-shadow: 0 4px 15px rgba(255, 90, 0, 0.4);
	}
	.nh-slide-btn.read-now:hover {
		background: #e04f00 !important;
	}
	.nh-slide-mobile-swipe {
		display: block;
		color: rgba(255, 255, 255, 0.4);
		font-size: 10.5px;
		font-weight: 600;
		margin-top: 10px;
		letter-spacing: 0.5px;
	}
	.nh-slider-nav-btn,
	.nh-slider-dots {
		display: none !important;
	}
}
.nh-popular-section {
	margin-bottom: 40px;
	position: relative;
}

.nh-popular-carousel-container {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
}

.nh-popular-slider {
	display: flex;
	gap: 15px;
	overflow-x: auto;
	scroll-behavior: smooth;
	width: 100%;
	padding: 10px 2px 20px 2px;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE */
}

.nh-popular-slider::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}

.nh-popular-card {
	width: 140px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.2s ease;
}

.nh-popular-card:hover {
	transform: translateY(-4px);
}

.nh-popular-cover-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 2 / 3;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.nh-popular-card:hover .nh-popular-cover-wrap {
	border-color: var(--primary-color);
	box-shadow: 0 8px 20px rgba(255, 60, 86, 0.25);
}

.nh-popular-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.nh-popular-card:hover .nh-popular-img {
	transform: scale(1.05);
}

/* Rank & Rating Badges Overlays */
.nh-popular-rating-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(13, 13, 17, 0.8);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255,255,255,0.06);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 3px 7px;
	border-radius: 4px;
	z-index: 6;
}

.nh-popular-rating-badge i {
	color: #eab308;
	margin-right: 2px;
}

.nh-popular-rank {
	position: absolute;
	bottom: -8px;
	left: 6px;
	font-size: 56px;
	font-weight: 900;
	font-style: italic;
	color: #fff;
	line-height: 1;
	z-index: 5;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.8), -2px -2px 0 rgba(0,0,0,0.3);
	user-select: none;
}

.nh-popular-title {
	font-size: 13px;
	font-weight: 700;
	margin: 10px 0 0 0;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
}

.nh-popular-title a {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nh-popular-title a:hover {
	color: var(--primary-color);
}

/* Slider Nav Arrows */
.nh-popular-arrow {
	background: rgba(20, 20, 25, 0.85) !important;
	backdrop-filter: blur(4px);
	border: 1px solid var(--border-color) !important;
	color: #fff !important;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: calc(50% - 30px);
	z-index: 12;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
	transition: all 0.2s ease;
	opacity: 0.8;
}

.nh-popular-arrow:hover {
	background: var(--primary-color) !important;
	border-color: var(--primary-color) !important;
	opacity: 1;
	transform: scale(1.05);
}

.nh-popular-arrow.prev {
	left: -18px;
}

.nh-popular-arrow.next {
	right: -18px;
}

/* Section Header & View All Link */
.nh-home-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	margin-top: 30px;
	border-bottom: 1px solid rgba(255,255,255,0.03);
	padding-bottom: 10px;
}

.nh-home-section-title {
	font-size: 18px;
	font-weight: 800;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.nh-home-section-title::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 18px;
	background: #ff5a00; /* Orange color from screenshot */
	border-radius: 2px;
}

.nh-home-view-all {
	font-size: 13px;
	color: #64748b;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.nh-home-view-all:hover {
	color: var(--primary-color);
}

.nh-latest-updates-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.nh-updates-page-switcher {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #141419;
	padding: 4px;
	border-radius: 6px;
	border: 1px solid var(--border-color);
}

.nh-updates-page-btn {
	min-width: 34px;
	height: 32px;
	padding: 0 10px;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: #94a3b8;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.nh-updates-page-btn:hover,
.nh-updates-page-btn:focus-visible {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}

.nh-updates-page-btn.active {
	background: #ff5a00;
	color: #fff;
}

.nh-update-card--hidden {
	display: none !important;
}

/* Layout switch buttons placeholder styled matching the screenshot */
.nh-layout-selector {
	display: flex;
	gap: 4px;
	background: #141419;
	padding: 4px;
	border-radius: 6px;
	border: 1px solid var(--border-color);
}

.nh-layout-btn {
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
}

.nh-layout-btn.active {
	background: #ff5a00; /* Orange active tag */
	color: #fff;
}

/* Bookmarks layout overrides to separate spacing */
.nh-home-bookmarks-section {
	margin-bottom: 45px;
}

/* Latest Updates Feed (Mangablaze card layout) */
.nh-home-latest-updates-section {
	margin-bottom: 50px;
}

.nh-latest-updates-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 1024px) {
	.nh-latest-updates-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 768px) {
	.nh-latest-updates-grid {
		grid-template-columns: 1fr !important;
	}
}

.nh-update-card {
	background: #101014; /* Dark charcoal card */
	border: 1px solid rgba(255,255,255,0.03);
	border-radius: 8px;
	padding: 0; /* Remove padding to let cover touch borders */
	display: flex;
	min-height: 185px; /* Minimum height matching the cover */
	height: auto; /* Grow dynamically if content overflows */
	box-sizing: border-box;
	align-items: stretch; /* Stretch cover to fill card height exactly */
	overflow: hidden; /* Clips cover corners to parent card border radius */
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.nh-update-card:hover {
	border-color: rgba(255, 60, 86, 0.25);
	transform: translateY(-2px);
}

.nh-update-cover-link {
	width: 123px; /* Cover width matching 2:3 ratio */
	min-height: 185px; /* Minimum height */
	height: auto; /* Stretch dynamically */
	flex-shrink: 0;
	position: relative;
	box-shadow: 2px 0 8px rgba(0,0,0,0.2);
}

.nh-update-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.nh-update-card:hover .nh-update-card-img {
	transform: scale(1.05);
}

.nh-update-card-details {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	min-width: 0; /* Prevents overflow */
	padding: 12px 15px 12px 15px; /* Premium vertical and horizontal padding */
}

.nh-update-card-title {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 3px 0;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
}

.nh-update-card-title a {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nh-update-card-title a:hover {
	color: var(--primary-color);
}

.nh-update-rating-row {
	font-size: 11px;
	font-weight: 700;
	color: #ff5a00; /* Orange rating text */
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 8px;
	text-align: left;
}

.nh-update-chapters-list {
	display: flex;
	flex-direction: column;
	gap: 3px; /* Compact spacing */
}

.nh-update-chapter-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.02);
	padding: 3px 8px; /* Tighter padding for perfect fit inside 185px */
	border-radius: 4px;
	font-size: 10.5px; /* Downsized font for clean fit */
	font-weight: 600;
	color: #cbd5e1;
	text-decoration: none;
	transition: all 0.2s ease;
	line-height: 1.2;
}

.nh-update-chapter-item:hover {
	background: rgba(255, 60, 86, 0.08);
	border-color: rgba(255, 60, 86, 0.15);
	color: #ff6b7d;
}

.nh-update-chapter-item .chap-title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 8px;
	text-align: left;
}

.nh-update-chapter-item .chap-time {
	color: #64748b;
	flex-shrink: 0;
	font-size: 10px;
}

/* =============================================================================
   LATEST UPDATES SWITCHER STATE LAYOUTS
   ============================================================================= */

/* 1. GRID LAYOUT: Simple vertical cards */
.nh-latest-updates-grid.layout-grid {
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
	gap: 15px !important;
}

.nh-latest-updates-grid.layout-grid .nh-update-card {
	flex-direction: column !important;
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	gap: 8px !important;
	box-shadow: none !important;
	transform: none !important;
}

.nh-latest-updates-grid.layout-grid .nh-update-cover-link {
	width: 100% !important;
	aspect-ratio: 2 / 3 !important;
	height: auto !important;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.nh-latest-updates-grid.layout-grid .nh-update-card:hover .nh-update-cover-link {
	border-color: var(--primary-color) !important;
	box-shadow: 0 8px 20px rgba(255, 60, 86, 0.25) !important;
}

.nh-latest-updates-grid.layout-grid .nh-update-card-details {
	padding: 0 !important;
}

.nh-latest-updates-grid.layout-grid .nh-update-card-title {
	font-size: 13px !important;
	margin: 0 !important;
}

.nh-latest-updates-grid.layout-grid .nh-update-rating-row,
.nh-latest-updates-grid.layout-grid .nh-update-chapters-list {
	display: none !important;
}

/* 2. LIST LAYOUT: Simple inline rows */
.nh-latest-updates-grid.layout-list {
	grid-template-columns: 1fr !important;
	gap: 8px !important;
}

.nh-latest-updates-grid.layout-list .nh-update-card {
	padding: 8px 12px !important;
	gap: 10px !important;
	align-items: center !important;
	background: rgba(255, 255, 255, 0.02) !important;
}

.nh-latest-updates-grid.layout-list .nh-update-cover-link {
	display: none !important;
}

.nh-latest-updates-grid.layout-list .nh-update-card-details {
	flex-direction: row !important;
	justify-content: space-between !important;
	align-items: center !important;
	width: 100% !important;
}

.nh-latest-updates-grid.layout-list .nh-update-card-title {
	font-size: 13px !important;
	margin: 0 !important;
	flex-grow: 1 !important;
}

.nh-latest-updates-grid.layout-list .nh-update-rating-row {
	margin-bottom: 0 !important;
	margin-right: 15px !important;
}

.nh-latest-updates-grid.layout-list .nh-update-chapters-list {
	display: block !important;
}

/* In List mode, only show the first (latest) chapter link */
.nh-latest-updates-grid.layout-list .nh-update-chapter-item {
	display: inline-flex !important;
	margin-bottom: 0 !important;
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
}

.nh-latest-updates-grid.layout-list .nh-update-chapter-item:not(:first-child) {
	display: none !important;
}

.nh-latest-updates-grid.layout-list .nh-update-chapter-item .chap-title {
	color: var(--primary-color) !important;
	font-weight: 700 !important;
}

.nh-latest-updates-grid.layout-list .nh-update-chapter-item .chap-time {
	margin-left: 8px;
}

.nh-update-no-chapters {
	font-size: 12px;
	color: #64748b;
	font-style: italic;
	text-align: left;
}

@media (max-width: 768px) {
	.nh-popular-arrow {
		display: none !important;
	}
	.nh-latest-updates-grid {
		grid-template-columns: 1fr;
	}
	.nh-layout-selector {
		display: none !important;
	}
	.nh-latest-updates-controls {
		width: 100%;
		justify-content: center;
	}
	.nh-pagination-row {
		justify-content: center;
	}
	.nh-pagination-summary {
		width: 100%;
		text-align: center;
	}
}

.nh-section-title {
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 20px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.nh-section-title i {
	color: var(--primary-color);
}

.nh-bookmarks-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 20px;
}

.nh-bookmark-card-vertical {
	background: transparent;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	position: relative;
}

.nh-bookmark-card-vertical:hover {
	transform: translateY(-4px);
}

.nh-bookmark-cover-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 2 / 3;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nh-bookmark-card-vertical:hover .nh-bookmark-cover-wrapper {
	border-color: var(--primary-color);
	box-shadow: 0 8px 20px rgba(255, 60, 86, 0.25);
}

.nh-bookmark-vertical-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.nh-bookmark-card-vertical:hover .nh-bookmark-vertical-img {
	transform: scale(1.05);
}

/* Badges Overlay */
.nh-bookmark-badge-new {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #ff3c56; /* Neon Crimson */
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 4px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	box-shadow: 0 0 10px rgba(255, 60, 86, 0.8);
	z-index: 10;
	animation: nhPulseNew 2s infinite alternate;
}

@keyframes nhPulseNew {
	0% {
		box-shadow: 0 0 4px rgba(255, 60, 86, 0.5);
	}
	100% {
		box-shadow: 0 0 12px rgba(255, 60, 86, 1);
	}
}

.nh-bookmark-badge-chapter {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(13, 13, 17, 0.95) !important;
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.25) !important;
	color: #fff !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	padding: 3px 9px;
	border-radius: 4px;
	text-decoration: none;
	z-index: 10;
	transition: all 0.2s ease;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.nh-bookmark-badge-chapter:hover {
	background: var(--primary-color) !important;
	border-color: var(--primary-color) !important;
}

/* Bottom Meta Info */
.nh-bookmark-info-bottom {
	padding: 8px 2px 0 2px;
	text-align: left;
}

.nh-bookmark-title-vertical {
	font-size: 13.5px;
	font-weight: 700;
	margin: 0 0 2px 0;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nh-bookmark-title-vertical a {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nh-bookmark-title-vertical a:hover {
	color: var(--primary-color);
}

.nh-bookmark-time-vertical {
	font-size: 11px;
	color: var(--text-color-muted);
	display: block;
}

.nh-empty-bookmarks-text,
.nh-empty-text {
	font-size: 14px;
	color: var(--text-color-muted);
	font-style: italic;
	margin: 0;
}

/* Bookmarks Promo Login */
.nh-bookmarks-login-promo {
	background: var(--card-background-color);
	border: 1px dashed var(--border-color);
	border-radius: 8px;
	padding: 40px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.nh-promo-card h3 {
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 10px 0;
}

.nh-promo-card p {
	color: var(--text-color-alt);
	font-size: 13px;
	margin: 0 0 20px 0;
}

.nh-promo-login-btn {
	background: var(--primary-color);
	color: #fff;
	border: none;
	padding: 10px 24px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.nh-promo-login-btn:hover {
	background: var(--primary-color-hover);
	box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

/* Latest Releases Table */
.nh-latest-releases-table-wrapper {
	background: var(--card-background-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	overflow-x: auto;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.nh-latest-releases-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 500px;
}

.nh-latest-releases-table th {
	background: rgba(255, 255, 255, 0.02);
	border-bottom: 1px solid var(--border-color);
	color: var(--text-color-alt);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 14px 20px;
	letter-spacing: 0.5px;
	text-align: left;
}

.nh-latest-releases-table td {
	padding: 14px 20px;
	border-bottom: 1px solid var(--border-color);
	font-size: 13px;
}

.nh-latest-releases-table tr:last-child td {
	border-bottom: none;
}

.nh-table-title-cell {
	width: 45%;
}

.nh-table-chapter-cell {
	width: 40%;
}

.nh-table-time-cell {
	width: 15%;
	color: var(--text-color-muted);
}

.nh-table-series-link {
	color: #fff;
	text-decoration: none;
	font-weight: 700;
}

.nh-table-series-link:hover {
	color: var(--primary-color);
}

.nh-table-chapter-link {
	color: var(--text-color-alt);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.nh-table-chapter-link:hover {
	color: var(--primary-color);
}

.nh-table-chapter-link i {
	font-size: 9px;
	color: var(--primary-color);
}

/* New Novels Grid layout */
.nh-new-novels-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
}

.nh-new-novel-card {
	background: var(--card-background-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	transition: all 0.2s ease;
}

.nh-new-novel-card:hover {
	transform: translateY(-2px);
	border-color: var(--primary-color);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.nh-new-novel-cover {
	width: 85px;
	height: 120px;
	flex-shrink: 0;
	overflow: hidden;
}

.nh-new-novel-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nh-new-novel-details {
	padding: 15px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.nh-new-novel-title {
	font-size: 14px;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
}

.nh-new-novel-title a {
	color: #fff;
	text-decoration: none;
}

.nh-new-novel-title a:hover {
	color: var(--primary-color);
}

.nh-new-novel-desc {
	font-size: 11px;
	color: var(--text-color-muted);
	line-height: 1.5;
	margin: 6px 0;
}

.nh-new-novel-genres {
	display: flex;
	gap: 6px;
	margin-top: 5px;
}

.nh-genre-pill-mini {
	font-size: 9px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--text-color-alt);
	padding: 2px 8px;
	border-radius: 10px;
}

/* =============================================================================
   MODERNIZED CHAPTER INDEX GRID (Ultra-Compact Cards)
   ============================================================================= */
/* GRID VIEW STYLES */
.story__chapters[data-view="grid"] .chapter-group__list {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
	gap: 8px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.story__chapters[data-view="grid"] .chapter-group__list-item {
	background: rgba(255, 255, 255, 0.015) !important;
	border: 1px solid rgba(255, 255, 255, 0.04) !important;
	border-left: 2px solid #ff5a00 !important; /* Thin glowing orange line */
	border-radius: 6px !important;
	padding: 10px 14px !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: space-between !important;
	gap: 6px !important;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
	margin-bottom: 0 !important;
	position: relative;
	height: 100%;
}

.story__chapters[data-view="grid"] .chapter-group__list-item:hover {
	border-color: rgba(255, 90, 0, 0.4) !important;
	border-left-color: #ff7700 !important;
	box-shadow: 0 6px 20px rgba(255, 90, 0, 0.12) !important;
	background: rgba(255, 255, 255, 0.04) !important;
	transform: translateY(-2px) !important;
}

.nh-chapter-title-row {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	min-width: 0;
}

.story__chapters[data-view="grid"] .nh-chapter-title-row {
	padding-right: 20px;
}

.story__chapters[data-view="grid"] .nh-chapter-title-row .chapter-group__list-item-link {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #e2e8f0 !important;
	text-decoration: none;
	transition: color 0.2s ease;
	max-width: 100% !important;
	width: auto !important;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 0 !important;
	text-align: left;
}

.story__chapters[data-view="grid"] .chapter-group__list-item-link:hover {
	color: #ff5a00 !important;
}

.story__chapters[data-view="grid"] .chapter-group__list-item-icon {
	display: none !important;
}

/* Custom modern metadata row containing Views, Words, Date */
.story__chapters[data-view="grid"] .nh-chapter-meta-row {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	font-size: 9.5px !important;
	color: #64748b !important;
	margin-right: 0 !important;
	flex-shrink: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.04);
	padding-top: 6px;
}

.story__chapters[data-view="grid"] .nh-chapter-meta-item {
	display: flex;
	align-items: center;
	gap: 4px;
	color: #94a3b8 !important;
}

.story__chapters[data-view="grid"] .nh-chapter-meta-item i {
	color: #64748b !important;
}

/* Checkmark button positioning in the top-right corner of the card */
.story__chapters[data-view="grid"] .chapter-group__list-item-checkmark {
	position: absolute !important;
	top: 7px !important;
	right: 8px !important;
	margin-left: 0 !important;
	background: transparent !important;
	border: none !important;
	color: var(--text-color-muted) !important;
	cursor: pointer;
	font-size: 11px !important;
}

.story__chapters[data-view="grid"] .chapter-group__list-item-checkmark:hover,
.story__chapters[data-view="grid"] .chapter-group__list-item-checkmark.checked {
	color: #10b981 !important;
}


/* LIST VIEW STYLES */
.story__chapters[data-view="list"] .chapter-group__list {
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.story__chapters[data-view="list"] .chapter-group__list-item {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: space-between !important;
	background: rgba(255, 255, 255, 0.015) !important;
	border: 1px solid rgba(255, 255, 255, 0.04) !important;
	border-left: 2px solid #ff5a00 !important;
	border-radius: 4px !important;
	padding: 8px 16px !important;
	gap: 15px !important;
	transition: all 0.2s ease !important;
	margin-bottom: 0 !important;
	position: relative;
}

.story__chapters[data-view="list"] .chapter-group__list-item:hover {
	border-color: rgba(255, 90, 0, 0.4) !important;
	border-left-color: #ff7700 !important;
	background: rgba(255, 255, 255, 0.03) !important;
	box-shadow: 0 4px 12px rgba(255, 90, 0, 0.08) !important;
}

.story__chapters[data-view="list"] .nh-chapter-title-row {
	flex: 1 1 auto;
	min-width: 0;
}

.story__chapters[data-view="list"] .nh-chapter-title-row .chapter-group__list-item-link {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #e2e8f0 !important;
	text-decoration: none;
	transition: color 0.2s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
	display: block;
}

.story__chapters[data-view="list"] .chapter-group__list-item-link:hover {
	color: #ff5a00 !important;
}

.story__chapters[data-view="list"] .nh-chapter-meta-row {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 15px !important;
	font-size: 9.5px !important;
	color: #64748b !important;
	border-top: none !important;
	padding-top: 0 !important;
	width: auto !important;
	order: 2 !important;
}

.story__chapters[data-view="list"] .nh-chapter-meta-item {
	display: flex;
	align-items: center;
	gap: 4px;
	color: #94a3b8 !important;
}

.story__chapters[data-view="list"] .nh-chapter-meta-item i {
	color: #64748b !important;
}

.story__chapters[data-view="list"] .chapter-group__list-item-checkmark {
	position: static !important;
	order: 3 !important;
	margin-left: 10px !important;
	background: transparent !important;
	border: none !important;
	color: var(--text-color-muted) !important;
	cursor: pointer;
	font-size: 11px !important;
}

.story__chapters[data-view="list"] .chapter-group__list-item-checkmark:hover,
.story__chapters[data-view="list"] .chapter-group__list-item-checkmark.checked {
	color: #10b981 !important;
}


/* Handle future, password icons if they exist in the link prefix */
.chapter-group__list-item-status {
	font-size: 9.5px;
	padding: 1px 5px;
	border-radius: 3px;
	background: rgba(239, 68, 68, 0.15);
	color: #ef4444;
	margin-right: 4px;
}

/* Range summary display color theme update */
.nh-pagination-summary {
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #ff5a00 !important; /* Glow/orange color matching theme */
	letter-spacing: 0.3px;
	user-select: none;
}

/* Styling for modern search and sort controls row */
.nh-chapter-controls {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	margin-bottom: 25px !important;
	gap: 15px !important;
	width: 100% !important;
	flex-wrap: wrap !important;
}

.nh-search-wrapper {
	flex: 1 !important;
	max-width: 320px !important;
	min-width: 220px !important;
}

.nh-search-input {
	width: 100% !important;
	background: rgba(255, 255, 255, 0.02) !important;
	border: 1px solid rgba(255, 255, 255, 0.06) !important;
	color: #fff !important;
	font-size: 12.5px !important;
	padding: 8px 16px !important;
	border-radius: 20px !important;
	transition: all 0.2s ease !important;
}

.nh-search-input:focus {
	border-color: #ff5a00 !important;
	background: rgba(255, 255, 255, 0.04) !important;
	box-shadow: 0 0 10px rgba(255, 90, 0, 0.2) !important;
	outline: none !important;
}

.nh-sort-btn {
	background: rgba(255, 255, 255, 0.02) !important;
	border: 1px solid rgba(255, 255, 255, 0.06) !important;
	color: #cbd5e1 !important;
	padding: 8px 16px !important;
	border-radius: 20px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
}

.nh-sort-btn:hover {
	background: #ff5a00 !important;
	border-color: #ff5a00 !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(255, 90, 0, 0.25) !important;
}

/* Mobile synopsis sits inside hero card */
.nh-story-mobile .nh-story-summary {
	width: 100%;
	margin-top: 0;
	text-align: left;
	background: rgba(0, 0, 0, 0.18);
	border-color: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
	.chapter-group__list {
		grid-template-columns: 1fr !important;
	}
}

/* =============================================================================
   NEW SERIES SECTION (Nine Heavens)
   ============================================================================= */
.nh-home-new-series-section,
.nh-home-completed-series-section {
	margin-top: 50px;
	margin-bottom: 50px;
}

.nh-completed-series-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	padding: 2px 6px;
	border-radius: 4px;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

.nh-new-series-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
	margin-top: 25px;
}

.nh-new-series-card {
	background: #101014;
	border: 1px solid rgba(255, 255, 255, 0.03);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nh-new-series-card:hover {
	border-color: rgba(255, 60, 86, 0.25);
	transform: translateY(-4px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.nh-new-series-cover-link {
	position: relative;
	width: 100%;
	aspect-ratio: 2 / 3;
	display: block;
	overflow: hidden;
	background: #0d0d0f;
}

.nh-new-series-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.nh-new-series-card:hover .nh-new-series-img {
	transform: scale(1.06);
}

.nh-new-series-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: linear-gradient(135deg, #ff3c56, #ff1a3c);
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	padding: 2px 6px;
	border-radius: 4px;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 6px rgba(255, 60, 86, 0.4);
	animation: nhPulse 2s infinite;
}

.nh-new-series-rating-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.05);
	color: #ffaa00;
	font-size: 9.5px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 3px;
}

.nh-new-series-meta {
	padding: 12px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.nh-new-series-title {
	font-size: 13.5px;
	font-weight: 700;
	margin: 0 0 6px 0;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nh-new-series-title a {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nh-new-series-title a:hover {
	color: var(--primary-color);
}

.nh-new-series-genres {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 8px;
}

.nh-new-series-genres .genre-pill {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.02);
	color: #94a3b8;
	font-size: 9px;
	font-weight: 600;
	padding: 1.5px 5px;
	border-radius: 3px;
}

.nh-new-series-excerpt {
	font-size: 10.5px;
	line-height: 1.4;
	color: #64748b;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Responsive constraints for New Series Grid */
@media (max-width: 1200px) {
	.nh-new-series-grid {
		grid-template-columns: repeat(4, 1fr) !important;
	}
}

@media (max-width: 768px) {
	.nh-new-series-grid {
		grid-template-columns: repeat(3, 1fr) !important;
		gap: 15px;
	}
}

@media (max-width: 480px) {
	.nh-new-series-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 10px;
	}
}

/* =============================================================================
   POPULAR SWITCHER & VIEW COUNT OVERLAYS (Nine Heavens)
   ============================================================================= */
.nh-popular-switcher {
	display: flex;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 6px;
	padding: 3px;
	gap: 2px;
}

.nh-popular-btn {
	font-size: 11px;
	font-weight: 700;
	color: #94a3b8;
	padding: 5px 12px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	user-select: none;
}

.nh-popular-btn.active {
	background: #ff5a00;
	color: #fff;
}

.nh-popular-btn:hover:not(.active) {
	color: #fff;
	background: rgba(255, 255, 255, 0.05);
}

/* Toggle visibility of active popular today slider */
.nh-popular-slider {
	display: none !important;
}

.nh-popular-slider.active {
	display: flex !important;
}

/* Style ratings badge inside popular slider to show eye views icon */
.nh-popular-rating-badge {
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #ffaa00;
	font-size: 9.5px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.nh-popular-rating-badge i {
	font-size: 9px;
}

/* Style dynamic NEW badge on recently updated chapter items (last 2 days) */
.nh-chap-new-badge,
.nh-chapter-new-badge {
	background: #ff3c56 !important;
	color: #fff !important;
	font-size: 9px !important;
	font-weight: 800 !important;
	padding: 2px 7px !important;
	border-radius: 4px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	box-shadow: 0 0 5px rgba(255, 60, 86, 0.5) !important;
	display: inline-block !important;
	line-height: 1 !important;
	text-decoration: none !important;
	flex-shrink: 0;
}

/* Chapter index: NEW badge placement (list + grid views) */
.story__chapters .nh-chapter-new-badge {
	animation: nh-new-badge-pulse 2s ease-in-out infinite;
}

/* List view: NEW replaces date in meta row (keeps chapter number visible in title) */
.story__chapters[data-view="list"] .nh-chapter-title-row .nh-chapter-new-badge--title {
	display: none !important;
}

.story__chapters[data-view="list"] .nh-chapter-meta-item.date .nh-chapter-new-badge--meta {
	display: inline-block !important;
}

.story__chapters[data-view="list"] .nh-chapter-meta-item.date.nh-chapter-meta-item--new .nh-chapter-meta-date-text {
	display: none !important;
}

/* Grid view: NEW stays inline with title; date always shown in meta row */
.story__chapters[data-view="grid"] .nh-chapter-meta-item.date .nh-chapter-new-badge--meta {
	display: none !important;
}

.story__chapters[data-view="list"] .nh-chapter-title-row .nh-chapter-new-badge,
.story__chapters[data-view="grid"] .nh-chapter-title-row .nh-chapter-new-badge--title {
	margin: 0;
	flex-shrink: 0;
}

.story__chapters[data-view="list"] .chapter-group__list-item._is-new {
	border-left-color: #ff3c56 !important;
}

.story__chapters[data-view="grid"] .nh-chapter-title-row .nh-chapter-new-badge {
	margin: 0;
	flex-shrink: 0;
}

.story__chapters[data-view="grid"] .chapter-group__list-item._is-new {
	border-left-color: #ff3c56 !important;
	box-shadow: 0 0 12px rgba(255, 60, 86, 0.08) !important;
}

@keyframes nh-new-badge-pulse {
	0%, 100% { box-shadow: 0 0 5px rgba(255, 60, 86, 0.5); }
	50% { box-shadow: 0 0 10px rgba(255, 60, 86, 0.85); }
}

/* Reset and style Fictioneer's chapter folding toggle item inside the grid */
.chapter-group__list-item._folding-toggle {
	background: transparent !important;
	border: none !important;
	border-left: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	height: auto !important;
	min-height: unset !important;
	grid-column: 1 / -1 !important; /* Make toggle span across the entire row width */
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 15px 0 !important;
}

.chapter-group__folding-toggle {
	background: rgba(255, 255, 255, 0.03) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	color: #cbd5e1 !important;
	padding: 8px 24px !important;
	border-radius: 20px !important;
	font-weight: 700 !important;
	font-size: 12px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	display: inline-block !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
}

.chapter-group__folding-toggle:hover {
	background: #ff5a00 !important;
	border-color: #ff5a00 !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(255, 90, 0, 0.25) !important;
}


/* =============================================================================
   LOCKED CHAPTER OVERLAY
   ============================================================================= */

.nh-locked-chapter-overlay {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 45vh;
	padding: 40px 20px;
}

.nh-lock-card {
	background: rgba(21, 24, 36, 0.95);
	border: 1px solid rgba(255, 165, 0, 0.25);
	border-radius: 16px;
	padding: 48px 40px;
	max-width: 520px;
	width: 100%;
	text-align: center;
	box-shadow: 0 0 60px rgba(255, 165, 0, 0.08), 0 8px 32px rgba(0,0,0,0.5);
}

.nh-lock-icon-wrap {
	font-size: 52px;
	color: #ffa500;
	margin-bottom: 16px;
	animation: nh-lock-pulse 2.5s infinite ease-in-out;
}

@keyframes nh-lock-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.08); opacity: 0.85; }
}

.nh-lock-card h2 {
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0 0 10px;
	color: #f8fafc;
}

.nh-lock-desc {
	color: #94a3b8;
	font-size: 0.9rem;
	line-height: 1.6;
	margin-bottom: 20px;
}

.nh-lock-timer {
	background: rgba(255, 165, 0, 0.08);
	border: 1px solid rgba(255, 165, 0, 0.2);
	border-radius: 10px;
	padding: 12px 18px;
	margin-bottom: 22px;
	font-size: 0.9rem;
	color: #ffa500;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.nh-timer-countdown {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.5px;
}

.nh-lock-details {
	display: flex;
	justify-content: center;
	gap: 28px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.nh-lock-price,
.nh-lock-balance {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 8px;
	padding: 10px 20px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #e2e8f0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.nh-lock-price i { color: #ffc107; }
.nh-lock-balance i { color: #22c55e; }

.nh-lock-actions {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
}

.nh-lock-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 32px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
}

.nh-lock-btn.primary {
	background: linear-gradient(135deg, #ff8c00, #ff5e00);
	color: #fff;
	box-shadow: 0 4px 18px rgba(255, 94, 0, 0.3);
}

.nh-lock-btn.primary:hover {
	background: linear-gradient(135deg, #ff9a20, #ff7020);
	box-shadow: 0 6px 24px rgba(255, 94, 0, 0.45);
	transform: translateY(-1px);
}

@media (max-width: 600px) {
	.nh-lock-card {
		padding: 32px 20px;
	}
	.nh-lock-details {
		flex-direction: column;
		gap: 10px;
	}
}


/* =============================================================================
   COIN SHOP PAGE
   ============================================================================= */

.nh-coin-shop {
	max-width: 1120px;
	margin: 0 auto 56px;
	padding: 0 20px 20px;
}

.nh-shop-hero {
	position: relative;
	margin: 28px 0 32px;
	padding: 36px 28px 32px;
	border-radius: 24px;
	overflow: hidden;
	background:
		radial-gradient(circle at top right, rgba(255, 193, 7, 0.14), transparent 42%),
		linear-gradient(160deg, rgba(24, 28, 42, 0.98), rgba(16, 18, 28, 0.98));
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.nh-shop-hero-glow {
	position: absolute;
	inset: auto -80px -120px auto;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 140, 0, 0.22), transparent 70%);
	pointer-events: none;
}

.nh-shop-hero-inner {
	position: relative;
	z-index: 1;
	text-align: center;
}

.nh-shop-eyebrow {
	display: inline-block;
	margin: 0 0 10px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 193, 7, 0.1);
	border: 1px solid rgba(255, 193, 7, 0.18);
	color: #fbbf24;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nh-shop-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0 0 12px;
	font-size: clamp(2rem, 4vw, 2.6rem);
	font-weight: 800;
	color: #f8fafc;
}

.nh-shop-title-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(255, 193, 7, 0.22), rgba(255, 94, 0, 0.18));
	color: #ffc107;
}

.nh-shop-lead {
	max-width: 640px;
	margin: 0 auto 24px;
	color: #94a3b8;
	font-size: 1.02rem;
	line-height: 1.6;
}

.nh-shop-wallet {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	max-width: 520px;
	margin: 0 auto;
}

.nh-shop-wallet-stat {
	padding: 18px 22px;
	border-radius: 18px;
	background: rgba(255, 193, 7, 0.08);
	border: 1px solid rgba(255, 193, 7, 0.18);
}

.nh-shop-wallet-label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #94a3b8;
}

.nh-shop-wallet-value {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 8px;
	font-size: clamp(2rem, 5vw, 2.5rem);
	font-weight: 800;
	color: #ffc107;
}

.nh-shop-wallet-value span {
	font-size: 1rem;
	font-weight: 600;
	color: #cbd5e1;
}

.nh-shop-wallet-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #64748b;
	font-size: 0.86rem;
}

.nh-shop-wallet-note i {
	color: #f59e0b;
}

.nh-shop-login-card {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 22px 28px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.nh-shop-login-card p {
	margin: 0;
	color: #94a3b8;
}

.nh-shop-login-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 22px;
	border-radius: 12px;
	background: linear-gradient(135deg, #ff8c00, #ff5e00);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nh-shop-login-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(255, 94, 0, 0.28);
}

.nh-shop-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 34px;
}

.nh-shop-step {
	padding: 20px 18px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.nh-shop-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-bottom: 12px;
	border-radius: 999px;
	background: rgba(255, 193, 7, 0.14);
	color: #fbbf24;
	font-size: 0.82rem;
	font-weight: 800;
}

.nh-shop-step h2 {
	margin: 0 0 8px;
	font-size: 1rem;
	font-weight: 700;
	color: #f8fafc;
}

.nh-shop-step p {
	margin: 0;
	color: #94a3b8;
	font-size: 0.88rem;
	line-height: 1.5;
}

.nh-shop-packages-section,
.nh-shop-activity {
	margin-bottom: 34px;
}

.nh-shop-section-head {
	margin-bottom: 22px;
	text-align: center;
}

.nh-shop-section-head h2 {
	margin: 0 0 8px;
	font-size: 1.45rem;
	font-weight: 800;
	color: #f8fafc;
}

.nh-shop-section-head h2 i {
	margin-right: 8px;
	color: #ffc107;
}

.nh-shop-section-head p {
	margin: 0;
	color: #94a3b8;
	font-size: 0.92rem;
}

.nh-shop-packages {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.nh-package-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 24px 20px 20px;
	border-radius: 20px;
	background: rgba(18, 21, 32, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.07);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nh-package-card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 193, 7, 0.24);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.nh-package-card.is-popular {
	border-color: rgba(255, 193, 7, 0.34);
	box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.08), 0 18px 36px rgba(255, 140, 0, 0.08);
}

.nh-package-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	padding: 5px 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, #ffc107, #ff8c00);
	color: #111827;
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.nh-package-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin: 0 auto 16px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.04);
}

.nh-package-icon {
	font-size: 1.7rem;
}

.nh-package-bronze .nh-package-icon-wrap { background: rgba(205, 127, 50, 0.14); color: #cd7f32; }
.nh-package-silver .nh-package-icon-wrap { background: rgba(192, 192, 192, 0.12); color: #d1d5db; }
.nh-package-gold .nh-package-icon-wrap { background: rgba(255, 215, 0, 0.14); color: #ffd700; }
.nh-package-platinum .nh-package-icon-wrap { background: rgba(229, 228, 226, 0.12); color: #f8fafc; }

.nh-package-name {
	margin: 0 0 6px;
	text-align: center;
	font-size: 1.05rem;
	font-weight: 800;
	color: #f8fafc;
}

.nh-package-tagline {
	margin: 0 0 18px;
	text-align: center;
	color: #64748b;
	font-size: 0.82rem;
	line-height: 1.45;
	min-height: 2.4em;
}

.nh-package-coins {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 6px;
	margin-bottom: 10px;
}

.nh-package-coins strong {
	font-size: 1.8rem;
	font-weight: 800;
	color: #ffc107;
}

.nh-package-coins span {
	color: #94a3b8;
	font-size: 0.88rem;
	font-weight: 600;
}

.nh-package-price {
	margin-bottom: 18px;
	text-align: center;
}

.nh-package-price-main {
	display: block;
	font-size: 1.35rem;
	font-weight: 800;
	color: #e2e8f0;
}

.nh-package-price-sub {
	display: block;
	margin-top: 4px;
	color: #64748b;
	font-size: 0.78rem;
}

.nh-package-action {
	margin-top: auto;
}

.nh-buy-pack-btn,
.nh-buy-pack-btn--link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 0 18px;
	border: none;
	border-radius: 12px;
	background: linear-gradient(135deg, #ff8c00, #ff5e00);
	color: #fff !important;
	font-weight: 700;
	font-size: 0.88rem;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nh-buy-pack-btn:hover:not(:disabled),
.nh-buy-pack-btn--link:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(255, 94, 0, 0.28);
}

.nh-buy-pack-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.nh-shop-activity-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(18, 21, 32, 0.96);
}

.nh-shop-activity-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nh-shop-activity-item:last-child {
	border-bottom: none;
}

.nh-shop-activity-main {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.nh-shop-activity-main strong {
	color: #f8fafc;
	font-size: 0.94rem;
}

.nh-shop-activity-main span {
	color: #64748b;
	font-size: 0.82rem;
}

.nh-shop-activity-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	flex-shrink: 0;
}

.nh-shop-activity-coins {
	color: #f59e0b;
	font-size: 0.86rem;
	font-weight: 700;
}

.nh-shop-activity-item.is-refund .nh-shop-activity-coins {
	color: #4ade80;
}

.nh-shop-activity-meta time {
	color: #64748b;
	font-size: 0.76rem;
}

.nh-shop-activity-empty,
.nh-shop-unavailable {
	padding: 34px 24px;
	border-radius: 18px;
	text-align: center;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.nh-shop-activity-empty i,
.nh-shop-unavailable-icon {
	display: block;
	margin-bottom: 14px;
	font-size: 2rem;
	color: #ffc107;
}

.nh-shop-activity-empty p,
.nh-shop-unavailable p {
	margin: 0;
	color: #94a3b8;
	line-height: 1.6;
}

.nh-shop-unavailable h2 {
	margin: 0 0 10px;
	color: #f8fafc;
}

@media (max-width: 1024px) {
	.nh-shop-packages {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.nh-shop-hero {
		padding: 28px 20px 24px;
	}

	.nh-shop-steps {
		grid-template-columns: 1fr;
	}

	.nh-shop-packages {
		grid-template-columns: 1fr;
	}

	.nh-shop-activity-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.nh-shop-activity-meta {
		align-items: flex-start;
	}
}


/* =============================================================================
   CHECKOUT MODAL (Frontend - Coin Shop)
   ============================================================================= */

.nh-checkout-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

body.nh-modal-open {
	overflow: hidden !important;
}

.nh-checkout-modal-box {
	background: #151824;
	border: 1px solid rgba(255, 193, 7, 0.15);
	border-radius: 16px;
	width: 100%;
	max-width: 480px;
	box-shadow: 0 8px 40px rgba(0,0,0,0.6);
	overflow: hidden;
}

.nh-checkout-modal-header {
	background: rgba(255, 193, 7, 0.06);
	border-bottom: 1px solid rgba(255, 193, 7, 0.12);
	padding: 16px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nh-checkout-modal-header h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #f8fafc;
}

.nh-checkout-modal-header h3 i {
	color: #ffc107;
	margin-right: 6px;
}

.nh-checkout-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	color: #94a3b8;
	cursor: pointer;
}

.nh-checkout-modal-close:hover {
	color: #ff3c56;
}

.nh-checkout-modal-body {
	padding: 24px;
}

.nh-order-summary {
	background: rgba(255, 193, 7, 0.04);
	border: 1px solid rgba(255, 193, 7, 0.1);
	border-radius: 10px;
	padding: 14px 18px;
	margin-bottom: 20px;
}

.summary-row {
	display: flex;
	justify-content: space-between;
}

.summary-label {
	color: #94a3b8;
	font-size: 0.9rem;
}

.summary-value {
	color: #ffc107;
	font-weight: 700;
	font-size: 1.1rem;
}

.nh-checkout-fields {
	margin-bottom: 16px;
}

.nh-checkout-field {
	margin-bottom: 14px;
}

.nh-checkout-field label {
	display: block;
	margin-bottom: 5px;
	font-size: 0.82rem;
	color: #cbd5e1;
}

.nh-checkout-field input {
	width: 100%;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	padding: 10px 14px;
	color: #e2e8f0;
	font-size: 0.9rem;
}

.nh-checkout-field input:focus {
	border-color: #ffc107;
	box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.15);
	outline: none;
}

.nh-checkout-row-fields {
	display: flex;
	gap: 12px;
}

.nh-checkout-field.half {
	flex: 1;
}

.nh-simulation-note {
	background: rgba(59, 130, 246, 0.06);
	border: 1px solid rgba(59, 130, 246, 0.15);
	border-radius: 8px;
	padding: 10px 14px;
}

.nh-simulation-note p {
	margin: 0;
	font-size: 0.78rem;
	color: #60a5fa;
}

.nh-simulation-note i {
	margin-right: 4px;
}

.nh-checkout-modal-footer {
	background: rgba(255, 193, 7, 0.03);
	border-top: 1px solid rgba(255, 193, 7, 0.1);
	padding: 14px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nh-checkout-modal-cancel {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #94a3b8;
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.85rem;
	transition: all 0.2s;
}

.nh-checkout-modal-cancel:hover {
	border-color: rgba(255, 255, 255, 0.2);
	color: #e2e8f0;
}

.nh-checkout-modal-pay {
	background: linear-gradient(135deg, #ffc107, #ff8c00) !important;
	color: #000 !important;
	border: none !important;
	padding: 10px 24px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
	transition: all 0.2s;
}

.nh-checkout-modal-pay:hover {
	box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
	transform: translateY(-1px);
}


/* =============================================================================
   myCred SHORTCODE DARK THEME OVERRIDES
   ============================================================================= */

/* buyCRED form */
.nh-mycred-buy-area .mycred-buy-form,
.nh-mycred-buy-area form {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	color: #f8fafc !important;
}

.nh-mycred-buy-area label {
	color: #cbd5e1 !important;
	font-weight: 600 !important;
}

.nh-mycred-buy-area input[type="text"],
.nh-mycred-buy-area input[type="number"],
.nh-mycred-buy-area select {
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 8px !important;
	color: #e2e8f0 !important;
	padding: 10px 14px !important;
}

.nh-mycred-buy-area input:focus,
.nh-mycred-buy-area select:focus {
	border-color: #ffc107 !important;
	box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.15) !important;
	outline: none !important;
}

.nh-mycred-buy-area input[type="submit"],
.nh-mycred-buy-area button[type="submit"],
.nh-mycred-buy-area .mycred-buy {
	background: linear-gradient(135deg, #ff8c00, #ff5e00) !important;
	color: #fff !important;
	border: none !important;
	padding: 12px 28px !important;
	border-radius: 10px !important;
	font-weight: 700 !important;
	font-size: 0.9rem !important;
	cursor: pointer !important;
	transition: all 0.2s !important;
}

.nh-mycred-buy-area input[type="submit"]:hover,
.nh-mycred-buy-area button[type="submit"]:hover,
.nh-mycred-buy-area .mycred-buy:hover {
	background: linear-gradient(135deg, #ff9a20, #ff7020) !important;
	box-shadow: 0 10px 24px rgba(255, 94, 0, 0.28) !important;
	transform: translateY(-1px) !important;
}

.nh-package-action .nh-mycred-buy-area input[name="amount"],
.nh-package-action .nh-mycred-buy-area input[name="cred_amount"],
.nh-package-action .nh-mycred-buy-area .mycred-buy-amount-wrap {
	display: none !important;
}

.nh-package-action .nh-mycred-buy-area p:empty {
	display: none !important;
}


/* Mobile rate widget styles live in the mobile layout block above */


/* =============================================================================
   READERS HUB PAGE
   ============================================================================= */

.nh-readers-hub-container {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
}

.nh-hub-header {
	text-align: center;
	margin-bottom: 40px;
}

.nh-hub-header h1 {
	font-size: 2.5rem;
	font-weight: 800;
	color: #f8fafc;
	margin-bottom: 10px;
}

.nh-hub-header h1 i {
	color: #3b82f6;
}

.nh-hub-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

@media (max-width: 900px) {
	.nh-hub-grid {
		grid-template-columns: 1fr;
	}
}

.nh-hub-card {
	background: rgba(21, 24, 36, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 16px;
	padding: 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nh-hub-card .card-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #f8fafc;
	margin: 0 0 6px;
}

.nh-hub-card .card-title i {
	color: #ffc107;
	margin-right: 6px;
}

.nh-hub-card .card-subtitle {
	color: #94a3b8;
	font-size: 0.9rem;
	margin: 0 0 24px;
}

/* Leaderboard list styling */
.nh-leaderboard-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nh-leaderboard-item {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.04);
	border-radius: 12px;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.nh-leaderboard-item:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.03);
}

.nh-leaderboard-rank {
	width: 36px;
	font-weight: 800;
	font-size: 0.95rem;
	color: #64748b;
	display: flex;
	align-items: center;
}

.nh-leaderboard-rank.rank-gold { color: #ffd700; font-size: 1.2rem; }
.nh-leaderboard-rank.rank-silver { color: #c0c0c0; font-size: 1.2rem; }
.nh-leaderboard-rank.rank-bronze { color: #cd7f32; font-size: 1.2rem; }

.animate-medal {
	animation: pulseMedal 2s infinite ease-in-out;
}

@keyframes pulseMedal {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.15); filter: drop-shadow(0 0 4px currentColor); }
}

.nh-leaderboard-avatar {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.nh-leaderboard-avatar img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.1);
	margin-right: 12px;
	object-fit: cover;
	flex-shrink: 0;
}

.nh-leaderboard-info {
	flex-grow: 1;
	margin-right: 16px;
}

.nh-leaderboard-name {
	display: block;
	font-weight: 700;
	color: #cbd5e1;
	font-size: 0.9rem;
	margin-bottom: 4px;
	white-space: normal;
	word-break: break-word;
}

.nh-xp-bar-wrap {
	height: 6px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 3px;
	overflow: hidden;
	width: 100%;
}

.nh-xp-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #3b82f6, #60a5fa);
	border-radius: 3px;
}

.nh-leaderboard-xp {
	font-weight: 700;
	font-size: 0.85rem;
	color: #60a5fa;
	background: rgba(59, 130, 246, 0.1);
	padding: 4px 10px;
	border-radius: 8px;
	white-space: nowrap;
}

/* Activity Feed / Latest Comments */
.nh-activity-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nh-activity-item {
	display: flex;
	gap: 14px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nh-activity-item:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

.nh-activity-avatar {
	flex-shrink: 0;
	align-self: flex-start;
}

.nh-activity-avatar img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.08);
	object-fit: cover;
	flex-shrink: 0;
}

.nh-activity-content {
	flex-grow: 1;
}

.nh-activity-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
	flex-wrap: wrap;
}

.nh-commenter-name {
	color: #e2e8f0;
	font-size: 0.9rem;
}

.nh-activity-tag {
	font-size: 0.65rem;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
}

.nh-activity-tag.type-novel {
	background: rgba(168, 85, 247, 0.15);
	color: #c084fc;
}

.nh-activity-tag.type-chapter {
	background: rgba(236, 72, 153, 0.15);
	color: #f472b6;
}

.nh-activity-time {
	font-size: 0.75rem;
	color: #64748b;
}

.nh-comment-target {
	font-size: 0.8rem;
	color: #94a3b8;
	margin-bottom: 6px;
	word-break: break-word;
}

.nh-comment-target a {
	color: #3b82f6;
	font-weight: 600;
}

.nh-comment-target a:hover {
	text-decoration: underline;
}

.nh-comment-snippet {
	font-size: 0.85rem;
	color: #cbd5e1;
	line-height: 1.5;
	background: rgba(255, 255, 255, 0.01);
	border-left: 2px solid rgba(255, 255, 255, 0.1);
	padding: 4px 10px;
	border-radius: 0 4px 4px 0;
	word-break: break-word;
}

.nh-comment-snippet p {
	margin: 0 0 0.5em;
}

.nh-comment-snippet p:last-child {
	margin-bottom: 0;
}


/* =============================================================================
   CHAPTER INDEX COMMENT COUNT INDICATOR
   ============================================================================= */

.nh-chapter-meta-item.comments i {
	color: #ec4899;
}

.nh-activity-series-parent {
	color: #94a3b8;
	font-size: 0.8rem;
	font-weight: 500;
	margin-left: 4px;
}


/* =============================================================================
   READERS CULTIVATION TITLE BADGES
   ============================================================================= */

.nh-title-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	font-size: 0.7rem;
	font-weight: 800;
	border-radius: 9999px;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	white-space: nowrap;
	line-height: 1.1;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
	vertical-align: middle;
}

.nh-title-badge i {
	font-size: 0.75rem;
}

/* Small badge size for inline lists and comment sections */
.nh-title-badge.nh-badge-sm {
	padding: 2px 6px;
	font-size: 0.62rem;
	margin-left: 6px;
}

.nh-title-badge.nh-badge-sm i {
	font-size: 0.65rem;
}

/* Comment author cultivation identity */
.fictioneer-comment__author {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.nh-comment-author-link {
	text-decoration: none;
}

.nh-comment-author-link:hover .nh-comment-author-name {
	text-decoration: underline;
}

.nh-comment-author-identity {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	line-height: 1.2;
}

.nh-comment-level {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.1rem;
	padding: 2px 6px;
	border-radius: 999px;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.2px;
	color: var(--nh-title-color, #94a3b8);
	background: rgba(var(--nh-title-rgb, 148, 163, 184), 0.12);
	border: 1px solid rgba(var(--nh-title-rgb, 148, 163, 184), 0.22);
}

.nh-comment-title-icon {
	font-size: 0.82rem;
	color: var(--nh-title-color, #94a3b8);
	filter: drop-shadow(0 0 4px rgba(var(--nh-title-rgb, 148, 163, 184), 0.35));
}

.nh-comment-author-name {
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--nh-title-color, #e2e8f0);
}

.nh-comment-author-identity.immortal-emperor .nh-comment-author-name,
.nh-comment-author-identity.void-refinement .nh-comment-author-name {
	text-shadow: 0 0 8px rgba(var(--nh-title-rgb), 0.35);
}

.nh-activity-meta .nh-comment-author-identity {
	margin-right: 4px;
}

/* Special hover glow effects for top ranks */
.nh-title-badge.immortal-emperor {
	animation: goldGlow 3s infinite ease-in-out;
}

@keyframes goldGlow {
	0%, 100% { box-shadow: 0 0 4px rgba(254, 240, 138, 0.2); }
	50% { box-shadow: 0 0 10px rgba(254, 240, 138, 0.4); }
}


/* =============================================================================
   READERS HUB PROGRESSION / GUIDE SECTION
   ============================================================================= */

.nh-hub-kicker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	font-weight: 700;
	color: #ef4444;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.nh-hub-kicker i {
	animation: pulseFire 1.5s infinite alternate;
}

@keyframes pulseFire {
	0% { transform: scale(1); opacity: 0.8; }
	100% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 3px #ef4444); }
}

.card-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.nh-xp-help {
	font-size: 0.75rem;
	font-weight: 600;
	color: #64748b;
	cursor: help;
	transition: color 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.nh-xp-help:hover {
	color: #94a3b8;
}

.nh-progression-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.nh-progression-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.04);
	border-radius: 12px;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nh-progression-item:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
}

.nh-progression-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	flex-shrink: 0;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nh-progression-info {
	display: flex;
	flex-direction: column;
}

.nh-progression-title {
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin-bottom: 2px;
	white-space: normal;
	line-height: 1.3;
}

.nh-progression-xp {
	font-size: 0.75rem;
	color: #64748b;
	font-weight: 600;
}


/* =============================================================================
   LEADERBOARD & ACTIVITY UI IMPROVEMENTS
   ============================================================================= */

.nh-leaderboard-name-row {
	display: flex;
	align-items: center;
	margin-bottom: 6px;
	flex-wrap: wrap;
	gap: 6px;
}

.nh-readers-hub-container .nh-title-badge {
	white-space: normal;
	text-align: left;
	max-width: 100%;
}

.nh-leaderboard-name {
	margin-bottom: 0 !important; /* Overwrite previous margins */
}

/* Glass card styling and animation hooks */
.nh-leaderboard-item.border-highlight {
	background: rgba(255, 255, 255, 0.015);
	transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nh-leaderboard-item.border-highlight:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	background: rgba(255, 255, 255, 0.035);
}

/* Animation utilities */
.animate-fade-in {
	animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
	animation: slideUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-slide-up-delay {
	animation: slideUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.15s both;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}
/* =============================================================================
   NOVELS DIRECTORY PAGE
   ============================================================================= */

.nh-novels-directory-container {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
}

.nh-directory-header {
	text-align: center;
	margin-bottom: 40px;
}

.nh-directory-header h1 {
	font-size: 2.5rem;
	font-weight: 800;
	color: #f8fafc;
	margin-bottom: 10px;
}

.nh-directory-header h1 i {
	color: #ef4444; /* Neon Crimson */
}

/* Modern MangaBlaze-style Filter and Search Section */
.nh-directory-filter-section {
	margin-bottom: 30px;
}

.nh-search-form {
	margin-bottom: 24px;
}

.nh-search-bar-row {
	display: flex;
	gap: 12px;
	width: 100%;
}

.nh-search-input-wrap {
	position: relative;
	flex-grow: 1;
}

.nh-search-input-wrap .search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #64748b;
	font-size: 1rem;
	pointer-events: none;
}

.nh-search-input-field {
	width: 100%;
	background: rgba(255, 255, 255, 0.02) !important;
	border: 1px solid rgba(255, 255, 255, 0.06) !important;
	border-radius: 8px !important;
	padding: 12px 16px 12px 46px !important;
	color: #cbd5e1 !important;
	font-size: 0.95rem !important;
	box-sizing: border-box;
	transition: all 0.2s ease !important;
}

.nh-search-input-field:focus {
	border-color: #f97316 !important;
	background: rgba(255, 255, 255, 0.04) !important;
	outline: none !important;
}

.nh-search-submit-btn {
	background: #f97316 !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	font-size: 0.95rem !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 0 28px !important;
	cursor: pointer !important;
	transition: background-color 0.2s ease !important;
	white-space: nowrap !important;
}

.nh-search-submit-btn:hover {
	background: #ea580c !important;
}

/* Capsules Filter Rows */
.nh-filter-group-wrap {
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: rgba(255, 255, 255, 0.01);
	border: 1px solid rgba(255, 255, 255, 0.02);
	border-radius: 12px;
	padding: 20px;
}

.nh-filter-row {
	display: flex;
	align-items: center;
	gap: 16px;
}

.nh-filter-row-label {
	font-size: 0.75rem;
	font-weight: 800;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 1px;
	min-width: 70px;
	flex-shrink: 0;
}

.nh-filter-capsules {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Genre row wraps naturally on multiple lines */
.nh-filter-row.nh-genre-row {
	align-items: flex-start;
}

.nh-filter-row.nh-genre-row .nh-filter-row-label {
	margin-top: 6px; /* Align label with the first line of wrapped capsules */
}

/* Filter Capsule Buttons */
.nh-filter-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 16px;
	font-size: 0.8rem;
	font-weight: 700;
	color: #94a3b8;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 9999px;
	text-decoration: none;
	transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
}

.nh-filter-btn:hover {
	color: #f8fafc;
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.1);
}

.nh-filter-btn.active {
	color: #ffffff !important;
	background: #f97316 !important;
	border-color: #f97316 !important;
	box-shadow: 0 2px 10px rgba(249, 115, 22, 0.2) !important;
}

/* Results Count Text */
.nh-results-count {
	font-size: 0.95rem;
	font-weight: 700;
	color: #cbd5e1;
	margin: 30px 0 20px;
}

.nh-results-count .count-num {
	color: #f97316;
}

/* Highlight total count in header */
.nh-highlight-count {
	color: #f97316;
	font-weight: 800;
}

/* Modern Manga Card Grid */
.nh-manga-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
}

@media (max-width: 1200px) {
	.nh-manga-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

@media (max-width: 900px) {
	.nh-manga-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 700px) {
	.nh-manga-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 480px) {
	.nh-manga-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

/* Manga Cover Card */
.nh-manga-card {
	display: flex;
	flex-direction: column;
	position: relative;
}

.nh-manga-cover-wrap {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 2 / 3;
	display: block;
	background: #11131e;
	border: 1px solid rgba(255, 255, 255, 0.03);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.nh-manga-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.nh-manga-card:hover .nh-manga-img {
	transform: scale(1.05);
}

/* Rating Badge Overlay (Top Left) */
.nh-manga-rating {
	position: absolute;
	left: 8px;
	top: 8px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	background: rgba(17, 19, 30, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	font-size: 0.72rem;
	font-weight: 800;
	color: #ffffff;
	backdrop-filter: blur(4px);
}

.nh-manga-rating i {
	color: #facc15;
}

/* Status Badge Overlay (Top Right) */
.nh-manga-status {
	position: absolute;
	right: 8px;
	top: 8px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	background: rgba(17, 19, 30, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	font-size: 0.72rem;
	font-weight: 800;
	color: #ffffff;
	backdrop-filter: blur(4px);
	text-transform: capitalize;
}

.nh-manga-status .status-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	display: inline-block;
}

.nh-manga-status.status-ongoing .status-dot {
	background: #22c55e; /* Green for ongoing */
}

.nh-manga-status.status-completed .status-dot {
	background: #3b82f6; /* Blue for completed */
}

/* Chapter Title Overlay (Bottom Left) */
.nh-manga-chapter {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	padding: 12px 10px 8px;
	background: linear-gradient(0deg, rgba(11, 13, 20, 0.95) 0%, rgba(11, 13, 20, 0.5) 60%, rgba(11, 13, 20, 0) 100%);
	font-size: 0.75rem;
	font-weight: 700;
	color: #cbd5e1;
	text-align: left;
}

/* Manga Title below Card */
.nh-manga-title {
	font-size: 0.85rem;
	font-weight: 700;
	color: #f1f5f9;
	margin: 10px 0 0;
	line-height: 1.4;
	text-align: left;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nh-manga-title a {
	color: #f1f5f9;
	text-decoration: none;
	transition: color 0.15s ease;
}

.nh-manga-title a:hover {
	color: #f97316;
}

/* Directory Pagination */
.nh-directory-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 40px;
}

.nh-directory-pagination a,
.nh-directory-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 6px;
	background: rgba(21, 24, 36, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	color: #94a3b8;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.nh-directory-pagination a:hover {
	border-color: #f97316;
	color: #f8fafc;
	background: rgba(249, 115, 22, 0.05);
}

.nh-directory-pagination span.current {
	background: #f97316 !important;
	border-color: #f97316 !important;
	color: #f8fafc !important;
	box-shadow: 0 0 12px rgba(249, 115, 22, 0.3) !important;
}

/* Scroll Chevron Arrow Button */
.nh-scroll-arrow-btn {
	width: 34px;
	height: 34px;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.02) !important;
	border: 1px solid rgba(255, 255, 255, 0.05) !important;
	color: #94a3b8 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	margin-left: 8px;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
	padding: 0 !important;
}

.nh-scroll-arrow-btn:hover {
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.05) !important;
	border-color: #f97316 !important;
	box-shadow: 0 0 10px rgba(249, 115, 22, 0.15);
}

.nh-scroll-arrow-btn i {
	font-size: 0.85rem;
	transition: transform 0.3s ease;
}

/* Loop icon rotation when user reaches the end of the scroll list */
.nh-scroll-arrow-btn.disabled i {
	transform: rotate(180deg);
}

/* =============================================================================
   PRIMARY NAVIGATION — DESKTOP TEXT, MOBILE SLIDE-OUT MENU
   ============================================================================= */

.nh-menu-icon {
	display: none !important;
}

.nh-menu-text {
	display: inline !important;
}

.mobile-navigation .nh-menu-text,
.mobile-menu .nh-menu-text {
	display: inline !important;
}

.mobile-navigation .nh-menu-icon,
.mobile-menu .nh-menu-icon {
	display: none !important;
}

/* Mobile slide-out menu cleanup */
.mobile-menu__top {
	display: none !important;
}

#mobile-menu-user-panel {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	margin-top: 4px;
	padding-top: 8px;
}

#mobile-menu-user-panel::before {
	content: 'Account';
	display: block;
	padding: 10px 16px 6px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
}

#mobile-menu-user-panel .nh-mobile-account-link,
#mobile-menu-user-panel .nh-mobile-logout-link {
	display: flex;
	align-items: center;
	gap: 10px;
}

#mobile-menu-user-panel .nh-mobile-logout-link {
	color: #fca5a5 !important;
}

#mobile-menu-user-panel .nh-mobile-logout-link:hover,
#mobile-menu-user-panel .nh-mobile-logout-link:focus-visible {
	color: #fecaca !important;
}

/* =============================================================================
   MOBILE HEADER — CLEAN UTILITY BAR
   ============================================================================= */

@media (max-width: 768px) {
	.main-navigation__wrapper {
		display: flex !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 10px !important;
		padding: 10px 14px !important;
		min-height: 58px;
	}

	/* Nav links live in the slide-out menu only — not crammed into the header bar */
	.main-navigation .main-navigation__left {
		display: none !important;
	}

	.main-navigation__right {
		flex: 1 1 auto !important;
		display: flex !important;
		justify-content: flex-end !important;
		min-width: 0;
	}

	.mobile-menu-button {
		position: relative;
		flex-shrink: 0;
		width: 42px;
		height: 42px;
		margin: 0 !important;
		padding: 0 !important;
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.04);
		border: 1px solid rgba(255, 255, 255, 0.08);
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		color: #e2e8f0;
		transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	}

	.mobile-menu-button:hover,
	.mobile-menu-button:focus-visible {
		background: rgba(255, 60, 86, 0.1);
		border-color: rgba(255, 60, 86, 0.28);
		color: var(--primary-color);
	}

	.mobile-menu-button .icon,
	.mobile-menu-button i {
		width: auto !important;
		height: auto !important;
		font-size: 1.05rem !important;
	}

	.mobile-menu-button__label {
		display: none !important;
	}

	.mobile-menu-button._new::after,
	.mobile-menu-button[data-new]::after {
		right: 4px !important;
		top: 4px !important;
		font-size: 8px !important;
		height: 12px !important;
		min-width: 12px !important;
		line-height: 12px !important;
		border: 1px solid rgba(0, 0, 0, 0.4) !important;
	}

	.main-navigation__right .icon-menu._in-navigation {
		display: none !important;
	}

	.nh-header-utilities {
		gap: 6px;
		margin-left: auto;
	}

	.nh-header-coins {
		min-height: 42px;
		padding: 0 11px;
		font-size: 0.82rem;
	}

	.nh-header-utilities .nh-profile-menu {
		display: flex !important;
		flex-shrink: 0;
	}

	.main-navigation__wrapper {
		overflow: visible;
	}

	.main-navigation {
		overflow: visible;
	}

	.nh-profile-menu__cluster {
		height: 36px;
	}

	.nh-profile-menu__avatar {
		width: 36px;
		height: 36px;
	}

	.nh-profile-menu__avatar img,
	.nh-profile-menu__avatar .nh-user-avatar,
	.nh-profile-menu__avatar img.avatar {
		width: 32px !important;
		height: 32px !important;
		max-width: 32px !important;
		max-height: 32px !important;
	}

	.nh-profile-menu__caret {
		height: 42px;
		width: 26px;
	}

	.nh-profile-menu__dropdown {
		right: 0;
		min-width: 168px;
	}

	/* Slide-out menu utility icons */
	.mobile-menu__top .icon-menu {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		padding: 12px 16px 0;
	}

	.mobile-menu__top .icon-menu > .menu-item > :is(a, button) {
		min-height: 40px;
		padding: 0 14px !important;
		border-radius: 10px;
		background: rgba(255, 255, 255, 0.04);
		border: 1px solid rgba(255, 255, 255, 0.08);
		color: #e2e8f0 !important;
	}

	.mobile-menu__top .icon-menu .icon,
	.mobile-menu__top .icon-menu i,
	.mobile-menu__item-icon {
		font-size: 0.95rem !important;
		width: auto !important;
		height: auto !important;
	}
}

/* =============================================================================
   AUTO UNLOCKER COUNTDOWN WIDGET & TABS STYLES
   ============================================================================= */

/* Countdown Container */
.nh-auto-unlock-countdown-wrap {
	margin: 25px 0;
	width: 100%;
}

.nh-countdown-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: linear-gradient(135deg, rgba(21, 24, 36, 0.95), rgba(13, 15, 23, 0.95));
	border: 1px solid rgba(249, 115, 22, 0.15);
	border-left: 4px solid #f97316; /* Orange highlight border */
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 0 10px rgba(249, 115, 22, 0.03);
}

.nh-hourglass-icon {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(249, 115, 22, 0.08);
	color: #f97316;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	flex-shrink: 0;
	box-shadow: 0 0 12px rgba(249, 115, 22, 0.15);
}

.nh-countdown-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nh-countdown-details .label {
	font-size: 0.68rem;
	font-weight: 800;
	color: #94a3b8;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.nh-countdown-details .value {
	font-size: 1.35rem;
	font-weight: 800;
	color: #f8fafc;
	font-family: monospace, var(--font-primary);
	text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
	letter-spacing: 0.5px;
}

/* Chapter Filter Tabs — positioned inline between toggles and chapter list */
.nh-chapter-filter-tabs {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 16px 0;
	padding: 12px 0;
	width: 100%;
	border-top: 1px solid rgba(255, 255, 255, 0.04);
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nh-filter-tab {
	background: rgba(255, 255, 255, 0.03) !important;
	border: 1px solid rgba(255, 255, 255, 0.06) !important;
	color: #94a3b8 !important;
	padding: 10px 28px !important;
	font-size: 0.85rem !important;
	font-weight: 700 !important;
	border-radius: 8px !important;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
	box-sizing: border-box;
	text-shadow: none !important;
	box-shadow: none !important;
	letter-spacing: 0.3px;
}

.nh-filter-tab:hover:not(.active) {
	color: #f8fafc !important;
	background: rgba(255, 255, 255, 0.06) !important;
	border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Active Free tab — Orange gradient */
.nh-filter-tab.active[data-filter="free"] {
	background: linear-gradient(135deg, #ff5a00, #ff7a00) !important;
	border-color: transparent !important;
	color: #ffffff !important;
	box-shadow: 0 4px 15px rgba(255, 90, 0, 0.25) !important;
}

/* Active Premium tab — Purple gradient */
.nh-filter-tab.active[data-filter="premium"] {
	background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
	border-color: transparent !important;
	color: #ffffff !important;
	box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25) !important;
}

.nh-filter-tab i {
	font-size: 0.85rem;
}

/* Spin Animation for Hourglass */
.animate-spin-slow {
	animation: nh-spin-slow 6s linear infinite;
}

@keyframes nh-spin-slow {
	0% { transform: rotate(0deg); }
	50% { transform: rotate(180deg); }
	100% { transform: rotate(360deg); }
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
	.nh-countdown-card {
		padding: 12px 16px;
		gap: 12px;
	}
	
	.nh-countdown-details .value {
		font-size: 1.15rem;
	}
	
	.nh-filter-tab {
		flex-grow: 1;
		justify-content: center;
		padding: 8px 14px !important;
		font-size: 0.78rem !important;
	}
}

/* Chapter List Index Lock State Colors */
.nh-locked-icon {
	color: #f97316 !important; /* Orange lock */
	text-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}

.nh-unlocked-icon {
	color: #a78bfa !important; /* Royal purple unlock */
	text-shadow: 0 0 8px rgba(167, 139, 250, 0.4);
}

/* Hide all default support widgets and Ko-fi donation panels globally */
.chapter__support,
.story__support,
.widget_support,
.widget_kofi,
.support-widget,
.kofi-widget {
	display: none !important;
	content-visibility: hidden !important;
}

/* =============================================================================
   COMMENT UPVOTE / DOWNVOTE
   ============================================================================= */

.nh-comment-votes {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.45rem;
	border-radius: 999px;
	background: hsl(var(--bg-900-free, 220 20% 12%) / 55%);
	border: 1px solid hsl(var(--fg-800-free, 220 10% 70%) / 12%);
	line-height: 1;
}

.nh-comment-votes._voting {
	opacity: 0.75;
	pointer-events: none;
}

.nh-vote-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.25rem 0.45rem;
	border-radius: 999px;
	background: transparent;
	color: hsl(var(--fg-500-free, 220 10% 65%));
	font-size: 0.78rem;
	font-weight: 600;
	transition: color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.nh-vote-btn:hover:not(:disabled) {
	background: hsl(var(--bg-800-free, 220 18% 18%) / 80%);
	color: hsl(var(--fg-300-free, 220 15% 88%));
}

.nh-vote-btn:active:not(:disabled) {
	transform: scale(0.96);
}

.nh-vote-btn.is-active,
.nh-vote-up.is-active {
	color: #4ade80;
}

.nh-vote-down.is-active {
	color: #f87171;
}

.nh-vote-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.nh-vote-count {
	min-width: 1ch;
	text-align: center;
}

.nh-vote-score {
	min-width: 2.2ch;
	text-align: center;
	font-size: 0.82rem;
	font-weight: 700;
	color: hsl(var(--fg-300-free, 220 15% 88%));
	padding: 0 0.15rem;
}

.nh-comment-votes._voted-up .nh-vote-score {
	color: #86efac;
}

.nh-comment-votes._voted-down .nh-vote-score {
	color: #fca5a5;
}

.nh-vote-hint {
	font-size: 0.72rem;
	color: hsl(var(--fg-600-free, 220 10% 55%));
	margin-left: 0.15rem;
	white-space: nowrap;
}

.fictioneer-comment__actions .nh-comment-votes {
	margin-right: 0.5rem;
}

.nh-series-comment-footer {
	margin-top: 0.65rem;
	padding-top: 0;
	border-top: none;
}

.nh-series-comment-footer .fictioneer-comment__footer-left {
	display: flex;
	align-items: center;
}
