:root {
	color-scheme: light dark;
	--ha-green: #36c777;
	--ha-bg: #ffffff;
	--ha-soft: #f6f8fa;
	--ha-ink: #0f1a26;
	--ha-text: #1b2430;
	--ha-label: #1b2430;
	--ha-muted: #5b6675;
	--ha-subtle: #6b7785;
	--ha-icon: #8792a0;
	--ha-placeholder: #9aa5b1;
	--ha-line: #edf0f4;
	--ha-border: #d5dce4;
	--ha-input: #ffffff;
	--ha-input-shadow: 0 1px 2px rgba(15, 26, 38, 0.05);
	--ha-link: #146c3c;
	--ha-ring: rgba(54, 199, 119, 0.18);
	--ha-focus-icon: #17924e;
	--ha-dots: #d5dce4;
	--ha-err: #d92d20;
	--ha-err-text: #b42318;
	--ha-err-title: #912018;
	--ha-err-bg: #fef3f2;
	--ha-err-line: #fecdca;
	--ha-err-ring: rgba(217, 45, 32, 0.14);
	--ha-panel-line: transparent;
}
@media (prefers-color-scheme: dark) {
	:root {
		--ha-bg: #15202b;
		--ha-soft: #1b2836;
		--ha-ink: #ffffff;
		--ha-text: #dbe2ea;
		--ha-label: #dbe2ea;
		--ha-muted: #a6b2bf;
		--ha-subtle: #8b9bab;
		--ha-icon: #7f8fa0;
		--ha-placeholder: #6f7c8a;
		--ha-line: #223140;
		--ha-border: #2e4256;
		--ha-input: #121920;
		--ha-input-shadow: none;
		--ha-link: #6ee7a0;
		--ha-ring: rgba(54, 199, 119, 0.28);
		--ha-focus-icon: #6ee7a0;
		--ha-dots: #223140;
		--ha-err: #f97066;
		--ha-err-text: #fda29b;
		--ha-err-title: #fecdca;
		--ha-err-bg: rgba(240, 68, 56, 0.12);
		--ha-err-line: rgba(240, 68, 56, 0.35);
		--ha-err-ring: rgba(240, 68, 56, 0.25);
		--ha-panel-line: #223140;
	}
}

.ha,
.ha *,
.ha *::before,
.ha *::after {
	box-sizing: border-box;
}
html,
body.ha {
	margin: 0;
	padding: 0;
}
body.ha {
	min-height: 100vh;
	background: var(--ha-bg);
	color: var(--ha-text);
	font-family: "Open Sans", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.ha [hidden] {
	display: none !important;
}
.ha a:focus-visible,
.ha button:focus-visible {
	outline: 2px solid var(--ha-green);
	outline-offset: 2px;
}
.ha-i {
	flex: none;
	display: block;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ha-page {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	min-height: 100vh;
}
.ha-main {
	position: relative;
	flex: 1 1 480px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 36px clamp(20px, 6vw, 88px) 28px;
}
.ha-logo {
	display: flex;
	width: fit-content;
	margin: 0 0 32px;
}
.ha-logo img {
	display: block;
	width: auto;
	height: 40px;
}
.ha-logo .ha-logo-dark {
	display: none;
}
@media (prefers-color-scheme: dark) {
	.ha-logo .ha-logo-light {
		display: none;
	}
	.ha-logo .ha-logo-dark {
		display: block;
	}
}
.ha-center {
	position: relative;
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 0;
}
.ha-box {
	width: 100%;
	max-width: 400px;
}
.ha-box-wide {
	max-width: 440px;
}

.ha-solo .ha-main::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	pointer-events: none;
	background-image: radial-gradient(var(--ha-dots) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(ellipse 55% 65% at 50% 50%, transparent 45%, #000 100%);
	mask-image: radial-gradient(ellipse 55% 65% at 50% 50%, transparent 45%, #000 100%);
}
.ha-solo .ha-logo {
	margin-left: auto;
	margin-right: auto;
}
.ha-solo .ha-account {
	align-self: center;
}
.ha-solo .ha-head {
	align-items: center;
	text-align: center;
}
.ha-solo .ha-status {
	justify-content: center;
}

.ha-view {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
}
.ha-view-tight {
	gap: 18px;
}
.ha-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 6px;
}
.ha-head h1 {
	margin: 0;
	font-family: inherit;
	font-size: 32px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ha-ink);
}
.ha-head p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ha-muted);
}
.ha-head strong {
	font-weight: 700;
	color: var(--ha-ink);
	overflow-wrap: anywhere;
}

