/* ==========================================================================
   HyväArabic Platform — main stylesheet
   RTL-first, logical properties, no frameworks.
   ========================================================================== */

:root {
	--ha-primary: #0e7c66;
	--ha-primary-strong: #0a5f4e;
	--ha-primary-soft: #e7f4f0;
	--ha-accent: #f4b740;
	--ha-accent-strong: #d99a16;
	--ha-ink: #10231f;
	--ha-muted: #5b6f69;
	--ha-bg: #ffffff;
	--ha-surface: #f6f8f7;
	--ha-card: #ffffff;
	--ha-border: #e2eae7;
	--ha-inverse: #ffffff;
	--ha-shadow: 0 10px 30px rgba(16, 35, 31, 0.07);
	--ha-shadow-lg: 0 24px 60px rgba(16, 35, 31, 0.12);
	--ha-radius: 18px;
	--ha-radius-sm: 12px;
	--ha-container: 1200px;
	--ha-font: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ha-font-heading: var(--ha-font);
	--ha-font-button: var(--ha-font);
	--ha-font-size: 17px;
	--ha-header-h: 76px;
	--ha-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
	--ha-primary: #2ab394;
	--ha-primary-strong: #37c7a6;
	--ha-primary-soft: #12342b;
	--ha-ink: #e9f2ef;
	--ha-muted: #9fb4ad;
	--ha-bg: #091411;
	--ha-surface: #0e1d19;
	--ha-card: #10231e;
	--ha-border: #20382f;
	--ha-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	--ha-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--ha-header-h) + 20px);
	direction: rtl;
}
html[dir="ltr"] { direction: ltr; }

body {
	margin: 0;
	background: var(--ha-bg);
	color: var(--ha-ink);
	font-family: var(--ha-font);
	font-size: var(--ha-font-size);
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	-text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--ha-ink);
	font-family: var(--ha-font-heading);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

a {
	color: var(--ha-primary);
	text-decoration: none;
	transition: color 0.2s var(--ha-ease), opacity 0.2s var(--ha-ease);
}

a:hover { color: var(--ha-primary-strong); }

ul, ol { padding-inline-start: 1.4em; }

button, input, select, textarea {
	font: inherit;
	color: inherit;
}

button { cursor: pointer; }

:focus-visible {
	outline: 3px solid var(--ha-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

::selection {
	background: var(--ha-primary);
	color: #fff;
}

[hidden] { display: none !important; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ha-skip-link {
	position: absolute;
	inset-inline-start: 1rem;
	top: -100px;
	z-index: 999;
	background: var(--ha-primary);
	color: #fff;
	padding: 0.7rem 1.2rem;
	border-radius: 0 0 10px 10px;
	transition: top 0.2s;
}
.ha-skip-link:focus { top: 0; color: #fff; }

/* ---------- Layout helpers ---------- */
.ha-container {
	width: 100%;
	max-width: var(--ha-container);
	margin-inline: auto;
	padding-inline: 20px;
}
.ha-container--narrow { max-width: 860px; }

.ha-main { min-height: 60vh; }

.ha-section { padding-block: clamp(56px, 8vw, 96px); }
.ha-section--alt { background: var(--ha-surface); }

.ha-section__head {
	max-width: 680px;
	margin: 0 auto clamp(32px, 5vw, 52px);
	text-align: center;
}
.ha-section__head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	max-width: none;
	text-align: start;
	margin-bottom: 36px;
}
.ha-section__title { margin-bottom: 0.35em; }
.ha-section__text { color: var(--ha-muted); font-size: 1.05rem; margin: 0; }

.ha-eyebrow {
	display: inline-block;
	margin-bottom: 0.6rem;
	color: var(--ha-primary);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.ha-grid { display: grid; gap: 22px; }
.ha-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ha-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ha-grid--4 { grid-template-columns: repeat(4, 1fr); }

.ha-center { text-align: center; }
.ha-muted { color: var(--ha-muted); }
.ha-dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--ha-primary);
	display: inline-block;
	flex: 0 0 auto;
}
.ha-dot--green { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); }

/* ---------- Buttons ---------- */
.ha-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0.72rem 1.35rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: var(--ha-ink);
	font-family: var(--ha-font-button);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	white-space: nowrap;
	transition: transform 0.2s var(--ha-ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.ha-btn:hover { transform: translateY(-1px); }
.ha-btn .ha-icon { flex: 0 0 auto; }

.ha-btn--primary {
	background: var(--ha-primary);
	color: #fff;
	box-shadow: 0 10px 24px rgba(14, 124, 102, 0.25);
}
.ha-btn--primary:hover { background: var(--ha-primary-strong); color: #fff; }

.ha-btn--secondary {
	background: var(--ha-accent);
	color: #211a06;
	box-shadow: 0 10px 24px rgba(244, 183, 64, 0.25);
}
.ha-btn--secondary:hover { background: var(--ha-accent-strong); color: #211a06; }

.ha-btn--ghost {
	border-color: var(--ha-border);
	background: var(--ha-card);
	color: var(--ha-ink);
}
.ha-btn--ghost:hover { border-color: var(--ha-primary); color: var(--ha-primary); }

.ha-btn--accent { background: var(--ha-accent); color: #211a06; }
.ha-btn--accent:hover { background: var(--ha-accent-strong); color: #211a06; }

.ha-btn--outline-light {
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
}
.ha-btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.ha-btn--lg { padding: 0.9rem 1.7rem; font-size: 1rem; }
.ha-btn--block { display: flex; width: 100%; }

.ha-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--ha-border);
	border-radius: 50%;
	background: var(--ha-card);
	color: var(--ha-ink);
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.ha-icon-btn:hover { color: var(--ha-primary); border-color: var(--ha-primary); }

.ha-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.65rem;
	border-radius: 999px;
	background: var(--ha-primary-soft);
	color: var(--ha-primary-strong);
	font-size: 0.76rem;
	font-weight: 700;
	line-height: 1.7;
}
.ha-chip--type { background: rgba(244, 183, 64, 0.18); color: var(--ha-accent-strong); }

/* ---------- Cards ---------- */
.ha-card {
	position: relative;
	background: var(--ha-card);
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius);
	padding: 26px;
	box-shadow: none;
	transition: transform 0.25s var(--ha-ease), box-shadow 0.25s var(--ha-ease), border-color 0.25s;
}
.ha-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	border-radius: 14px;
	background: var(--ha-primary-soft);
	color: var(--ha-primary);
}
.ha-feature:hover { transform: translateY(-4px); box-shadow: var(--ha-shadow); border-color: color-mix(in srgb, var(--ha-primary) 35%, var(--ha-border)); }
.ha-feature h3 { margin-bottom: 0.4em; }
.ha-feature p { margin: 0; color: var(--ha-muted); font-size: 0.96rem; }

/* ---------- Notice ---------- */
.ha-notice {
	background: var(--ha-primary-strong);
	color: #fff;
	font-size: 0.9rem;
}
.ha-notice__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding-block: 9px;
	text-align: center;
}
.ha-notice a { color: #fff; text-decoration: underline; }
.ha-notice__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

/* ---------- Header ---------- */
.ha-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: color-mix(in srgb, var(--ha-bg) 88%, transparent);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--ha-border);
	transition: box-shadow 0.25s;
}
.ha-header.is-scrolled { box-shadow: var(--ha-shadow); }
.ha-header__inner {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: var(--ha-header-h);
}

.ha-header__brand { display: flex; align-items: center; }
.ha-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ha-ink); }
.ha-logo:hover { color: var(--ha-ink); }
.ha-logo img { display: block; width: auto; max-height: 52px; }
.ha-logo__dark { display: none; }
.ha-logo.has-dark-logo .ha-logo__light { display: block; }
.ha-logo.has-dark-logo .ha-logo__dark { display: none; }
[data-theme="dark"] .ha-logo.has-dark-logo .ha-logo__light { display: none; }
[data-theme="dark"] .ha-logo.has-dark-logo .ha-logo__dark { display: block; }
.ha-logo__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border-radius: 12px;
	background: var(--ha-primary);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.ha-logo__name { font-weight: 800; font-size: 1.15rem; }

.ha-nav { margin-inline-start: auto; }
.ha-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ha-nav__list li { position: relative; }
.ha-nav__list a {
	display: block;
	padding: 0.5rem 0.8rem;
	border-radius: 10px;
	color: var(--ha-ink);
	font-size: 0.94rem;
	font-weight: 600;
}
.ha-nav__list a:hover { background: var(--ha-surface); color: var(--ha-primary); }
.ha-nav__list .current-menu-item > a,
.ha-nav__list .current_page_item > a { color: var(--ha-primary); background: var(--ha-primary-soft); }

.ha-nav__list .sub-menu {
	position: absolute;
	inset-inline-start: 0;
	top: calc(100% + 8px);
	min-width: 200px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--ha-card);
	border: 1px solid var(--ha-border);
	border-radius: 14px;
	box-shadow: var(--ha-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all 0.2s var(--ha-ease);
	z-index: 5;
}
.ha-nav__list li:hover > .sub-menu,
.ha-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.ha-nav__list .sub-menu a { font-weight: 500; }

.ha-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ha-header__cta { padding: 0.6rem 1.15rem; font-size: 0.88rem; }

.ha-theme-toggle__sun,
.ha-theme-toggle__moon { display: inline-flex; }
.ha-theme-toggle__moon { display: none; }
[data-theme="dark"] .ha-theme-toggle__sun { display: none; }
[data-theme="dark"] .ha-theme-toggle__moon { display: inline-flex; }

.ha-cart { position: relative; }
.ha-list-icon,
.ha-account-link { position: relative; }
.ha-cart__count {
	position: absolute;
	top: -4px;
	inset-inline-end: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--ha-accent);
	color: #211a06;
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
}

.ha-nav-toggle { display: none; }
.ha-nav-toggle { position: relative; z-index: 110; }
.ha-nav-toggle__close { display: none; }
.ha-nav-toggle.is-open .ha-nav-toggle__open { display: none; }
.ha-nav-toggle.is-open .ha-nav-toggle__close { display: inline-flex; }

