/*
Theme Name: Vakari Download
Theme URI: http://vakari.xyz
Author: Vakari
Author URI: http://vakari.xyz
Description: Robust download landing theme with a cleaner design. Shows a download landing (with a 4s countdown) for routed ?link= traffic, a nice homepage for direct visits, and 4 admin-managed ad slots.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: vakari-download
*/

/* ------------------------------------------------------------------
   Reset & base
------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: #f6f7fb;
	color: #3c4257;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: #2563eb;
}

.container {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 0 24px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #fff;
	color: #111;
	padding: 8px 14px;
	z-index: 999;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
}

/* ------------------------------------------------------------------
   Header / footer
------------------------------------------------------------------ */
.site-header {
	background: #ffffff;
	border-bottom: 1px solid #e5e9f2;
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 2px 12px rgba(17, 24, 39, 0.05);
}

.header-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 18px 0 14px;
}

.site-brand a {
	color: #111827;
	font-size: 24px;
	font-weight: 800;
	text-decoration: none;
	letter-spacing: 0.3px;
}

.header-navs {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* ROMs shortcut nav (links to nsroms.net) — centered pill group */
.nsroms-nav .nav-menu {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 6px;
	list-style: none;
	align-items: center;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	box-shadow: 0 4px 18px rgba(17, 24, 39, 0.06);
}

.nsroms-nav .nav-menu li {
	list-style: none;
	margin: 0;
}

/* Text logo inside the pill */
.nsroms-nav .nav-brand-item {
	padding-left: 6px;
	margin-right: 2px;
}

.nsroms-nav .nav-brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	padding: 6px 16px 6px 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, #111827, #1f2937);
}

.nsroms-nav .nav-brand:hover {
	text-decoration: none;
	background: linear-gradient(135deg, #1f2937, #374151);
}

.nsroms-nav .nav-brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2563eb, #4f46e5);
	color: #ffffff;
	font-size: 14px;
	font-weight: 900;
	flex-shrink: 0;
}

.nsroms-nav .nav-brand-text {
	color: #ffffff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.2px;
}

/* Divider between brand and links */
.nsroms-nav .nav-divider {
	width: 1px;
	height: 22px;
	background: #e2e8f0;
	margin: 0 6px;
	flex-shrink: 0;
}

/* Primary WP menu items injected into the pill */
.nsroms-nav .nav-menu > li > a:not(.nsroms-search-link):not(.nav-brand) {
	color: #3c4257;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	padding: 7px 14px;
	border-radius: 999px;
	transition: color 0.15s ease, background 0.15s ease;
}

.nsroms-nav .nav-menu > li > a:not(.nsroms-search-link):not(.nav-brand):hover {
	color: #2563eb;
	background: #f5f7fb;
	box-shadow: 0 1px 4px rgba(17, 24, 39, 0.08);
}

.nsroms-nav .nav-menu .nav-eyebrow {
	color: #8b93a7;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	padding: 7px 14px;
}

.nsroms-nav .nav-menu .nav-eyebrow-item {
	padding-left: 6px;
}

.nsroms-nav .nav-menu .nav-cta-item {
	padding-left: 6px;
}

