@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Michroma&family=Exo+2:wght@400;600;700&family=Orbitron:wght@500;600;700&family=Syne:wght@500;600;700;800&display=swap");

/* Neon theme tokens */
html,
html[data-neon-theme="default"],
html[data-neon-theme="synthwave"] {
	--neon-primary: #00f5ff;
	--neon-secondary: #ff2a6d;
	--neon-accent: #d400ff;
	--neon-primary-rgb: 0, 245, 255;
	--neon-secondary-rgb: 255, 42, 109;
	--neon-accent-rgb: 212, 0, 255;
}

html[data-neon-theme="blue"] {
	--neon-primary: #5eb8ff;
	--neon-secondary: #1a6bff;
	--neon-accent: #88d4ff;
	--neon-primary-rgb: 94, 184, 255;
	--neon-secondary-rgb: 26, 107, 255;
	--neon-accent-rgb: 136, 212, 255;
}

html[data-neon-theme="green"] {
	--neon-primary: #00ff9d;
	--neon-secondary: #39ff14;
	--neon-accent: #00cc66;
	--neon-primary-rgb: 0, 255, 157;
	--neon-secondary-rgb: 57, 255, 20;
	--neon-accent-rgb: 0, 204, 102;
}

/* Matches root portfolio index.html — HUD cyan, magenta, violet */
html[data-neon-theme="portfolio"] {
	--neon-primary: #3dffec;
	--neon-secondary: #ff4fd4;
	--neon-accent: #9d87ff;
	--neon-primary-rgb: 61, 255, 236;
	--neon-secondary-rgb: 255, 79, 212;
	--neon-accent-rgb: 157, 135, 255;
	--portfolio-bg-deep: #03050d;
	--portfolio-bg-elevated: #070b16;
	--portfolio-text: #e9ecf4;
	--portfolio-text-muted: #8b94a8;
	--portfolio-font-display: "Syne", system-ui, sans-serif;
	--portfolio-font-body: "DM Sans", system-ui, sans-serif;
	--portfolio-font-hud: "Orbitron", system-ui, sans-serif;
}

/* Index — themed accents */
html[data-neon-theme]:not([data-neon-theme="future"]) .cc_item {
	border-bottom-color: var(--neon-secondary);
	border-right-color: rgba(var(--neon-primary-rgb), 0.25);
	box-shadow:
		0 0 15px rgba(var(--neon-secondary-rgb), 0.2),
		inset 0 0 30px rgba(var(--neon-primary-rgb), 0.05);
}

html[data-neon-theme]:not([data-neon-theme="future"]) .cc_item:hover {
	box-shadow:
		0 0 25px rgba(var(--neon-secondary-rgb), 0.5),
		0 0 40px rgba(var(--neon-primary-rgb), 0.25),
		inset 0 0 40px rgba(var(--neon-secondary-rgb), 0.1);
}

html[data-neon-theme]:not([data-neon-theme="future"]) span.cc_title {
	color: var(--neon-primary);
	border-color: var(--neon-secondary);
	box-shadow:
		0 0 10px rgba(var(--neon-secondary-rgb), 0.6),
		inset 0 0 12px rgba(var(--neon-primary-rgb), 0.15);
	text-shadow: 0 0 8px var(--neon-primary), 0 0 16px var(--neon-primary);
}

html[data-neon-theme]:not([data-neon-theme="future"]) .cc_submenu ul li:hover {
	color: var(--neon-secondary);
	background: rgba(var(--neon-secondary-rgb), 0.12);
	text-shadow: 0 0 10px var(--neon-secondary), 0 0 20px var(--neon-secondary);
}

html[data-neon-theme]:not([data-neon-theme="future"]) .title::before {
	color: var(--neon-secondary);
	text-shadow:
		0 0 7px var(--neon-secondary),
		0 0 20px var(--neon-secondary),
		0 0 40px var(--neon-secondary),
		0 0 80px var(--neon-accent);
}

html[data-neon-theme]:not([data-neon-theme="future"]) span.reference a {
	color: var(--neon-primary);
	text-shadow: 0 0 8px var(--neon-primary), 0 0 16px var(--neon-primary);
}

html[data-neon-theme]:not([data-neon-theme="future"]) span.reference a:hover {
	color: var(--neon-secondary);
	text-shadow: 0 0 8px var(--neon-secondary), 0 0 20px var(--neon-secondary);
}

html[data-neon-theme]:not([data-neon-theme="future"]) .cc_content h1 {
	color: var(--neon-secondary);
	text-shadow:
		0 0 10px var(--neon-secondary),
		0 0 25px var(--neon-secondary),
		0 0 50px var(--neon-accent);
}

html[data-neon-theme]:not([data-neon-theme="future"]) .cc_content {
	border-bottom-color: var(--neon-primary);
	border-left-color: var(--neon-secondary);
	box-shadow:
		0 0 30px rgba(var(--neon-primary-rgb), 0.35),
		0 0 60px rgba(var(--neon-secondary-rgb), 0.2),
		inset 0 0 50px rgba(var(--neon-secondary-rgb), 0.05);
}

html[data-neon-theme]:not([data-neon-theme="future"]) .cc_preview-link {
	outline-color: var(--neon-primary);
}

html[data-neon-theme]:not([data-neon-theme="future"]) #cc_back.cc_back {
	border-color: var(--neon-primary);
	color: var(--neon-primary);
	text-shadow: 0 0 8px var(--neon-primary);
	box-shadow: 0 0 15px rgba(var(--neon-primary-rgb), 0.5), inset 0 0 12px rgba(var(--neon-primary-rgb), 0.1);
}

html[data-neon-theme]:not([data-neon-theme="future"]) #cc_back.cc_back:hover,
html[data-neon-theme]:not([data-neon-theme="future"]) #cc_back.cc_back:focus {
	background: var(--neon-secondary);
	border-color: var(--neon-secondary);
	box-shadow: 0 0 20px rgba(var(--neon-secondary-rgb), 0.8);
}

