:root {
	--primary: #3A86FF;
	--primary_dark: #2563eb;
	--bg_dark: #1E1E2F;
	--bg_card: #272738;
	--bg_card_hover: #2f2f42;
	--text_primary: #ffffff;
	--text_secondary: #EFEEEA;
	--text_muted: #9ca3af;
	--border: #3a3a4f;
	--accent: #00C2A8;
	--highlight: #FBBF24;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
	font-family: 'Montserrat', sans-serif;
	background: var(--bg_dark);
	color: var(--text_primary);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }

/* header */
.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
	height: 64px;
	background: var(--bg_dark);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 100;
}
.header__logo {
	font-size: 20px;
	font-weight: 700;
	color: var(--text_primary);
	white-space: nowrap;
}
.header__nav { display: flex; gap: 24px; }
.header__nav a {
	color: var(--text_muted);
	font-size: 14px;
	font-weight: 500;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
	transition: color .2s, border-color .2s;
}
.header__nav a:hover,
.header__nav a.active {
	color: var(--text_primary);
	border-bottom-color: var(--primary);
}
.header__right { display: flex; align-items: center; gap: 12px; }
.header__admin_btn {
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 6px;
	background: var(--bg_card);
	color: var(--text_muted);
	border: 1px solid var(--border);
	transition: background .2s, color .2s;
}
.header__admin_btn:hover {
	background: var(--bg_card_hover);
	color: var(--text_primary);
}

/* main */
.main { flex: 1; max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 24px; }

/* hero */
.hero {
	padding: 80px 0 48px;
	text-align: center;
}
.hero h1 { font-size: 40px; font-weight: 700; margin-bottom: 12px; }
.hero p { font-size: 18px; color: var(--text_muted); max-width: 560px; margin: 0 auto; }

/* rails */
.rails { padding-bottom: 64px; }
.rail { margin-bottom: 40px; }
.rail h2 { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.rail__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.rail__card {
	background: var(--bg_card);
	border-radius: 10px;
	padding: 32px 24px;
	text-align: center;
	color: var(--text_muted);
	font-size: 14px;
	border: 1px solid var(--border);
}
.rail__card--placeholder { font-style: italic; }

/* footer */
.footer {
	border-top: 1px solid var(--border);
	padding: 40px 24px 24px;
	margin-top: auto;
}
.footer__content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
}
.footer__logo { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.footer__tagline { color: var(--text_muted); font-size: 13px; max-width: 400px; }
.footer__links { display: flex; gap: 16px; }
.footer__links a { color: var(--text_muted); font-size: 13px; }
.footer__links a:hover { color: var(--text_primary); }
.footer__copy {
	text-align: center;
	color: var(--text_muted);
	font-size: 12px;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

/* mobile nav */
.mobile_nav {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--bg_dark);
	border-top: 1px solid var(--border);
	z-index: 100;
	padding-bottom: env(safe-area-inset-bottom);
}
.mobile_nav__items { display: flex; justify-content: space-around; }
.mobile_nav__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 8px 0;
	color: var(--text_muted);
	font-size: 10px;
	flex: 1;
}
.mobile_nav__item.active { color: var(--primary); }
.mobile_nav__item svg { width: 20px; height: 20px; }

/* dash */
.dash { padding: 48px 0; }
.dash h1 { font-size: 28px; margin-bottom: 24px; }
.dash__meta { margin-bottom: 32px; }
.dash__meta p { color: var(--text_muted); font-size: 14px; margin-bottom: 4px; }
.dash__meta strong { color: var(--text_primary); }
.dash__section { margin-bottom: 32px; }
.dash__section h2 { font-size: 18px; margin-bottom: 12px; }
.dash__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.dash__table th,
.dash__table td {
	text-align: left;
	padding: 10px 16px;
	border-bottom: 1px solid var(--border);
}
.dash__table th { color: var(--text_muted); font-weight: 500; font-size: 12px; text-transform: uppercase; }
.dash__table td { color: var(--text_secondary); }
.dash__table code { color: var(--accent); font-size: 13px; }
.dash__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.dash__card {
	background: var(--bg_card);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 24px;
}
.dash__card h3 { font-size: 16px; margin-bottom: 6px; }
.dash__card p { font-size: 13px; color: var(--text_muted); margin-bottom: 12px; }
.dash__badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	background: var(--border);
	color: var(--text_muted);
}

/* auth */
.auth__main {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
}
.auth__form {
	background: var(--bg_card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 40px;
	width: 100%;
	max-width: 380px;
}
.auth__form h1 { font-size: 22px; margin-bottom: 24px; text-align: center; }
.auth__form label {
	display: block;
	font-size: 13px;
	color: var(--text_muted);
	margin-bottom: 16px;
}
.auth__form input {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border-radius: 6px;
	border: 1px solid var(--border);
	background: var(--bg_dark);
	color: var(--text_primary);
	font-size: 14px;
	font-family: inherit;
}
.auth__form input:focus { outline: none; border-color: var(--primary); }
.auth__form button {
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 6px;
	background: var(--primary);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background .2s;
	margin-top: 8px;
}
.auth__form button:hover { background: var(--primary_dark); }
.auth__error {
	background: #4a1c1c;
	color: #f87171;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	margin-bottom: 16px;
	text-align: center;
}

/* responsive */
@media (max-width: 768px) {
	.header__nav { display: none; }
	.mobile_nav { display: block; }
	.hero h1 { font-size: 28px; }
	.hero p { font-size: 15px; }
	.hero { padding: 48px 0 32px; }
	body { padding-bottom: 72px; }
	.footer__content { flex-direction: column; }
}