.nsroms-nav .nsroms-search-link {
	background: linear-gradient(135deg, #2563eb, #4f46e5);
	color: #ffffff;
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	display: inline-block;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nsroms-nav .nsroms-search-link:hover {
	background: linear-gradient(135deg, #1d4ed8, #4338ca);
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.site-footer {
	background: #111827;
	color: #9ca3af;
	margin-top: 48px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 28px;
	padding: 40px 24px;
}

.footer-col .footer-brand {
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.footer-brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #2563eb;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
}

.footer-tagline {
	font-size: 13px;
	line-height: 1.6;
	color: #7d8797;
	margin: 10px 0 0;
}

.footer-about {
	font-size: 13px;
	line-height: 1.6;
	max-width: 340px;
	margin: 0;
}

.footer-title {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	margin: 0 0 12px;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links li {
	margin-bottom: 8px;
}

.footer-links a {
	color: #9ca3af;
	text-decoration: none;
	font-size: 13px;
}

.footer-links a:hover {
	color: #fff;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 16px 0;
}

.footer-bottom p {
	margin: 0;
	text-align: center;
	font-size: 12px;
	color: #6b7280;
}

/* ------------------------------------------------------------------
   Buttons (calm, readable)
------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	cursor: pointer;
	border-radius: 10px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-lg {
	padding: 15px 32px;
	font-size: 16px;
}

.btn-primary {
	background: #2563eb;
	color: #ffffff;
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.btn-download {
	width: 100%;
	background: #16a34a;
	color: #ffffff;
	box-shadow: 0 6px 16px rgba(22, 163, 74, 0.28);
}

.btn-download:hover {
	background: #15803d;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(22, 163, 74, 0.35);
}

.btn-icon {
	flex-shrink: 0;
}

/* ------------------------------------------------------------------
   Hero (shared)
------------------------------------------------------------------ */
.landing-hero,
.home-hero {
	text-align: center;
	padding: 64px 0 48px;
	background:
		radial-gradient(720px 320px at 18% -20%, rgba(37, 99, 235, 0.10), transparent 60%),
		radial-gradient(720px 320px at 82% -20%, rgba(124, 58, 237, 0.08), transparent 60%);
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #eef2ff;
	color: #3730a3;
	border: 1px solid #e0e7ff;
	padding: 6px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 18px;
}

.hero-title {
	font-size: clamp(30px, 5vw, 48px);
	line-height: 1.15;
	font-weight: 800;
	color: #111827;
	margin: 0 0 12px;
}

.hero-game {
	color: #2563eb;
}

.hero-btn-label {
	display: inline-block;
	margin: 0 0 8px;
	padding: 4px 14px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	color: #374151;
	font-size: 13px;
	font-weight: 600;
}

.hero-sub {
	max-width: 620px;
	margin: 0 auto 28px;
	color: #6b7280;
	font-size: 17px;
}

.hero-actions {
	display: flex;
	justify-content: center;
	gap: 14px;
}

.hero-scroll-hint {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: #1d4ed8;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.2px;
	padding: 12px 22px;
	background: linear-gradient(135deg, #eff6ff, #e0e7ff);
	border: 1px solid #bfdbfe;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.10);
}

.scroll-hint-arrow {
	animation: scroll-hint-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(4px);
	}
}

.hero-meta {
	list-style: none;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 24px;
	margin: 28px 0 0;
	padding: 0;
	color: #6b7280;
	font-size: 13px;
	font-weight: 500;
}

.hero-meta li::before {
	content: "✓";
	color: #16a34a;
	margin-right: 6px;
}

/* ------------------------------------------------------------------
   Sections
------------------------------------------------------------------ */
.landing-content,
.home-content,
.home-posts {
	padding: 40px 0;
}

.landing-content .container,
.home-content .container,
.home-posts .container {
	max-width: 900px;
}

.section-title {
	color: #111827;
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 20px;
}

/* ------------------------------------------------------------------
   Homepage info tabs (swappable console / ROM info)
------------------------------------------------------------------ */
.home-info {
	padding: 24px 0 16px;
}

.home-info .container {
	max-width: 860px;
}

.info-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
}

.info-tab-btn {
	appearance: none;
	border: 1px solid #e5e7eb;
	background: #ffffff;
	color: #4a5568;
	font-size: 14px;
	font-weight: 600;
	padding: 9px 16px;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.info-tab-btn:hover {
	border-color: #bfdbfe;
	color: #2563eb;
}

.info-tab-btn.is-active {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
}

.info-panels {
	background: #ffffff;
	border: 1px solid #e5e9f2;
	border-radius: 14px;
	padding: 26px 26px;
}

.info-panel {
	display: none;
}

.info-panel.is-active {
	display: block;
	animation: info-fade 0.25s ease;
}

@keyframes info-fade {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.info-panel-title {
	color: #111827;
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 8px;
}

.info-panel-text {
	color: #4a5568;
	font-size: 15px;
	margin: 0;
	line-height: 1.7;
}

/* ------------------------------------------------------------------
   Feature cards (homepage)
------------------------------------------------------------------ */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.feature-card {
	background: #ffffff;
	border: 1px solid #e5e9f2;
	border-radius: 14px;
	padding: 26px 22px;
	text-align: center;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
	box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
	transform: translateY(-3px);
}

.feature-icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 14px;
	border-radius: 12px;
	background: #eef2ff;
	color: #3730a3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.feature-title {
	color: #111827;
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 6px;
}

.feature-desc {
	color: #6b7280;
	font-size: 14px;
	margin: 0;
}

/* ------------------------------------------------------------------
   Download section
------------------------------------------------------------------ */
.download-section {
	padding: 32px 0 72px;
}

.download-section .container {
	max-width: 640px;
}

.download-card {
	background: #ffffff;
	border: 1px solid #e5e9f2;
	border-radius: 16px;
	padding: 32px 30px;
	box-shadow: 0 18px 44px rgba(17, 24, 39, 0.10);
}

.download-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
	flex-wrap: wrap;
}

.download-file-type {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #2563eb;
	margin-bottom: 4px;
}

.download-title {
	margin: 0;
	color: #111827;
	font-size: 22px;
	font-weight: 800;
}

.download-btn-text {
	display: inline-block;
	margin-top: 8px;
	padding: 3px 12px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	color: #374151;
	font-size: 12px;
	font-weight: 600;
}

.download-status {
	background: #dcfce7;
	color: #166534;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
	white-space: nowrap;
}

.download-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.download-countdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.download-countdown[hidden] {
	display: none;
}

/* Countdown zone: sits above the footer so the visitor passes the ads on the
   way down to it. */
.countdown-zone {
	background: #f8fafc;
	border-top: 1px solid #e5e9f2;
	border-bottom: 1px solid #e5e9f2;
	padding: 40px 0 48px;
	text-align: center;
}

.countdown-zone[hidden] {
	display: none;
}

.countdown-zone .download-countdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.countdown-zone .btn-primary {
	margin-top: 8px;
	padding: 12px 28px;
	font-size: 14px;
}

.dl-ring {
	width: 116px;
	height: 116px;
	border-radius: 50%;
	background: conic-gradient(#16a34a calc(var(--p, 0) * 1%), #e5e7eb 0);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: --p 0.9s linear;
}

.dl-ring-hole {
	width: 94px;
	height: 94px;
	border-radius: 50%;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.countdown-label {
	color: #6b7280;
	font-size: 14px;
	font-weight: 500;
}

.countdown-number {
	color: #111827;
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
}

.btn-download.is-busy {
	background: #22c55e;
	box-shadow: none;
	transform: none;	cursor: default;
}

.download-features {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 20px;
	color: #6b7280;
	font-size: 12px;
	font-weight: 500;
}

.download-features span::before {
	content: "•";
	color: #16a34a;
	margin-right: 6px;
}

/* Prod Keys & Firmware notice (below the download button) */
.prodkeys-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 620px;
	margin: 22px auto 0;
	padding: 14px 16px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 12px;
	text-align: left;
}

.prodkeys-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	border-radius: 10px;
	background: #fef3c7;
	color: #b45309;
}

.prodkeys-text {
	margin: 2px 0 0;
	color: #78350f;
	font-size: 13px;
	line-height: 1.6;
}

.prodkeys-text a {
	color: #b45309;
	font-weight: 700;
	text-decoration: underline;
}

.prodkeys-text a:hover {
	color: #92400e;
}

/* ------------------------------------------------------------------
   Posts / cards
------------------------------------------------------------------ */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 18px;
}

.post-card {
	background: #ffffff;
	border: 1px solid #e5e9f2;
	border-radius: 14px;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.post-thumb img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}

.post-card-body {
	padding: 16px 18px;
}

.post-card-title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.post-card-title a {
	color: #111827;
	text-decoration: none;
}

.post-card-title a:hover {
	color: #2563eb;
}

.post-card-excerpt {
	margin: 0 0 10px;
	color: #6b7280;
	font-size: 14px;
}

.post-card-date {
	color: #9ca3af;
	font-size: 12px;
}

.nav-links {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 32px;
}

.nav-links .page-numbers {
	color: #4a5568;
	text-decoration: none;
	padding: 8px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}

.nav-links .page-numbers.current {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
}

/* ------------------------------------------------------------------
   Ad slots
------------------------------------------------------------------ */
.ad-slot {
	max-width: 960px;
	margin: 0 auto;
	padding: 18px 24px;
	text-align: center;
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}

.ad-slot img,
.ad-slot iframe,
.ad-slot script {
	margin: 0 auto;
}

/* Force every injected ad element to fit the viewport width.
   Ad networks (highperformanceformat / effectivecpm) inject iframes with
   inline fixed widths like width="728" + style="width:728px" via JS, which
   would otherwise overflow the layout on phones. max-width caps the used
   width; min-width:0 also beats any inline min-width. */
.ad-slot iframe,
.ad-slot img,
.ad-slot video,
.ad-slot embed,
.ad-slot object,
.ad-slot ins,
.ad-slot .adsbygoogle,
.ad-slot [id^="container-"],
.ad-slot > div,
.ad-slot > script {
	max-width: 100% !important;
	min-width: 0 !important;
	height: auto;
}

.ad-slot iframe {
	width: 100% !important;
	display: block;
	margin: 0 auto;
}

@media (max-width: 640px) {
	.ad-slot {
		padding: 12px 10px;
		overflow-x: hidden;
	}

	.ad-slot > * {
		max-width: 100%;
	}

	.ad-slot iframe {
		max-height: 300px;
	}
}

/* Safety net: never let the page scroll horizontally, regardless of what an
   ad script injects. */
html,
body {
	overflow-x: hidden;
	max-width: 100%;
}

/* ------------------------------------------------------------------
   Single article (centered card)
------------------------------------------------------------------ */
.single-section {
	padding: 48px 0 72px;
}

.single-section .container {
	max-width: 820px;
}

.single-card {
	background: #ffffff;
	border: 1px solid #e5e9f2;
	border-radius: 18px;
	box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
	overflow: hidden;
}

.single-head {
	padding: 40px 40px 8px;
	text-align: center;
}

.single-breadcrumb {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	color: #9ca3af;
	font-size: 13px;
	margin-bottom: 16px;
}

.single-breadcrumb a {
	color: #2563eb;
	text-decoration: none;
}

.single-breadcrumb a:hover {
	text-decoration: underline;
}

.single-breadcrumb-sep {
	color: #d1d5db;
}

.single-title {
	color: #111827;
	font-size: clamp(26px, 4vw, 38px);
	line-height: 1.2;
	margin: 0 0 16px;
}

.single-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	color: #6b7280;
	font-size: 14px;
}

.single-author {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.single-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #eef2ff;
	color: #3730a3;
	font-size: 12px;
	font-weight: 800;
}

.single-author-name {
	font-weight: 600;
	color: #374151;
}

.single-meta-sep {
	color: #d1d5db;
}

.single-date,
.single-readtime {
	color: #6b7280;
}

.single-thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f3f4f6;
	margin-top: 24px;
}

.single-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.single-thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #eef2ff, #f3e8ff);
	color: #8b93a7;
}

