:root {
	--aidp-black: #020405;
	--aidp-panel: rgba(3, 7, 10, 0.92);
	--aidp-line: rgba(172, 196, 205, 0.14);
	--aidp-red: #ff3030;
	--aidp-text: #f2f4f5;
	--aidp-muted: rgba(210, 218, 222, 0.66);
	--aidp-mono: "Roboto Mono", Consolas, monospace;
	--aidp-display: "Rajdhani", "Arial Narrow", sans-serif;
}

html {
	scroll-behavior: smooth;
}

.aidp-skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 10000;
	padding: 10px 14px;
	background: var(--aidp-red);
	color: #fff;
	font: 700 12px/1 var(--aidp-mono);
	text-transform: uppercase;
	transform: translateY(-150%);
	transition: transform 180ms ease;
}

.aidp-skip-link:focus {
	transform: translateY(0);
}

.aidp-global-header,
.aidp-site-shell.aidp-global-header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9990;
	display: grid;
	grid-template-columns: minmax(260px, 0.42fr) minmax(420px, 1fr) auto;
	align-items: center;
	gap: clamp(18px, 2.6vw, 42px);
	width: 100%;
	min-height: 88px;
	margin: 0;
	padding: 0 clamp(18px, 2.7vw, 36px);
	border: 0;
	border-bottom: 1px solid rgba(170, 14, 18, 0.88);
	background:
		linear-gradient(rgba(139, 220, 231, 0.026) 1px, transparent 1px),
		linear-gradient(90deg, rgba(139, 220, 231, 0.022) 1px, transparent 1px),
		linear-gradient(180deg, rgba(6, 9, 11, 0.98), rgba(0, 2, 4, 0.98));
	background-size: 34px 34px, 34px 34px, auto;
	box-shadow: 0 12px 44px rgba(0, 0, 0, 0.46), inset 0 -1px 0 rgba(255, 48, 48, 0.16);
	backdrop-filter: blur(12px);
	transform: none;
}

body.admin-bar .aidp-global-header {
	top: 32px;
}

.aidp-global-header::before {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 48, 48, 0.9), transparent);
	opacity: 0.62;
	pointer-events: none;
}

.aidp-global-header::after {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 6px);
	opacity: 0.1;
	pointer-events: none;
}

.aidp-global-header .aidp-brand {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 4px;
	min-width: 0;
	padding: 0;
	border: 0;
	color: inherit;
	text-decoration: none;
}

.aidp-global-header .aidp-brand::after,
.aidp-global-header .aidp-brand-mark {
	display: none;
}

.aidp-global-header .aidp-brand-text {
	color: #f4f6f7;
	font-family: var(--aidp-display);
	font-size: clamp(25px, 2.1vw, 34px);
	font-weight: 800;
	line-height: 0.9;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-shadow: 0 0 24px rgba(255, 255, 255, 0.08);
	white-space: nowrap;
}

.aidp-global-header .aidp-brand-subtitle {
	color: var(--aidp-red);
	font-family: var(--aidp-mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	white-space: nowrap;
}

.aidp-global-header .aidp-brand-subtitle::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 7px;
	border-left: 1px solid var(--aidp-red);
	border-bottom: 1px solid var(--aidp-red);
	transform: rotate(-45deg) translateY(-1px);
}

.aidp-global-header .aidp-nav {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(18px, 3vw, 56px);
	min-width: 0;
	padding: 0;
	color: rgba(235, 239, 240, 0.82);
	font-family: var(--aidp-display);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.aidp-global-header .aidp-nav a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 88px;
	color: inherit;
	text-decoration: none;
	transition: color 160ms ease, text-shadow 160ms ease;
}

.aidp-global-header .aidp-nav a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 22px;
	width: 0;
	height: 1px;
	background: var(--aidp-red);
	box-shadow: 0 0 18px rgba(255, 48, 48, 0.5);
	transform: translateX(-50%);
	transition: width 180ms ease;
}

.aidp-global-header .aidp-nav a:hover,
.aidp-global-header .aidp-nav a:focus-visible {
	color: #fff;
	text-shadow: 0 0 18px rgba(255, 48, 48, 0.34);
}

.aidp-global-header .aidp-nav a:hover::after,
.aidp-global-header .aidp-nav a:focus-visible::after {
	width: 100%;
}

.aidp-global-header .aidp-classified-badge {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 16px;
	border: 1px solid rgba(255, 48, 48, 0.88);
	background: rgba(20, 3, 5, 0.42);
	color: var(--aidp-red);
	font: 700 12px/1 var(--aidp-mono);
	letter-spacing: 0.8px;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: inset 0 0 0 1px rgba(255, 48, 48, 0.08);
}