html[data-neon-theme]:not([data-neon-theme="future"]) body::before {
	background:
		linear-gradient(180deg, transparent 0%, transparent 55%, rgba(var(--neon-secondary-rgb), 0.15) 75%, rgba(var(--neon-secondary-rgb), 0.4) 100%),
		linear-gradient(90deg, rgba(var(--neon-primary-rgb), 0.03) 1px, transparent 1px),
		linear-gradient(rgba(var(--neon-primary-rgb), 0.03) 1px, transparent 1px);
}

html[data-neon-theme]:not([data-neon-theme="future"]) body::after {
	background:
		repeating-linear-gradient(90deg, var(--neon-secondary) 0px, var(--neon-secondary) 2px, transparent 2px, transparent 80px),
		repeating-linear-gradient(0deg, var(--neon-primary) 0px, var(--neon-primary) 2px, transparent 2px, transparent 80px);
}

/* Slideshow — themed UI */
html[data-neon-theme]:not([data-neon-theme="future"]) .slideshow-header {
	border-bottom-color: rgba(var(--neon-primary-rgb), 0.25);
}

html[data-neon-theme]:not([data-neon-theme="future"]) .slideshow-header h1 {
	color: var(--neon-secondary);
	text-shadow: 0 0 12px var(--neon-secondary), 0 0 28px var(--neon-accent);
}

html[data-neon-theme]:not([data-neon-theme="future"]) .btn-back,
html[data-neon-theme]:not([data-neon-theme="future"]) .gallery-chain-link {
	color: var(--neon-primary);
	border-color: rgba(var(--neon-primary-rgb), 0.45);
}

html[data-neon-theme]:not([data-neon-theme="future"]) .btn-nav,
html[data-neon-theme]:not([data-neon-theme="future"]) .btn-playpause {
	border-color: var(--neon-primary);
	color: var(--neon-primary);
}

html[data-neon-theme]:not([data-neon-theme="future"]) .dot.is-active,
html[data-neon-theme]:not([data-neon-theme="future"]) .thumb.is-active {
	border-color: var(--neon-primary);
	box-shadow: 0 0 12px rgba(var(--neon-primary-rgb), 0.55);
}

html[data-neon-theme]:not([data-neon-theme="future"]) .carousel-slide.is-active .slide-media {
	border-color: var(--neon-primary);
	box-shadow:
		0 20px 50px rgba(0, 0, 0, 0.65),
		0 0 24px rgba(var(--neon-primary-rgb), 0.45),
		0 0 40px rgba(var(--neon-secondary-rgb), 0.2);
}