.single-thumb-fallback-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.65);
}

.single-content {
	padding: 32px 40px 8px;
	font-size: 16px;
	line-height: 1.75;
	color: #3c4257;
}

.single-content p {
	margin: 0 0 20px;
}

.single-content h2,
.single-content h3,
.single-content h4 {
	color: #111827;
	margin: 28px 0 12px;
}

.single-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.single-content a {
	color: #2563eb;
}

.single-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 24px 40px 36px;
}

.single-tags-label {
	color: #6b7280;
	font-size: 13px;
	font-weight: 600;
	margin-right: 4px;
}

.single-tags a {
	display: inline-block;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	color: #4a5568;
	font-size: 13px;
	text-decoration: none;
	padding: 5px 12px;
	border-radius: 999px;
	transition: background 0.15s ease, color 0.15s ease;
}

.single-tags a:hover {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
}

.single-pager {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	margin-top: 28px;
}

.single-pager-link {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: #ffffff;
	border: 1px solid #e5e9f2;
	border-radius: 12px;
	padding: 16px 20px;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.single-pager-link:hover {
	border-color: #bfdbfe;
	box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.single-pager-next {
	text-align: right;
}

.single-pager-label {
	color: #9ca3af;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	font-weight: 600;
}

.single-pager-title {
	color: #111827;
	font-size: 15px;
	font-weight: 700;
}

.single-pager-link:hover .single-pager-title {
	color: #2563eb;
}

/* ------------------------------------------------------------------
   Recent articles grid (homepage, 6 items below the hero)
------------------------------------------------------------------ */
.home-recent {
	padding: 8px 0 24px;
}

.home-recent .container {
	max-width: 1080px;
}

.recent-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.recent-card {
	background: #ffffff;
	border: 1px solid #e5e9f2;
	border-radius: 14px;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.recent-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.recent-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f3f4f6;
}

.recent-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.recent-thumb-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #eef2ff, #f3e8ff);
	color: #8b93a7;
}

.recent-body {
	padding: 16px 18px;
}

.recent-date {
	color: #2563eb;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.recent-title {
	margin: 6px 0 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.recent-title a {
	color: #111827;
	text-decoration: none;
}

.recent-title a:hover {
	color: #2563eb;
}

/* ------------------------------------------------------------------
   Pages / posts
------------------------------------------------------------------ */
.page-section {
	padding: 48px 0;
}

.page-section .container {
	max-width: 760px;
}

.entry-title {
	color: #111827;
	font-size: 32px;
	line-height: 1.2;
	margin: 0 0 8px;
}

.entry-meta {
	color: #6b7280;
	font-size: 13px;
	margin-bottom: 20px;
}

.entry-content p {
	color: #3c4257;
}

.landing-content h2,
.landing-content h3,
.home-content h2,
.home-content h3,
.entry-content h2,
.entry-content h3 {
	color: #111827;
	line-height: 1.3;
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 720px) {
	.feature-grid {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.hero-meta {
		gap: 12px 18px;
	}

	.download-card {
		padding: 26px 20px;
	}

	.download-card-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.recent-grid {
		grid-template-columns: 1fr;
	}

	.single-head {
		padding: 28px 20px 8px;
	}

	.single-content {
		padding: 24px 20px 8px;
	}

	.single-tags {
		padding: 20px 20px 28px;
	}

	.single-pager {
		flex-direction: column;
	}

	.single-pager-next {
		text-align: left;
	}
}

/* Header: keep centered but allow the pill row to wrap on phones */
@media (max-width: 640px) {
	.header-inner {
		gap: 10px;
		padding: 14px 0 12px;
	}

	.header-navs {
		gap: 8px;
		width: 100%;
		justify-content: center;
	}

	.nsroms-nav .nav-menu {
		gap: 2px;
		padding: 4px;
		flex-wrap: wrap;
		justify-content: center;
		border-radius: 22px;
	}

	.nsroms-nav .nav-menu .nav-eyebrow {
		display: none;
	}

	.nsroms-nav .nav-brand-item {
		padding-left: 0;
	}

	.nsroms-nav .nav-brand {
		padding: 5px 12px 5px 8px;
	}

	.nsroms-nav .nav-brand-text {
		font-size: 14px;
	}

	.nsroms-nav .nav-menu > li > a:not(.nsroms-search-link):not(.nav-brand) {
		padding: 6px 10px;
		font-size: 12px;
	}

	.nsroms-nav .nsroms-search-link {
		padding: 7px 14px;
		font-size: 12px;
	}

	.nsroms-nav .nav-divider {
		display: none;
	}
}
/* ==================================================================
   Purchase landing page (page-purchase.php)
================================================================== */
.purchase-page {
	padding: 64px 0;
}

.purchase-hero-center {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.purchase-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(37, 99, 235, 0.1);
	color: #2563eb;
	border: 1px solid rgba(37, 99, 235, 0.25);
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 20px;
}

.purchase-hero-title {
	font-size: clamp(30px, 5vw, 48px);
	line-height: 1.12;
	color: #1f2937;
	margin: 0 0 16px;
}

.purchase-hero-title span {
	color: #2563eb;
}

.purchase-hero-sub {
	font-size: 17px;
	color: #6b7280;
	max-width: 620px;
	margin: 0 auto 32px;
}

.purchase-feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	margin-bottom: 40px;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

.purchase-feature {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
}

.purchase-feature svg {
	color: #2563eb;
	flex-shrink: 0;
}

.purchase-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	border-radius: 10px;
	padding: 12px 16px;
	margin: 0 auto 20px;
	max-width: 720px;
	font-size: 14px;
	text-align: center;
}

.checkout-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 10px 40px rgba(17, 24, 39, 0.08);
	overflow: hidden;
	max-width: 720px;
	margin: 0 auto;
}

.checkout-head {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 28px 32px;
	background: linear-gradient(135deg, #eff6ff, #ffffff);
	border-bottom: 1px solid #e5e7eb;
	flex-wrap: wrap;
}

.checkout-price-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #1f2937;
	color: #fff;
	border-radius: 14px;
	padding: 18px 26px;
	min-width: 150px;
}

.checkout-old-price {
	font-size: 14px;
	color: #9ca3af;
	text-decoration: line-through;
}

.checkout-price {
	font-size: 42px;
	font-weight: 900;
	line-height: 1;
	margin: 4px 0;
}

.checkout-currency {
	font-size: 12px;
	color: #d1d5db;
}

.checkout-headline {
	flex: 1;
	min-width: 240px;
}

.checkout-title {
	font-size: 22px;
	color: #1f2937;
	margin: 0 0 12px;
}

.checkout-bullets {
	list-style: none;
	margin: 0;
	padding: 0;
}

.checkout-bullets li {
	position: relative;
	padding-left: 24px;
	font-size: 14px;
	color: #4b5563;
	margin-bottom: 6px;
}

.checkout-bullets li::before {
	content: "?";
	position: absolute;
	left: 0;
	top: 0;
	color: #16a34a;
	font-weight: 800;
}

.checkout-form {
	padding: 28px 32px;
}

.checkout-field {
	margin-bottom: 18px;
}

.checkout-field > label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #374151;
	margin-bottom: 6px;
}