.ha-field {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.ha-field label {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ha-label);
}
.ha-input {
	position: relative;
	display: flex;
	align-items: center;
}
.ha-input > .ha-i {
	position: absolute;
	left: 15px;
	color: var(--ha-icon);
	pointer-events: none;
	transition: color 0.15s ease;
}
.ha-input input,
.ha-code {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 16px 0 44px;
	border: 1px solid var(--ha-border);
	border-radius: 12px;
	background: var(--ha-input);
	color: var(--ha-ink);
	font-family: inherit;
	font-size: 15px;
	outline: none;
	box-shadow: var(--ha-input-shadow);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.ha-input input::placeholder,
.ha-code::placeholder {
	color: var(--ha-placeholder);
	opacity: 1;
}
.ha-input-eye input {
	padding-right: 48px;
}
.ha-input input:focus,
.ha-code:focus {
	border-color: var(--ha-green);
	box-shadow: 0 0 0 4px var(--ha-ring);
}
.ha-input:focus-within > .ha-i {
	color: var(--ha-focus-icon);
}
.ha-input input[aria-invalid="true"],
.ha-code[aria-invalid="true"] {
	border-color: var(--ha-err);
}
.ha-input input[aria-invalid="true"]:focus,
.ha-code[aria-invalid="true"]:focus {
	box-shadow: 0 0 0 4px var(--ha-err-ring);
}
.ha-input:has(input[aria-invalid="true"]) > .ha-i {
	color: var(--ha-err);
}
.ha-input input[readonly] {
	background: var(--ha-soft);
	color: var(--ha-muted);
}
.ha-code {
	height: 62px;
	padding: 0 16px;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: 0.45em;
	text-indent: 0.45em;
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.ha-eye {
	position: absolute;
	right: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--ha-icon);
	cursor: pointer;
}
.ha-eye:hover {
	color: var(--ha-ink);
}
.ha-eye .ha-eye-off,
.ha-eye[aria-pressed="true"] .ha-eye-on {
	display: none;
}
.ha-eye[aria-pressed="true"] .ha-eye-off {
	display: block;
}
.ha-pair {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 14px;
}
.ha-pair > .ha-field {
	flex: 1 1 180px;
}
.ha-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ha-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ha-muted);
	cursor: pointer;
}
.ha-check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--ha-green);
}
.ha-check input[aria-invalid="true"] {
	outline: 2px solid var(--ha-err);
	outline-offset: 2px;
}
.ha-check a {
	font-weight: 600;
	color: var(--ha-link);
	text-decoration: none;
}
.ha-turnstile {
	min-height: 65px;
}
.ha-turnstile .cf-turnstile {
	width: 100%;
}

.ha-err {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--ha-err-text);
}
.ha-err .ha-i {
	width: 15px;
	height: 15px;
	margin-top: 1px;
}
.ha-alert {
	display: flex;
	gap: 12px;
	padding: 13px 16px;
	border-radius: 14px;
	background: var(--ha-err-bg);
	border: 1px solid var(--ha-err-line);
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--ha-err-text);
}
.ha-alert > .ha-i {
	margin-top: 1px;
	color: var(--ha-err);
}
.ha-alert-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.ha-alert strong {
	font-size: 14px;
	font-weight: 700;
	color: var(--ha-err-title);
}
.ha-err a,
.ha-alert a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
}
.ha-err:not([hidden]),
.ha-alert:not([hidden]) {
	animation: ha-in 0.18s ease-out;
}
.ha-note {
	display: flex;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--ha-soft);
	border: 1px solid var(--ha-line);
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--ha-muted);
}
.ha-note .ha-i {
	margin-top: 1px;
	color: var(--ha-icon);
}

