:root {
	color-scheme: dark;
	--ui-bg: rgba(12, 22, 35, 0.96);
	--ui-bg-2: rgba(20, 34, 53, 0.96);
	--ui-border: rgba(94, 126, 168, 0.42);
	--ui-border-soft: rgba(94, 126, 168, 0.22);
	--ui-text: #eef5ff;
	--ui-muted: rgba(196, 210, 229, 0.88);
	--ui-muted-2: rgba(165, 183, 207, 0.78);
	--accent: #8db3df;
	--accent-2: #ffffff;
	--panel-radius: 0;
	--card-radius: 0;
	--shadow: 0 18px 34px rgba(3, 9, 17, 0.32);
	--shadow-soft: 0 10px 22px rgba(4, 10, 18, 0.18);
}

html, body {
	height: 100%;
}

body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	background:
		linear-gradient(180deg, rgba(7, 15, 26, 0.86), rgba(7, 15, 26, 0.92)),
		url("/img/splash-bg.png") center top / cover no-repeat fixed,
		#08121d;
	color: var(--ui-text);
	min-height: 100vh;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: calc(env(safe-area-inset-top, 0px) + 22px) 16px calc(env(safe-area-inset-bottom, 0px) + 22px);
	position: relative;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	background:
		radial-gradient(circle at 18% 14%, rgba(129, 167, 214, 0.10), rgba(129, 167, 214, 0) 22%),
		radial-gradient(circle at 84% 12%, rgba(101, 137, 181, 0.08), rgba(101, 137, 181, 0) 22%);
	pointer-events: none;
	z-index: 0;
}

.home-hang {
	position: fixed;
	top: 18px;
	left: 18px;
	z-index: 1000;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 0;
	background: rgba(31, 52, 79, 0.96);
	border: 1px solid rgba(112, 146, 191, 0.42);
	color: #eef5ff;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.02em;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.home-hang:hover {
	border-color: rgba(167, 194, 226, 0.48);
	background: rgba(40, 67, 101, 0.98);
}

.home-hang::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	width: 12px;
	height: 12px;
	border-radius: 0;
	background: rgba(143, 181, 225, 0.92);
	box-shadow: none;
}

.home-hang::after {
	content: "";
	position: absolute;
	top: -24px;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	height: 14px;
	background: rgba(112, 146, 191, 0.52);
}

.container {
	width: min(1180px, calc(100vw - 28px));
	background: linear-gradient(160deg, rgba(11, 22, 37, 0.96), rgba(8, 17, 30, 0.98));
	border: 2px solid var(--ui-border);
	box-shadow: var(--shadow);
	border-radius: 0;
	padding: 24px;
	backdrop-filter: blur(12px);
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.container::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at top right, rgba(129, 167, 214, 0.10), rgba(129, 167, 214, 0) 30%),
		linear-gradient(140deg, rgba(157, 193, 235, 0.04), rgba(157, 193, 235, 0) 34%);
	opacity: 0.9;
	pointer-events: none;
}

.container::after {
	content: "";
	position: absolute;
	inset: 12px;
	border-radius: 0;
	border: 1px solid rgba(89, 120, 159, 0.16);
	pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(7, 15, 26, 0.20);
}

.container > * {
	position: relative;
	z-index: 1;
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 18px;
	padding: 0 0 14px;
	border-bottom: 1px solid rgba(94, 126, 168, 0.22);
}

.title {
	font-weight: 700;
	letter-spacing: 0.04em;
	font-size: 1.14rem;
	text-transform: uppercase;
	color: #eef5ff;
	text-shadow: none;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 14px;
	border-radius: 0;
	text-decoration: none;
	background: linear-gradient(180deg, rgba(48, 80, 119, 0.96), rgba(33, 57, 85, 0.98));
	border: 1px solid rgba(124, 157, 199, 0.36);
	color: #eef5ff;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	box-shadow: inset 0 1px 0 rgba(220, 234, 255, 0.10);
	transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease, box-shadow 0.14s ease;
}