.checkout-field input[type="text"],
.checkout-field input[type="email"] {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 15px;
	background: #f9fafb;
}

.checkout-field input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.checkout-coupon-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.checkout-coupon-hint {
	font-size: 12px;
	color: #6b7280;
	flex-shrink: 0;
}

.checkout-coupon-hint.is-valid {
	color: #16a34a;
	font-weight: 600;
}

.checkout-coupon-hint.is-invalid {
	color: #dc2626;
	font-weight: 600;
}

.checkout-coupon-field input[type="text"] {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	max-width: 180px;
}

.pay-discount-note {
	font-size: 13px;
	font-weight: 600;
	color: #16a34a;
	background: rgba(22, 163, 74, 0.1);
	border: 1px solid rgba(22, 163, 74, 0.25);
	border-radius: 999px;
	padding: 3px 10px;
	margin-left: 6px;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.checkout-coupon-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.checkout-coupon-field input[type="text"] {
		max-width: 100%;
		width: 100%;
	}

	.pay-discount-note {
		display: block;
		margin: 8px 0 0;
		white-space: normal;
	}
}

.checkout-methods {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}

.pay-method {
	position: relative;
	cursor: pointer;
}

.pay-method input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.pay-method-box {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border: 1.5px solid #d1d5db;
	border-radius: 12px;
	padding: 14px 16px;
	background: #fff;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.pay-method input:checked + .pay-method-box {
	border-color: #2563eb;
	background: #eff6ff;
}

