@font-face {
	font-family: 'Aptos';
	src: url('../fonts/Aptos.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: 'Aptos';
	src: url('../fonts/Aptos-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: 'Aptos Narrow';
	src: url('../fonts/Aptos-Narrow.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: 'Aptos Narrow';
	src: url('../fonts/Aptos-Narrow-Italic.ttf') format('truetype');
	font-weight: 400;
	font-style: italic;
}

@font-face {
	font-family: 'Aptos Narrow';
	src: url('../fonts/Aptos-Narrow-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: 'Aptos Narrow';
	src: url('../fonts/Aptos-Narrow-Bold-Italic.ttf') format('truetype');
	font-weight: 700;
	font-style: italic;
}

:root {
	--brand-100: #2663A1;
	--brand-500: #1A446E;
	--brand-900: #002E6E;
	--brand-ice: #F8FAFC;

	--brand-primary: #1A446E;
	--brand-primary-hover: #245A91;
	--brand-primary-strong: #0F3D82;
	--brand-primary-soft: rgba(26, 68, 110, 0.08);
	--brand-primary-soft-2: rgba(26, 68, 110, 0.14);
	--brand-primary-glow: rgba(26, 68, 110, 0.25);
	--brand-primary-shadow: rgba(26, 68, 110, 0.18);

	--page-bg: #F8FAFC;
	--card-bg: rgba(255, 255, 255, 0.88);
	--card-border: rgba(226, 232, 240, 0.9);
	--card-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
	--text-primary: var(--brand-900);
	--text-muted: #64748b;
	--panel-soft: rgba(248, 250, 252, 0.75);

	--input-bg: rgba(255, 255, 255, 0.92);
	--input-border: #dbe5ef;
	--input-text: #0f3d82;

	--sidebar-link-text: #0f3d82;
	--sidebar-link-hover-bg: rgba(26, 68, 110, 0.06);
	--sidebar-link-active-bg: rgba(26, 68, 110, 0.08);
	--sidebar-link-active-border: #1A446E;

	--table-row-hover: rgba(26, 68, 110, 0.045);
	--divider-soft: rgba(26, 68, 110, 0.08);
	--badge-brand-bg: rgba(26, 68, 110, 0.08);
	--badge-brand-border: rgba(26, 68, 110, 0.18);

	--button-secondary-bg: transparent;
	--button-secondary-text: var(--brand-primary);
	--button-secondary-border: var(--brand-primary);
}

.dark {
	--page-bg: #0B0E14;
	--card-bg: rgba(22, 27, 34, 0.86);
	--card-border: rgba(255, 255, 255, 0.08);
	--card-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
	--text-primary: #F0F6FC;
	--text-muted: #8B949E;
	--panel-soft: rgba(255, 255, 255, 0.035);

	--brand-primary: #3C79C0;
	--brand-primary-hover: #60A5FA;
	--brand-primary-strong: #60A5FA;
	--brand-primary-soft: rgba(96, 165, 250, 0.10);
	--brand-primary-soft-2: rgba(96, 165, 250, 0.16);
	--brand-primary-glow: rgba(96, 165, 250, 0.24);
	--brand-primary-shadow: rgba(96, 165, 250, 0.16);

	--input-bg: rgba(11, 14, 20, 0.88);
	--input-border: #30363D;
	--input-text: #F8FAFC;

	--sidebar-link-text: #dbeafe;
	--sidebar-link-hover-bg: rgba(96, 165, 250, 0.08);
	--sidebar-link-active-bg: rgba(96, 165, 250, 0.12);
	--sidebar-link-active-border: #60A5FA;

	--table-row-hover: rgba(96, 165, 250, 0.055);
	--divider-soft: rgba(96, 165, 250, 0.10);
	--badge-brand-bg: rgba(96, 165, 250, 0.12);
	--badge-brand-border: rgba(96, 165, 250, 0.22);

	--button-secondary-bg: transparent;
	--button-secondary-text: #93c5fd;
	--button-secondary-border: #60A5FA;
}

html,
body {
	min-height: 100%;
}

body {
	background-color: var(--page-bg) !important;
	color: var(--text-primary);
	transition: background-color 0.3s ease, color 0.3s ease;
	font-family: 'Aptos', sans-serif;
	margin: 0;
}

.font-narrow {
	font-family: 'Aptos Narrow', 'Aptos', sans-serif;
}

.page-title-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.05rem;
	overflow: visible;
}

.page-title-banner {
	display: inline-block;
	position: relative;
	background: linear-gradient(135deg, #3C79C0 0%, #2C69B0 100%);
	color: #ffffff;
	padding: 0.82rem 2.3rem 0.78rem 1.7rem;
	border-radius: 0.6rem;
	transform: skewX(-16deg);
	transform-origin: center;
	box-shadow:
		8px 10px 0 rgba(148, 163, 184, 0.22),
		0 8px 18px rgba(15, 23, 42, 0.06);
	overflow: visible;
	line-height: 1;
	max-width: 100%;
}

.page-title-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 42%);
	pointer-events: none;
}

.page-title-banner-text {
	display: block;
	position: relative;
	z-index: 1;
	margin: 0;
	color: #ffffff !important;
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: -0.05em;
	line-height: 0.92;
	font-size: 2.05rem;
	white-space: nowrap;
	transform: skewX(16deg);
	text-rendering: geometricPrecision;
}

.page-title-sub {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	margin-top: 0.35rem;
	padding-left: 0.2rem;
	flex-wrap: wrap;
}

.page-title-sub i {
	color: var(--brand-primary);
	font-size: 0.75rem;
	flex-shrink: 0;
}

.page-title-sub span {
	color: rgba(0, 46, 110, 0.72);
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.24em;
	line-height: 1.3;
}

.page-entity-line {
	margin: 0;
	padding-left: 1.35rem;
	color: var(--brand-primary-strong);
	font-size: 1rem;
	font-weight: 900;
	font-style: italic;
	line-height: 1.35;
}

.dark .page-title-sub i {
	color: #93c5fd;
}

.dark .page-title-sub span {
	color: #e2e8f0;
}

.dark .page-entity-line {
	color: #e2e8f0;
}

.app-card {
	background-color: var(--card-bg) !important;
	border: 1px solid var(--card-border) !important;
	border-radius: 1.6rem !important;
	box-shadow: var(--card-shadow) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: all 0.24s ease !important;
}

.app-card-xl {
	background-color: var(--card-bg) !important;
	border: 1px solid var(--card-border) !important;
	border-radius: 2.25rem !important;
	box-shadow: var(--card-shadow) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: all 0.24s ease !important;
}

.app-card-3xl {
	background-color: var(--card-bg) !important;
	border: 1px solid var(--card-border) !important;
	border-radius: 2.35rem !important;
	box-shadow: var(--card-shadow) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: all 0.24s ease !important;
}

.panel-soft {
	background: var(--panel-soft) !important;
}

.stat-card {
	background-color: var(--card-bg) !important;
	border: 1px solid var(--card-border) !important;
	padding: 2rem !important;
	border-radius: 2rem !important;
	box-shadow: var(--card-shadow) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: all 0.24s ease !important;
}

.glass-panel {
	background: rgba(255, 255, 255, 0.45) !important;
	backdrop-filter: blur(15px) !important;
	-webkit-backdrop-filter: blur(15px) !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.text-brand {
	color: var(--brand-primary) !important;
}

.text-brand-strong {
	color: var(--brand-primary-strong) !important;
}

.icon-brand {
	color: var(--brand-primary) !important;
}

.bg-brand-soft {
	background: var(--brand-primary-soft) !important;
}

.border-brand-soft {
	border-color: var(--badge-brand-border) !important;
}

.badge-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: var(--badge-brand-bg);
	color: var(--brand-primary);
	border: 1px solid var(--badge-brand-border);
	border-radius: 9999px;
	padding: 0.35rem 0.8rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 9px;
}

.input-brand,
select.input-brand,
textarea.input-brand {
	background: var(--input-bg) !important;
	border: 1px solid var(--input-border) !important;
	color: var(--input-text) !important;
	outline: none !important;
	transition: all 0.2s ease !important;
}

.input-brand:focus,
select.input-brand:focus,
textarea.input-brand:focus {
	border-color: var(--brand-primary) !important;
	box-shadow: 0 0 0 4px var(--brand-primary-soft) !important;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--brand-primary);
	box-shadow: 0 0 0 4px var(--brand-primary-soft);
	outline: none;
}

.btn-secondary {
	background: var(--button-secondary-bg) !important;
	color: var(--button-secondary-text) !important;
	border: 2px solid var(--button-secondary-border) !important;
	border-radius: 1rem;
	font-weight: 900;
	transition: all 0.2s ease;
}

.btn-secondary:hover {
	background: var(--brand-primary-soft) !important;
	box-shadow: 0 8px 18px var(--brand-primary-soft);
}

.table-row-brand:hover,
tr.table-row-brand:hover {
	background: var(--table-row-hover) !important;
}

.table-divider-brand {
	border-color: var(--divider-soft) !important;
}

.sidebar-link-brand {
	color: var(--sidebar-link-text) !important;
	transition: all 0.2s ease;
}

.sidebar-link-brand:hover {
	background: var(--sidebar-link-hover-bg) !important;
	color: var(--brand-primary) !important;
}

.sidebar-link-brand.active,
.sidebar-link-brand[aria-current="page"] {
	background: var(--sidebar-link-active-bg) !important;
	color: var(--brand-primary) !important;
	box-shadow: inset -4px 0 0 var(--sidebar-link-active-border);
}

.status-emerald {
	color: #10b981;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 9px;
}

.dot-emerald {
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 9999px;
	background-color: #10b981;
	box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.dot-amber {
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 9999px;
	background-color: #f59e0b;
	box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.dot-red {
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 9999px;
	background-color: #ef4444;
	box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.dot-muted {
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 9999px;
	background-color: #94a3b8;
	opacity: 0.5;
}

.col-base-price {
	width: 120px;
}

.col-discount {
	width: 80px;
}

.col-total-price {
	width: 140px;
}

/* Standalone auth / utility pages */

.standalone-shell {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
	background:
		radial-gradient(circle at top right, rgba(59, 130, 246, 0.06), transparent 30%),
		radial-gradient(circle at bottom left, rgba(26, 68, 110, 0.05), transparent 28%);
}

.standalone-card {
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(226, 232, 240, 0.9);
	box-shadow:
		0 30px 60px rgba(15, 23, 42, 0.10),
		0 10px 25px rgba(15, 23, 42, 0.04);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.dark .standalone-card {
	background: rgba(22, 27, 34, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow:
		0 30px 60px rgba(0, 0, 0, 0.35),
		0 10px 25px rgba(0, 0, 0, 0.22);
}

.standalone-panel-soft {
	background: rgba(248, 250, 252, 0.85);
	border: 1px solid rgba(217, 225, 236, 0.9);
}

.dark .standalone-panel-soft {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.standalone-input {
	background: rgba(248, 250, 252, 0.95);
	border: 2px solid #D9E1EC;
	color: #002E6E;
	transition: all 0.2s ease;
}

.standalone-input::placeholder {
	color: #94A3B8;
	font-weight: 700;
}

.standalone-input:focus {
	outline: none;
	border-color: #3C79C0;
	box-shadow: 0 0 0 4px rgba(60, 121, 192, 0.10);
	background: #ffffff;
}

.dark .standalone-input {
	background: rgba(11, 14, 20, 0.90);
	border-color: #30363D;
	color: #F8FAFC;
}

.dark .standalone-input::placeholder {
	color: #64748B;
}

.dark .standalone-input:focus {
	border-color: #60A5FA;
	box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.10);
	background: rgba(11, 14, 20, 1);
}

.standalone-input-center {
	text-align: center;
}

.standalone-primary-btn,
input.standalone-primary-btn,
button.standalone-primary-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	background: linear-gradient(135deg, #1A446E 0%, #224F82 100%) !important;
	background-color: #1A446E !important;
	color: #ffffff !important;
	border: 0 !important;
	text-align: center;
	text-decoration: none;
	box-shadow:
		0 14px 28px rgba(26, 68, 110, 0.22),
		0 6px 12px rgba(26, 68, 110, 0.10);
}

.standalone-primary-btn:hover,
input.standalone-primary-btn:hover,
button.standalone-primary-btn:hover {
	transform: translateY(-1px);
	background: linear-gradient(135deg, #15395e 0%, #1d4674 100%) !important;
	background-color: #15395e !important;
	box-shadow:
		0 18px 32px rgba(26, 68, 110, 0.26),
		0 8px 16px rgba(26, 68, 110, 0.14);
}

.standalone-primary-btn:focus,
input.standalone-primary-btn:focus,
button.standalone-primary-btn:focus {
	outline: none;
	box-shadow:
		0 18px 32px rgba(26, 68, 110, 0.26),
		0 8px 16px rgba(26, 68, 110, 0.14),
		0 0 0 4px rgba(60, 121, 192, 0.14);
}

.standalone-theme-toggle {
	background: rgba(241, 245, 249, 0.78);
	border: 1px solid rgba(226, 232, 240, 0.9);
}

.dark .standalone-theme-toggle {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.standalone-qr-box {
	background: #ffffff;
	box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9);
}

.dark .standalone-qr-box {
	background: #ffffff;
}

@media (max-width: 1024px) {
	.page-title-row {
		gap: 0.9rem;
	}

	.page-title-banner {
		padding: 0.72rem 1.8rem 0.68rem 1.28rem;
		border-radius: 0.5rem;
		transform: skewX(-14deg);
	}

	.page-title-banner-text {
		font-size: 1.55rem;
		white-space: normal;
		transform: skewX(14deg);
	}

	.page-title-sub {
		margin-top: 0.15rem;
		padding-left: 0.1rem;
	}

	.page-entity-line {
		padding-left: 1.2rem;
		font-size: 0.95rem;
	}
}

@media (max-width: 640px) {
	.standalone-card {
		border-radius: 2.2rem !important;
	}
}