.btn:hover {
	background: linear-gradient(180deg, rgba(58, 94, 137, 0.98), rgba(39, 67, 99, 1));
	border-color: rgba(162, 191, 227, 0.42);
}

.btn:active {
	transform: translateY(1px);
}

.hero {
	border: 1px solid rgba(94, 126, 168, 0.28);
	background: linear-gradient(180deg, rgba(16, 27, 42, 0.96), rgba(11, 20, 33, 0.98));
	border-radius: 0;
	padding: 30px 28px;
	margin-bottom: 22px;
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 80% 20%, rgba(147, 189, 212, 0.08), rgba(147, 189, 212, 0) 28%),
		radial-gradient(circle at 15% 15%, rgba(129, 167, 214, 0.08), rgba(129, 167, 214, 0) 34%);
	pointer-events: none;
}

.hero::after {
	content: "";
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 18px;
	height: 1px;
	background: linear-gradient(90deg, rgba(94, 126, 168, 0), rgba(94, 126, 168, 0.34), rgba(94, 126, 168, 0));
	pointer-events: none;
}

.hero > * {
	position: relative;
	z-index: 1;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 0;
	background: rgba(31, 52, 79, 0.88);
	border: 1px solid rgba(112, 146, 191, 0.32);
	color: #eef5ff;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

h1 {
	margin: 18px 0 12px;
	font-size: clamp(2.2rem, 4vw, 3rem);
	letter-spacing: -0.02em;
	color: #eef5ff;
	text-shadow: none;
}

.hero p {
	margin: 0;
	color: var(--ui-muted);
	font-size: 1.04rem;
	line-height: 1.74;
	max-width: 70ch;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
}

.section {
	border: 1px solid rgba(94, 126, 168, 0.28);
	background: linear-gradient(180deg, rgba(16, 27, 42, 0.94), rgba(11, 20, 33, 0.98));
	border-radius: 0;
	padding: 20px;
	box-shadow: var(--shadow-soft);
	transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
	position: relative;
	overflow: hidden;
}

.section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, rgba(94, 126, 168, 0.08), rgba(94, 126, 168, 0.38), rgba(147, 189, 212, 0.16));
	opacity: 0.9;
}

.section:hover {
	transform: translateY(-3px);
	border-color: rgba(133, 163, 201, 0.34);
	background: linear-gradient(180deg, rgba(20, 34, 53, 0.98), rgba(13, 24, 38, 1));
	box-shadow: 0 18px 26px rgba(4, 10, 18, 0.22);
}

.section h2 {
	margin: 0 0 10px;
	font-size: 1.14rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #eef5ff;
	text-shadow: none;
}

.section p {
	margin: 0;
	color: var(--ui-muted);
	line-height: 1.7;
}

.section ul {
	margin: 0;
	padding-left: 18px;
	color: rgba(246, 237, 217, 0.90);
	line-height: 1.7;
}

.section li + li {
	margin-top: 8px;
}

.dropdown-card {
	margin-top: 14px;
	border: 1px solid rgba(94, 126, 168, 0.24);
	border-radius: 0;
	background: linear-gradient(180deg, rgba(15, 26, 41, 0.98), rgba(10, 19, 31, 1));
	overflow: hidden;
	box-shadow: inset 0 1px 0 rgba(220, 234, 255, 0.04);
}

.dropdown-card summary {
	list-style: none;
	cursor: pointer;
	padding: 14px 16px;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: rgba(250,240,219,0.92);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.dropdown-card summary::-webkit-details-marker {
	display: none;
}

.dropdown-card summary::after {
	content: "+";
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(208,180,116,0.10);
	border: 1px solid rgba(208,180,116,0.14);
	font-size: 1rem;
	font-weight: 900;
	line-height: 1;
}

.dropdown-card[open] summary::after {
	content: "-";
}

.dropdown-card ul {
	margin: 0;
	padding: 0 18px 16px 34px;
	border-top: 1px solid rgba(208,180,116,0.10);
}

.table-wrap {
	margin-top: 14px;
	overflow-x: auto;
	border: 1px solid rgba(208, 180, 116, 0.14);
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(46, 30, 18, 0.82), rgba(23, 15, 10, 0.86));
	box-shadow: inset 0 1px 0 rgba(255, 236, 193, 0.05);
}