.pay-method-brand {
	font-size: 16px;
	font-weight: 800;
	color: #1f2937;
}

.paypal-logo-blue {
	color: #2563eb;
}

.pay-method-desc {
	font-size: 12px;
	color: #6b7280;
}

.checkout-submit {
	width: 100%;
	margin-top: 8px;
}

.checkout-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 16px 0 0;
	font-size: 13px;
	color: #6b7280;
}

.checkout-secure svg {
	color: #16a34a;
}

/* ---- payment step ---- */
.purchase-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 10px 40px rgba(17, 24, 39, 0.08);
	padding: 40px;
	max-width: 720px;
	margin: 0 auto;
}

.pay-badge {
	display: inline-block;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	color: #4b5563;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 18px;
}

.purchase-title {
	font-size: 30px;
	color: #1f2937;
	margin: 0 0 10px;
}

.purchase-lead {
	font-size: 16px;
	color: #6b7280;
	margin: 0 0 28px;
}

.btc-panel,
.paypal-panel {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 24px;
}

.btc-head,
.paypal-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}

.btc-coin,
.paypal-pp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	font-size: 24px;
	font-weight: 900;
	flex-shrink: 0;
}

.btc-coin {
	background: #f59e0b;
	color: #fff;
}

.paypal-pp {
	background: #2563eb;
	color: #fff;
}

