/**
 * Help Center — premium public trust page.
 * Depends on dzd-ui-tokens.css + dzd-ui-components.css + dzd-layout.css.
 */

.dzd-help-page {
	background: var(--dzd-color-page, #eef0f5);
	min-height: 60vh;
	padding-bottom: 72px;
}

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

.dzd-help__hero {
	position: relative;
	padding: 72px 0 56px;
	background:
		radial-gradient(1200px 420px at 50% -10%, rgba(94, 67, 214, 0.18), transparent 60%),
		linear-gradient(180deg, #f7f6ff 0%, var(--dzd-color-page, #eef0f5) 100%);
	overflow: hidden;
}

.dzd-help__hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(94, 67, 214, 0.22), transparent);
}

.dzd-help__hero-inner {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.dzd-help__eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--dzd-color-accent, #5e43d6);
}

.dzd-help__title {
	margin: 0 0 14px;
	font-size: clamp(2.4rem, 5vw, 3.4rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.08;
	color: var(--dzd-color-text, #111322);
}

.dzd-help__subtitle {
	margin: 0 auto 28px;
	max-width: 540px;
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--dzd-color-text-muted, #5b5f73);
}

.dzd-help__search {
	position: relative;
	display: block;
	max-width: 640px;
	margin: 0 auto;
}

.dzd-help__search-icon {
	position: absolute;
	inset-inline-start: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	color: var(--dzd-color-accent, #5e43d6);
	pointer-events: none;
}

.dzd-help__search-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.dzd-help__search-input {
	width: 100%;
	height: 60px;
	padding: 0 22px 0 52px;
	border: 1px solid var(--dzd-color-border-strong, #c5c8d4);
	border-radius: 18px;
	background: #fff;
	color: var(--dzd-color-text, #111322);
	font-size: 1rem;
	font-weight: 550;
	box-shadow:
		0 1px 2px rgba(17, 19, 34, 0.04),
		0 12px 32px rgba(17, 19, 34, 0.08);
	transition:
		border-color var(--dzd-ease, 200ms cubic-bezier(0.22, 1, 0.36, 1)),
		box-shadow var(--dzd-ease, 200ms cubic-bezier(0.22, 1, 0.36, 1)),
		transform var(--dzd-ease, 200ms cubic-bezier(0.22, 1, 0.36, 1));
}

.dzd-help__search-input::placeholder {
	color: var(--dzd-color-text-subtle, #8b90a5);
	font-weight: 500;
}

.dzd-help__search-input:focus {
	outline: none;
	border-color: var(--dzd-color-accent, #5e43d6);
	box-shadow:
		0 0 0 4px rgba(94, 67, 214, 0.16),
		0 14px 36px rgba(17, 19, 34, 0.1);
	transform: translateY(-1px);
}

.dzd-help__search-status {
	margin: 12px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--dzd-color-text-muted, #5b5f73);
}

.dzd-help__body {
	display: grid;
	gap: 56px;
	padding-top: 40px;
}

.dzd-help__section-head {
	margin-bottom: 22px;
	max-width: 560px;
}

.dzd-help__section-title {
	margin: 0 0 8px;
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--dzd-color-text, #111322);
}

.dzd-help__section-copy {
	margin: 0;
	color: var(--dzd-color-text-muted, #5b5f73);
	line-height: 1.5;
}

.dzd-help__category-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.dzd-help__category-card {
	display: grid;
	gap: 14px;
	padding: 22px;
	border-radius: var(--dzd-radius-lg, 20px);
	background: var(--dzd-color-surface, #fff);
	border: 1px solid var(--dzd-color-border, #d8dae3);
	box-shadow: var(--dzd-shadow-card, 0 4px 10px rgba(17, 19, 34, 0.05), 0 14px 36px rgba(17, 19, 34, 0.1));
	transition:
		transform var(--dzd-ease, 200ms cubic-bezier(0.22, 1, 0.36, 1)),
		box-shadow var(--dzd-ease, 200ms cubic-bezier(0.22, 1, 0.36, 1)),
		border-color var(--dzd-ease, 200ms cubic-bezier(0.22, 1, 0.36, 1));
}

.dzd-help__category-card:hover {
	transform: translateY(-2px);
	border-color: rgba(94, 67, 214, 0.28);
	box-shadow: var(--dzd-shadow-elevated, 0 10px 24px rgba(17, 19, 34, 0.08), 0 22px 48px rgba(17, 19, 34, 0.12));
}

.dzd-help__category-card.is-hidden,
.dzd-help__faq-item.is-hidden {
	display: none;
}

.dzd-help__category-top {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px;
	align-items: start;
}

.dzd-help__category-icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: linear-gradient(145deg, rgba(94, 67, 214, 0.16), rgba(207, 196, 255, 0.35));
	color: var(--dzd-color-accent, #5e43d6);
	border: 1px solid var(--dzd-color-accent-border, #cfc4ff);
	flex-shrink: 0;
}

.dzd-help__category-icon svg {
	width: 28px;
	height: 28px;
	display: block;
}

.dzd-help__category-title {
	margin: 0 0 4px;
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--dzd-color-text, #111322);
}

.dzd-help__category-desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--dzd-color-text-muted, #5b5f73);
}

.dzd-help__article-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.dzd-help__article details {
	border-radius: 12px;
	background: var(--dzd-color-surface-panel, #fbfbfc);
	border: 1px solid transparent;
	overflow: hidden;
}

.dzd-help__article details[open] {
	border-color: var(--dzd-color-border, #d8dae3);
	background: #fff;
}

.dzd-help__article summary {
	list-style: none;
	cursor: pointer;
	padding: 10px 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--dzd-color-text, #111322);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.dzd-help__article summary::-webkit-details-marker {
	display: none;
}

.dzd-help__article summary::after {
	content: "+";
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	font-size: 14px;
	font-weight: 700;
	color: var(--dzd-color-accent, #5e43d6);
	background: rgba(94, 67, 214, 0.08);
}

.dzd-help__article details[open] summary::after {
	content: "–";
}

.dzd-help__article p {
	margin: 0;
	padding: 0 12px 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--dzd-color-text-muted, #5b5f73);
}

.dzd-help__accordion {
	display: grid;
	gap: 10px;
	max-width: 860px;
}

.dzd-help__faq-item {
	border-radius: var(--dzd-radius-md, 16px);
	background: var(--dzd-color-surface, #fff);
	border: 1px solid var(--dzd-color-border, #d8dae3);
	box-shadow: var(--dzd-shadow-card, 0 4px 10px rgba(17, 19, 34, 0.05), 0 14px 36px rgba(17, 19, 34, 0.1));
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dzd-help__faq-item[open] {
	border-color: rgba(94, 67, 214, 0.28);
	box-shadow: var(--dzd-shadow-elevated, 0 10px 24px rgba(17, 19, 34, 0.08), 0 22px 48px rgba(17, 19, 34, 0.12));
}

.dzd-help__faq-item summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	font-size: 1rem;
	font-weight: 750;
	letter-spacing: -0.01em;
	color: var(--dzd-color-text, #111322);
}

.dzd-help__faq-item summary::-webkit-details-marker {
	display: none;
}

.dzd-help__faq-chevron {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: rgba(94, 67, 214, 0.08);
	position: relative;
}

.dzd-help__faq-chevron::before,
.dzd-help__faq-chevron::after {
	content: "";
	position: absolute;
	inset: 50% auto auto 50%;
	width: 12px;
	height: 2px;
	background: var(--dzd-color-accent, #5e43d6);
	border-radius: 2px;
	transform: translate(-50%, -50%);
	transition: transform 0.18s ease;
}

.dzd-help__faq-chevron::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.dzd-help__faq-item[open] .dzd-help__faq-chevron::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.dzd-help__faq-body {
	padding: 0 20px 18px;
	animation: dzd-help-faq-in 180ms ease;
}

.dzd-help__faq-body p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--dzd-color-text-muted, #5b5f73);
}

@keyframes dzd-help-faq-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.dzd-help__support-card {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 24px;
	align-items: center;
	padding: 36px 40px;
	border-radius: 24px;
	background: linear-gradient(135deg, #5e43d6 0%, #7a63e8 55%, #4f38c4 100%);
	color: #fff;
	box-shadow: var(--dzd-shadow-accent, 0 10px 28px rgba(94, 67, 214, 0.35));
}

.dzd-help__support-glow {
	position: absolute;
	inset: -40% auto auto 55%;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
	pointer-events: none;
}

.dzd-help__support-copy {
	position: relative;
	z-index: 1;
}

.dzd-help__support-title {
	margin: 0 0 8px;
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.dzd-help__support-text {
	margin: 0;
	font-size: 1rem;
	opacity: 0.92;
	line-height: 1.5;
}

.dzd-help__support-actions {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.dzd-help__support-actions .dzd-ui-btn--primary {
	background: #fff;
	color: #5e43d6;
	border-color: transparent;
	box-shadow: 0 8px 20px rgba(17, 19, 34, 0.16);
}

.dzd-help__support-actions .dzd-ui-btn--primary:hover {
	background: #f4f1ff;
	color: #4a32b8;
}

.dzd-help__support-actions .dzd-ui-btn--ghost {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
}

.dzd-help__support-actions .dzd-ui-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.dzd-help__resources {
	padding-top: 8px;
	border-top: 1px solid var(--dzd-color-border, #d8dae3);
	display: grid;
	gap: 14px;
	justify-items: center;
	text-align: center;
}

.dzd-help__resources-title {
	margin: 0;
	font-size: 13px;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dzd-color-text-subtle, #8b90a5);
}

.dzd-help__resources-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	justify-content: center;
}

.dzd-help__resources-list a {
	font-size: 14px;
	font-weight: 650;
	color: var(--dzd-color-text, #111322);
	text-decoration: none;
}

.dzd-help__resources-list a:hover {
	color: var(--dzd-color-accent, #5e43d6);
}

@media (max-width: 1199px) {
	.dzd-help__category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dzd-help__support-card {
		grid-template-columns: 1fr;
		padding: 28px;
	}

	.dzd-help__support-actions {
		justify-content: flex-start;
	}
}

@media (max-width: 767px) {
	.dzd-help__hero {
		padding: 48px 0 36px;
	}

	.dzd-help__search-input {
		height: 54px;
		border-radius: 16px;
	}

	.dzd-help__body {
		gap: 40px;
		padding-top: 28px;
	}

	.dzd-help__category-grid {
		grid-template-columns: 1fr;
	}

	.dzd-help__faq-item summary {
		padding: 16px;
		font-size: 0.95rem;
	}

	.dzd-help-page {
		padding-bottom: 48px;
	}
}
