:root {
	color-scheme: dark;
	--bg: #070a11;
	--panel: rgba(12, 18, 30, 0.78);
	--text: #f8fbff;
	--muted: rgba(248, 251, 255, 0.72);
	--soft: rgba(248, 251, 255, 0.56);
	--blue: #12aee8;
	--gold: #f3ad3f;
	--rose: #ef6f8f;
	--line: rgba(255, 255, 255, 0.14);
	--shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
	--radius: 8px;
	--container: min(1120px, calc(100% - 48px));
	--nav-h: 76px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	min-height: 100%;
	overflow-x: hidden;
}

html {
	scroll-padding-top: calc(var(--nav-h) + 18px);
}

body {
	margin: 0;
	padding-top: var(--nav-h);
	font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	color: var(--text);
	background:
		linear-gradient(140deg, rgba(18, 174, 232, 0.12), transparent 36%),
		linear-gradient(225deg, rgba(243, 173, 63, 0.1), transparent 40%),
		linear-gradient(180deg, #05070d 0%, var(--bg) 58%, #0b111d 100%);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
	background-size: 84px 84px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 72%);
}

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

a {
	color: inherit;
	text-decoration: none;
}

button {
	border: 0;
	font: inherit;
	color: inherit;
}

.container {
	width: var(--container);
	margin: 0 auto;
}

.dashboard-nav {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 80;
	width: var(--container);
	min-height: var(--nav-h);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 1px solid var(--line);
	background: rgba(7, 10, 17, 0.82);
	backdrop-filter: blur(18px);
	box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
}

.brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.brand__plate {
	width: 154px;
	height: 42px;
	padding: 7px 10px;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.96);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.brand img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.dashboard-nav nav {
	display: flex;
	align-items: center;
	gap: 22px;
	color: rgba(248, 251, 255, 0.74);
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.dashboard-nav nav a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	border-bottom: 1px solid transparent;
}

.dashboard-nav nav a:hover {
	color: var(--text);
	border-color: var(--gold);
}

.dashboard-page {
	position: relative;
	overflow: hidden;
}

.dashboard-page::before,
.dashboard-page::after {
	content: "";
	position: absolute;
	left: -16vw;
	width: 134vw;
	height: 34vh;
	z-index: -1;
	pointer-events: none;
	filter: blur(28px);
	opacity: 0.72;
	background:
		radial-gradient(ellipse at 20% 50%, rgba(18, 174, 232, 0.26), transparent 48%),
		radial-gradient(ellipse at 52% 48%, rgba(255, 255, 255, 0.14), transparent 40%),
		radial-gradient(ellipse at 82% 58%, rgba(243, 173, 63, 0.18), transparent 46%);
	transform: skewX(-12deg);
}

.dashboard-page::before {
	top: 130px;
}

.dashboard-page::after {
	bottom: 80px;
}

.dashboard-hero {
	padding: 72px 0 34px;
}

.dashboard-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
	gap: 26px;
	align-items: end;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--gold);
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	width: 30px;
	height: 1px;
	background: linear-gradient(90deg, var(--blue), var(--gold));
}

h1,
h2 {
	font-family: "Cormorant Garamond", Georgia, serif;
	letter-spacing: 0;
}

h1 {
	margin: 12px 0 0;
	max-width: 820px;
	font-size: clamp(3.2rem, 8vw, 6.1rem);
	line-height: 0.94;
}

.dashboard-hero p {
	margin: 18px 0 0;
	max-width: 680px;
	color: var(--muted);
	font-size: 1.06rem;
	line-height: 1.72;
}

.dashboard-status {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.07);
	padding: 14px;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.45;
}

.dashboard-status span {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--gold);
	box-shadow: 0 0 0 6px rgba(243, 173, 63, 0.12);
	flex: 0 0 auto;
}

.dashboard-status strong {
	font-size: inherit;
	font-weight: 800;
	line-height: inherit;
}

.dashboard-status.is-success span {
	background: var(--blue);
	box-shadow: 0 0 0 6px rgba(18, 174, 232, 0.12);
}

.dashboard-status.is-error span {
	background: var(--rose);
	box-shadow: 0 0 0 6px rgba(239, 111, 143, 0.12);
}

.dashboard-shell {
	padding: 24px 0 84px;
}

