/**
 * Helpdesk template styles
 * Copyright (C) 2011 - 2026 JoomlaX
 * GPL-2.0-or-later
 *
 * Bootstrap 5 site chrome for support portals.
 */

:root {
	--hd-accent: #1819ed;
	--hd-accent-soft: color-mix(in srgb, var(--hd-accent) 12%, white);
	--hd-accent-ink: color-mix(in srgb, var(--hd-accent) 72%, black);
	--hd-header-bg: #ffffff;
	--hd-body-bg: #eef2f8;
	--hd-footer-bg: #14181c;
	--hd-ink: #14181c;
	--hd-muted: #5b6773;
	--hd-line: #d7dee8;
	--hd-surface: #ffffff;
	--hd-max: 1140px;
	--hd-radius: 14px;
	--hd-shadow: 0 10px 30px rgba(20, 24, 28, 0.06);
	--hd-font-body: "DM Sans", "Segoe UI", sans-serif;
	--hd-font-display: "Outfit", "DM Sans", sans-serif;
	--hd-header-h: 4.25rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body.hd-site {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	color: var(--hd-ink);
	font-family: var(--hd-font-body);
	font-size: 1rem;
	line-height: 1.6;
	background:
		radial-gradient(1200px 420px at 8% -10%, color-mix(in srgb, var(--hd-accent) 16%, transparent), transparent 60%),
		radial-gradient(900px 360px at 100% 0%, color-mix(in srgb, var(--hd-accent) 10%, transparent), transparent 55%),
		linear-gradient(180deg, color-mix(in srgb, var(--hd-body-bg) 88%, white), var(--hd-body-bg));
	-webkit-font-smoothing: antialiased;
}

body.hd-site h1,
body.hd-site h2,
body.hd-site h3,
body.hd-site .hd-logo-text,
body.hd-site .hd-cta-title,
body.hd-site .hd-footer-title {
	font-family: var(--hd-font-display);
}

body.hd-site a {
	color: var(--hd-accent);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.16em;
}

body.hd-site a:hover,
body.hd-site a:focus-visible {
	color: var(--hd-accent-ink);
}

.hd-skip {
	position: absolute;
	left: 1rem;
	top: 1rem;
	z-index: 1000;
	padding: 0.65rem 1rem;
	border-radius: 999px;
	background: var(--hd-accent);
	color: #fff !important;
}

.hd-wrap {
	width: 100%;
	max-width: var(--hd-max);
}

.container-fluid.hd-wrap {
	max-width: none;
}

/* Header */
.hd-header {
	background: color-mix(in srgb, var(--hd-header-bg) 92%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--hd-line) 80%, transparent);
	backdrop-filter: blur(12px);
	z-index: 50;
}

.hd-header-sticky {
	position: sticky;
	top: 0;
}

.hd-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	min-height: 4rem;
	padding: 0.55rem 0;
}

.hd-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	color: var(--hd-ink) !important;
	text-decoration: none !important;
	min-width: 0;
}

.hd-brand-mark {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.85rem;
	background: var(--hd-accent);
	color: #fff;
	flex: 0 0 auto;
}

.hd-brand-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hd-logo-text,
.hd-logo-img {
	font-family: var(--hd-font-display);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.hd-logo-img {
	max-height: 2rem;
	width: auto;
}

.hd-tagline {
	color: var(--hd-muted);
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hd-nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--hd-line);
	border-radius: 0.85rem;
	background: var(--hd-surface);
	color: var(--hd-ink);
	cursor: pointer;
}

.hd-nav-toggle:focus-visible {
	outline: 2px solid var(--hd-accent);
	outline-offset: 2px;
}

.hd-nav-collapse {
	width: 100%;
}

.hd-nav,
.hd-search,
.hd-header-end {
	display: flex;
	align-items: center;
}

.hd-nav .mod-menu,
.hd-nav ul {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0;
	padding: 0.75rem 0 0;
	list-style: none;
}