.btc-head strong,
.paypal-head strong {
	display: block;
	font-size: 16px;
	color: #1f2937;
}

.btc-head span,
.paypal-head span {
	font-size: 13px;
	color: #6b7280;
}

.btc-amount {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 8px;
}

.btc-amount span {
	font-size: 13px;
	color: #6b7280;
}

.btc-amount strong {
	font-size: 20px;
	color: #1f2937;
}

.btc-amount small {
	font-size: 12px;
	color: #9ca3af;
	font-weight: 500;
}

.btc-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #374151;
	margin-bottom: 6px;
}

.btc-address-wrap {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.btc-address {
	flex: 1;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 12px 14px;
	background: #fff;
	color: #1f2937;
}

.btn-ghost {
	background: #fff;
	color: #374151;
	border: 1px solid #d1d5db;
}

.btn-ghost:hover {
	background: #f3f4f6;
}

.btn-block {
	display: block;
	width: 100%;
}

.btc-note {
	font-size: 12px;
	color: #9ca3af;
	margin: 14px 0 0;
	line-height: 1.5;
}

.np-status {
	margin-top: 14px;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

.np-status-waiting {
	color: #b45309;
	background: #fffbeb;
	border: 1px solid #fde68a;
}

.np-status-ok {
	color: #16a34a;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
}

.pay-unavailable {
	text-align: center;
	padding: 30px 0;
	color: #6b7280;
}

.pay-unavailable .btn {
	margin-top: 16px;
}

.paypal-status {
	margin-top: 14px;
	font-size: 14px;
	text-align: center;
}

.paypal-status.is-ok {
	color: #16a34a;
}

.paypal-status.is-error {
	color: #b91c1c;
}

/* ---- success step ---- */
.purchase-success .purchase-card {
	text-align: center;
	max-width: 680px;
}

.success-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: #dcfce7;
	color: #16a34a;
	margin-bottom: 20px;
}

.what-you-get {
	background: #eff6ff;
	border: 1px solid #dbeafe;
	border-radius: 14px;
	padding: 20px;
	margin: 24px 0;
	text-align: left;
}

.what-you-get-title {
	font-size: 15px;
	color: #1d4ed8;
	margin: 0 0 8px;
}

.what-you-get-text {
	font-size: 14px;
	color: #374151;
	margin: 0;
	line-height: 1.6;
}

.order-summary {
	text-align: left;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 20px;
}

.order-summary-row {
	display: flex;
	justify-content: space-between;
	padding: 12px 16px;
	font-size: 14px;
}

.order-summary-row:nth-child(odd) {
	background: #f9fafb;
}

.order-summary-row span {
	color: #6b7280;
}

.order-summary-row strong {
	color: #1f2937;
}

.email-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 14px;
	margin-bottom: 24px;
	text-align: left;
}