.ha-search-panel {
	border-top: 1px solid var(--ha-border);
	background: var(--ha-card);
	padding-block: 16px;
}
.ha-search {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 720px;
	margin-inline: auto;
	padding: 6px 16px;
	border: 1px solid var(--ha-border);
	border-radius: 999px;
	background: var(--ha-surface);
	color: var(--ha-muted);
}
.ha-search__field {
	flex: 1;
	min-width: 0;
	padding: 0.5rem 0;
	border: 0;
	background: transparent;
	color: var(--ha-ink);
	outline: none;
}
.ha-search .ha-btn { padding: 0.5rem 1.1rem; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.ha-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 104px);
	background:
		radial-gradient(1100px 500px at 85% -10%, color-mix(in srgb, var(--ha-primary) 12%, transparent), transparent 60%),
		linear-gradient(180deg, var(--ha-bg), var(--ha-surface));
}
.ha-hero__glow {
	position: absolute;
	inset-block-start: 20%;
	inset-inline-start: -180px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--ha-accent) 20%, transparent);
	filter: blur(80px);
	pointer-events: none;
}
.ha-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: clamp(32px, 5vw, 64px);
}
.ha-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--ha-border);
	border-radius: 999px;
	background: var(--ha-card);
	color: var(--ha-muted);
	font-size: 0.82rem;
	font-weight: 600;
}
.ha-hero__title {
	margin-bottom: 0.45em;
	font-size: clamp(2.1rem, 4.6vw, 3.65rem);
	font-weight: 800;
	line-height: 1.22;
}
.ha-hero__lead {
	max-width: 35em;
	color: var(--ha-muted);
	font-size: clamp(1rem, 1.4vw, 1.15rem);
}
.ha-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-block: 26px;
}
.ha-hero__points {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--ha-muted);
	font-size: 0.9rem;
}
.ha-hero__points li { display: inline-flex; align-items: center; gap: 6px; }
.ha-hero__points .ha-icon { color: var(--ha-primary); }

.ha-hero__visual { position: relative; }
.ha-browser {
	border: 1px solid var(--ha-border);
	border-radius: 20px;
	background: var(--ha-card);
	box-shadow: var(--ha-shadow-lg);
	overflow: hidden;
	transform: rotate(-1deg);
	transition: transform 0.4s var(--ha-ease);
}
.ha-browser:hover { transform: rotate(0); }
.ha-browser__bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--ha-border);
	background: var(--ha-surface);
}
.ha-browser__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ha-border); }
.ha-browser__dot:first-child { background: #f87171; }
.ha-browser__dot:nth-child(2) { background: #fbbf24; }
.ha-browser__dot:nth-child(3) { background: #34d399; }
.ha-browser__url {
	margin-inline-start: auto;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--ha-card);
	border: 1px solid var(--ha-border);
	color: var(--ha-muted);
	font-size: 0.7rem;
	direction: ltr;
}
.ha-browser__body { padding: 20px; }
.ha-score { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ha-score__ring {
	display: grid;
	place-items: center;
	width: 70px; height: 70px;
	border-radius: 50%;
	background: conic-gradient(var(--ha-primary) 96%, var(--ha-surface) 0);
	position: relative;
	flex: 0 0 auto;
}
.ha-score__ring::before {
	content: "";
	position: absolute;
	inset: 6px;
	border-radius: 50%;
	background: var(--ha-card);
}
.ha-score__ring span { position: relative; font-weight: 800; font-size: 1.15rem; }
.ha-score div { display: flex; flex-direction: column; line-height: 1.4; }
.ha-score div span { color: var(--ha-muted); font-size: 0.75rem; }
.ha-score__badge {
	margin-inline-start: auto;
	display: grid;
	place-items: center;
	width: 34px; height: 34px;
	border-radius: 10px;
	background: #22c55e;
	color: #fff;
	font-weight: 800;
}
.ha-bars { display: grid; gap: 8px; margin-bottom: 18px; }
.ha-bar { height: 8px; border-radius: 999px; background: var(--ha-surface); overflow: hidden; }
.ha-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ha-primary), color-mix(in srgb, var(--ha-primary) 55%, var(--ha-accent))); }
.ha-browser__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.ha-mini {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px;
	border: 1px solid var(--ha-border);
	border-radius: 10px;
	background: var(--ha-surface);
	font-size: 0.72rem;
}
.ha-mini b { font-size: 0.68rem; color: var(--ha-muted); font-weight: 600; }
.ha-mini em { font-style: normal; font-weight: 800; direction: ltr; }
.ha-mini__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ha-primary); margin-bottom: 4px; }
.ha-mini__dot--amber { background: var(--ha-accent); }
.ha-mini__dot--blue { background: #60a5fa; }
.ha-code-line {
	direction: ltr;
	text-align: left;
	padding: 10px 14px;
	border-radius: 10px;
	background: #0d1f1a;
	color: #cfe9e2;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.78rem;
}
.ha-code-line__k { color: #7dd3fc; }
.ha-code-line__s { color: #86efac; }
.ha-code-line__c { color: #7f978f; }

.ha-floatcard {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--ha-border);
	border-radius: 12px;
	background: var(--ha-card);
	box-shadow: var(--ha-shadow);
	font-size: 0.8rem;
	font-weight: 700;
}
.ha-floatcard .ha-icon { color: var(--ha-primary); }
.ha-floatcard--rtl { inset-block-start: -16px; inset-inline-start: -14px; }
.ha-floatcard--perf { inset-block-end: 26px; inset-inline-end: -16px; }
.ha-floatcard--perf .ha-icon { color: var(--ha-accent-strong); }

/* ---------- Logos ---------- */
.ha-logos {
	padding-block: 28px;
	border-block: 1px solid var(--ha-border);
	background: var(--ha-bg);
}
.ha-logos__label { text-align: center; color: var(--ha-muted); font-size: 0.82rem; margin-bottom: 14px; }
.ha-logos__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 44px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ha-logos__list li {
	color: var(--ha-muted);
	font-size: 1.15rem;
	font-weight: 800;
	opacity: 0.75;
	letter-spacing: -0.02em;
}

/* ---------- Counters ---------- */
.ha-counters {
	padding-block: clamp(40px, 6vw, 64px);
	background: linear-gradient(135deg, #0a5f4e, #0e7c66 55%, #12957a);
	color: #fff;
}
.ha-counters__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.ha-counter__value { display: block; color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.2; direction: ltr; }
.ha-counter__value em { font-style: normal; font-size: 0.6em; margin-inline-start: 2px; color: var(--ha-accent); }
.ha-counter__label { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; }

/* ---------- Compare ---------- */
.ha-compare {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}
.ha-compare__col {
	padding: 28px;
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius);
	background: var(--ha-card);
}
.ha-compare__col h3 { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--ha-border); font-size: 1.05rem; }
.ha-compare__col--before h3 { color: #b45309; }
.ha-compare__col--after { border-color: color-mix(in srgb, var(--ha-primary) 40%, var(--ha-border)); box-shadow: var(--ha-shadow); }
.ha-compare__col--after h3 { color: var(--ha-primary); }
.ha-compare__row { margin-bottom: 16px; }
.ha-compare__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 0.88rem; }
.ha-compare__meta span { color: var(--ha-muted); }
.ha-compare__meta strong { font-size: 1rem; }
.ha-compare__bar { height: 9px; border-radius: 999px; background: var(--ha-surface); overflow: hidden; }
.ha-compare__bar span { display: block; height: 100%; border-radius: inherit; }
.ha-compare__col--before .ha-compare__bar span { background: #f59e0b; }
.ha-compare__col--after .ha-compare__bar span { background: var(--ha-primary); }
.ha-compare__note {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: center;
	margin-top: 22px;
	color: var(--ha-muted);
	font-size: 0.88rem;
}
.ha-compare__note .ha-icon { color: var(--ha-accent-strong); }

/* ---------- Pricing ---------- */
.ha-billing-toggle {
	display: flex;
	width: max-content;
	gap: 4px;
	margin: 0 auto 38px;
	padding: 5px;
	border: 1px solid var(--ha-border);
	border-radius: 999px;
	background: var(--ha-card);
}
.ha-billing-toggle button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.5rem 1.15rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ha-muted);
	font-size: 0.9rem;
	font-weight: 700;
}
.ha-billing-toggle button.is-active { background: var(--ha-primary); color: #fff; }
.ha-billing-toggle__save {
	padding: 1px 7px;
	border-radius: 999px;
	background: rgba(244, 183, 64, 0.25);
	color: var(--ha-accent-strong);
	font-size: 0.68rem;
	font-weight: 800;
}
.ha-billing-toggle button.is-active .ha-billing-toggle__save { background: rgba(255, 255, 255, 0.2); color: #fff; }

.ha-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.ha-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 30px 26px;
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius);
	background: var(--ha-card);
}
.ha-plan--popular {
	border-color: var(--ha-primary);
	box-shadow: 0 20px 50px rgba(14, 124, 102, 0.16);
	transform: translateY(-8px);
}
.ha-plan__badge {
	position: absolute;
	inset-block-start: -13px;
	inset-inline-start: 50%;
	transform: translateX(-50%);
	padding: 3px 14px;
	border-radius: 999px;
	background: var(--ha-primary);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	white-space: nowrap;
}
html[dir="rtl"] .ha-plan__badge { transform: translateX(50%); }
.ha-plan__name { margin-bottom: 0.2em; font-size: 1.15rem; letter-spacing: 0.02em; }
.ha-plan__tagline { min-height: 2.8em; color: var(--ha-muted); font-size: 0.86rem; }
.ha-plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin-block: 6px 2px; direction: rtl; }
.ha-price__amount { font-size: 2.6rem; font-weight: 800; line-height: 1.1; }
.ha-plan__currency { color: var(--ha-muted); font-size: 0.95rem; font-weight: 700; }
.ha-plan__period { color: var(--ha-muted); font-size: 0.82rem; }
.ha-plan__yearly-note { min-height: 1.4em; margin-bottom: 14px; color: var(--ha-muted); font-size: 0.78rem; }
.ha-plan .ha-btn { margin-block: 8px 18px; }
.ha-check-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.ha-check-list li { display: flex; align-items: flex-start; gap: 8px; color: var(--ha-muted); font-size: 0.9rem; line-height: 1.6; }
.ha-check-list .ha-icon { margin-top: 3px; color: var(--ha-primary); flex: 0 0 auto; }
.ha-pricing__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 28px;
	color: var(--ha-muted);
	font-size: 0.85rem;
}
.ha-pricing__note .ha-icon { color: var(--ha-primary); }