.hd-nav .mod-menu > li,
.hd-nav ul > li {
	margin: 0;
}

.hd-nav .mod-menu a,
.hd-nav ul a {
	display: block;
	padding: 0.55rem 0.85rem;
	border-radius: 0.7rem;
	color: var(--hd-ink) !important;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none !important;
}

.hd-nav .mod-menu a:hover,
.hd-nav .mod-menu a:focus-visible,
.hd-nav ul a:hover,
.hd-nav ul a:focus-visible,
.hd-nav .mod-menu .current > a,
.hd-nav .mod-menu .active > a,
.hd-nav ul .current > a,
.hd-nav ul .active > a {
	background: var(--hd-accent-soft);
	color: var(--hd-accent-ink) !important;
}

.hd-header-end {
	margin-left: auto;
	flex: 0 0 auto;
	max-width: min(100%, 28rem);
}

.hd-header-end .moduletable,
.hd-header-end .hd-mod,
.hd-header-end > div {
	margin: 0;
	width: 100%;
}

.hd-header-end .card {
	border: 0;
	box-shadow: none;
	background: transparent;
}

.hd-header-end .card-header {
	display: none;
}

.hd-header-end .card-body {
	padding: 0;
}

.hd-header-end form,
.hd-header-end .mod-login,
.hd-header-end .mod-login__userdata,
.hd-header-end .userdata {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.4rem;
	margin: 0;
}

.hd-header-end .mod-login__username,
.hd-header-end .mod-login__password,
.hd-header-end .mod-login__remember,
.hd-header-end .mod-login__submit,
.hd-header-end .form-group,
.hd-header-end .control-group,
.hd-header-end .mb-3 {
	margin: 0 !important;
}

.hd-header-end label:not(.form-check-label),
.hd-header-end .form-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.hd-header-end .form-control,
.hd-header-end input[type="text"],
.hd-header-end input[type="password"] {
	width: 8.5rem;
	border: 1px solid var(--hd-line);
	border-radius: 0.7rem !important;
	padding: 0.45rem 0.65rem;
	font: inherit;
	font-size: 0.9rem;
	background: #fff;
	line-height: 1.2;
}

.hd-header-end .mod-login__remember,
.hd-header-end .form-check,
.hd-header-end .checkbox {
	display: none;
}

.hd-header-end .password-group,
.hd-header-end .input-group {
	display: flex;
	align-items: stretch;
	width: auto;
	flex-wrap: nowrap;
}

.hd-header-end .mod-login__username .input-group .form-control {
	border-radius: 0.7rem !important;
}

.hd-header-end .mod-login__password .input-group .form-control {
	border-radius: 0.7rem 0 0 0.7rem !important;
}

.hd-header-end .input-password-toggle,
.hd-header-end .btn.input-password-toggle {
	min-height: 0;
	padding: 0.35rem 0.55rem;
	background: #fff;
	color: var(--hd-muted) !important;
	border: 1px solid var(--hd-line);
	border-left: 0;
	border-radius: 0 0.7rem 0.7rem 0 !important;
	box-shadow: none;
	transform: none;
}

.hd-header-end ul,
.hd-header-end .mod-login__options,
.hd-header-end .mod-login .list-unstyled {
	display: none;
}

.hd-header-end button[type="submit"],
.hd-header-end .btn-primary,
.hd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.35rem;
	width: auto !important;
	padding: 0.45rem 0.9rem;
	border: 0;
	border-radius: 0.75rem;
	background: var(--hd-accent);
	color: #fff !important;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 160ms ease;
}

.hd-header-end .hd-login-submit {
	gap: 0.45rem;
}

.hd-header-end .hd-login-submit .fa {
	font-size: 0.95rem;
	line-height: 1;
}

.hd-header-end .input-group-text {
	display: none;
}

.hd-header-end .input-group {
	width: auto;
}