.email-note svg {
	flex-shrink: 0;
	color: #d97706;
}

.email-note p {
	margin: 0;
}

/* ---- top CTA banner (all pages) ---- */
.purchase-cta-top {
	background: linear-gradient(90deg, #2563eb, #4f46e5);
	padding: 12px 0;
}

.purchase-cta-inner {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.purchase-cta-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-weight: 900;
	flex-shrink: 0;
}

.purchase-cta-text {
	flex: 1;
	min-width: 200px;
	color: #fff;
	line-height: 1.3;
}

.purchase-cta-offer {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(90deg, #f59e0b, #f97316);
	color: #fff;
	font-weight: 800;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 4px;
	box-shadow: 0 1px 4px rgba(249, 115, 22, 0.4);
	animation: cta-offer-pulse 2s ease-in-out infinite;
}

@keyframes cta-offer-pulse {
	0%, 100% { box-shadow: 0 1px 4px rgba(249, 115, 22, 0.4); }
	50% { box-shadow: 0 1px 10px rgba(249, 115, 22, 0.75); }
}

.purchase-cta-text strong {
	display: block;
	font-size: 14px;
}

.purchase-cta-text span {
	font-size: 12px;
	opacity: 0.85;
}

.purchase-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #2563eb;
	font-weight: 800;
	font-size: 13px;
	padding: 9px 20px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	transition: transform 0.15s ease;
}

.purchase-cta-btn:hover {
	transform: translateY(-1px);
	color: #4f46e5;
}

/* ---- sticky purchase banner (download page) ---- */
.purchase-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	background: #1f2937;
	box-shadow: 0 -6px 24px rgba(17, 24, 39, 0.25);
	padding: 10px 0;
}