/* ---------- Testimonials / team ---------- */
.ha-quote { display: flex; flex-direction: column; margin: 0; }
.ha-quote__stars { color: var(--ha-accent); letter-spacing: 3px; margin-bottom: 12px; }
.ha-quote blockquote { margin: 0 0 20px; font-size: 1rem; line-height: 1.9; }
.ha-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.ha-quote figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.5; }
.ha-quote figcaption small { color: var(--ha-muted); font-size: 0.8rem; }
.ha-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: var(--ha-primary-soft);
	color: var(--ha-primary);
	font-weight: 800;
	flex: 0 0 auto;
}
.ha-avatar--lg { width: 72px; height: 72px; font-size: 1.5rem; margin-bottom: 14px; }
.ha-member { text-align: center; }
.ha-member h3 { margin-bottom: 0.2em; }
.ha-member p { margin: 0; color: var(--ha-muted); font-size: 0.9rem; }
.ha-avatar-img { border-radius: 50%; }

/* ---------- Accordion ---------- */
.ha-accordion { display: grid; gap: 10px; }
.ha-accordion__item {
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-sm);
	background: var(--ha-card);
	overflow: hidden;
}
.ha-accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 20px;
	cursor: pointer;
	font-weight: 700;
	list-style: none;
}
.ha-accordion__summary::-webkit-details-marker { display: none; }
.ha-accordion__summary .ha-icon { flex: 0 0 auto; color: var(--ha-primary); transition: transform 0.25s var(--ha-ease); }
.ha-accordion__item[open] .ha-accordion__summary .ha-icon { transform: rotate(180deg); }
.ha-accordion__content { padding: 0 20px 18px; color: var(--ha-muted); font-size: 0.95rem; }
.ha-accordion__content p { margin: 0; }
.ha-accordion--large .ha-accordion__summary { padding: 22px 24px; font-size: 1.02rem; }
.ha-accordion--large .ha-accordion__content { padding: 0 24px 22px; font-size: 1rem; }

/* ---------- Blog cards ---------- */
.ha-postcard { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ha-postcard:hover { transform: translateY(-4px); box-shadow: var(--ha-shadow); }
.ha-postcard__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ha-surface); }
.ha-postcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ha-ease); }
.ha-postcard:hover .ha-postcard__media img { transform: scale(1.04); }
.ha-postcard__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.ha-postcard__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; color: var(--ha-muted); font-size: 0.78rem; }
.ha-postcard__title { margin-bottom: 0.45em; font-size: 1.1rem; line-height: 1.5; }
.ha-postcard__title a { color: var(--ha-ink); }
.ha-postcard__title a:hover { color: var(--ha-primary); }
.ha-postcard__excerpt { color: var(--ha-muted); font-size: 0.9rem; }
.ha-postcard__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ha-border); font-size: 0.78rem; color: var(--ha-muted); }
.ha-link-arrow { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 0.82rem; }

/* ---------- CTA ---------- */
.ha-cta {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: clamp(32px, 5vw, 56px);
	border-radius: 26px;
	background: linear-gradient(120deg, #0a5f4e, #0e7c66 60%, #17a184);
	color: #fff;
}
.ha-cta__glow {
	position: absolute;
	inset-block-start: -40%;
	inset-inline-end: -10%;
	width: 380px;
	height: 380px;
	border-radius: 50%;
	background: rgba(244, 183, 64, 0.22);
	filter: blur(60px);
}
.ha-cta__content { position: relative; max-width: 620px; }
.ha-cta h2 { color: #fff; margin-bottom: 0.3em; }
.ha-cta p { margin: 0; color: rgba(255, 255, 255, 0.82); }
.ha-cta__actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.ha-footer {
	background: #0b1f1a;
	color: #c9d8d3;
	font-size: 0.92rem;
}
.ha-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 34px;
	padding-block: 56px 40px;
}
.ha-footer__brand p { max-width: 30em; margin-block: 14px 16px; color: #9db2ab; }
.ha-footer .ha-logo { color: #fff; }
.ha-footer .ha-logo__name { color: #fff; }
.ha-footer .ha-logo img { filter: brightness(0) invert(1); }
.ha-footer .ha-logo__mark { background: rgba(255, 255, 255, 0.12); }
.ha-footer__title { margin-bottom: 16px; color: #fff; font-size: 0.95rem; }
.ha-footer__links,
.ha-footer__contact { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ha-footer__links a { color: #c9d8d3; }
.ha-footer__links a:hover { color: #fff; }
.ha-footer__contact li { display: flex; align-items: flex-start; gap: 8px; color: #c9d8d3; }
.ha-footer__contact .ha-icon { margin-top: 4px; color: var(--ha-accent); flex: 0 0 auto; }
.ha-footer__contact a { color: #c9d8d3; }
.ha-footer__contact a:hover { color: #fff; }
.ha-socials { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ha-socials a {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: #dbe7e3;
	font-size: 0.78rem;
}
.ha-socials a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ha-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.ha-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-block: 18px;
	color: #9db2ab;
	font-size: 0.8rem;
}
.ha-footer__bottom p { margin: 0; }

/* ---------- Floating ---------- */
.ha-floating {
	position: fixed;
	inset-block-end: 22px;
	inset-inline-end: 20px;
	z-index: 80;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ha-float {
	position: relative;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ha-card);
	color: var(--ha-ink);
	border: 1px solid var(--ha-border);
	box-shadow: var(--ha-shadow);
	transition: transform 0.2s var(--ha-ease);
}
.ha-float:hover { transform: translateY(-2px) scale(1.04); color: #fff; }
.ha-float--whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.ha-float--telegram { background: #229ed9; border-color: #229ed9; color: #fff; }
.ha-float--support { background: var(--ha-primary); border-color: var(--ha-primary); color: #fff; }
.ha-float__tooltip {
	position: absolute;
	inset-inline-end: calc(100% + 10px);
	inset-block-start: 50%;
	transform: translateY(-50%) translateX(6px);
	padding: 4px 10px;
	border-radius: 8px;
	background: var(--ha-ink);
	color: var(--ha-bg);
	font-size: 0.72rem;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: all 0.2s var(--ha-ease);
}
.ha-float:hover .ha-float__tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

.ha-top {
	position: fixed;
	inset-block-end: 22px;
	inset-inline-start: 20px;
	z-index: 80;
	display: grid;
	place-items: center;
	width: 42px; height: 42px;
	border: 1px solid var(--ha-border);
	border-radius: 50%;
	background: var(--ha-card);
	color: var(--ha-ink);
	box-shadow: var(--ha-shadow);
}

/* ---------- Archive / blog ---------- */
.ha-archive { padding-block: 40px 70px; }
.ha-archive__head { max-width: 700px; margin-bottom: 34px; }
.ha-archive__head h1 { margin-bottom: 0.25em; }
.ha-archive__head p { color: var(--ha-muted); }
.ha-archive__desc { color: var(--ha-muted); }
.ha-archive__search { max-width: 520px; margin-top: 16px; }
.ha-archive__layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.ha-pagination { margin-top: 40px; }
.ha-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.ha-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--ha-border);
	border-radius: 10px;
	background: var(--ha-card);
	color: var(--ha-ink);
	font-size: 0.9rem;
	font-weight: 700;
}
.ha-pagination .page-numbers.current { background: var(--ha-primary); border-color: var(--ha-primary); color: #fff; }
.ha-pagination .page-numbers:hover { border-color: var(--ha-primary); color: var(--ha-primary); }
.ha-pagination .page-numbers.current:hover { color: #fff; }
.ha-pagination svg { transform: scaleX(-1); }
html[dir="rtl"] .ha-pagination svg { transform: none; }

/* ---------- Sidebar / widgets ---------- */
.ha-sidebar { display: grid; gap: 18px; position: sticky; top: calc(var(--ha-header-h) + 20px); }
.ha-widget {
	padding: 20px;
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-sm);
	background: var(--ha-card);
}
.ha-widget__title { font-size: 0.98rem; margin-bottom: 12px; }
.ha-widget ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ha-widget a { color: var(--ha-ink); font-size: 0.9rem; }
.ha-widget a:hover { color: var(--ha-primary); }
.ha-widget--search { padding: 0; border: 0; background: none; }

/* ---------- Single post ---------- */
.ha-single { padding-block: 30px 80px; }
.ha-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; margin-top: 16px; }
.ha-single__grid:not(:has(.ha-sidebar)) { grid-template-columns: minmax(0, 860px); justify-content: center; }
.ha-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	color: var(--ha-muted);
	font-size: 0.8rem;
}
.ha-breadcrumbs a { color: var(--ha-muted); }
.ha-breadcrumbs a:hover { color: var(--ha-primary); }
.ha-breadcrumbs span[aria-current] { color: var(--ha-ink); }

.ha-article__head { margin-bottom: 26px; }
.ha-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--ha-muted); font-size: 0.82rem; }
.ha-article__title { margin-bottom: 0.35em; }
.ha-article__lead { color: var(--ha-muted); font-size: 1.08rem; }
.ha-article__author { display: flex; align-items: center; gap: 9px; margin-top: 18px; color: var(--ha-muted); font-size: 0.86rem; }
.ha-article__author strong { color: var(--ha-ink); }
.ha-article__author .ha-avatar-img { width: 32px; height: 32px; }
.ha-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ha-muted); }
.ha-article__media { margin: 0 0 30px; border-radius: var(--ha-radius); overflow: hidden; }
.ha-article__media img { width: 100%; }
.ha-article__body { position: relative; }
.ha-article__foot { margin-top: 40px; }
.ha-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 26px; padding: 0; list-style: none; }
.ha-tags a {
	display: inline-block;
	padding: 3px 11px;
	border: 1px solid var(--ha-border);
	border-radius: 999px;
	color: var(--ha-muted);
	font-size: 0.78rem;
}
.ha-tags a:hover { border-color: var(--ha-primary); color: var(--ha-primary); }
.ha-edit-link { font-size: 0.8rem; color: var(--ha-muted); }

.ha-entry { font-size: 1.02rem; }
.ha-entry > * + * { margin-top: 0; }
.ha-entry h2,
.ha-entry h3 { scroll-margin-top: calc(var(--ha-header-h) + 24px); margin-top: 1.7em; }
.ha-entry h2 { font-size: 1.55rem; }
.ha-entry h3 { font-size: 1.25rem; }
.ha-entry p { margin-bottom: 1.15em; }
.ha-entry ul,
.ha-entry ol { margin-bottom: 1.2em; }
.ha-entry li { margin-bottom: 0.35em; }
.ha-entry a { text-decoration: underline; text-underline-offset: 3px; }
.ha-entry img { border-radius: var(--ha-radius-sm); }
.ha-entry blockquote {
	margin: 1.5em 0;
	padding: 16px 22px;
	border-inline-start: 4px solid var(--ha-primary);
	border-radius: 0 var(--ha-radius-sm) var(--ha-radius-sm) 0;
	background: var(--ha-primary-soft);
	color: var(--ha-ink);
}
html[dir="rtl"] .ha-entry blockquote { border-radius: var(--ha-radius-sm) 0 0 var(--ha-radius-sm); }
.ha-entry blockquote p:last-child { margin-bottom: 0; }
.ha-entry code {
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--ha-surface);
	border: 1px solid var(--ha-border);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.88em;
	direction: ltr;
	display: inline-block;
}
.ha-entry pre {
	position: relative;
	margin: 1.4em 0;
	padding: 18px;
	border-radius: var(--ha-radius-sm);
	background: #0d1f1a;
	color: #d9efe9;
	overflow-x: auto;
	direction: ltr;
	text-align: left;
	font-size: 0.86rem;
	line-height: 1.7;
}
.ha-entry pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.ha-copy-code {
	position: absolute;
	inset-block-start: 8px;
	inset-inline-end: 8px;
	padding: 3px 9px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 0.7rem;
}
.ha-copy-code:hover { background: rgba(255, 255, 255, 0.2); }
.ha-entry table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.9rem; }
.ha-entry th,
.ha-entry td { padding: 10px 12px; border: 1px solid var(--ha-border); text-align: start; }
.ha-entry th { background: var(--ha-surface); }
.ha-entry--center { text-align: center; max-width: 720px; margin-inline: auto; }

.ha-toc {
	margin-bottom: 28px;
	padding: 18px 20px;
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-sm);
	background: var(--ha-surface);
}
.ha-toc__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ha-ink);
	font-weight: 800;
	font-size: 0.92rem;
}
.ha-toc__toggle .ha-icon { transition: transform 0.2s; color: var(--ha-primary); }
.ha-toc.is-collapsed .ha-toc__toggle .ha-icon { transform: rotate(-90deg); }
.ha-toc.is-collapsed .ha-toc__list { display: none; }
.ha-toc__list {
	display: grid;
	gap: 5px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.88rem;
}
.ha-toc__item--h3 { padding-inline-start: 16px; font-size: 0.84rem; }
.ha-toc__list a { color: var(--ha-muted); }
.ha-toc__list a:hover,
.ha-toc__list a.is-active { color: var(--ha-primary); font-weight: 700; }

.ha-author-box {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 20px;
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-sm);
	background: var(--ha-surface);
}
.ha-author-box .ha-avatar-img { border-radius: 50%; flex: 0 0 auto; }
.ha-author-box p { margin: 4px 0 0; color: var(--ha-muted); font-size: 0.88rem; }
.ha-related { margin-top: 50px; }
.ha-related > h2 { font-size: 1.4rem; margin-bottom: 20px; }