.auth-required,
.dashboard-card {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055));
	box-shadow: var(--shadow);
	backdrop-filter: blur(18px);
}

.auth-required {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr) auto;
	gap: 22px;
	align-items: center;
	padding: 24px;
}

.auth-required__lamp {
	width: 94px;
	height: 48px;
	border-radius: 62% 58% 48% 58%;
	background: linear-gradient(135deg, rgba(255, 234, 177, 0.9), rgba(243, 173, 63, 0.74) 52%, rgba(142, 91, 22, 0.8));
	transform: rotate(-14deg);
	box-shadow: 0 0 28px rgba(243, 173, 63, 0.36), inset -10px -8px 16px rgba(58, 30, 0, 0.26);
}

.auth-required h2,
.dashboard-card h2 {
	margin: 8px 0 0;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1;
}

.auth-required p {
	margin: 10px 0 0;
	color: var(--muted);
	line-height: 1.65;
}

.dashboard-grid {
	display: grid;
	grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.dashboard-card {
	padding: 24px;
}

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

.card-head span {
	color: var(--gold);
	font-size: 0.76rem;
	font-weight: 900;
	text-transform: uppercase;
}

.card-head h2 {
	font-size: clamp(2rem, 4vw, 2.8rem);
}

.detail-list {
	display: grid;
	gap: 10px;
}

.detail-row {
	display: grid;
	grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.06);
	padding: 12px;
}

.detail-row span {
	color: var(--soft);
	font-size: 0.78rem;
	font-weight: 900;
	text-transform: uppercase;
}

.detail-row strong {
	color: var(--text);
	font-size: 0.95rem;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.empty-state {
	border: 1px solid rgba(243, 173, 63, 0.24);
	border-radius: var(--radius);
	background: rgba(243, 173, 63, 0.08);
	padding: 18px;
	color: var(--muted);
	line-height: 1.65;
}

.empty-state strong {
	display: block;
	color: var(--text);
	font-size: 1.05rem;
	margin-bottom: 6px;
}

.btn {
	min-height: 44px;
	border-radius: var(--radius);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 16px;
	border: 1px solid transparent;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
	transition: transform 200ms var(--ease), opacity 200ms var(--ease), background 200ms var(--ease);
}

.btn:hover {
	transform: translateY(-2px);
}

.btn[disabled] {
	opacity: 0.58;
	cursor: wait;
	transform: none;
}

.btn--primary {
	color: #06111a;
	background: linear-gradient(135deg, #37d7ff, var(--blue) 52%, #7ce8ff);
	box-shadow: 0 18px 54px rgba(18, 174, 232, 0.22);
}

.btn--ghost {
	color: var(--text);
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--line);
}

.toast {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 210;
	max-width: min(380px, calc(100% - 36px));
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--radius);
	background: rgba(7, 10, 17, 0.92);
	color: var(--text);
	box-shadow: var(--shadow);
	backdrop-filter: blur(16px);
	padding: 13px 15px;
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.toast.is-open {
	opacity: 1;
	transform: none;
}

.is-hidden {
	display: none !important;
}

@media (max-width: 900px) {
	:root {
		--container: min(760px, calc(100% - 32px));
	}

	.dashboard-nav nav {
		gap: 12px;
		font-size: 0.72rem;
	}

	.dashboard-hero__grid,
	.dashboard-grid,
	.auth-required {
		grid-template-columns: 1fr;
	}

	.auth-required__lamp {
		display: none;
	}

	.card-head {
		display: grid;
	}
}

@media (max-width: 560px) {
	:root {
		--container: min(100% - 20px, 520px);
		--nav-h: 66px;
	}

	.dashboard-nav {
		min-height: var(--nav-h);
	}

	.brand__plate {
		width: 128px;
		height: 40px;
	}

	.dashboard-nav nav a:nth-child(2) {
		display: none;
	}

	.dashboard-hero {
		padding-top: 46px;
	}

	.dashboard-card,
	.auth-required {
		padding: 18px;
	}

	.detail-row {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.card-head .btn,
	.auth-required .btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* Full-bleed header polish */
.dashboard-nav {
	left: 0;
	right: 0;
	transform: none;
	width: 100%;
	padding-inline: max(24px, calc((100vw - 1120px) / 2));
}

@media (max-width: 560px) {
	.dashboard-nav {
		padding-inline: 10px;
	}
}