.purchase-sticky-inner {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.purchase-sticky-text {
	flex: 1;
	min-width: 180px;
	color: #fff;
	line-height: 1.3;
}

.purchase-sticky-text strong {
	display: block;
	font-size: 14px;
}

.purchase-sticky-text span {
	font-size: 12px;
	opacity: 0.8;
}

.purchase-sticky-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(90deg, #f59e0b, #f97316);
	color: #fff;
	font-weight: 800;
	font-size: 13px;
	padding: 10px 22px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(249, 115, 22, 0.4);
	transition: transform 0.15s ease;
}

.purchase-sticky-btn:hover {
	transform: translateY(-1px);
	color: #fff;
}

@media (max-width: 640px) {
	.purchase-page {
		padding: 40px 0;
	}

	.checkout-head,
	.checkout-form {
		padding: 20px;
	}

	/* Sticky CTA: stack vertically, full-width button, room for touch */
	.purchase-sticky {
		padding: 12px 0;
	}

	body.has-purchase-sticky {
		padding-bottom: 112px;
	}

	.purchase-sticky-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.purchase-sticky-text {
		min-width: 0;
		text-align: center;
	}

	.purchase-sticky-text strong {
		font-size: 15px;
	}

	.purchase-sticky-text span {
		display: block;
		font-size: 12px;
		margin-top: 2px;
	}

	.purchase-sticky-btn {
		width: 100%;
		padding: 13px 22px;
		font-size: 14px;
	}

	/* Top CTA: stack vertically, centered, full-width button */
	.purchase-cta-top {
		padding: 12px 0;
	}

	.purchase-cta-inner {
		flex-direction: column;
		align-items: center;
		gap: 8px;
	}

	.purchase-cta-badge {
		width: 26px;
		height: 26px;
		border-radius: 7px;
		font-size: 13px;
	}

	.purchase-cta-text {
		min-width: 0;
		text-align: center;
	}

	.purchase-cta-text strong {
		font-size: 14px;
	}

	.purchase-cta-text span {
		display: block;
		font-size: 12px;
		margin-top: 2px;
	}

	.purchase-cta-btn {
		width: 100%;
		padding: 12px 22px;
		font-size: 14px;
	}
}