.ha-locked {
	padding: 34px;
	border: 1px dashed color-mix(in srgb, var(--ha-primary) 45%, var(--ha-border));
	border-radius: var(--ha-radius);
	background: var(--ha-primary-soft);
	text-align: center;
}
.ha-locked__icon { display: inline-flex; color: var(--ha-primary); margin-bottom: 8px; }
.ha-locked h2 { font-size: 1.35rem; }
.ha-locked p { color: var(--ha-muted); }
.ha-locked__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Comments ---------- */
.ha-comments { margin-top: 44px; }
.ha-comments__title { font-size: 1.3rem; margin-bottom: 18px; }
.ha-comments__list { margin: 0 0 30px; padding: 0; list-style: none; }
.ha-comments__list .comment-body {
	padding: 18px;
	margin-bottom: 14px;
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-sm);
	background: var(--ha-card);
}
.ha-comments__list .children { margin: 0; padding-inline-start: 24px; list-style: none; }
.ha-comments__list .comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.82rem; }
.ha-comments__list .comment-author img { border-radius: 50%; margin-inline-end: 6px; }
.ha-comments__list .comment-metadata a { color: var(--ha-muted); }

/* ---------- Page / page hero ---------- */
.ha-page { padding-block: 30px 72px; }
.ha-page__head { max-width: 780px; margin-bottom: 28px; }
.ha-page__lead { color: var(--ha-muted); font-size: 1.08rem; }
.ha-page-hero {
	padding-block: clamp(42px, 6vw, 72px);
	background:
		radial-gradient(900px 360px at 80% 0%, color-mix(in srgb, var(--ha-primary) 12%, transparent), transparent 60%),
		var(--ha-surface);
	border-bottom: 1px solid var(--ha-border);
	text-align: center;
}
.ha-page-hero h1 { margin-bottom: 0.25em; }
.ha-page-hero__lead { max-width: 640px; margin-inline: auto; color: var(--ha-muted); font-size: 1.08rem; }
.ha-page-hero__search { max-width: 620px; margin: 22px auto 0; }
.ha-page-hero .ha-status {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 20px;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--ha-border);
	border-radius: 999px;
	background: var(--ha-card);
	color: var(--ha-muted);
	font-size: 0.82rem;
}
.ha-page-hero--agency { text-align: start; }
.ha-page-hero--agency h1 { max-width: 760px; }
.ha-page-hero--agency .ha-page-hero__lead { margin-inline: 0; }
.ha-page-hero--agency > .ha-container > p:last-child { margin-top: 24px; }

/* ---------- Tables ---------- */
.ha-table-wrap { overflow-x: auto; border: 1px solid var(--ha-border); border-radius: var(--ha-radius); background: var(--ha-card); }
.ha-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.92rem; }
.ha-table th,
.ha-table td { padding: 14px 18px; border-bottom: 1px solid var(--ha-border); text-align: center; }
.ha-table th:first-child,
.ha-table td:first-child { text-align: start; }
.ha-table thead th { background: var(--ha-surface); font-size: 0.85rem; letter-spacing: 0.02em; }
.ha-table thead th.is-popular { color: var(--ha-primary); }
.ha-table tbody tr:last-child th,
.ha-table tbody tr:last-child td { border-bottom: 0; }
.ha-table tbody th { font-weight: 600; color: var(--ha-ink); }
.ha-table .ha-icon { display: inline-block; color: var(--ha-primary); }
.ha-dash { color: var(--ha-muted); }

/* ---------- Forms ---------- */
.ha-form { display: grid; gap: 14px; }
.ha-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ha-field { display: grid; gap: 6px; }
.ha-field > span { font-size: 0.85rem; font-weight: 700; color: var(--ha-ink); }
.ha-field input,
.ha-field select,
.ha-field textarea {
	width: 100%;
	padding: 0.65rem 0.9rem;
	border: 1px solid var(--ha-border);
	border-radius: 10px;
	background: var(--ha-bg);
	color: var(--ha-ink);
	font-size: 0.92rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.ha-field textarea { resize: vertical; min-height: 110px; }
.ha-field input:focus,
.ha-field select:focus,
.ha-field textarea:focus {
	outline: none;
	border-color: var(--ha-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ha-primary) 18%, transparent);
}
.ha-check { display: flex; align-items: flex-start; gap: 8px; color: var(--ha-muted); font-size: 0.84rem; }
.ha-check input { margin-top: 5px; accent-color: var(--ha-primary); }
.ha-hp { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; overflow: hidden; }
.ha-form .ha-btn { justify-self: start; }
.ha-form-card { padding: 28px; }
.ha-form-card > h2 { font-size: 1.25rem; margin-bottom: 16px; }