.hd-header-end button[type="submit"]:hover,
.hd-header-end .btn-primary:hover,
.hd-btn:hover {
	background: var(--hd-accent-ink);
	transform: none;
}

/* Body / grid */
.hd-body {
	flex: 1 0 auto;
	padding: 1.25rem 0 2.5rem;
}

.hd-top-a,
.hd-top-b,
.hd-bottom-a,
.hd-bottom-b {
	margin-bottom: 1rem;
}

.hd-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr;
}

.hd-content {
	min-width: 0;
}

.hd-breadcrumbs {
	margin-bottom: 0.85rem;
	color: var(--hd-muted);
	font-size: 0.9rem;
}

.hd-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hd-sidebar .hd-mod,
.hd-sidebar .card {
	margin-bottom: 1rem;
	border: 1px solid var(--hd-line);
	border-radius: var(--hd-radius);
	box-shadow: var(--hd-shadow);
	overflow: hidden;
}

.hd-sidebar .card-header,
.hd-mod-title {
	background: color-mix(in srgb, var(--hd-accent-soft) 70%, white);
	border-bottom: 1px solid var(--hd-line);
	font-family: var(--hd-font-display);
	font-size: 0.95rem;
	font-weight: 700;
	padding: 0.85rem 1rem;
}

.hd-mod-body,
.hd-sidebar .card-body {
	padding: 1rem;
}

/* Soft surface behind component content when not full-bleed portal */
.hd-content > main {
	min-width: 0;
}

body.hd-site:not(.com_easyhelpdesk) .hd-content > main {
	background: var(--hd-surface);
	border: 1px solid var(--hd-line);
	border-radius: var(--hd-radius);
	box-shadow: var(--hd-shadow);
	padding: 1.25rem;
}

/* Easy Helpdesk portal: let component own the surface */
body.com_easyhelpdesk .hd-content > main {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

body.com_easyhelpdesk .ehd-portal {
	padding-top: 0.5rem;
}

/* Messages */
#system-message-container .alert {
	border-radius: 0.9rem;
}

/* Footer */
.hd-footer {
	margin-top: auto;
	background: var(--hd-footer-bg);
	color: color-mix(in srgb, #fff 82%, transparent);
	padding: 2.5rem 0 1.25rem;
}

.hd-footer a,
body.hd-site .hd-footer a {
	color: rgba(255, 255, 255, 0.88) !important;
	text-decoration: none !important;
	opacity: 1;
}

.hd-footer a:hover,
.hd-footer a:focus-visible,
body.hd-site .hd-footer a:hover,
body.hd-site .hd-footer a:focus-visible {
	color: #ffffff !important;
	text-decoration: underline !important;
}

.hd-footer-grid {
	display: grid;
	gap: 1.75rem 1.5rem;
	grid-template-columns: 1fr;
	margin-bottom: 2rem;
	padding-bottom: 1.75rem;
	border-bottom: 1px solid color-mix(in srgb, #fff 14%, transparent);
}

.hd-footer-title,
.hd-footer h3 {
	margin: 0 0 0.85rem;
	font-family: var(--hd-font-display);
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
}

.hd-footer-menu,
.hd-footer ul.mod-menu,
.hd-footer ul.menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

.hd-footer-menu a,
.hd-footer ul.mod-menu a,
.hd-footer ul.menu a,
body.hd-site .hd-footer-menu a {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.82) !important;
}

.hd-footer-text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.78);
	max-width: 18rem;
}

.hd-footer-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem;
}

.hd-footer-copy {
	margin: 0;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.72);
}

.hd-footer-note {
	margin: 0.35rem 0 0;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.55);
	max-width: 36rem;
	line-height: 1.45;
}

.hd-payments-label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.65rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
}

.hd-payments-label .icon-lock,
.hd-payments-label .fa-shield-halved {
	color: #50b83c;
}

.hd-payments-icons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
}