.ha-btn,
.ha-ghost {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ha-btn,
.ha-btn:focus {
	background: var(--ha-green);
	color: #07210f;
	box-shadow: 0 8px 22px rgba(54, 199, 119, 0.3);
}
.ha-btn:hover {
	background: #4fd489;
	color: #07210f;
	text-decoration: none;
}
.ha-btn:disabled {
	cursor: progress;
}
.ha-btn .ha-i,
.ha-ghost .ha-i {
	width: 16px;
	height: 16px;
	stroke-width: 2.4;
}
.ha-btn .ha-spin {
	display: none;
}
.ha-btn[aria-busy="true"] .ha-spin {
	display: block;
}
.ha-btn[aria-busy="true"] .ha-i {
	display: none;
}
.ha-ghost,
.ha-ghost:focus {
	height: 48px;
	border: 1px solid var(--ha-border);
	background: transparent;
	color: var(--ha-ink);
	font-size: 15px;
}
.ha-ghost:hover {
	border-color: var(--ha-ink);
	color: var(--ha-ink);
	text-decoration: none;
}
.ha-spin {
	flex: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(7, 33, 15, 0.25);
	border-top-color: #07210f;
	animation: ha-spin 0.8s linear infinite;
}
.ha-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ha-link);
	text-decoration: none;
	cursor: pointer;
}
.ha-link:hover,
.ha-link:focus {
	color: var(--ha-ink);
	text-decoration: none;
}
.ha-link .ha-i {
	width: 15px;
	height: 15px;
}
.ha-link-row {
	display: flex;
	justify-content: center;
}
.ha-link-row .ha-link {
	font-size: 14px;
}
.ha-switch {
	margin: 4px 0 0;
	padding-top: 22px;
	border-top: 1px solid var(--ha-line);
	font-size: 14.5px;
	line-height: 1.5;
	text-align: center;
	color: var(--ha-muted);
}
.ha-switch a {
	font-weight: 700;
	color: var(--ha-link);
	text-decoration: none;
}
.ha-switch a:hover {
	color: var(--ha-ink);
}

.ha-account {
	display: flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	max-width: 100%;
	padding: 6px 14px 6px 6px;
	border-radius: 999px;
	border: 1px solid var(--ha-line);
	background: var(--ha-soft);
}
.ha-avatar {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ha-green);
	color: #07210f;
	font-size: 13px;
	font-weight: 700;
}
.ha-account-email {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 600;
	color: var(--ha-text);
}
.ha-account .ha-link {
	flex: none;
	margin-left: 4px;
}
.ha-status {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ha-muted);
}
.ha-status .ha-spin {
	border-color: var(--ha-line);
	border-top-color: var(--ha-green);
}

.ha-legal {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ha-subtle);
}
.ha-legal nav {
	display: flex;
	gap: 18px;
}
.ha-legal a {
	color: inherit;
	text-decoration: none;
}
.ha-legal a:hover {
	color: var(--ha-ink);
}

.ha-aside {
	position: relative;
	flex: 1.25 1 400px;
	min-width: 0;
	min-height: 600px;
	margin: 12px;
	overflow: hidden;
	border-radius: 24px;
	border: 1px solid var(--ha-panel-line);
}
@media (max-width: 960px) {
	.ha-aside {
		display: none;
	}
}

.ha-plans {
	padding: 56px;
	background-color: #09203f;
	background-image: linear-gradient(to bottom, rgba(9, 32, 63, 0.93) 0%, rgba(83, 120, 149, 0.93) 100%), url(../img/bg5.webp);
	background-size: cover;
	background-position: center;
	color: #ffffff;
}
.ha-plans-body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 22px;
	max-width: 640px;
}
.ha-plans-pill {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 16px 0 5px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1;
}
.ha-plans-pill span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: rgba(54, 199, 119, 0.22);
	color: #9af0bf;
}
.ha-plans-pill .ha-i {
	width: 14px;
	height: 14px;
}
.ha-plans h2 {
	margin: 0;
	font-family: inherit;
	font-size: 38px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #ffffff;
}
.ha-plans p {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.8);
}
.ha-plans-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 6px;
}
.ha-plan {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	padding: 22px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.14);
}
.ha-plan-head {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	font-weight: 700;
}
.ha-plan-tile {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: rgba(54, 199, 119, 0.2);
	color: #9af0bf;
}
.ha-plan-tile .ha-i {
	width: 20px;
	height: 20px;
}
.ha-plan-free {
	display: flex;
	align-items: center;
	gap: 12px;
}
.ha-plan-num {
	font-size: 44px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: -0.03em;
}
.ha-plan-unit {
	font-size: 13.5px;
	line-height: 1.35;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.78);
}
.ha-plan-sub {
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.72);
}
.ha-plans-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 8px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	list-style: none;
	font-size: 14.5px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.86);
}
.ha-plans-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.ha-plans-list .ha-i {
	width: 15px;
	height: 15px;
	margin-top: 2px;
	stroke-width: 2.6;
	color: #6ee7a0;
}
.ha-plans-since {
	position: absolute;
	left: 56px;
	right: 56px;
	bottom: 44px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
}
.ha-plans-since .ha-i {
	width: 16px;
	height: 16px;
}

@keyframes ha-spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes ha-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ha-err:not([hidden]),
	.ha-alert:not([hidden]) {
		animation: none;
	}
}