.ha-alert { padding: 12px 16px; border-radius: 10px; font-size: 0.9rem; border: 1px solid transparent; }
.ha-alert--success { background: #e8f7ee; border-color: #b9e6c9; color: #166534; }
.ha-alert--error { background: #fdecec; border-color: #f5c2c2; color: #991b1b; }
.ha-alert--info { background: var(--ha-primary-soft); border-color: color-mix(in srgb, var(--ha-primary) 30%, transparent); color: var(--ha-primary-strong); }
[data-theme="dark"] .ha-alert--success { background: #0f2e1d; border-color: #1f5c38; color: #86efac; }
[data-theme="dark"] .ha-alert--error { background: #2f1313; border-color: #6b2626; color: #fca5a5; }

.ha-copyline { display: flex; gap: 8px; }
.ha-copyline input {
	flex: 1;
	min-width: 0;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--ha-border);
	border-radius: 10px;
	background: var(--ha-surface);
	color: var(--ha-muted);
	font-size: 0.82rem;
	direction: ltr;
}
.ha-copyline .ha-btn { padding: 0.55rem 0.9rem; font-size: 0.82rem; }

/* ---------- Support ---------- */
.ha-support-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.ha-support-card { display: block; color: var(--ha-ink); }
.ha-support-card:hover { transform: translateY(-4px); box-shadow: var(--ha-shadow); color: var(--ha-ink); }
.ha-support-card h3 { font-size: 1.02rem; margin-bottom: 0.3em; }
.ha-support-card p { margin: 0; color: var(--ha-muted); font-size: 0.88rem; }

/* ---------- Agency ---------- */
.ha-agency-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: start; }
.ha-agency-copy .ha-section__head { margin: 0 0 24px; text-align: start; max-width: none; }
.ha-agency-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.ha-metric {
	padding: 16px;
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-sm);
	background: var(--ha-card);
	text-align: center;
}
.ha-metric strong { display: block; font-size: 1.6rem; color: var(--ha-primary); }
.ha-metric span { color: var(--ha-muted); font-size: 0.78rem; }
.ha-agency-panel {
	margin-top: 18px;
	padding: 22px;
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius);
	background: var(--ha-card);
}
.ha-agency-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.ha-agency-panel__head h3 { margin-bottom: 0.2em; font-size: 1.05rem; }
.ha-agency-panel__head p { margin: 0; font-size: 0.84rem; }
.ha-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.ha-badge--pending { background: rgba(244, 183, 64, 0.2); color: #92620a; }
.ha-badge--approved { background: #e8f7ee; color: #166534; }
.ha-badge--rejected { background: #fdecec; color: #991b1b; }
[data-theme="dark"] .ha-badge--pending { color: #fcd34d; }
[data-theme="dark"] .ha-badge--approved { background: #0f2e1d; color: #86efac; }
[data-theme="dark"] .ha-badge--rejected { background: #2f1313; color: #fca5a5; }

.ha-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ha-stat { padding: 14px; border: 1px solid var(--ha-border); border-radius: 12px; background: var(--ha-surface); }
.ha-stat__value { display: block; font-size: 1.15rem; font-weight: 800; color: var(--ha-primary); }
.ha-stat__label { color: var(--ha-muted); font-size: 0.74rem; }
.ha-stats--compact { margin-bottom: 18px; }

/* ---------- Contact ---------- */
.ha-contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.ha-contact-info { display: grid; gap: 14px; }
.ha-contact-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--ha-border); border-radius: var(--ha-radius-sm); background: var(--ha-card); }
.ha-contact-item .ha-card__icon { width: 42px; height: 42px; margin: 0; }
.ha-contact-item__label { display: block; color: var(--ha-muted); font-size: 0.76rem; }
.ha-contact-item a,
.ha-contact-item strong { color: var(--ha-ink); font-size: 0.94rem; }
.ha-contact-cta { margin-top: 6px; padding: 24px; border-radius: var(--ha-radius); background: linear-gradient(135deg, #0a5f4e, #12957a); color: #fff; }
.ha-contact-cta h2 { color: #fff; font-size: 1.2rem; }
.ha-contact-cta p { color: rgba(255, 255, 255, 0.82); font-size: 0.9rem; }
.ha-contact-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Help box / empty / 404 ---------- */
.ha-helpbox {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 40px;
	padding: 28px;
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius);
	background: var(--ha-card);
}
.ha-helpbox h2 { font-size: 1.2rem; margin-bottom: 0.2em; }
.ha-helpbox p { margin: 0; color: var(--ha-muted); font-size: 0.9rem; }
.ha-helpbox__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.ha-empty { padding: 50px 20px; text-align: center; }
.ha-empty__icon { display: inline-flex; color: var(--ha-primary); margin-bottom: 8px; }
.ha-empty .ha-search { margin-top: 20px; }

.ha-404 { padding-block: clamp(50px, 8vw, 100px); background: var(--ha-surface); }
.ha-404__inner { max-width: 640px; margin-inline: auto; text-align: center; }
.ha-404__code {
	display: block;
	font-size: clamp(4.5rem, 12vw, 8rem);
	font-weight: 800;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 2px var(--ha-primary);
	opacity: 0.55;
}
.ha-404__inner p { color: var(--ha-muted); }
.ha-404__search { max-width: 520px; margin: 20px auto; }
.ha-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- WooCommerce ---------- */
.ha-woo { padding-block: 36px 72px; }
.woocommerce .woocommerce-breadcrumb { color: var(--ha-muted); font-size: 0.82rem; margin-bottom: 18px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 0; }
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 0 20px;
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius);
	background: var(--ha-card);
	overflow: hidden;
	text-align: start;
}
.woocommerce ul.products li.product img { margin: 0; border-radius: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 14px 18px 0; font-size: 1rem; font-weight: 700; }
.woocommerce ul.products li.product .price { padding: 0 18px; color: var(--ha-primary); font-weight: 800; }
.woocommerce ul.products li.product .button { margin: 10px 18px 0; }
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	padding: 0.65rem 1.2rem;
	border: 0;
	border-radius: 999px;
	background: var(--ha-primary);
	color: #fff;
	font-weight: 700;
	line-height: 1.5;
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--ha-primary-strong); color: #fff; }
.woocommerce .star-rating span::before { color: var(--ha-accent); }
.woocommerce div.product .product_title { font-size: 1.8rem; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--ha-primary); font-weight: 800; font-size: 1.5rem; }
.woocommerce div.product form.cart { margin-block: 18px; }
.woocommerce div.product form.cart .quantity .qty {
	width: 68px;
	padding: 0.5rem;
	border: 1px solid var(--ha-border);
	border-radius: 8px;
}
.ha-product-links { display: grid; gap: 8px; margin-top: 12px; }
.ha-trust { display: grid; gap: 7px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 0.84rem; color: var(--ha-muted); }
.ha-trust li { display: flex; align-items: center; gap: 7px; }
.ha-trust .ha-icon { color: var(--ha-primary); }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin-bottom: 20px; border-bottom: 1px solid var(--ha-border); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	border: 0;
	border-radius: 0;
	background: transparent;
	margin: 0;
	padding: 0 16px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 0; color: var(--ha-muted); font-weight: 700; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ha-primary); }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs .panel { padding-top: 6px; }
.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td { border-color: var(--ha-border); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	padding: 0.6rem 0.9rem;
	border: 1px solid var(--ha-border);
	border-radius: 10px;
	background: var(--ha-bg);
	color: var(--ha-ink);
}
.woocommerce-error,
.woocommerce-info,
.woocommerce-message { border-top-color: var(--ha-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.ha-nav__list a { padding: 0.45rem 0.6rem; font-size: 0.88rem; }
	.ha-header__cta { display: none; }
	.ha-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.ha-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.ha-single__grid,
	.ha-archive__layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; }
	.ha-support-grid,
	.ha-agency-grid,
	.ha-contact-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 1024px) {
	.ha-header__inner { gap: 12px; }
	.ha-nav {
		position: fixed;
		inset-block: 0;
		inset-inline-end: 0;
		z-index: 100;
		width: min(330px, 88vw);
		margin: 0;
		padding: 30px 22px;
		background: var(--ha-bg);
		border-inline-start: 1px solid var(--ha-border);
		box-shadow: var(--ha-shadow-lg);
		transform: translateX(110%);
		transition: transform 0.3s var(--ha-ease);
		overflow-y: auto;
	}
	html[dir="rtl"] .ha-nav { transform: translateX(-110%); }
	.ha-nav.is-open { transform: translateX(0); }
	html[dir="rtl"] .ha-nav.is-open { transform: translateX(0); }
	.ha-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
	.ha-nav__list a { padding: 0.75rem 0.8rem; font-size: 1rem; }
	.ha-nav__list .sub-menu {
		position: static;
		display: block;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding-inline-start: 14px;
		min-width: 0;
		background: transparent;
	}
	.ha-nav-toggle { display: inline-flex; }
	.ha-header__actions { margin-inline-start: auto; }
	.ha-hero__grid { grid-template-columns: 1fr; }
	.ha-hero__visual { max-width: 540px; margin-inline: auto; width: 100%; }
	.ha-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.ha-pricing { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
	.ha-plan--popular { transform: none; }
	.ha-counters__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
	.ha-compare { grid-template-columns: 1fr; }
	.ha-cta { flex-direction: column; align-items: flex-start; }
	.ha-single__grid,
	.ha-archive__layout.has-sidebar { grid-template-columns: 1fr; }
	.ha-sidebar { position: static; }
	.woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
	.ha-helpbox { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; }
	.ha-container { padding-inline: 16px; }
	.ha-header__inner { min-height: 66px; }
	.ha-header__actions .ha-icon-btn:not(.ha-nav-toggle):not(.ha-theme-toggle) { display: none; }
	.ha-nav-toggle { display: inline-flex; }
	.ha-grid--2,
	.ha-grid--3,
	.ha-grid--4 { grid-template-columns: 1fr; }
	.ha-hero { padding-block: 36px 56px; }
	.ha-hero__actions .ha-btn { flex: 1 1 100%; }
	.ha-hero__points { gap: 10px 16px; font-size: 0.84rem; }
	.ha-floatcard--rtl { inset-inline-start: 0; }
	.ha-floatcard--perf { inset-inline-end: 0; }
	.ha-browser__cards { grid-template-columns: 1fr; }
	.ha-section__head--row { flex-direction: column; align-items: flex-start; }
	.ha-form__row { grid-template-columns: 1fr; }
	.ha-footer__grid { grid-template-columns: 1fr; gap: 26px; padding-block: 40px 30px; }
	.ha-footer__bottom-inner { flex-direction: column; align-items: flex-start; text-align: start; }
	.ha-pricing { max-width: none; }
	.ha-plan { padding: 24px 20px; }
	.ha-floating { inset-block-end: 16px; inset-inline-end: 12px; }
	.ha-top { inset-block-end: 16px; inset-inline-start: 12px; }
	.ha-float { width: 44px; height: 44px; }
	.ha-float__tooltip { display: none; }
	.ha-counters__grid { gap: 22px; }
	.ha-counters { padding-block: 34px; }
	.ha-compare__col { padding: 20px; }
	.ha-form-card { padding: 20px; }
	.ha-agency-metrics { grid-template-columns: 1fr; }
	.ha-stats { grid-template-columns: 1fr; }
	.ha-article__title { font-size: 1.7rem; }
	.ha-cta { padding: 26px 22px; border-radius: 20px; }
	.woocommerce ul.products { grid-template-columns: 1fr; }
	.ha-404__actions .ha-btn { flex: 1; }
}

/* ---------- Accessibility / motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------- Editor utility ---------- */
.ha-icon { display: inline-block; vertical-align: middle; }

/* ==========================================================================
   Theme product page
   ========================================================================== */
.ha-product-page { overflow: clip; }

.ha-product-hero {
	position: relative;
	padding-block: clamp(32px, 5vw, 64px) clamp(44px, 6vw, 76px);
	background:
		radial-gradient(1000px 480px at 88% -10%, color-mix(in srgb, var(--ha-primary) 14%, transparent), transparent 62%),
		linear-gradient(180deg, var(--ha-bg), var(--ha-surface));
	border-bottom: 1px solid var(--ha-border);
}
.ha-product-hero__glow {
	position: absolute;
	inset-block-start: 12%;
	inset-inline-start: -200px;
	width: 460px;
	height: 460px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--ha-accent) 18%, transparent);
	filter: blur(90px);
	pointer-events: none;
}
.ha-product-hero .ha-breadcrumbs { position: relative; margin-bottom: 22px; }
.ha-product-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
	align-items: center;
	gap: clamp(30px, 5vw, 60px);
}
.ha-product-hero__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.ha-product-hero__meta .ha-eyebrow { margin-bottom: 0; }
.ha-badge--version {
	background: var(--ha-primary-soft);
	color: var(--ha-primary-strong);
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	white-space: nowrap;
}
.ha-product-hero__title { margin-bottom: 0.32em; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.24; }
.ha-product-hero__lead { max-width: 38em; color: var(--ha-muted); font-size: clamp(1rem, 1.3vw, 1.1rem); }

