span.reference {
	position: fixed;
	left: 0px;
	bottom: 0px;
	background: #000;
	width: 100%;
	font-size: 10px;
	line-height: 20px;
	text-align: right;
	height: 20px;
	-moz-box-shadow: -1px 0px 10px #000;
	-webkit-box-shadow: -1px 0px 10px #000;
	box-shadow: -1px 0px 10px #000;
}
span.reference a {
	color: #aaa;
	text-transform: uppercase;
	text-decoration: none;
	margin-right: 10px;
}
span.reference a:hover {
	color: #ddd;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.dynamic-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 0;
	opacity: 0.65;
	pointer-events: none;
}
.dynamic-backdrop::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05), transparent 55%),
		radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.04), transparent 45%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.12) 100%);
	mix-blend-mode: screen;
}
.bg_img img {
	width: 100%;
	position: fixed;
	top: 0px;
	left: 0px;
	z-index: -1;
}
h1 {
	font-family: 'Lobster', cursive;
	font-size: 75px;
	text-align: right;
	position: absolute;
	right: 40px;
	top: 20px;
	font-weight: normal;
	/*text-shadow:  0 0 3px #0096ff, 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #0096ff, 0 0 70px #0096ff, 0 0 80px #0096ff, 0 0 100px #0096ff, 0 0 150px #0096ff;*/
}
h1 span {
	display: block;
	font-size: 15px;
	font-weight: bold;
}
h2 {
	position: absolute;
	top: 220px;
	left: 50px;
	font-size: 40px;
	font-weight: normal;
	/*text-shadow:  0 0 3px #f6ff00, 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #f6ff00, 0 0 70px #f6ff00, 0 0 80px #f6ff00, 0 0 100px #f6ff00, 0 0 150px #f6ff00;*/
}

/* Override legacy absolute positioning for the new header title */
.site-title {
	position: static;
	font-family: 'Inter', sans-serif;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: lowercase;
}

/* Auth controls */
.auth-button {
	background: #333;
	color: #fff;
	border: none;
	padding: 8px 18px;
	border-radius: 18px;
	font-size: 0.9rem;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}
.auth-button.primary {
	background: #0059ff;
}
.auth-button:hover {
	background: #4a4a4a;
	transform: translateY(-1px);
}
.auth-button.primary:hover {
	background: #1d6bff;
}
.auth-button:active {
	transform: translateY(0);
}

/* Auth modal */
.auth-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 2000;
}
.auth-modal {
	background: #121212;
	color: #f5f5f5;
	width: 360px;
	max-width: 100%;
	padding: 28px;
	border-radius: 18px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.05);
}
.auth-modal h2 {
	font-size: 1.4rem;
	margin-bottom: 16px;
}
.auth-field {
	width: 100%;
	padding: 10px 14px;
	margin-bottom: 12px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 0.95rem;
}
.auth-field::placeholder {
	color: rgba(255, 255, 255, 0.55);
}
.auth-primary {
	width: 100%;
	padding: 12px 18px;
	border-radius: 12px;
	border: none;
	background: linear-gradient(135deg, #0059ff, #6a00ff);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
	margin-top: 4px;
}
.auth-primary:disabled {
	opacity: 0.65;
	cursor: default;
}
.auth-primary:hover:not(:disabled) {
	transform: translateY(-1px);
}
.auth-toggle {
	font-size: 0.85rem;
	text-align: center;
	margin-top: 14px;
	color: rgba(255, 255, 255, 0.7);
}
.auth-toggle span {
	color: #7aa8ff;
	cursor: pointer;
	text-decoration: underline;
}
.auth-close {
	display: block;
	margin: 16px auto 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.6);
	border: none;
	cursor: pointer;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.auth-error {
	color: #ff6b6b;
	font-size: 0.8rem;
	margin-bottom: 12px;
	text-align: left;
}
.auth-success {
	color: #7de28a;
	font-size: 0.8rem;
	margin-bottom: 12px;
	text-align: left;
}

/* API key panel */
.api-key-panel {
	margin: 0;
	max-width: 360px;
	width: 100%;
	padding: 20px 24px;
	background: rgba(17, 17, 17, 0.85);
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.api-key-panel.collapsed {
	padding: 18px 24px;
}
.api-key-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}
.api-key-panel h2 {
	font-size: 1.4rem;
	margin: 0;
}
.api-key-description {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.68);
	line-height: 1.45;
	margin-top: 10px;
}
.api-key-panel.collapsed .api-key-description {
	display: none;
}
.api-key-header-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}
.api-key-toggle {
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	cursor: pointer;
}
.api-key-toggle:hover {
	background: rgba(255, 255, 255, 0.15);
}
.api-key-summary {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 10px;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.6);
}
.api-key-error {
	background: rgba(255, 107, 107, 0.15);
	border: 1px solid rgba(255, 107, 107, 0.45);
	color: #ff9090;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 0.85rem;
	margin: 16px 0;
}
.api-key-current {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	padding: 12px 16px;
	margin-bottom: 16px;
}
.api-key-label {
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.5);
}
.api-key-status {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 16px;
}
.api-key-empty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
}
.api-key-actions {
	display: flex;
	gap: 12px;
	margin-bottom: 18px;
}
.api-key-reveal {
	padding: 16px;
	border-radius: 12px;
	background: rgba(0, 166, 255, 0.08);
	border: 1px solid rgba(0, 166, 255, 0.3);
}
.api-key-warning {
	font-size: 0.85rem;
	color: rgba(122, 168, 255, 0.9);
	margin-bottom: 10px;
}
.api-key-value {
	font-family: 'Inter', monospace;
	font-size: 1rem;
	letter-spacing: 0.04em;
	color: #9cc9ff;
	background: rgba(0, 0, 0, 0.5);
	padding: 12px 14px;
	border-radius: 10px;
	margin-bottom: 12px;
	word-break: break-all;
}
