:root {
	color-scheme: dark;
	--bg: #050912;
	--bg-elevated: #0f172a;
	--bg-muted: #111b30;
	--bg-contrast: #182342;
	--text: #f4f6fb;
	--text-muted: #96a2c2;
	--border: rgba(255, 255, 255, 0.08);
	--border-strong: rgba(255, 255, 255, 0.22);
	--shadow: 0 20px 60px rgba(2, 6, 23, 0.4);
	--radius-sm: 10px;
	--radius-md: 16px;
	--radius-lg: 22px;
	--accent: #8b5cf6;
	--accent-strong: #7c3aed;
	--accent-soft: rgba(139, 92, 246, 0.15);
	--success: #34d399;
	--error: #f87171;
}

[data-theme='light'] {
	color-scheme: light;
	--bg: #f8fafc;
	--bg-elevated: #ffffff;
	--bg-muted: #eef2ff;
	--bg-contrast: #e2e8f0;
	--text: #0f172a;
	--text-muted: #475569;
	--border: rgba(15, 23, 42, 0.1);
	--border-strong: rgba(15, 23, 42, 0.28);
	--shadow: 0 20px 55px rgba(15, 23, 42, 0.1);
	--accent: #4f46e5;
	--accent-strong: #4338ca;
	--accent-soft: rgba(79, 70, 229, 0.12);
}

[data-theme='pink'] {
	color-scheme: light;
	--bg: #fce7f3;
	--bg-elevated: #fdf2f8;
	--bg-muted: #fbcfe8;
	--bg-contrast: #f9a8d4;
	--text: #831843;
	--text-muted: #9d174d;
	--border: rgba(236, 72, 153, 0.25);
	--border-strong: rgba(190, 24, 93, 0.45);
	--shadow: 0 20px 55px rgba(236, 72, 153, 0.2);
	--accent: #ec4899;
	--accent-strong: #db2777;
	--accent-soft: rgba(236, 72, 153, 0.15);
	--success: #10b981;
	--error: #f43f5e;
}

* {
	box-sizing: border-box;
}

*::selection {
	background: var(--accent-soft);
	color: var(--text);
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
}

main {
	width: min(1100px, 100%);
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) 4rem;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	color: var(--accent-strong);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

.site-header {
	width: min(1100px, 100%);
	margin: 0 auto;
	padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem) 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.eyebrow {
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.75rem;
	color: var(--text-muted);
}

.page-title {
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2.75rem);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.btn,
.login_btn,
button {
	border: none;
	border-radius: var(--radius-sm);
	padding: 0.65rem 1.2rem;
	font-weight: 600;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms cubic-bezier(0.2, 0.8, 0.2, 1), background 140ms ease, border-color 140ms ease, color 140ms ease;
	background: var(--bg-muted);
	color: var(--text);
	box-shadow: inset 0 0 0 1px var(--border);
}

.btn-primary,
.login_btn.btn-primary,
.login_btn {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 12px 24px rgba(139, 92, 246, 0.25);
}

.btn:hover,
.login_btn:hover,
button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(2, 6, 23, 0.22), inset 0 0 0 1px var(--border-strong);
}

.btn:active,
.login_btn:active,
button:active {
	transform: translateY(0);
	box-shadow: inset 0 0 0 1px var(--border-strong);
}

.icon-button {
	border-radius: 999px;
	padding: 0.5rem 0.75rem;
	box-shadow: inset 0 0 0 1px var(--border);
	background: var(--bg-muted);
}

.theme-toggle {
	width: 2.6rem;
	height: 2.6rem;
	padding: 0;
	display: inline-grid;
	place-items: center;
	--theme-toggle-icon: url('dunkel.svg?v=2');
}

.theme-toggle .theme-icon {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	background-image: var(--theme-toggle-icon);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.theme-toggle[data-theme-current='dark'] {
	--theme-toggle-icon: url('dunkel.svg?v=2');
}

.theme-toggle[data-theme-current='light'] {
	--theme-toggle-icon: url('hell.svg?v=2');
}

.theme-toggle[data-theme-current='pink'] {
	--theme-toggle-icon: url('pink.svg?v=2');
}

html[data-theme='dark'] .theme-toggle:not([data-theme-current]) {
	--theme-toggle-icon: url('dunkel.svg?v=2');
}

html[data-theme='light'] .theme-toggle:not([data-theme-current]) {
	--theme-toggle-icon: url('hell.svg?v=2');
}

html[data-theme='pink'] .theme-toggle:not([data-theme-current]) {
	--theme-toggle-icon: url('pink.svg?v=2');
}

.hero {
	background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.25), transparent 55%), var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: clamp(1.75rem, 5vw, 3.5rem);
	box-shadow: var(--shadow);
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero-copy {
	max-width: 640px;
}

.hero-title {
	font-size: clamp(2rem, 5vw, 3rem);
	margin: 0;
	line-height: 1.2;
}

.section-heading {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 1.25rem;
}

.section-heading h3 {
	margin: 0;
	font-size: 1.5rem;
}

.surveys-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.25rem;
}

.surveys-fallback {
	grid-column: 1 / -1;
	color: var(--text-muted);
	margin: 0;
}

.survey-card {
	background: var(--bg-elevated);
	border-radius: var(--radius-md);
	padding: 1.5rem;
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.survey-card.is-disabled {
	opacity: 0.55;
	filter: grayscale(0.3);
	pointer-events: none;
}

.survey-card h3 {
	margin: 0;
	font-size: 1.1rem;
}

.survey-date {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.survey-link-btn {
	margin-top: 0.75rem;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: var(--radius-sm);
	padding: 0.65rem 1.2rem;
	font-weight: 600;
	cursor: pointer;
	background: var(--accent);
	color: #fff;
	box-shadow: 0 10px 20px rgba(139, 92, 246, 0.25);
	transition: transform 160ms ease, box-shadow 160ms ease, background 130ms ease;
}

.survey-link-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(2, 6, 23, 0.25);
}

.survey-link-btn:active {
	transform: translateY(0);
}

.survey-link-btn.is-disabled {
	cursor: not-allowed;
	background: var(--bg-contrast);
	color: var(--text-muted);
	box-shadow: none;
}

.error {
	color: var(--error);
}

.site-footer {
	width: min(1100px, 100%);
	margin: 0 auto;
	padding: 2rem clamp(1rem, 4vw, 3rem);
	border-top: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	color: var(--text-muted);
}

.admin-link {
	font-size: 0.7rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--text-muted);
	opacity: 0.45;
	transition: opacity 140ms ease, color 140ms ease;
}

.admin-link:hover,
.admin-link:focus-visible {
	opacity: 0.85;
	color: var(--accent-strong);
}

@media (max-width: 720px) {
	.site-header,
	main,
	.site-footer {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	.header-actions {
		width: 100%;
		justify-content: flex-start;
		flex-wrap: wrap;
	}
}

@media (max-width: 480px) {
	.header-actions .login_btn {
		width: 100%;
		text-align: center;
	}
}