.ha-product-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
	margin-block: 18px 6px;
}
.ha-product-price__prefix { color: var(--ha-muted); font-size: 0.85rem; font-weight: 700; }
.ha-product-price__amount { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; line-height: 1; }
.ha-product-price__currency { color: var(--ha-muted); font-size: 1rem; font-weight: 700; }
.ha-product-price__note { color: var(--ha-muted); font-size: 0.82rem; }

.ha-product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 18px 12px; }
.ha-product-secondary-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-bottom: 18px;
	font-size: 0.88rem;
}
.ha-product-secondary-actions a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.ha-product-secondary-actions .ha-icon { color: var(--ha-primary); }

.ha-product-points { margin-bottom: 14px; }
.ha-product-license {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: var(--ha-muted);
	font-size: 0.82rem;
}
.ha-product-license .ha-icon { color: var(--ha-primary); flex: 0 0 auto; }

.ha-product-hero__visual { position: relative; }
.ha-product-shot {
	margin: 0;
	border: 1px solid var(--ha-border);
	border-radius: 20px;
	background: var(--ha-card);
	box-shadow: var(--ha-shadow-lg);
	overflow: hidden;
}
.ha-product-shot img { width: 100%; display: block; }
.ha-product-shot figcaption {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 11px 16px;
	border-top: 1px solid var(--ha-border);
	background: var(--ha-surface);
	color: var(--ha-muted);
	font-size: 0.8rem;
	font-weight: 600;
}
.ha-product-shot figcaption .ha-icon { color: var(--ha-primary); }

/* Browser mock (no screenshot configured). */
.ha-product-mock {
	border: 1px solid var(--ha-border);
	border-radius: 20px;
	background: var(--ha-card);
	box-shadow: var(--ha-shadow-lg);
	overflow: hidden;
}
.ha-product-mock__body { padding: 18px; }
.ha-product-mock__nav { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ha-product-mock__nav span:not(.ha-logo__mark) {
	height: 8px;
	width: 54px;
	border-radius: 999px;
	background: var(--ha-surface);
	border: 1px solid var(--ha-border);
}
.ha-product-mock__nav i { margin-inline-start: auto; height: 26px; width: 74px; border-radius: 999px; background: var(--ha-primary); opacity: 0.85; }
.ha-product-mock__hero { display: grid; grid-template-columns: 1fr 0.8fr; gap: 14px; margin-bottom: 16px; }
.ha-product-mock__hero b { display: block; height: 13px; width: 92%; margin-bottom: 8px; border-radius: 6px; background: var(--ha-ink); opacity: 0.16; }
.ha-product-mock__hero b.short { width: 74%; }
.ha-product-mock__hero b.shorter { width: 52%; }
.ha-product-mock__buttons { display: flex; gap: 8px; margin-top: 14px; }
.ha-product-mock__buttons em { display: block; height: 26px; width: 78px; border-radius: 999px; background: var(--ha-primary); opacity: 0.85; }
.ha-product-mock__buttons em.ghost { background: transparent; border: 1px solid var(--ha-border); }
.ha-product-mock__card {
	display: grid;
	gap: 8px;
	padding: 14px;
	border-radius: 12px;
	background: var(--ha-surface);
	border: 1px solid var(--ha-border);
}
.ha-product-mock__card span { display: block; height: 34px; border-radius: 8px; background: var(--ha-card); border: 1px solid var(--ha-border); }
.ha-product-mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ha-product-mock__row div { height: 58px; border-radius: 12px; background: var(--ha-surface); border: 1px solid var(--ha-border); }

/* Trust bar */
.ha-product-trust { background: var(--ha-card); border-bottom: 1px solid var(--ha-border); }
.ha-product-trust__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
	padding-block: 22px;
	text-align: center;
}
.ha-product-trust__grid div { display: flex; flex-direction: column; gap: 2px; }
.ha-product-trust__grid strong { color: var(--ha-primary); font-size: 1.35rem; font-weight: 800; line-height: 1.2; direction: ltr; }
.ha-product-trust__grid span { color: var(--ha-muted); font-size: 0.78rem; }

/* Extra feature list */
.ha-product-extra {
	margin-top: 28px;
	padding: 26px;
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius);
	background: var(--ha-surface);
}
.ha-product-extra h3 { margin-bottom: 16px; font-size: 1.1rem; }
.ha-product-extra__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ha-product-extra__list li { display: flex; align-items: flex-start; gap: 8px; color: var(--ha-muted); font-size: 0.92rem; }
.ha-product-extra__list .ha-icon { margin-top: 4px; color: var(--ha-primary); flex: 0 0 auto; }