.rate-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 720px;
}

.rate-table th,
.rate-table td {
	padding: 12px 14px;
	border-bottom: 1px solid rgba(208, 180, 116, 0.10);
	text-align: center;
	white-space: nowrap;
}

.rate-table th {
	background: rgba(82, 58, 31, 0.62);
	color: #fff0d1;
	font-size: 0.84rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.rate-table td:first-child,
.rate-table th:first-child {
	text-align: left;
}

.rate-table tr:last-child td {
	border-bottom: none;
}

.safe-cell {
	color: #f7f0df;
	font-weight: 700;
}

.reduced-cell {
	color: #ffdda6;
	font-weight: 700;
}

.spotlight {
	grid-column: 1 / -1;
	background: linear-gradient(180deg, rgba(102, 73, 41, 0.60), rgba(40, 26, 16, 0.86));
	border-color: rgba(208, 180, 116, 0.22);
}

.link-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.link-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	text-decoration: none;
	background: rgba(55, 39, 23, 0.84);
	border: 1px solid rgba(208,180,116,0.16);
	color: rgba(250,240,219,0.92);
	font-weight: 700;
	letter-spacing: 0.01em;
	box-shadow: inset 0 1px 0 rgba(255, 243, 215, 0.08);
	transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.link-chip:hover {
	background: rgba(78, 58, 33, 0.92);
	border-color: rgba(208,180,116,0.30);
	transform: translateY(-1px);
}

.note {
	margin-top: 12px;
	color: var(--ui-muted-2);
	font-size: 0.95rem;
	line-height: 1.7;
}

@media (max-width: 860px) {
	.container {
		padding: 20px;
	}

	.hero {
		padding: 22px 18px;
	}
}

@media (max-width: 560px) {
	body {
		padding: calc(env(safe-area-inset-top, 0px) + 18px) 12px calc(env(safe-area-inset-bottom, 0px) + 18px);
	}

	.container {
		padding: 18px;
	}

	.hero {
		padding: 18px;
	}

	h1 {
		font-size: clamp(1.9rem, 10vw, 2.4rem);
	}
}

/* MC2 direct blue square override */
body,
.container,
.hero,
.section,
.dropdown-card,
.btn,
.home-hang,
.eyebrow,
.link-chip,
.rate-table,
.rate-table th,
.rate-table td,
.table-wrap,
.notice-grid > div {
	border-radius: 0 !important;
}

.rate-table,
.table-wrap,
.section,
.dropdown-card,
.hero {
	background: linear-gradient(180deg, rgba(16, 27, 42, 0.96), rgba(11, 20, 33, 0.98)) !important;
	border-color: rgba(94, 126, 168, 0.28) !important;
	box-shadow: 0 10px 22px rgba(4, 10, 18, 0.18) !important;
}

.btn,
.home-hang,
.link-chip {
	background: linear-gradient(180deg, rgba(48, 80, 119, 0.96), rgba(33, 57, 85, 0.98)) !important;
	border-color: rgba(124, 157, 199, 0.36) !important;
	color: #eef5ff !important;
	box-shadow: none !important;
}

.eyebrow {
	background: rgba(24, 39, 60, 0.96) !important;
	border-color: rgba(94, 126, 168, 0.28) !important;
	color: #eef5ff !important;
}

.title,
h1,
.section h2,
.safe-cell,
.reduced-cell,
.rate-table th,
.rate-table td {
	color: #eef5ff !important;
	text-shadow: none !important;
}

.hero p,
.section p,
.section li,
.note {
	color: rgba(196, 210, 229, 0.88) !important;
}