/* Settings UI — index page only */
body.gallery-index .settings-tab {
	position: fixed;
	top: 12px;
	right: 12px;
	left: auto;
	z-index: 302;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	border: none;
	border-radius: 8px;
	background: rgba(10, 0, 30, 0.92);
	color: var(--neon-primary, #00f5ff);
	cursor: pointer;
	border: 1px solid rgba(var(--neon-primary-rgb, 0, 245, 255), 0.45);
	box-shadow: 0 0 16px rgba(var(--neon-primary-rgb, 0, 245, 255), 0.35);
	transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

body.gallery-index .settings-tab__icon {
	display: block;
	width: 22px;
	height: 22px;
	transition: transform 0.3s ease;
}

body.gallery-index .settings-tab:hover .settings-tab__icon,
body.gallery-index .settings-tab:focus .settings-tab__icon {
	transform: rotate(90deg);
}

body.gallery-index .settings-tab:hover,
body.gallery-index .settings-tab:focus {
	outline: none;
	background: rgba(var(--neon-secondary-rgb, 255, 42, 109), 0.25);
	color: #fff;
	box-shadow: 0 0 22px rgba(var(--neon-primary-rgb, 0, 245, 255), 0.55);
}

@keyframes settings-tab-hint-pulse {
	0%,
	100% {
		box-shadow:
			0 0 16px rgba(var(--neon-primary-rgb, 0, 245, 255), 0.35),
			0 0 0 0 rgba(var(--neon-primary-rgb, 0, 245, 255), 0.45);
	}

	50% {
		box-shadow:
			0 0 26px rgba(var(--neon-primary-rgb, 0, 245, 255), 0.65),
			0 0 0 5px rgba(var(--neon-primary-rgb, 0, 245, 255), 0.28);
	}
}

body.gallery-index .settings-tab.settings-tab--hint {
	animation: settings-tab-hint-pulse 1.6s ease-in-out infinite;
}

body.gallery-index .settings-hint {
	position: fixed;
	top: 58px;
	right: 12px;
	z-index: 303;
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	max-width: min(16rem, calc(100vw - 24px));
	padding: 0.55rem 0.45rem 0.55rem 0.7rem;
	border-radius: 8px;
	border: 1px solid rgba(var(--neon-primary-rgb, 0, 245, 255), 0.55);
	background: rgba(8, 0, 24, 0.94);
	color: #c8e8ff;
	font-family: "Rajdhani", Arial, sans-serif;
	font-size: 0.9rem;
	line-height: 1.35;
	letter-spacing: 0.02em;
	box-shadow:
		0 8px 28px rgba(0, 0, 0, 0.55),
		0 0 22px rgba(var(--neon-primary-rgb, 0, 245, 255), 0.25);
	opacity: 0;
	transform: translateY(-8px);
	pointer-events: none;
	transition:
		opacity 0.35s ease,
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

body.gallery-index .settings-hint::before {
	content: "";
	position: absolute;
	top: -7px;
	right: 20px;
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-bottom: 7px solid rgba(var(--neon-primary-rgb, 0, 245, 255), 0.55);
}

body.gallery-index .settings-hint::after {
	content: "";
	position: absolute;
	top: -5px;
	right: 21px;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-bottom: 6px solid rgba(8, 0, 24, 0.94);
}

body.gallery-index .settings-hint.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

body.gallery-index .settings-hint__text {
	margin: 0;
	flex: 1;
}

body.gallery-index .settings-hint__text strong {
	color: var(--neon-primary, #00f5ff);
	font-weight: 700;
	text-shadow: 0 0 10px rgba(var(--neon-primary-rgb, 0, 245, 255), 0.45);
}

body.gallery-index .settings-hint__dismiss {
	flex-shrink: 0;
	width: 1.65rem;
	height: 1.65rem;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: rgba(200, 232, 255, 0.75);
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
}

body.gallery-index .settings-hint__dismiss:hover,
body.gallery-index .settings-hint__dismiss:focus {
	outline: none;
	color: #fff;
	background: rgba(var(--neon-secondary-rgb, 255, 42, 109), 0.35);
}

@media (prefers-reduced-motion: reduce) {
	body.gallery-index .settings-tab.settings-tab--hint {
		animation: none;
		box-shadow:
			0 0 20px rgba(var(--neon-primary-rgb, 0, 245, 255), 0.55),
			0 0 0 3px rgba(var(--neon-primary-rgb, 0, 245, 255), 0.35);
	}

	body.gallery-index .settings-hint,
	body.gallery-index .settings-hint.is-visible {
		transition: none;
		transform: none;
	}
}

body.gallery-index .settings-backdrop {
	position: fixed;
	inset: 0;
	z-index: 299;
	background: rgba(2, 0, 8, 0.55);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.gallery-index .settings-backdrop.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

body.gallery-index .gallery-settings-panel {
	position: fixed;
	right: 0;
	left: auto;
	top: 0;
	z-index: 301;
	width: min(320px, 88vw);
	height: 100%;
	padding: 24px 20px 32px;
	background: linear-gradient(180deg, rgba(12, 0, 28, 0.98) 0%, rgba(6, 0, 16, 0.99) 100%);
	border-left: 2px solid rgba(var(--neon-primary-rgb, 0, 245, 255), 0.4);
	box-shadow: -8px 0 40px rgba(0, 0, 0, 0.65), 0 0 30px rgba(var(--neon-primary-rgb, 0, 245, 255), 0.15);
	transform: translateX(100%);
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
	overflow-y: auto;
	font-family: "Rajdhani", Arial, sans-serif;
	color: #b8e4ff;
}

body.gallery-index .gallery-settings-panel.is-open {
	transform: translateX(0);
}

body.gallery-index .settings-quiet-toggle,
body.gallery-index .settings-music-toggle,
body.gallery-index .settings-recent-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 14px 16px;
	border-radius: 6px;
	box-sizing: border-box;
	font-family: "Orbitron", Arial, sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.25;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

body.gallery-index .settings-recent-link {
	margin: 20px 0 0;
	border: 2px solid rgba(var(--neon-secondary-rgb, 255, 42, 109), 0.55);
	background: rgba(var(--neon-secondary-rgb, 255, 42, 109), 0.12);
	color: var(--neon-secondary, #ff2a6d);
	text-decoration: none;
}

body.gallery-index .settings-recent-link:hover,
body.gallery-index .settings-recent-link:focus {
	outline: none;
	color: #fff;
	background: rgba(var(--neon-secondary-rgb, 255, 42, 109), 0.28);
	border-color: var(--neon-secondary, #ff2a6d);
	box-shadow: 0 0 20px rgba(var(--neon-secondary-rgb, 255, 42, 109), 0.45);
}

body.gallery-index .gallery-settings-panel h2 {
	margin: 0 0 20px;
	font-family: "Orbitron", Arial, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--neon-secondary, #ff2a6d);
	text-shadow: 0 0 12px rgba(var(--neon-secondary-rgb, 255, 42, 109), 0.6);
}

body.gallery-index .gallery-settings-panel p {
	margin: 0 0 18px;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #9ec8e8;
}

body.gallery-index .settings-quiet-toggle,
body.gallery-index .settings-music-toggle {
	margin: 0 0 12px;
	border: 2px solid rgba(var(--neon-primary-rgb, 0, 245, 255), 0.5);
	background: rgba(var(--neon-primary-rgb, 0, 245, 255), 0.08);
	color: var(--neon-primary, #00f5ff);
}

body.gallery-index .settings-quiet-toggle:hover,
body.gallery-index .settings-quiet-toggle:focus,
body.gallery-index .settings-music-toggle:hover,
body.gallery-index .settings-music-toggle:focus {
	outline: none;
	border-color: var(--neon-primary, #00f5ff);
	box-shadow: 0 0 18px rgba(var(--neon-primary-rgb, 0, 245, 255), 0.45);
}

body.gallery-index .settings-music-toggle {
	margin-bottom: 24px;
}

body.gallery-index .settings-quiet-toggle.is-active,
body.gallery-index .settings-music-toggle.is-active {
	background: rgba(var(--neon-secondary-rgb, 255, 42, 109), 0.2);
	border-color: var(--neon-secondary, #ff2a6d);
	color: #ffe8f0;
	box-shadow: 0 0 16px rgba(var(--neon-secondary-rgb, 255, 42, 109), 0.4);
}

body.gallery-index .settings-fieldset {
	margin: 0;
	padding: 0;
	border: none;
}

body.gallery-index .settings-fieldset legend {
	margin: 0 0 12px;
	padding: 0;
	font-family: "Orbitron", Arial, sans-serif;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--neon-primary, #00f5ff);
}

body.gallery-index .settings-theme-option {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	padding: 10px 12px;
	border: 1px solid rgba(var(--neon-primary-rgb, 0, 245, 255), 0.25);
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

body.gallery-index .settings-theme-option:hover {
	background: rgba(var(--neon-primary-rgb, 0, 245, 255), 0.08);
	border-color: rgba(var(--neon-primary-rgb, 0, 245, 255), 0.45);
}

body.gallery-index .settings-theme-option input {
	accent-color: var(--neon-primary, #00f5ff);
}

body.gallery-index .settings-theme-swatch {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	flex-shrink: 0;
	border: 2px solid rgba(255, 255, 255, 0.35);
}

body.gallery-index .settings-theme-swatch--default {
	background: linear-gradient(135deg, #00f5ff, #ff2a6d, #d400ff);
}

body.gallery-index .settings-theme-swatch--blue {
	background: linear-gradient(135deg, #5eb8ff, #1a6bff);
}

body.gallery-index .settings-theme-swatch--green {
	background: linear-gradient(135deg, #00ff9d, #39ff14);
}

body.gallery-index .settings-theme-swatch--future {
	background: linear-gradient(145deg, #eef2f7 0%, #8a939f 35%, #2a3038 55%, #c5ced8 100%);
	border-color: rgba(200, 212, 228, 0.6);
}

body.gallery-index .settings-theme-swatch--portfolio {
	background: linear-gradient(135deg, #3dffec 0%, #ff4fd4 48%, #9d87ff 100%);
	border-color: rgba(61, 255, 236, 0.45);
}

/* —— Portfolio theme: root index.html sci-fi HUD —— */
html[data-neon-theme="portfolio"] body.gallery-index {
	background: var(--portfolio-bg-deep) !important;
	color: var(--portfolio-text) !important;
	font-family: var(--portfolio-font-body) !important;
}

html[data-neon-theme="portfolio"] body.gallery-index::before {
	background:
		radial-gradient(ellipse 100% 60% at 50% -5%, rgba(61, 255, 236, 0.07), transparent 52%),
		radial-gradient(ellipse 90% 70% at 95% 15%, rgba(255, 79, 212, 0.09), transparent 48%),
		radial-gradient(ellipse 110% 80% at 5% 70%, rgba(157, 135, 255, 0.1), transparent 55%),
		repeating-linear-gradient(
			transparent 0,
			transparent 47px,
			rgba(61, 255, 236, 0.016) 47px,
			rgba(61, 255, 236, 0.016) 48px
		),
		linear-gradient(165deg, #020208 0%, #060a14 40%, var(--portfolio-bg-deep) 100%) !important;
	background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100% !important;
	perspective: none !important;
	opacity: 1 !important;
}

html[data-neon-theme="portfolio"] body.gallery-index::after {
	background:
		radial-gradient(ellipse 70% 50% at 50% 100%, rgba(61, 255, 236, 0.05), transparent 50%) !important;
	opacity: 0.85 !important;
	transform: none !important;
	height: 100% !important;
	width: 100% !important;
	left: 0 !important;
	bottom: auto !important;
}

html[data-neon-theme="portfolio"] .cc_menu {
	font-family: var(--portfolio-font-body) !important;
	color: var(--portfolio-text) !important;
}

html[data-neon-theme="portfolio"] .cc_item {
	border-bottom-color: rgba(var(--neon-secondary-rgb), 0.55) !important;
	border-right-color: rgba(var(--neon-primary-rgb), 0.28) !important;
	background: linear-gradient(
		148deg,
		rgba(8, 14, 28, 0.95) 0%,
		rgba(4, 6, 14, 0.99) 52%,
		rgba(10, 12, 26, 0.97) 100%
	) !important;
	box-shadow:
		0 0 0 1px rgba(157, 135, 255, 0.1),
		0 12px 32px rgba(0, 2, 16, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html[data-neon-theme="portfolio"] .cc_item:hover {
	box-shadow:
		0 0 0 1px rgba(var(--neon-primary-rgb), 0.35),
		0 0 28px rgba(var(--neon-primary-rgb), 0.2),
		0 16px 40px rgba(0, 2, 16, 0.6),
		inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html[data-neon-theme="portfolio"] span.cc_title {
	font-family: var(--portfolio-font-hud) !important;
	font-weight: 600 !important;
	letter-spacing: 0.2em !important;
	border-color: rgba(var(--neon-primary-rgb), 0.38) !important;
	background: rgba(6, 12, 24, 0.88) !important;
	text-shadow: 0 0 28px rgba(var(--neon-primary-rgb), 0.38) !important;
}

html[data-neon-theme="portfolio"] .title::before {
	font-family: var(--portfolio-font-display) !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em !important;
	color: var(--portfolio-text) !important;
	text-shadow:
		0 0 28px rgba(var(--neon-primary-rgb), 0.38),
		0 0 48px rgba(var(--neon-secondary-rgb), 0.22) !important;
	animation: none !important;
}

html[data-neon-theme="portfolio"] .cc_submenu ul {
	background: rgba(6, 12, 24, 0.95) !important;
	border-top-color: rgba(var(--neon-primary-rgb), 0.38) !important;
}

html[data-neon-theme="portfolio"] .cc_submenu ul li {
	color: var(--portfolio-text-muted) !important;
	font-family: var(--portfolio-font-hud) !important;
	font-size: 0.65rem !important;
	letter-spacing: 0.14em !important;
}

html[data-neon-theme="portfolio"] .cc_content {
	background: linear-gradient(
		148deg,
		rgba(8, 14, 28, 0.97) 0%,
		rgba(4, 6, 14, 0.99) 100%
	) !important;
	border-color: rgba(var(--neon-primary-rgb), 0.32) !important;
	box-shadow:
		0 0 0 1px rgba(157, 135, 255, 0.1),
		0 24px 52px rgba(0, 4, 20, 0.55),
		0 0 48px rgba(var(--neon-primary-rgb), 0.08) !important;
}

html[data-neon-theme="portfolio"] .cc_content h1 {
	font-family: var(--portfolio-font-display) !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
}

html[data-neon-theme="portfolio"] .cc_content p,
html[data-neon-theme="portfolio"] .cc_content p.cc_intro {
	color: var(--portfolio-text-muted) !important;
	font-family: var(--portfolio-font-body) !important;
}

html[data-neon-theme="portfolio"] span.reference {
	font-family: var(--portfolio-font-hud) !important;
	letter-spacing: 0.24em !important;
}

html[data-neon-theme="portfolio"] body.gallery-index .gallery-settings-panel {
	font-family: var(--portfolio-font-body) !important;
	color: var(--portfolio-text-muted) !important;
	background: linear-gradient(
		148deg,
		rgba(8, 14, 28, 0.98) 0%,
		rgba(4, 6, 14, 0.99) 100%
	) !important;
	border-left-color: rgba(var(--neon-primary-rgb), 0.38) !important;
}

html[data-neon-theme="portfolio"] body.gallery-index .gallery-settings-panel h2,
html[data-neon-theme="portfolio"] body.gallery-index .settings-fieldset legend {
	font-family: var(--portfolio-font-hud) !important;
}

html[data-neon-theme="portfolio"] body.gallery-index .settings-quiet-toggle,
html[data-neon-theme="portfolio"] body.gallery-index .settings-music-toggle,
html[data-neon-theme="portfolio"] body.gallery-index .settings-recent-link {
	font-family: var(--portfolio-font-hud) !important;
}

html[data-neon-theme="portfolio"] body.gallery-index .settings-hint {
	font-family: var(--portfolio-font-body) !important;
	color: var(--portfolio-text) !important;
	background: rgba(6, 12, 24, 0.94) !important;
}

/* —— Future theme: metallic UI + chrome typography —— */
html[data-neon-theme="future"] {
	--neon-primary: #c8d4e4;
	--neon-secondary: #eef2f7;
	--neon-accent: #7eb8ff;
	--neon-primary-rgb: 200, 212, 228;
	--neon-secondary-rgb: 238, 242, 247;
	--neon-accent-rgb: 126, 184, 255;
	--future-bg: #06080c;
	--future-panel: linear-gradient(
		165deg,
		#6e7884 0%,
		#3d4550 14%,
		#1e242c 38%,
		#4a535f 50%,
		#151a22 72%,
		#2a313a 100%
	);
	--future-panel-inset: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -2px 8px rgba(0, 0, 0, 0.55);
	--future-border: 1px solid rgba(180, 192, 208, 0.35);
	--future-chrome-font: "Michroma", "Orbitron", Arial, sans-serif;
	--future-ui-font: "Exo 2", "Rajdhani", Arial, sans-serif;
}

html[data-neon-theme="future"] body {
	background: var(--future-bg) !important;
	font-family: var(--future-ui-font) !important;
	color: #b4c0d0 !important;
}

html[data-neon-theme="future"] body::before {
	background:
		radial-gradient(ellipse 80% 50% at 50% 100%, rgba(126, 184, 255, 0.08) 0%, transparent 55%),
		repeating-linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.02) 0,
			rgba(255, 255, 255, 0.02) 1px,
			transparent 1px,
			transparent 48px
		),
		repeating-linear-gradient(
			0deg,
			rgba(255, 255, 255, 0.02) 0,
			rgba(255, 255, 255, 0.02) 1px,
			transparent 1px,
			transparent 48px
		) !important;
	opacity: 1 !important;
}

html[data-neon-theme="future"] body::after {
	background:
		repeating-linear-gradient(
			90deg,
			rgba(200, 212, 228, 0.12) 0,
			rgba(200, 212, 228, 0.12) 1px,
			transparent 1px,
			transparent 64px
		) !important;
	opacity: 0.2 !important;
	transform: rotateX(68deg) !important;
}

html[data-neon-theme="future"] .title {
	animation: none !important;
}

html[data-neon-theme="future"] .title::before {
	font-family: var(--future-chrome-font) !important;
	font-size: 24px !important;
	letter-spacing: 0.28em !important;
	background: linear-gradient(
		180deg,
		#f8fafc 0%,
		#c5ced8 28%,
		#6a7585 48%,
		#eef2f7 58%,
		#9aa8b8 100%
	) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	-webkit-text-fill-color: transparent !important;
	color: transparent !important;
	text-shadow: none !important;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85));
}

html[data-neon-theme="future"] .cc_menu {
	color: #aebacc !important;
	font-family: var(--future-ui-font) !important;
	letter-spacing: 0.1em !important;
}

html[data-neon-theme="future"] .cc_item {
	background: var(--future-panel) !important;
	border-bottom: var(--future-border) !important;
	border-right: var(--future-border) !important;
	box-shadow:
		0 4px 18px rgba(0, 0, 0, 0.55),
		var(--future-panel-inset) !important;
}

html[data-neon-theme="future"] .cc_item:hover {
	box-shadow:
		0 8px 28px rgba(0, 0, 0, 0.65),
		0 0 20px rgba(126, 184, 255, 0.15),
		var(--future-panel-inset) !important;
}

html[data-neon-theme="future"] span.cc_title {
	font-family: var(--future-chrome-font) !important;
	font-size: 10px !important;
	background: linear-gradient(180deg, #252c35 0%, #14181f 100%) !important;
	border: var(--future-border) !important;
	border-left: none !important;
	border-right: none !important;
	animation: none !important;
	color: #e2e8f0 !important;
	text-shadow:
		0 1px 0 rgba(255, 255, 255, 0.45),
		0 -1px 0 rgba(0, 0, 0, 0.8),
		0 0 10px rgba(126, 184, 255, 0.35) !important;
	box-shadow: var(--future-panel-inset), 0 0 12px rgba(126, 184, 255, 0.15) !important;
}

html[data-neon-theme="future"] .cc_submenu ul {
	background: linear-gradient(180deg, #1a2028 0%, #0e1218 100%) !important;
	border-top: var(--future-border) !important;
}

html[data-neon-theme="future"] .cc_submenu ul li {
	color: #8a98a8 !important;
	font-family: var(--future-ui-font) !important;
	text-shadow: none !important;
}

html[data-neon-theme="future"] .cc_submenu ul li:hover {
	color: #e8edf4 !important;
	background: linear-gradient(90deg, rgba(126, 184, 255, 0.15), rgba(200, 212, 228, 0.08)) !important;
	text-shadow: 0 0 8px rgba(126, 184, 255, 0.5) !important;
}

html[data-neon-theme="future"] .cc_content {
	background: var(--future-panel) !important;
	border: var(--future-border) !important;
	border-bottom-color: rgba(180, 192, 208, 0.45) !important;
	border-left-color: rgba(126, 184, 255, 0.5) !important;
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.6),
		var(--future-panel-inset),
		0 0 24px rgba(126, 184, 255, 0.08) !important;
}

html[data-neon-theme="future"] .cc_content h1 {
	font-family: var(--future-chrome-font) !important;
	font-size: 1.35rem !important;
	letter-spacing: 0.12em !important;
	background: linear-gradient(180deg, #fff 0%, #c8d4e4 35%, #6a7585 50%, #eef2f7 100%) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	-webkit-text-fill-color: transparent !important;
	text-shadow: none !important;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

html[data-neon-theme="future"] .cc_content p,
html[data-neon-theme="future"] .cc_content p.cc_intro {
	color: #9aa8b8 !important;
	font-family: var(--future-ui-font) !important;
	background: rgba(14, 18, 24, 0.85) !important;
	border: var(--future-border) !important;
	box-shadow: var(--future-panel-inset) !important;
	text-shadow: none !important;
}

html[data-neon-theme="future"] span.reference a {
	font-family: var(--future-chrome-font) !important;
	font-size: 10px !important;
	color: #c8d4e4 !important;
	text-shadow: 0 0 6px rgba(126, 184, 255, 0.35) !important;
}

html[data-neon-theme="future"] span.reference a:hover {
	color: #eef2f7 !important;
	text-shadow: 0 0 10px rgba(126, 184, 255, 0.6) !important;
}

html[data-neon-theme="future"] #cc_back.cc_back {
	font-family: var(--future-chrome-font) !important;
	background: var(--future-panel) !important;
	border: var(--future-border) !important;
	color: #d8e0ea !important;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), var(--future-panel-inset) !important;
}

html[data-neon-theme="future"] #cc_back.cc_back:hover,
html[data-neon-theme="future"] #cc_back.cc_back:focus {
	background: linear-gradient(165deg, #7a8490, #3a424c, #252c35) !important;
	border-color: rgba(126, 184, 255, 0.55) !important;
	color: #fff !important;
	box-shadow: 0 0 20px rgba(126, 184, 255, 0.25), var(--future-panel-inset) !important;
}

html[data-neon-theme="future"] .cc_preview-link {
	outline-color: rgba(200, 212, 228, 0.6) !important;
}

/* Slideshow — future */
html[data-neon-theme="future"] body.slideshow,
html[data-neon-theme="future"] html,
html[data-neon-theme="future"] body:has(.slideshow) {
	background: var(--future-bg) !important;
}

html[data-neon-theme="future"] body::before {
	z-index: 0;
}

html[data-neon-theme="future"] .slideshow-header {
	background: var(--future-panel) !important;
	border-bottom: var(--future-border) !important;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), var(--future-panel-inset) !important;
	backdrop-filter: none !important;
}

html[data-neon-theme="future"] .slideshow-header h1 {
	font-family: var(--future-chrome-font) !important;
	background: linear-gradient(180deg, #f8fafc, #aeb8c4 45%, #5a6570 52%, #e8edf4) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	-webkit-text-fill-color: transparent !important;
	text-shadow: none !important;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}

html[data-neon-theme="future"] .slideshow-header .counter {
	font-family: var(--future-chrome-font) !important;
	color: #aeb8c4 !important;
	text-shadow: 0 0 8px rgba(126, 184, 255, 0.35) !important;
}

html[data-neon-theme="future"] .btn-back,
html[data-neon-theme="future"] .gallery-chain-link {
	font-family: var(--future-chrome-font) !important;
	background: var(--future-panel) !important;
	border: var(--future-border) !important;
	color: #d0dae6 !important;
	box-shadow: var(--future-panel-inset) !important;
	text-shadow: none !important;
}

html[data-neon-theme="future"] .btn-back:hover,
html[data-neon-theme="future"] .gallery-chain-link:hover {
	border-color: rgba(126, 184, 255, 0.55) !important;
	color: #fff !important;
	box-shadow: 0 0 16px rgba(126, 184, 255, 0.2), var(--future-panel-inset) !important;
}

html[data-neon-theme="future"] .btn-nav,
html[data-neon-theme="future"] .btn-playpause {
	font-family: var(--future-chrome-font) !important;
	background: var(--future-panel) !important;
	border: var(--future-border) !important;
	color: #d8e0ea !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), var(--future-panel-inset) !important;
	text-shadow: none !important;
}

html[data-neon-theme="future"] .btn-nav:hover,
html[data-neon-theme="future"] .btn-playpause:hover {
	border-color: rgba(126, 184, 255, 0.6) !important;
	box-shadow: 0 0 18px rgba(126, 184, 255, 0.25), var(--future-panel-inset) !important;
}

html[data-neon-theme="future"] .slideshow-stage,
html[data-neon-theme="future"] .slideshow-thumbs {
	background: rgba(8, 10, 14, 0.6) !important;
}

html[data-neon-theme="future"] .thumb,
html[data-neon-theme="future"] .dot {
	border-color: rgba(140, 152, 168, 0.4) !important;
	background: var(--future-panel) !important;
}

html[data-neon-theme="future"] .dot.is-active,
html[data-neon-theme="future"] .thumb.is-active {
	border-color: rgba(200, 212, 228, 0.75) !important;
	box-shadow: 0 0 14px rgba(126, 184, 255, 0.35), var(--future-panel-inset) !important;
}

html[data-neon-theme="future"] .carousel-slide.is-active .slide-media {
	border: 2px solid rgba(180, 192, 208, 0.5) !important;
	box-shadow:
		0 20px 50px rgba(0, 0, 0, 0.7),
		0 0 20px rgba(126, 184, 255, 0.15),
		var(--future-panel-inset) !important;
}

html[data-neon-theme="future"] .slide-hover-preview__inner {
	border-color: rgba(200, 212, 228, 0.45) !important;
}

html[data-neon-theme="future"] .slide-hover-preview__caption {
	font-family: var(--future-chrome-font) !important;
	color: #c8d4e4 !important;
	text-shadow: 0 0 8px rgba(126, 184, 255, 0.4) !important;
}

/* Settings panel — future */
html[data-neon-theme="future"] body.gallery-index .settings-tab {
	background: var(--future-panel) !important;
	border: var(--future-border) !important;
	color: #d8e0ea !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), var(--future-panel-inset) !important;
}

html[data-neon-theme="future"] body.gallery-index .settings-tab:hover,
html[data-neon-theme="future"] body.gallery-index .settings-tab:focus {
	color: #fff !important;
	box-shadow: 0 0 18px rgba(126, 184, 255, 0.3), var(--future-panel-inset) !important;
}

html[data-neon-theme="future"] body.gallery-index .gallery-settings-panel {
	background: linear-gradient(180deg, #2a313a 0%, #12161c 100%) !important;
	border-left: var(--future-border) !important;
	box-shadow: -12px 0 40px rgba(0, 0, 0, 0.65), var(--future-panel-inset) !important;
	color: #aeb8c4 !important;
}

html[data-neon-theme="future"] body.gallery-index .gallery-settings-panel h2 {
	font-family: var(--future-chrome-font) !important;
	color: transparent !important;
	background: linear-gradient(180deg, #f4f7fb, #9aa8b8 50%, #e8edf4) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	-webkit-text-fill-color: transparent !important;
	text-shadow: none !important;
}

html[data-neon-theme="future"] body.gallery-index .gallery-settings-panel p {
	font-family: var(--future-ui-font) !important;
	color: #8a98a8 !important;
}

html[data-neon-theme="future"] body.gallery-index .settings-quiet-toggle,
html[data-neon-theme="future"] body.gallery-index .settings-music-toggle,
html[data-neon-theme="future"] body.gallery-index .settings-recent-link {
	font-family: var(--future-chrome-font) !important;
	background: var(--future-panel) !important;
	border: var(--future-border) !important;
	color: #d0dae6 !important;
	box-shadow: var(--future-panel-inset) !important;
	text-shadow: none !important;
}

html[data-neon-theme="future"] body.gallery-index .settings-quiet-toggle.is-active,
html[data-neon-theme="future"] body.gallery-index .settings-music-toggle.is-active {
	background: linear-gradient(165deg, #4a5564, #252c35) !important;
	border-color: rgba(126, 184, 255, 0.5) !important;
	color: #fff !important;
}

html[data-neon-theme="future"] body.gallery-index .settings-fieldset legend {
	font-family: var(--future-chrome-font) !important;
	color: #c8d4e4 !important;
}

html[data-neon-theme="future"] body.gallery-index .settings-theme-option {
	background: rgba(14, 18, 24, 0.6) !important;
	border: var(--future-border) !important;
	font-family: var(--future-ui-font) !important;
	color: #aeb8c4 !important;
}

html[data-neon-theme="future"] body.gallery-index .settings-theme-option:hover {
	background: rgba(126, 184, 255, 0.1) !important;
	border-color: rgba(126, 184, 255, 0.4) !important;
}

html[data-neon-theme="future"] body.gallery-index .settings-recent-link:hover {
	color: #fff !important;
	border-color: rgba(126, 184, 255, 0.55) !important;
	box-shadow: 0 0 18px rgba(126, 184, 255, 0.25), var(--future-panel-inset) !important;
}

/* —— Subtle hover preview glow —— */
@keyframes preview-glow-pulse {
	0%,
	100% {
		box-shadow:
			0 0 22px rgba(var(--neon-primary-rgb), 0.75),
			0 0 48px rgba(var(--neon-secondary-rgb), 0.45),
			0 0 70px rgba(var(--neon-accent-rgb), 0.3),
			0 28px 64px rgba(0, 0, 0, 0.7);
	}
	50% {
		box-shadow:
			0 0 32px rgba(var(--neon-primary-rgb), 0.95),
			0 0 60px rgba(var(--neon-secondary-rgb), 0.65),
			0 0 90px rgba(var(--neon-accent-rgb), 0.45),
			0 28px 64px rgba(0, 0, 0, 0.7);
	}
}

html[data-glow="subtle"] .slide-hover-preview.is-visible::before {
	display: none;
}

html[data-glow="subtle"] .slide-hover-preview__inner {
	padding: 4px;
	border-radius: 10px;
	background: linear-gradient(
		135deg,
		var(--neon-primary) 0%,
		var(--neon-secondary) 45%,
		var(--neon-accent) 70%,
		var(--neon-primary) 100%
	);
	background-size: 100% 100%;
	animation: preview-glow-pulse 2.4s ease-in-out infinite;
}

html[data-glow="subtle"] .slide-hover-preview__inner::before,
html[data-glow="subtle"] .slide-hover-preview__inner::after {
	display: none;
}

html[data-glow="subtle"] .slide-hover-preview.is-visible .slide-hover-preview__inner img {
	animation: none;
	filter: drop-shadow(0 0 12px rgba(var(--neon-primary-rgb), 0.5));
}

html[data-glow="subtle"] .slide-hover-preview__caption {
	color: var(--neon-primary);
	text-shadow:
		0 0 10px rgba(var(--neon-primary-rgb), 0.8),
		0 0 22px rgba(var(--neon-secondary-rgb), 0.4);
	animation: none;
}

/* —— Intense electrical hover preview glow —— */
@keyframes preview-arc-shift {
	0% {
		background-position: 0% 50%;
	}
	100% {
		background-position: 300% 50%;
	}
}

@keyframes preview-electric-flicker {
	0%,
	100% {
		box-shadow:
			0 0 4px 1px rgba(200, 245, 255, 0.95),
			0 0 14px 2px rgba(var(--neon-primary-rgb), 0.9),
			0 0 28px 4px rgba(var(--neon-primary-rgb), 0.65),
			0 0 52px 8px rgba(120, 220, 255, 0.45),
			0 0 90px 14px rgba(var(--neon-primary-rgb), 0.25),
			inset 0 0 18px rgba(var(--neon-primary-rgb), 0.35);
	}
	18% {
		box-shadow:
			0 0 6px 2px rgba(255, 255, 255, 1),
			0 0 20px 3px rgba(var(--neon-primary-rgb), 1),
			0 0 36px 5px rgba(var(--neon-secondary-rgb), 0.55),
			0 0 64px 10px rgba(var(--neon-primary-rgb), 0.5),
			inset 0 0 24px rgba(180, 255, 255, 0.5);
	}
	55% {
		box-shadow:
			0 0 8px 2px rgba(224, 255, 255, 1),
			0 0 22px 4px rgba(var(--neon-primary-rgb), 0.95),
			0 0 42px 6px rgba(var(--neon-primary-rgb), 0.75),
			0 0 72px 12px rgba(100, 200, 255, 0.55),
			inset 0 0 28px rgba(var(--neon-primary-rgb), 0.45);
	}
}

@keyframes preview-corona-pulse {
	0%,
	100% {
		opacity: 0.75;
		transform: scale(1);
	}
	50% {
		opacity: 1;
		transform: scale(1.015);
	}
}

@keyframes preview-img-electric {
	0%,
	100% {
		filter: drop-shadow(0 0 10px rgba(var(--neon-primary-rgb), 0.85))
			drop-shadow(0 0 22px rgba(var(--neon-primary-rgb), 0.45))
			brightness(1.02);
	}
	50% {
		filter: drop-shadow(0 0 14px rgba(220, 255, 255, 1))
			drop-shadow(0 0 28px rgba(var(--neon-primary-rgb), 0.7))
			brightness(1.08);
	}
}

@keyframes preview-caption-zap {
	0%,
	100% {
		text-shadow:
			0 0 8px rgba(var(--neon-primary-rgb), 0.9),
			0 0 18px rgba(var(--neon-primary-rgb), 0.55),
			0 0 28px rgba(var(--neon-secondary-rgb), 0.35);
		color: var(--neon-primary);
	}
	40% {
		text-shadow:
			0 0 12px rgba(255, 255, 255, 1),
			0 0 24px rgba(var(--neon-primary-rgb), 0.9),
			0 0 36px rgba(var(--neon-accent-rgb), 0.5);
		color: #e8fcff;
	}
}

html[data-glow="intense"] .slide-hover-preview.is-visible::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 60% at 50% 45%, rgba(var(--neon-primary-rgb), 0.12) 0%, transparent 65%),
		repeating-linear-gradient(
			0deg,
			transparent,
			transparent 2px,
			rgba(var(--neon-primary-rgb), 0.03) 2px,
			rgba(var(--neon-primary-rgb), 0.03) 3px
		);
	pointer-events: none;
	animation: preview-corona-pulse 1.8s ease-in-out infinite;
}

html[data-glow="intense"] .slide-hover-preview__inner {
	position: relative;
	padding: 3px;
	border-radius: 10px;
	background: linear-gradient(
		90deg,
		var(--neon-primary) 0%,
		#e0ffff 12%,
		var(--neon-primary) 22%,
		var(--neon-secondary) 38%,
		var(--neon-accent) 52%,
		var(--neon-primary) 68%,
		#ffffff 78%,
		var(--neon-primary) 88%,
		#66ffff 100%
	);
	background-size: 300% 100%;
	animation:
		preview-arc-shift 1.1s linear infinite,
		preview-electric-flicker 0.14s steps(1) infinite;
}

html[data-glow="intense"] .slide-hover-preview__inner::before {
	content: "";
	position: absolute;
	inset: -10px;
	border-radius: 14px;
	border: 1px solid rgba(var(--neon-primary-rgb), 0.35);
	box-shadow:
		0 0 12px 2px rgba(var(--neon-primary-rgb), 0.5),
		0 0 28px 6px rgba(var(--neon-primary-rgb), 0.3),
		0 0 48px 10px rgba(140, 220, 255, 0.2);
	pointer-events: none;
	z-index: -1;
	animation: preview-electric-flicker 0.18s steps(1) infinite reverse;
}

html[data-glow="intense"] .slide-hover-preview__inner::after {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 11px;
	background: linear-gradient(
		160deg,
		transparent 30%,
		rgba(255, 255, 255, 0.45) 48%,
		transparent 52%,
		rgba(var(--neon-primary-rgb), 0.25) 70%,
		transparent 72%
	);
	background-size: 200% 200%;
	pointer-events: none;
	mix-blend-mode: screen;
	opacity: 0.5;
	animation: preview-arc-shift 0.7s linear infinite;
}

html[data-glow="intense"] .slide-hover-preview.is-visible .slide-hover-preview__inner img {
	animation: preview-img-electric 0.16s steps(1) infinite;
}

html[data-glow="intense"] .slide-hover-preview.is-visible .slide-hover-preview__caption {
	animation: preview-caption-zap 0.2s steps(1) infinite;
}

html[data-glow="intense"] .slide-hover-preview__caption {
	color: var(--neon-primary);
	text-shadow:
		0 0 10px rgba(var(--neon-primary-rgb), 0.8),
		0 0 22px rgba(var(--neon-secondary-rgb), 0.4);
}