/* Gallery */
.ha-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ha-gallery__item {
	position: relative;
	display: block;
	border-radius: var(--ha-radius);
	overflow: hidden;
	border: 1px solid var(--ha-border);
	background: var(--ha-card);
	box-shadow: var(--ha-shadow);
}
.ha-gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s var(--ha-ease); }
.ha-gallery__item:hover img { transform: scale(1.03); }
.ha-gallery__item > span {
	position: absolute;
	inset-block-end: 12px;
	inset-inline-end: 12px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ha-card);
	color: var(--ha-primary);
	box-shadow: var(--ha-shadow);
}
.ha-gallery__placeholder {
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius);
	background: var(--ha-card);
	overflow: hidden;
	box-shadow: var(--ha-shadow);
}
.ha-gallery__chrome {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--ha-border);
	background: var(--ha-surface);
}
.ha-gallery__chrome span { width: 8px; height: 8px; border-radius: 50%; background: var(--ha-border); }
.ha-gallery__chrome span:first-child { background: #f87171; }
.ha-gallery__chrome span:nth-child(2) { background: #fbbf24; }
.ha-gallery__chrome span:nth-child(3) { background: #34d399; }
.ha-gallery__chrome i { margin-inline-start: auto; width: 46%; height: 8px; border-radius: 999px; background: var(--ha-card); border: 1px solid var(--ha-border); }
.ha-gallery__canvas { padding: 18px; }
.ha-gallery__canvas > b { display: block; height: 11px; border-radius: 6px; background: var(--ha-ink); opacity: 0.15; margin-bottom: 7px; }
.ha-gallery__canvas > b:nth-child(1) { width: 66%; height: 15px; opacity: 0.22; }
.ha-gallery__canvas > b:nth-child(2) { width: 88%; }
.ha-gallery__canvas > b:nth-child(3) { width: 46%; }
.ha-gallery__blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ha-gallery__blocks span { display: block; height: 52px; border-radius: 10px; background: var(--ha-surface); border: 1px solid var(--ha-border); }
.ha-gallery__caption { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-top: 1px solid var(--ha-border); }
.ha-gallery__caption strong { font-size: 0.9rem; }
.ha-gallery__caption span { color: var(--ha-muted); font-size: 0.78rem; }

/* Included package */
.ha-included {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: clamp(26px, 4vw, 48px);
	align-items: start;
}
.ha-included__copy h2 { margin-bottom: 0.3em; }
.ha-included__copy > p { color: var(--ha-muted); }
.ha-included__copy .ha-check-list { margin-block: 18px 22px; }
.ha-included__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ha-included__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ha-license {
	padding: 20px;
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius);
	background: var(--ha-card);
}
.ha-license .ha-card__icon { width: 42px; height: 42px; margin-bottom: 12px; }
.ha-license h3 { margin-bottom: 0.3em; font-size: 1rem; }
.ha-license p { margin: 0; color: var(--ha-muted); font-size: 0.86rem; }

/* Community teaser */
.ha-community-teaser {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: clamp(26px, 4vw, 44px);
	border: 1px solid var(--ha-border);
	border-radius: 24px;
	background:
		radial-gradient(600px 260px at 90% 0%, color-mix(in srgb, var(--ha-primary) 12%, transparent), transparent 65%),
		var(--ha-card);
	box-shadow: var(--ha-shadow);
}
.ha-community-teaser h2 { margin-bottom: 0.25em; }
.ha-community-teaser p { max-width: 40em; color: var(--ha-muted); }
.ha-community-teaser .ha-product-points { margin-bottom: 0; }
.ha-community-teaser .ha-btn { flex: 0 0 auto; }

/* Sticky purchase bar */
.ha-sticky-buy {
	position: fixed;
	inset-block-end: 0;
	inset-inline: 0;
	z-index: 85;
	background: color-mix(in srgb, var(--ha-bg) 92%, transparent);
	backdrop-filter: blur(14px);
	border-top: 1px solid var(--ha-border);
	box-shadow: 0 -8px 30px rgba(16, 35, 31, 0.08);
	transform: translateY(110%);
	transition: transform 0.3s var(--ha-ease);
}
.ha-sticky-buy.is-visible { transform: translateY(0); }
.ha-sticky-buy__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 10px; }
.ha-sticky-buy__info { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.ha-sticky-buy__info strong { font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ha-sticky-buy__info span { color: var(--ha-muted); font-size: 0.8rem; }
.ha-sticky-buy__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ha-sticky-buy__actions .ha-btn { padding: 0.55rem 1.05rem; font-size: 0.88rem; }
.ha-sticky-buy__wa { padding-inline: 0.8rem; }

/* ==========================================================================
   Community page
   ========================================================================== */
.ha-community-hero .ha-page-hero__lead { margin-bottom: 0; }
.ha-community-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

.ha-community-stats { background: linear-gradient(135deg, #0a5f4e, #0e7c66 55%, #12957a); color: #fff; }
.ha-community-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 26px; text-align: center; }
.ha-community-stat strong { display: block; color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; line-height: 1.2; direction: ltr; }
.ha-community-stat span { color: rgba(255, 255, 255, 0.82); font-size: 0.82rem; }

.ha-community-welcome-wrap { padding-block: 26px 0; }
.ha-community-welcome {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	border: 1px solid color-mix(in srgb, var(--ha-primary) 32%, var(--ha-border));
	border-radius: var(--ha-radius);
	background: var(--ha-primary-soft);
}
.ha-community-welcome__avatar {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ha-primary);
	color: #fff;
	font-weight: 800;
	flex: 0 0 auto;
}
.ha-community-welcome h2 { margin-bottom: 0.15em; font-size: 1.1rem; }
.ha-community-welcome p { margin: 0; color: var(--ha-muted); font-size: 0.9rem; }
.ha-community-welcome .ha-btn { margin-inline-start: auto; flex: 0 0 auto; }

.ha-community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ha-community-card {
	padding: 26px;
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius);
	background: var(--ha-card);
}
.ha-community-card h2 { margin-bottom: 0.5em; font-size: 1.2rem; }
.ha-community-rules { display: grid; gap: 10px; margin: 0 0 4px; padding: 0; list-style: none; }
.ha-community-rules li { display: flex; align-items: flex-start; gap: 8px; color: var(--ha-muted); font-size: 0.92rem; }
.ha-community-rules .ha-icon { margin-top: 4px; color: var(--ha-primary); flex: 0 0 auto; }
.ha-community-steps { display: grid; gap: 14px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: ha-step; }
.ha-community-steps li { position: relative; padding-inline-start: 40px; counter-increment: ha-step; }
.ha-community-steps li::before {
	content: counter(ha-step);
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ha-primary-soft);
	color: var(--ha-primary);
	font-size: 0.8rem;
	font-weight: 800;
}
.ha-community-steps strong { display: block; font-size: 0.95rem; }
.ha-community-steps span { color: var(--ha-muted); font-size: 0.86rem; }

.ha-community-empty { padding: 40px 20px; text-align: center; border: 1px dashed var(--ha-border); border-radius: var(--ha-radius); }
.ha-community-empty h2 { font-size: 1.25rem; }
.ha-community-empty p { color: var(--ha-muted); }
.ha-community-moderation { margin-top: 26px; font-size: 0.84rem; }

@media (max-width: 1024px) {
	.ha-product-hero__grid { grid-template-columns: 1fr; }
	.ha-product-hero__visual { max-width: 620px; width: 100%; margin-inline: auto; }
	.ha-product-trust__grid { grid-template-columns: repeat(3, 1fr); }
	.ha-included { grid-template-columns: 1fr; }
	.ha-community-teaser { flex-direction: column; align-items: flex-start; }
	.ha-community-welcome { flex-wrap: wrap; }
	.ha-community-welcome .ha-btn { margin-inline-start: 0; }
}

@media (max-width: 900px) {
	.ha-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ha-community-grid { grid-template-columns: 1fr; }
	.ha-community-stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.ha-product-actions .ha-btn { flex: 1 1 100%; }
	.ha-product-trust__grid { grid-template-columns: repeat(2, 1fr); }
	.ha-product-extra__list { grid-template-columns: 1fr; }
	.ha-gallery { grid-template-columns: 1fr; }
	.ha-included__cards { grid-template-columns: 1fr; }
	.ha-sticky-buy__info { display: none; }
	.ha-sticky-buy__inner { justify-content: center; }
	.ha-sticky-buy__actions { width: 100%; }
	.ha-sticky-buy__actions .ha-btn--primary { flex: 1; }
	.ha-product-mock__hero { grid-template-columns: 1fr; }
	.ha-community-hero__actions .ha-btn { flex: 1 1 100%; }
}

@media (max-width: 1024px) {
	body { padding-bottom: 0; }
}

/* ==========================================================================
   Flexible pricing (1 plan today, more later)
   ========================================================================== */
.ha-pricing--single {
	max-width: 520px;
	margin-inline: auto;
}
.ha-pricing--single .ha-plan {
	text-align: center;
}
.ha-pricing--single .ha-check-list {
	text-align: start;
}

/* ==========================================================================
   Account dashboard
   ========================================================================== */
.ha-account-panel { display: grid; gap: 22px; }
.ha-account-head {
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
	padding: 24px; border-radius: var(--ha-radius);
	border: 1px solid color-mix(in srgb, var(--ha-primary) 28%, var(--ha-border));
	background: radial-gradient(500px 200px at 90% 0%, color-mix(in srgb, var(--ha-primary) 12%, transparent), transparent 65%), var(--ha-card);
}
.ha-account-avatar {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
	background: var(--ha-primary); color: #fff; font-size: 1.4rem; font-weight: 800; flex: 0 0 auto;
}
.ha-account-head h2 { margin-bottom: 0.1em; font-size: 1.35rem; }
.ha-account-head p { margin: 0; }
.ha-account-badges { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.ha-account-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ha-account-actions .ha-btn { justify-content: flex-start; }
.ha-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ha-account-block { padding: 22px; border: 1px solid var(--ha-border); border-radius: var(--ha-radius); background: var(--ha-card); }
.ha-account-block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ha-account-block__head h3 { margin: 0; font-size: 1.1rem; }
.ha-account-block__head a { font-size: 0.85rem; font-weight: 700; }
.ha-account-orders, .ha-account-tickets { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ha-account-orders li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-block: 8px; border-bottom: 1px solid var(--ha-border); font-size: 0.9rem; }
.ha-account-orders li strong { margin-inline-start: auto; }
.ha-account-tickets li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.92rem; }
.ha-account-downloads td { color: var(--ha-muted); font-size: 0.82rem; }
.ha-account-downloads a { display: inline-flex; align-items: center; gap: 4px; margin-inline-end: 12px; }
.ha-account-agency .ha-agency-panel { padding: 0; border: 0; box-shadow: none; background: transparent; }

/* Ticket status badges */
.ha-badge--open { background: #ecfdf5; color: #047857; }
.ha-badge--in_progress { background: #fff7ed; color: #c2410c; }
.ha-badge--closed { background: var(--ha-surface); color: var(--ha-muted); }
.ha-badge--pending { background: #fffbeb; color: #b45309; }
.ha-badge--approved { background: #ecfdf5; color: #047857; }
.ha-badge--rejected { background: #fef2f2; color: #b91c1c; }

/* ==========================================================================
   Support tickets area
   ========================================================================== */
.ha-tickets-list { display: grid; gap: 12px; }
.ha-ticket { border: 1px solid var(--ha-border); border-radius: var(--ha-radius-sm); background: var(--ha-card); overflow: hidden; }
.ha-ticket__summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.ha-ticket__summary::-webkit-details-marker { display: none; }
.ha-ticket__subject { font-weight: 700; flex: 1 1 auto; }
.ha-ticket__date { color: var(--ha-muted); font-size: 0.8rem; }
.ha-ticket__chevron { display: inline-flex; transition: transform 0.2s var(--ha-ease); }
.ha-ticket[open] .ha-ticket__chevron { transform: rotate(180deg); }
.ha-ticket__body { padding: 0 18px 18px; border-top: 1px solid var(--ha-border); }
.ha-ticket__meta { color: var(--ha-muted); font-size: 0.8rem; margin-block: 12px 6px; }
.ha-ticket__message { line-height: 1.9; }
.ha-ticket__replies { margin-top: 16px; }
.ha-ticket__reply { padding: 12px 14px; margin-top: 10px; border-inline-start: 3px solid var(--ha-primary); background: var(--ha-surface); border-radius: 0 10px 10px 0; }
.ha-ticket__reply p { margin: 4px 0 0; }
.ha-ticket__reply small, .ha-ticket-admin-reply small { color: var(--ha-muted); }
.ha-tickets-empty { padding: 40px 20px; text-align: center; border: 1px dashed var(--ha-border); border-radius: var(--ha-radius); }
.ha-tickets-empty p { color: var(--ha-muted); }

/* ==========================================================================
   Agency program extras
   ========================================================================== */
.ha-step-card { text-align: center; }
.ha-step-card__num {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--ha-primary-soft); color: var(--ha-primary); font-weight: 800;
	margin: 0 auto 12px;
}
.ha-agency-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 18px; }
.ha-agency-help, .ha-agency-orders { margin-top: 22px; }
.ha-agency-help h4, .ha-agency-orders h4 { margin-bottom: 12px; font-size: 1rem; }

@media (max-width: 900px) {
	.ha-account-grid, .ha-agency-tools { grid-template-columns: 1fr; }
	.ha-account-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.ha-account-actions { grid-template-columns: 1fr; }
	.ha-account-head { padding: 18px; }
	.ha-account-badges { margin-inline-start: 0; }
}

/* ==========================================================================
   Premium product hero (Hyvä Magento 2 sales page)
   ========================================================================== */
.ha-product-hero--premium {
	position: relative;
	overflow: hidden;
	color: #fff;
	border-bottom: 1px solid rgba(255,255,255,.1);
	background:
		radial-gradient(720px 420px at 88% 6%, rgba(244, 183, 64, .22), transparent 62%),
		radial-gradient(620px 460px at 8% 92%, rgba(41, 196, 164, .22), transparent 60%),
		linear-gradient(125deg, #052a24 0%, #0a5143 52%, #0e7c66 100%);
}
.ha-product-hero__aurora {
	position: absolute;
	inset-block-start: -180px;
	inset-inline-start: 30%;
	width: 680px;
	height: 680px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(244,183,64,.28), transparent 66%);
	filter: blur(30px);
	pointer-events: none;
}
.ha-product-hero__grid-lines {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: .16;
	background-image:
		linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
	background-size: 54px 54px;
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
	mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.ha-product-hero--premium .ha-container { position: relative; z-index: 1; }
.ha-product-hero--premium .ha-breadcrumbs { color: rgba(255,255,255,.65); }
.ha-product-hero--premium .ha-breadcrumbs a { color: rgba(255,255,255,.8); }
.ha-product-hero--premium .ha-breadcrumbs span[aria-current] { color: #f4b740; }

.ha-hero-pill {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 6px 14px; border-radius: 999px;
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.22);
	backdrop-filter: blur(8px);
	font-size: .8rem; font-weight: 800; letter-spacing: .01em; color: #fff;
}
.ha-hero-pill .ha-icon { color: #f4b740; }
.ha-product-hero--premium .ha-badge--version {
	background: rgba(244,183,64,.16); color: #ffd98a;
	border: 1px solid rgba(244,183,64,.35);
}
.ha-product-hero--premium .ha-product-hero__title {
	color: #fff;
	font-size: clamp(2.3rem, 4.6vw, 3.7rem);
	line-height: 1.18;
	letter-spacing: -.02em;
	text-shadow: 0 6px 30px rgba(0,0,0,.18);
}
.ha-product-hero--premium .ha-product-hero__lead { color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.35vw, 1.14rem); max-width: 40em; }

.ha-product-hero__rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-block: 16px 10px; font-size: .84rem; color: rgba(255,255,255,.72); }
.ha-product-hero__rating strong { color: #fff; font-size: .9rem; }
.ha-stars { display: inline-flex; gap: 2px; color: #f4b740; }
.ha-stars .ha-icon { fill: currentColor; stroke: none; }

.ha-tech-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; padding: 0; list-style: none; }
.ha-tech-chips li {
	padding: 4px 10px; border-radius: 6px; font-size: .72rem; font-weight: 700;
	direction: ltr; color: rgba(255,255,255,.82);
	background: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.14);
}

.ha-product-hero--premium .ha-product-price { margin-block: 10px 4px; }
.ha-product-hero--premium .ha-product-price__prefix,
.ha-product-hero--premium .ha-product-price__currency { color: rgba(255,255,255,.7); }
.ha-product-hero--premium .ha-product-price__amount { color: #fff; text-shadow: 0 8px 30px rgba(0,0,0,.2); }
.ha-product-hero--premium .ha-product-price__note { color: #ffd98a; font-weight: 700; }

.ha-product-hero--premium .ha-btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.ha-product-hero--premium .ha-btn--ghost:hover { background: rgba(255,255,255,.16); color: #fff; border-color: #fff; }
.ha-btn--shine {
	background: linear-gradient(120deg, #f4b740, #ffd67e 55%, #f4b740);
	color: #3a2a05;
	box-shadow: 0 14px 34px rgba(244,183,64,.32);
}
.ha-btn--shine .ha-icon { color: #3a2a05; }
.ha-btn--shine:hover { box-shadow: 0 18px 42px rgba(244,183,64,.45); }
.ha-product-hero--premium .ha-product-secondary-actions a { color: rgba(255,255,255,.84); }
.ha-product-hero--premium .ha-product-secondary-actions a:hover { color: #ffd98a; }
.ha-product-hero--premium .ha-product-points li { color: rgba(255,255,255,.86); }
.ha-product-hero--premium .ha-product-points .ha-icon { color: #5de0bd; }
.ha-product-hero--premium .ha-product-license { color: rgba(255,255,255,.62); }
.ha-product-hero--premium .ha-product-license .ha-icon { color: #ffd98a; }

.ha-showcase { position: relative; padding: 26px 0; }
.ha-showcase__window {
	transform: perspective(1400px) rotateY(-7deg) rotateX(2deg) translateZ(0);
	box-shadow: 0 42px 80px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.14);
}
.ha-product-hero--premium .ha-product-shot { background: #fff; border-color: rgba(255,255,255,.2); }
.ha-showcase__chip {
	position: absolute;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 13px; border-radius: 10px;
	background: rgba(8, 37, 31, .86); color: #fff;
	border: 1px solid rgba(255,255,255,.18);
	backdrop-filter: blur(10px);
	font-size: .78rem; font-weight: 800; direction: ltr;
	box-shadow: 0 14px 30px rgba(0,0,0,.28);
}
.ha-showcase__chip .ha-icon { color: #f4b740; }
.ha-showcase__chip--top { inset-block-start: 2px; inset-inline-end: 4%; }
.ha-showcase__chip--bottom { inset-block-end: 4px; inset-inline-start: 2%; }
.ha-product-hero--premium .ha-floatcard--perf {
	inset-block-end: 12%; inset-inline-start: -10px;
	background: #fff; color: #0a5f4e; direction: rtl;
	box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

@media (max-width: 1024px) {
	.ha-showcase { padding-block: 12px; }
	.ha-showcase__window { transform: none; }
	.ha-showcase__chip--top { inset-inline-end: 8%; }
	.ha-product-hero--premium .ha-floatcard--perf { display: none; }
}
@media (max-width: 640px) {
	.ha-product-hero--premium .ha-product-hero__title { font-size: clamp(2rem, 9vw, 2.6rem); }
	.ha-tech-chips li { font-size: .68rem; }
	.ha-product-hero--premium .ha-btn--shine { width: 100%; }
}

/* ==========================================================================
   Ticket system extras
   ========================================================================== */
.ha-ticket__attachments { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block: 12px; }
.ha-ticket__attachments strong { font-size: .85rem; }
.ha-ticket__attachments a, .ha-ticket__article a { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 700; }
.ha-ticket__article { margin-block: 10px; font-size: .85rem; }
.ha-ticket__reply-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ha-border); }
.ha-ticket__reply-form .ha-field textarea { min-height: 80px; }
.ha-form input[type="file"] { padding: 8px; border: 1px dashed var(--ha-border); border-radius: 10px; width: 100%; background: var(--ha-surface); }

.ha-product-requirements { margin-block: 16px; color: var(--ha-muted); font-size: .85rem; }
.ha-product-requirements strong { color: var(--ha-ink); }

/* ==========================================================================
   Theme documentation page
   ========================================================================== */
.ha-docs-hero .ha-docs-search { max-width: 520px; margin-top: 20px; }
.ha-docs-updated { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; color: rgba(255,255,255,.75); font-size: .82rem; }
.ha-docs-updated .ha-icon { color: #ffd98a; }
.ha-docs-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.ha-docs-layout--toc { grid-template-columns: 280px minmax(0, 1fr); }
.ha-docs-toc {
	position: sticky; inset-block-start: calc(var(--ha-header-h) + 20px);
	max-height: calc(100vh - var(--ha-header-h) - 60px); overflow-y: auto;
	padding: 20px; border: 1px solid var(--ha-border); border-radius: var(--ha-radius);
	background: var(--ha-card); box-shadow: var(--ha-shadow);
}
.ha-docs-toc h2 { margin: 0 0 14px; font-size: 1rem; font-family: var(--ha-font-heading); }
.ha-docs-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ha-docs-toc a { display: block; padding: 6px 8px; border-radius: 8px; font-size: .82rem; color: var(--ha-muted); text-decoration: none; }
.ha-docs-toc a:hover { background: var(--ha-primary-soft); color: var(--ha-primary-strong); }
.ha-docs-toc__sub a { padding-inline-start: 22px; font-size: .78rem; }
.ha-docs-content {
	min-width: 0; padding: clamp(20px, 3vw, 36px);
	border: 1px solid var(--ha-border); border-radius: var(--ha-radius);
	background: var(--ha-card); box-shadow: var(--ha-shadow);
}
.ha-docs-content h1, .ha-docs-content h2, .ha-docs-content h3 { scroll-margin-block-start: calc(var(--ha-header-h) + 20px); }
.ha-docs-content h2 { margin-top: 1.8em; padding-bottom: .35em; border-bottom: 1px solid var(--ha-border); }
.ha-docs-content h3 { margin-top: 1.5em; color: var(--ha-primary-strong); }
.ha-docs-content a { text-decoration: underline; text-underline-offset: 3px; }
.ha-docs-content table { width: 100%; border-collapse: collapse; margin-block: 18px; font-size: .88rem; display: block; overflow-x: auto; }
.ha-docs-content th, .ha-docs-content td { border: 1px solid var(--ha-border); padding: 10px 12px; text-align: start; }
.ha-docs-content th { background: var(--ha-primary-soft); color: var(--ha-primary-strong); }
.ha-docs-content pre { padding: 16px; border-radius: 12px; background: #0b1f1a; color: #d7f5ea; overflow-x: auto; direction: ltr; text-align: left; }
.ha-docs-content code { direction: ltr; unicode-bidi: embed; }
.ha-docs-content details { margin-block: 12px; padding: 12px 16px; border: 1px solid var(--ha-border); border-radius: 10px; background: var(--ha-surface); }
.ha-docs-content summary { cursor: pointer; font-weight: 700; }
.ha-docs-content img { max-width: 100%; height: auto; border-radius: 10px; }
.ha-docs-footer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

@media (max-width: 1024px) {
	.ha-docs-layout--toc { grid-template-columns: 1fr; }
	.ha-docs-toc { position: static; max-height: none; }
}

.ha-agency-payout, .ha-agency-kit {
	margin-top: 18px; padding: 16px 18px;
	border: 1px solid var(--ha-border); border-radius: var(--ha-radius-sm);
	background: var(--ha-surface);
}
.ha-agency-payout strong, .ha-agency-kit h4 { display: block; margin: 0 0 8px; font-size: .95rem; }
.ha-agency-payout p { margin: 4px 0; color: var(--ha-muted); font-size: .86rem; }
.ha-agency-kit textarea { width: 100%; font-size: .84rem; }

/* AJAX cart toast — colors come from theme options */
.ha-cart-toast {
	position: fixed; inset-block-start: 18px; inset-inline-end: 18px; z-index: 2000;
	display: flex; align-items: center; gap: 12px;
	max-width: min(380px, calc(100vw - 32px)); padding: 14px 16px;
	background: var(--ha-card); color: var(--ha-ink);
	border: 1px solid var(--ha-primary); border-inline-start: 4px solid var(--ha-primary);
	font-family: var(--ha-font-body); font-size: .9rem;
	transform: translateY(-140%); opacity: 0; pointer-events: none;
	transition: transform .3s var(--ha-ease), opacity .3s;
}
.ha-cart-toast.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.ha-cart-toast.is-error { border-color: #b91c1c; border-inline-start-color: #b91c1c; }
.ha-cart-toast__icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; background: var(--ha-primary-soft); color: var(--ha-primary); font-weight: 800; }
.ha-cart-toast__icon::before { content: '✓'; }
.ha-cart-toast.is-error .ha-cart-toast__icon { background: #fef2f2; color: #b91c1c; }
.ha-cart-toast.is-error .ha-cart-toast__icon::before { content: '!'; }
.ha-cart-toast__body { flex: 1; }
.ha-cart-toast__link { color: var(--ha-primary); font-weight: 800; text-decoration: underline; white-space: nowrap; }
.ha-cart-toast__close { border: 0; background: transparent; color: var(--ha-muted); font-size: 1.2rem; cursor: pointer; padding: 0 4px; }