.hd-payments-icons .fa,
.hd-payments-icons .fab,
.hd-payments-icons .fa-brands {
	font-size: 1.85rem;
	line-height: 1;
	color: #fff !important;
}

/* Demo notice */
.hd-topbar {
	background: #10131a;
	color: #e8edf5;
	border-bottom: 1px solid color-mix(in srgb, #fff 10%, transparent);
	font-size: 0.875rem;
}

.hd-topbar a {
	color: #fff;
}

.hd-demo-notice {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	min-height: 2.6rem;
	padding: 0.4rem 0;
}

.hd-demo-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem 0.7rem;
	margin: 0;
	min-width: 0;
	line-height: 1.3;
}

.hd-demo-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.18rem 0.5rem;
	border-radius: 999px;
	background: var(--hd-accent);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	flex: 0 0 auto;
}

.hd-demo-text {
	color: color-mix(in srgb, #fff 88%, transparent);
	font-weight: 500;
}

.hd-demo-sep {
	opacity: 0.45;
	padding: 0 0.15rem;
}

.hd-demo-notice code {
	display: inline-block;
	padding: 0.08rem 0.38rem;
	border-radius: 0.35rem;
	background: color-mix(in srgb, #fff 12%, transparent);
	color: #fff;
	font-size: 0.84em;
	font-weight: 700;
}

.hd-demo-actions {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.4rem;
	flex: 0 0 auto;
}

.hd-demo-actions a {
	display: inline-flex;
	align-items: center;
	min-height: 1.85rem;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, #fff 22%, transparent);
	color: #fff !important;
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
}

.hd-demo-actions a.is-primary {
	background: #fff;
	color: #10131a !important;
	border-color: #fff;
}

.hd-demo-actions a:not(.is-primary):hover,
.hd-demo-actions a:not(.is-primary):focus-visible {
	border-color: #fff;
}

/* Product CTA strip */
.hd-cta {
	display: grid;
	gap: 1rem;
	padding: 1.25rem 1.35rem;
	border: 1px solid var(--hd-line);
	border-radius: var(--hd-radius);
	background: var(--hd-surface);
	box-shadow: var(--hd-shadow);
	margin-bottom: 0.25rem;
}

.hd-cta-copy h2,
.hd-cta-copy .hd-cta-title {
	margin: 0 0 0.35rem;
	font-family: var(--hd-font-display);
	font-size: 1.2rem;
	font-weight: 700;
}

.hd-cta-copy p {
	margin: 0;
	color: var(--hd-muted);
	font-size: 0.95rem;
}

.hd-cta-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hd-cta-links a {
	display: inline-flex;
	align-items: center;
	min-height: 2.45rem;
	padding: 0.45rem 0.95rem;
	border-radius: 0.75rem;
	border: 1px solid var(--hd-line);
	background: #fff;
	color: var(--hd-ink) !important;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none !important;
}

.hd-cta-links a.is-buy {
	background: var(--hd-accent);
	border-color: var(--hd-accent);
	color: #fff !important;
}

.hd-cta-links a:hover,
.hd-cta-links a:focus-visible {
	border-color: var(--hd-accent);
	color: var(--hd-accent-ink) !important;
}

.hd-cta-links a.is-buy:hover,
.hd-cta-links a.is-buy:focus-visible {
	background: var(--hd-accent-ink);
	border-color: var(--hd-accent-ink);
	color: #fff !important;
}

.hd-back-top {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 40;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: var(--hd-accent);
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--hd-accent) 40%, transparent);
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.hd-back-top svg {
	display: block;
}

.hd-back-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

/* Error / offline */
.hd-error,
.hd-offline {
	display: grid;
	place-items: center;
	min-height: 100vh;
	padding: 2rem 1rem;
}

.hd-error-panel,
.hd-offline-panel {
	width: min(100%, 32rem);
	background: var(--hd-surface);
	border: 1px solid var(--hd-line);
	border-radius: 1.1rem;
	box-shadow: var(--hd-shadow);
	padding: 2rem;
	text-align: center;
}

.hd-error-code {
	margin: 0;
	color: var(--hd-accent);
	font-family: var(--hd-font-display);
	font-size: 3rem;
	font-weight: 700;
	line-height: 1;
}

.hd-error-title,
.hd-offline-panel h1 {
	font-family: var(--hd-font-display);
	margin: 0.75rem 0;
}

.hd-offline-form {
	text-align: left;
	margin-top: 1.25rem;
}

/* Desktop */
@media (min-width: 992px) {
	.hd-nav-toggle {
		display: none;
	}

	.hd-nav-collapse {
		display: flex !important;
		align-items: center;
		justify-content: flex-end;
		gap: 1rem;
		width: auto;
		flex: 1 1 auto;
		order: 2;
	}

	.hd-header-end {
		order: 3;
	}

	.hd-nav .mod-menu,
	.hd-nav ul {
		flex-direction: row;
		align-items: center;
		padding: 0;
		gap: 0.15rem;
	}

	.hd-footer-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.hd-cta {
		grid-template-columns: minmax(0, 1.4fr) auto;
		align-items: center;
	}

	.hd-grid.has-sidebar-left {
		grid-template-columns: 16rem minmax(0, 1fr);
	}

	.hd-grid.has-sidebar-right {
		grid-template-columns: minmax(0, 1fr) 16rem;
	}

	.hd-grid.has-sidebar-left.has-sidebar-right {
		grid-template-columns: 15rem minmax(0, 1fr) 15rem;
	}
}

@media (min-width: 576px) and (max-width: 991.98px) {
	.hd-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991.98px) {
	.hd-nav-collapse {
		flex: 1 0 100%;
		order: 4;
		border-top: 1px solid var(--hd-line);
		margin-top: 0.35rem;
	}

	.hd-header-inner {
		flex-wrap: wrap;
	}

	.hd-brand {
		flex: 1 1 auto;
	}

	.hd-header-end {
		order: 3;
		max-width: none;
	}

	.hd-header-end .form-control,
	.hd-header-end input[type="text"],
	.hd-header-end input[type="password"] {
		width: 7.25rem;
	}

	.hd-body {
		padding: 1rem 0 2rem;
	}

	.hd-wrap.container {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

@media (max-width: 575.98px) {
	.hd-header-end {
		flex: 1 0 100%;
		order: 3;
	}

	.hd-header-end form,
	.hd-header-end .mod-login,
	.hd-header-end .mod-login__userdata,
	.hd-header-end .userdata {
		justify-content: stretch;
	}

	.hd-header-end .mod-login__username,
	.hd-header-end .mod-login__password,
	.hd-header-end .mod-login__submit {
		flex: 1 1 auto;
	}

	.hd-header-end .form-control,
	.hd-header-end input[type="text"],
	.hd-header-end input[type="password"],
	.hd-header-end .input-group {
		width: 100%;
	}

	.hd-header-end .mod-login__password .input-group .form-control {
		flex: 1 1 auto;
		width: auto;
	}

	.hd-header-end button[type="submit"],
	.hd-header-end .btn-primary {
		width: 100% !important;
	}

	.hd-demo-notice {
		flex-wrap: wrap;
		min-height: 0;
		padding: 0.55rem 0;
	}

	.hd-demo-actions {
		width: 100%;
	}

	.hd-demo-actions a {
		flex: 1 1 auto;
		justify-content: center;
	}

	.hd-cta-links a {
		flex: 1 1 auto;
		justify-content: center;
	}

	.hd-footer-bar {
		flex-direction: column;
		align-items: flex-start;
	}

	.hd-back-top {
		right: 0.75rem;
		bottom: 0.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.hd-back-top,
	.hd-header-end button,
	.hd-btn {
		transition: none;
	}
}
