:root {
	--gcu-purple: #522398;
	--gcu-purple-strong: #522398;
	--gcu-purple-soft: #ede7f7;
	--gcu-gold: #FFE900;
	--bg-start: #eee5ff;
	--surface: #ffffff;
	--text-main: #24103f;
	--text-muted: #5c4a7a;
	--line: #d7c8ef;
	--btn-text: #ffffff;
	--dot-color: rgba(255, 255, 255, 0.22);
	--center-dot-color: rgba(82, 35, 152, 0.35);
	--brand-grad-start: #522398;
	--brand-grad-end: #7334f4;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	background-color: #522398;
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1.1px, transparent 1.1px);
	background-size: 20px 20px;
	color: var(--text-main);
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.app-header {
	height: 4rem;
	padding: 0 1.25rem;
	background-color: var(--gcu-purple);
	background-image: radial-gradient(circle, var(--dot-color) 1.1px, transparent 1.1px);
	background-size: 14px 14px;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.app-header__left {
	display: flex;
	align-items: center;
	gap: 0;
}

.app-header__logo {
	width: 5.2rem;
	height: 1.9rem;
	object-fit: contain;
}

.app-header__right {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.request-info-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1.3rem;
	background-color: #ffe900;
	color: var(--gcu-purple);
	border: none;
	border-radius: 2rem;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s, background-color 0.2s;
}

.request-info-icon {
	display: inline-flex;
	width: 1.2rem;
	height: 1.2rem;
}

.request-info-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.request-info-btn:hover {
	opacity: 0.9;
	background-color: #f5dd00;
}

.request-info-btn:active {
	opacity: 0.8;
}

html {
	font-size: 16px;
}

body.auth-body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.auth-body > .app-header {
	flex: 0 0 auto;
}

.auth-main {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
}

.auth-main > .page-root {
	flex: 1 0 auto;
}

.page-shell {
	min-height: calc(100vh - 4rem);
	display: flex;
	align-items: stretch;
	padding: 0;
	background-color: var(--bg-start);
	background-image: radial-gradient(circle, var(--center-dot-color) 1.2px, transparent 1.2px),
		radial-gradient(circle, rgba(82, 35, 152, 0.16) 1.2px, transparent 1.2px);
	background-size: 20px 20px, 20px 20px;
	background-position: 0 0, 10px 10px;
}

.page-shell.auth-page {
	height: calc(100vh - 4rem);
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}

.page-shell.auth-page > * {
	flex: 1 1 auto;
	min-height: 0;
}

.chat-fab {
	position: fixed;
	right: 1.2rem;
	bottom: 6rem;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	border: 0;
	border-radius: 999px;
	padding: 0.78rem 1.1rem;
	font: inherit;
	font-weight: 700;
	color: #ffffff;
	background: linear-gradient(90deg, var(--brand-grad-start) 0%, var(--brand-grad-end) 100%);
	box-shadow: 0 10px 24px rgba(32, 12, 60, 0.34);
	cursor: pointer;
	z-index: 40;
}

.chat-fab:hover {
	background: linear-gradient(90deg, #4a1f87 0%, #662ed8 100%);
}

.chat-fab__icon {
	width: 1.22rem;
	height: 1.22rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.chat-fab__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.chat-fab__label {
	font-size: 0.96rem;
	letter-spacing: 0.01em;
}

.chat-nav-btn {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 2.2rem;
	padding: 0.55rem 1.1rem;
	border: none;
	border-radius: 2rem;
	background-color: #ffe900;
	color: var(--gcu-purple);
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
}

.chat-nav-btn:hover {
	background-color: #f5dd00;
	opacity: 0.9;
}

.chat-nav-icon {
	width: 1.2rem;
	height: 1.2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: currentColor;
}

.chat-nav-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.chat-nav-label {
	font-size: 0.95rem;
	letter-spacing: 0.01em;
}

@media (max-width: 640px) {
	.app-header {
		height: auto;
		padding: 0.8rem 1rem;
	}

	.request-info-btn {
		padding: 0.42rem 0.75rem;
		font-size: 0.82rem;
	}

	.request-info-icon {
		display: none;
	}

	.page-shell.auth-page {
		height: auto;
		padding: 0;
		overflow: visible;
	}

	.chat-fab {
		display: none;
	}

	.chat-nav-btn {
		display: flex;
		padding: 0.55rem 0.8rem;
	}
}