.aidp-global-header .aidp-classified-badge:hover,
.aidp-global-header .aidp-classified-badge:focus-visible {
	background: rgba(80, 8, 10, 0.58);
	color: #fff;
	text-shadow: 0 0 14px rgba(255, 48, 48, 0.45);
}

body:not(.home):not(.front-page):not(.single-aidp_prophecy):not(.post-type-archive-aidp_prophecy) {
	padding-top: 88px;
}

.aidp-back-to-top {
	position: fixed;
	right: clamp(16px, 2vw, 28px);
	bottom: clamp(16px, 2vw, 28px);
	z-index: 9992;
	display: grid;
	place-items: center;
	width: 46px !important;
	min-width: 46px !important;
	height: 46px !important;
	min-height: 46px !important;
	padding: 0 !important;
	border: 1px solid rgba(255, 48, 48, 0.7);
	border-radius: 50%;
	background:
		linear-gradient(180deg, rgba(8, 14, 17, 0.92), rgba(3, 6, 8, 0.96)),
		var(--aidp-panel);
	color: var(--aidp-red);
	font-size: 0;
	line-height: 1 !important;
	box-shadow: 0 0 26px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 48, 48, 0.06);
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
	appearance: none;
}

.aidp-back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.aidp-back-to-top span {
	position: relative;
	display: block;
	width: 16px;
	height: 18px;
}

.aidp-back-to-top span::before,
.aidp-back-to-top span::after {
	content: "";
	position: absolute;
	left: 50%;
	display: block;
	transform: translateX(-50%);
}

.aidp-back-to-top span::before {
	top: 5px;
	width: 2px;
	height: 12px;
	background: currentColor;
	box-shadow: 0 0 10px rgba(255, 48, 48, 0.38);
}

.aidp-back-to-top span::after {
	top: 2px;
	width: 9px;
	height: 9px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: translateX(-50%) rotate(45deg);
}

.aidp-back-to-top:hover,
.aidp-back-to-top:focus-visible {
	border-color: rgba(255, 48, 48, 0.95);
	box-shadow: 0 0 30px rgba(255, 48, 48, 0.18), inset 0 0 0 1px rgba(255, 48, 48, 0.14);
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.aidp-back-to-top,
	.aidp-global-header .aidp-nav a,
	.aidp-global-header .aidp-nav a::after,
	.aidp-skip-link {
		transition: none;
	}
}

@media (max-width: 1120px) {
	.aidp-global-header,
	.aidp-site-shell.aidp-global-header {
		grid-template-columns: minmax(230px, auto) 1fr auto;
		gap: 18px;
	}

	.aidp-global-header .aidp-nav {
		justify-content: flex-start;
		gap: 24px;
		overflow-x: auto;
		scrollbar-width: thin;
	}

	.aidp-global-header .aidp-nav a {
		flex: 0 0 auto;
	}
}

@media (max-width: 760px) {
	.aidp-global-header,
	.aidp-site-shell.aidp-global-header {
		grid-template-columns: 1fr auto;
		align-items: start;
		min-height: 124px;
		padding: 15px 14px 0;
	}

	body.admin-bar .aidp-global-header {
		top: 46px;
	}

	.aidp-global-header .aidp-brand-text {
		font-size: 24px;
	}

	.aidp-global-header .aidp-brand-subtitle {
		font-size: 9px;
		letter-spacing: 0.8px;
		white-space: normal;
	}

	.aidp-global-header .aidp-classified-badge {
		min-height: 30px;
		padding: 0 11px;
		font-size: 10px;
	}

	.aidp-global-header .aidp-nav {
		grid-column: 1 / -1;
		width: calc(100% + 28px);
		margin-inline: -14px;
		padding: 0 14px;
		gap: 22px;
		border-top: 1px solid rgba(172, 196, 205, 0.08);
	}

	.aidp-global-header .aidp-nav a {
		min-height: 48px;
		font-size: 13px;
	}

	.aidp-global-header .aidp-nav a::after {
		bottom: 0;
	}

	body:not(.home):not(.front-page):not(.single-aidp_prophecy):not(.post-type-archive-aidp_prophecy) {
		padding-top: 124px;
	}

	.aidp-back-to-top {
		width: 42px !important;
		min-width: 42px !important;
		height: 42px !important;
		min-height: 42px !important;
	}
}
