/* =====================================================================
   EMCHD CORPORATE DESIGN SYSTEM — POWER SELECTOR & CABINET
   Matching /events/ and single event page (chestnyj-znak)
   Redesigned via design_fl / redesign-existing-projects skill
   ===================================================================== */

:root {
	--emchd-hero-bg: #505050;
	--emchd-hero-bg-gradient: linear-gradient(180deg, #555555 0%, #505050 100%);
	--emchd-accent-orange: #FFA800;
	--emchd-accent-orange-hover: #ffb733;
	--emchd-page-bg: #F5F7FA;
	--emchd-text-dark: #0b111e;
	--emchd-card-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
	--emchd-radius-card: 20px;
	--emchd-radius-inner: 12px;
	--emchd-radius-pill: 99px;
	--emchd-border-light: #e2e8f0;
	--emchd-font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--emchd-ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
	--emchd-ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

body {
	background-color: var(--emchd-page-bg) !important;
}

.emchd-page-wrapper {
	font-family: var(--emchd-font-family);
	color: var(--emchd-text-dark);
	padding-bottom: 70px;
}

/* ── LEVEL 1: GRAPHITE HERO SECTION ── */
.emchd-hero-graphite {
	background: var(--emchd-hero-bg-gradient);
	padding: 64px 0 105px 0;
	text-align: center;
	color: #ffffff;
	position: relative;
	overflow: hidden;
}

/* Soft Geometric Circles Overlay (EMCHD Corporate Style) */
.emchd-hero-graphite::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: 
		radial-gradient(circle at 85% 20%, rgba(255, 168, 0, 0.06) 0%, transparent 42%),
		radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 46%);
	pointer-events: none;
	z-index: 0;
}

.emchd-hero-graphite > .container {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.emchd-breadcrumbs {
	display: none;
}

.emchd-hero-graphite h1 {
	font-size: 38px;
	font-weight: 800;
	color: #ffffff;
	margin: 0 auto 16px auto !important;
	max-width: 900px;
	line-height: 1.25;
	letter-spacing: -0.5px;
	text-align: center !important;
	width: 100%;
}

.emchd-hero-graphite h1 span {
	color: var(--emchd-accent-orange);
}

.emchd-hero-graphite .descr {
	font-size: 16px;
	color: #cbd5e1;
	max-width: 700px;
	margin: 0 auto 28px auto !important;
	line-height: 1.6;
	text-align: center !important;
	width: 100%;
}

.emchd-hero-stats {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 auto !important;
}

.emchd-hero-cta-action {
	margin-top: 26px;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	position: relative;
	z-index: 5;
}

.emchd-hero-cta-action .create_mchd {
	width: 280px;
	height: 52px;
	background: #FFA800;
	color: #ffffff !important;
	font-size: 17px;
	font-weight: 700;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: 0 4px 18px rgba(255, 168, 0, 0.35);
	transition: all 0.25s ease;
	font-family: inherit;
}

.emchd-hero-cta-action .create_mchd:hover {
	background: #e69500;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(255, 168, 0, 0.45);
	color: #ffffff !important;
}

.stat-badge-graphite {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(8px);
	padding: 8px 18px;
	border-radius: var(--emchd-radius-pill);
	font-size: 13px;
	font-weight: 600;
	color: #f3f4f6;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.stat-badge-graphite span {
	color: var(--emchd-accent-orange);
	font-weight: 700;
}

.stat-badge-btn-hero {
	background: var(--emchd-accent-orange);
	border: 1px solid var(--emchd-accent-orange);
	color: #0b111e;
	padding: 8px 22px;
	border-radius: var(--emchd-radius-pill);
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.25s var(--emchd-ease-spring);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
}

.stat-badge-btn-hero:hover {
	background: var(--emchd-accent-orange-hover);
	color: #0b111e;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.stat-badge-btn-hero:active {
	transform: translateY(0) scale(0.98);
}

/* ── LEVEL 2: OVERLAPPING FLOATING CARD ── */
.emchd-card-overlay {
	background: #ffffff;
	border-radius: 16px;
	padding: 38px 44px;
	margin: -50px auto 40px auto;
	box-shadow: 0 12px 36px -4px rgba(11, 17, 30, 0.08), 0 4px 12px -2px rgba(11, 17, 30, 0.04);
	position: relative;
	z-index: 10;
	border: 1px solid var(--emchd-border-light);
	box-sizing: border-box;
}

/* Staggered fade-in for wizard panels */
.emchd-wizard-panel {
	animation: emchd-panelIn 0.35s var(--emchd-ease-spring) both;
}

@keyframes emchd-panelIn {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ── STEP NAVIGATION TABS ── */
.emchd-steps-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 34px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--emchd-border-light);
	flex-wrap: wrap;
}

.emchd-step-tab {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 700;
	color: #94a3b8;
	user-select: none;
}

.emchd-step-tab.active {
	color: var(--emchd-text-dark);
}

.step-circle {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13.5px;
	font-weight: 800;
	transition: all 0.2s ease;
}

.emchd-step-tab.active .step-circle {
	background: var(--emchd-accent-orange);
	color: #0b111e;
	box-shadow: 0 2px 8px rgba(255, 168, 0, 0.35);
}

.step-arrow {
	color: #cbd5e1;
	font-weight: 700;
	font-size: 14px;
}

/* Panel Headers */
.panel-header-block {
	margin-bottom: 24px;
}

.section-kicker {
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #94a3b8;
	margin-bottom: 8px;
}

.panel-heading {
	font-size: 24px;
	font-weight: 800;
	color: var(--emchd-text-dark);
	margin: 0 0 6px 0;
	line-height: 1.3;
}

.panel-subheading {
	font-size: 15px;
	color: #64748b;
	margin: 0;
	line-height: 1.5;
}

/* ── STEP 1: CHIP ROLES GRID (BALANCED 4-COLUMN) ── */
.filter-chips-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 24px;
}

@media (max-width: 960px) {
	.filter-chips-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.filter-chips-grid {
		grid-template-columns: 1fr;
	}
}

.chip-role-btn {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	color: #334155;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s var(--emchd-ease-spring);
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	box-sizing: border-box;
	text-align: left;
}

.chip-role-btn .role-name {
	line-height: 1.25;
	display: inline-block;
	flex: 1;
}

.chip-role-btn:hover {
	border-color: var(--emchd-accent-orange);
	background: #fffdf5;
	color: #0b111e;
	transform: translateY(-1px);
}

.chip-role-btn.active {
	background: var(--emchd-accent-orange);
	border-color: var(--emchd-accent-orange);
	color: #0b111e;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.chip-role-btn:active {
	transform: scale(0.97);
}

.chip-role-btn:focus-visible {
	outline: 2px solid var(--emchd-accent-orange);
	outline-offset: 2px;
}

.role-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: #64748b;
}

.chip-role-btn.active .role-icon {
	color: #0b111e;
}

.custom-input-box {
	background: #f8fafc;
	border: 1px solid var(--emchd-border-light);
	border-radius: 14px;
	padding: 18px 20px;
	margin-bottom: 24px;
}

.custom-input-box label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 8px;
}

.emchd-text-field {
	width: 100%;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 14.5px;
	color: #0b111e;
	font-family: inherit;
	background: #ffffff;
	box-sizing: border-box;
	outline: none;
	transition: all 0.2s ease;
}

.emchd-text-field:focus {
	border-color: var(--emchd-accent-orange);
	box-shadow: 0 0 10px rgba(255, 168, 0, 0.2);
}

/* ── STEP 2: ACTIONS CHIPS & QUERY ── */
.filter-group-wrap {
	margin-bottom: 24px;
}

.filter-group-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
	margin-bottom: 12px;
	display: block;
}

.chips-actions-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chip-action-btn {
	background: #f8fafc;
	border: 1.5px solid #cbd5e1;
	color: #475569;
	padding: 8px 18px;
	border-radius: var(--emchd-radius-pill);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s var(--emchd-ease-spring);
	user-select: none;
}

.chip-action-btn:hover {
	border-color: var(--emchd-accent-orange);
	color: #0b111e;
	background: #fffdf5;
}

.chip-action-btn.active {
	background: var(--emchd-accent-orange);
	color: #0b111e;
	border-color: var(--emchd-accent-orange);
	font-weight: 700;
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.chip-action-btn:active {
	transform: scale(0.96);
}

.chip-action-btn:focus-visible {
	outline: 2px solid var(--emchd-accent-orange);
	outline-offset: 2px;
}

.query-textarea-wrap {
	margin-bottom: 28px;
}

.emchd-textarea-field {
	width: 100%;
	min-height: 110px;
	border: 1.5px solid #cbd5e1;
	border-radius: 14px;
	padding: 14px 18px;
	font-size: 15px;
	line-height: 1.5;
	color: #0b111e;
	font-family: inherit;
	background: #f8fafc;
	box-sizing: border-box;
	outline: none;
	resize: vertical;
	transition: all 0.2s ease;
}

.emchd-textarea-field:focus {
	border-color: var(--emchd-accent-orange);
	background: #ffffff;
	box-shadow: 0 0 12px rgba(255, 168, 0, 0.18);
}

/* ── BUTTONS ── */
.panel-footer-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.btn-emchd-cta {
	background: var(--emchd-accent-orange);
	border: 1px solid var(--emchd-accent-orange);
	color: #0b111e;
	padding: 13px 32px;
	border-radius: var(--emchd-radius-pill);
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	transition: all 0.25s var(--emchd-ease-spring);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
	text-decoration: none;
}

.btn-emchd-cta:hover {
	background: var(--emchd-accent-orange-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.btn-emchd-cta:active {
	transform: translateY(0) scale(0.98);
	box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.btn-emchd-cta:focus-visible {
	outline: 2px solid var(--emchd-accent-orange);
	outline-offset: 2px;
}

.btn-emchd-cta:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.btn-emchd-ghost {
	background: #f1f5f9;
	border: 1.5px solid #cbd5e1;
	color: #334155;
	padding: 11px 22px;
	border-radius: var(--emchd-radius-inner);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s var(--emchd-ease-spring);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}

.btn-emchd-ghost:hover {
	border-color: var(--emchd-accent-orange);
	color: #0b111e;
	background: #fffdf5;
}

.btn-emchd-ghost:active {
	transform: scale(0.98);
}

.btn-emchd-ghost:focus-visible {
	outline: 2px solid var(--emchd-accent-orange);
	outline-offset: 2px;
}

/* ── STEP 3: RESULTS LIST & CARDS ── */
.results-top-bar {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 16px;
}

.results-badge-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ebadge {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 6px;
	border: 1px solid transparent;
	white-space: nowrap;
}

.ebadge-date {
	background: rgba(255, 168, 0, 0.16);
	border-color: rgba(255, 168, 0, 0.38);
	color: #d97706;
}

.ebadge-topic {
	background: #f1f5f9;
	border-color: #e2e8f0;
	color: #475569;
}

.results-toolbar-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.btn-toolbar-action {
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	color: #475569;
	padding: 8px 16px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.18s ease;
	text-decoration: none;
}

.btn-toolbar-action:hover {
	border-color: var(--emchd-accent-orange);
	background: #fffdf5;
	color: #0b111e;
}

.btn-toolbar-action.btn-highlight {
	background: #fff7eb;
	border-color: #fed7aa;
	color: #b45309;
}

/* Power Card Exclusion Feature (Point 4) */
.btn-power-exclude {
	background: #f8fafc;
	color: #64748b;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: all 0.2s ease;
	font-family: inherit;
}

.btn-power-exclude:hover {
	background: #fef2f2;
	border-color: #fca5a5;
	color: #dc2626;
	transform: translateY(-1px);
}

.emchd-power-card.is-excluded {
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	padding: 12px 18px;
	margin-bottom: 12px;
	border-radius: 12px;
	opacity: 0.85;
}

.emchd-power-card.is-excluded:hover {
	opacity: 1;
	border-color: #94a3b8;
}

.excluded-card-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	color: #64748b;
	width: 100%;
}

.excluded-card-title {
	font-weight: 600;
	color: #475569;
}

.btn-power-restore {
	background: #ffffff;
	border: 1px solid #f59e0b;
	color: #b45309;
	font-size: 12px;
	font-weight: 700;
	border-radius: 6px;
	padding: 4px 12px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-power-restore:hover {
	background: #fffbeb;
	border-color: #d97706;
	color: #92400e;
}

/* Power Cards */
.emchd-cards-flow {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 28px;
}

.emchd-power-card {
	background: #ffffff;
	border: 1.5px solid var(--emchd-border-light);
	border-radius: var(--emchd-radius-inner);
	padding: 22px 24px;
	transition: all 0.25s var(--emchd-ease-spring);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	animation: emchd-cardIn 0.3s var(--emchd-ease-spring) both;
	animation-delay: calc(var(--card-i, 0) * 60ms);
}

.emchd-power-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
	transform: translateY(-1px);
}

.emchd-power-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	gap: 10px;
	flex-wrap: wrap;
}

.emchd-code-badge {
	background: rgba(255, 168, 0, 0.14);
	color: #b45309;
	font-weight: 800;
	font-size: 13px;
	padding: 4px 12px;
	border-radius: 6px;
	border: 1px solid rgba(255, 168, 0, 0.35);
	font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.emchd-agency-badge {
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 6px;
	border: 1px solid #dbeafe;
}

.emchd-power-title {
	font-size: 17px;
	font-weight: 800;
	color: var(--emchd-text-dark);
	line-height: 1.4;
	margin: 0 0 6px 0;
}

.emchd-power-description {
	font-size: 14.5px;
	color: #475569;
	line-height: 1.55;
	margin: 0 0 12px 0;
}

.emchd-power-meta {
	display: flex;
	gap: 16px;
	font-size: 12.5px;
	color: #94a3b8;
	font-weight: 600;
	flex-wrap: wrap;
}

/* Locked / Obfuscated Cards */
.emchd-power-card.is-locked {
	background: #fafafa;
	border-style: dashed;
}

.emchd-power-card.is-locked .emchd-power-description {
	filter: blur(4px);
	user-select: none;
}

/* ── GRAPHITE REGISTRATION CARD ── */
.emchd-register-card {
	background: linear-gradient(135deg, #2a2a2a 0%, #1c1c1c 100%);
	border-radius: var(--emchd-radius-card);
	color: #ffffff;
	padding: 38px 40px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
	border: 1px solid #3d3d3d;
	margin: 28px 0;
	text-align: center;
}

.reg-pill {
	display: inline-block;
	background: rgba(255, 168, 0, 0.18);
	color: var(--emchd-accent-orange);
	border: 1px solid rgba(255, 168, 0, 0.35);
	padding: 4px 12px;
	border-radius: 99px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.reg-title {
	font-size: 24px;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 8px 0;
}

.reg-subtitle {
	font-size: 15px;
	color: #94a3b8;
	max-width: 520px;
	margin: 0 auto 24px auto;
	line-height: 1.55;
}

.reg-form-fields {
	max-width: 420px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	text-align: left;
}

.reg-input {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid #475569;
	background: #111827;
	color: #ffffff;
	border-radius: 10px;
	font-size: 14.5px;
	font-family: inherit;
	box-sizing: border-box;
	outline: none;
	transition: all 0.2s ease;
}

.reg-input:focus {
	border-color: var(--emchd-accent-orange);
	box-shadow: 0 0 10px rgba(255, 168, 0, 0.25);
}

.consent-checkbox-label {
	font-size: 12.5px;
	color: #94a3b8;
	line-height: 1.4;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.consent-checkbox-label a {
	color: var(--emchd-accent-orange);
	text-decoration: underline;
}

.btn-reg-submit {
	background: var(--emchd-accent-orange);
	color: #0b111e;
	border: none;
	font-weight: 800;
	font-size: 15.5px;
	padding: 14px 24px;
	border-radius: var(--emchd-radius-pill);
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
	transition: all 0.25s var(--emchd-ease-spring);
	width: 100%;
}

.btn-reg-submit:hover {
	background: var(--emchd-accent-orange-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.btn-reg-submit:active {
	transform: translateY(0) scale(0.98);
}

.btn-reg-submit:focus-visible {
	outline: 2px solid var(--emchd-accent-orange);
	outline-offset: 2px;
}

.auth-mode-switch {
	margin-top: 14px;
	font-size: 13px;
	color: #94a3b8;
	text-align: center;
}

.auth-mode-switch a {
	color: var(--emchd-accent-orange);
	text-decoration: underline;
	cursor: pointer;
}

.emchd-error-alert {
	background: #450a0a;
	color: #fecaca;
	border: 1px solid #991b1b;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 13.5px;
	margin-bottom: 14px;
	text-align: left;
}

/* ── OFFICIAL DISCLAIMER CALLOUT ── */
.emchd-callout-disclaimer {
	display: flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	border: none;
	border-top: 1px solid #f1f5f9;
	border-radius: 0;
	padding: 16px 0 0 0;
	margin-top: 32px;
	font-size: 12px;
	line-height: 1.45;
	color: #94a3b8;
}

.disclaimer-icon {
	color: #94a3b8;
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.disclaimer-icon svg {
	width: 16px !important;
	height: 16px !important;
}

.emchd-callout-disclaimer strong {
	color: #64748b;
}

/* Spinner (kept for inline use) */
.emchd-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(0,0,0,0.15);
	border-radius: 50%;
	border-top-color: currentColor;
	animation: emchd-spin 0.6s linear infinite;
	vertical-align: middle;
}

@keyframes emchd-spin {
	to { transform: rotate(360deg); }
}

/* Shimmer Skeleton Loader */
.emchd-skeleton {
	background: #f1f5f9;
	border-radius: var(--emchd-radius-inner);
	position: relative;
	overflow: hidden;
}

.emchd-skeleton::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
	animation: emchd-shimmer 1.5s ease-in-out infinite;
	transform: translateX(-100%);
}

.emchd-skeleton-card {
	height: 120px;
	margin-bottom: 14px;
}

.emchd-skeleton-line {
	height: 16px;
	margin-bottom: 10px;
	width: 70%;
}

.emchd-skeleton-line.short {
	width: 40%;
}

@keyframes emchd-shimmer {
	to { transform: translateX(100%); }
}

@keyframes emchd-cardIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Toast */
.emchd-toast-notification {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #0b111e;
	color: #ffffff;
	border-left: 4px solid var(--emchd-accent-orange);
	padding: 14px 22px;
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(0,0,0,0.25);
	font-size: 14px;
	font-weight: 700;
	z-index: 999999;
	display: none;
}

/* ── RESULTS TEASER FOR GUESTS ── */
.emchd-results-teaser {
	display: flex;
	align-items: center;
	gap: 18px;
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
	border: 1.5px dashed #f59e0b;
	border-radius: 16px;
	padding: 20px 24px;
	margin: 20px 0 26px 0;
	box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08);
}

.teaser-icon {
	font-size: 32px;
	flex-shrink: 0;
}

.teaser-title {
	font-size: 17px;
	font-weight: 800;
	color: #92400e;
	margin-bottom: 4px;
}

.teaser-sub {
	font-size: 13.5px;
	color: #b45309;
	line-height: 1.45;
}

.badge-status-lock {
	background: #fef3c7;
	color: #b45309;
	font-size: 11.5px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 6px;
	border: 1px solid #fde68a;
}

.badge-status-active {
	background: #dcfce7;
	color: #15803d;
	font-size: 11.5px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 6px;
	border: 1px solid #bbf7d0;
}

/* ── LEVEL 3: POPULAR SCENARIOS SECTION ── */
.emchd-popular-section {
	margin-top: 50px;
	margin-bottom: 40px;
}

.emchd-section-header {
	text-align: center;
	margin-bottom: 32px;
}

.emchd-section-title {
	font-size: 28px;
	font-weight: 900;
	color: #0b111e;
	margin: 12px 0 8px 0;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.emchd-section-subtitle {
	font-size: 15px;
	color: #64748b;
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.5;
}

.emchd-scenarios-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

.scenario-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px 22px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.2s var(--emchd-ease-spring);
}

.scenario-card:hover {
	transform: translateY(-2px);
	border-color: #cbd5e1;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.scenario-card:active {
	transform: translateY(0) scale(0.99);
}

.scenario-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.scenario-tag {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #475569;
	background: #f1f5f9;
	padding: 3px 8px;
	border-radius: 4px;
	border: 1px solid #e2e8f0;
	transition: all 0.2s ease;
}

.scenario-card:hover .scenario-tag {
	background: #fff7ed;
	color: #b45309;
	border-color: #fed7aa;
}

.scenario-icon-box {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.scenario-card:hover .scenario-icon-box {
	background: #fff7ed;
	border-color: #fed7aa;
	color: #d97706;
}

.scenario-title {
	font-size: 15.5px;
	font-weight: 700;
	color: #0b111e;
	margin: 0 0 6px 0;
	line-height: 1.35;
}

.scenario-desc {
	font-size: 13px;
	color: #64748b;
	line-height: 1.48;
	margin: 0 0 16px 0;
	flex-grow: 1;
}

.scenario-action {
	font-size: 13px;
	font-weight: 700;
	color: #b45309;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: transform 0.2s ease, color 0.2s ease;
}

.scenario-card:hover .scenario-action {
	color: #d97706;
	transform: translateX(3px);
}

/* ── LEVEL 4: SEO KNOWLEDGE BASE SECTION ── */
.emchd-seo-article-section {
	margin-bottom: 50px;
}

.emchd-seo-content-card {
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: var(--emchd-radius-card);
	padding: 44px 40px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.seo-block {
	margin-bottom: 40px;
}

.seo-block:last-child {
	margin-bottom: 0;
}

.seo-block h2 {
	font-size: 24px;
	font-weight: 900;
	color: #0b111e;
	margin: 0 0 16px 0;
	letter-spacing: -0.02em;
	position: relative;
	text-wrap: balance;
	padding-bottom: 10px;
}

.seo-block h2::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 44px;
	height: 3px;
	background: var(--emchd-accent-orange);
	border-radius: 2px;
}

.seo-block p {
	font-size: 15px;
	line-height: 1.7;
	color: #334155;
	margin: 0 0 16px 0;
}

.seo-block p:last-child {
	margin-bottom: 0;
}

/* Steps Guide Grid */
.steps-guide-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
	margin-top: 24px;
}

.step-guide-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 22px 18px;
	position: relative;
}

.step-guide-num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--emchd-accent-orange);
	color: #0b111e;
	font-weight: 900;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	box-shadow: 0 2px 8px rgba(255, 168, 0, 0.3);
}

.step-guide-card h4 {
	font-size: 15px;
	font-weight: 800;
	color: #0b111e;
	margin: 0 0 8px 0;
	line-height: 1.35;
}

.step-guide-card p {
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
	margin: 0;
}

/* Agencies List */
.emchd-agencies-list {
	list-style: none;
	padding: 0;
	margin: 18px 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.emchd-agencies-list li {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 16px 20px;
	font-size: 14.5px;
	line-height: 1.6;
	color: #334155;
}

.emchd-agencies-list li strong {
	color: #0b111e;
	display: inline-block;
	margin-right: 6px;
}

/* Code Example Card */
.code-example-card {
	background: #0f172a;
	color: #f8fafc;
	border-radius: 16px;
	margin: 20px 0;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.code-example-header {
	background: #1e293b;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid #334155;
}

.code-pill {
	background: rgba(255, 168, 0, 0.2);
	color: var(--emchd-accent-orange);
	font-size: 11.5px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 6px;
}

.code-example-header code {
	color: #38bdf8;
	font-weight: 700;
	font-size: 14px;
}

.code-example-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 13.5px;
	line-height: 1.5;
}

.code-field strong {
	color: #94a3b8;
	display: inline-block;
	min-width: 180px;
}

/* Dynamic Classifier Metadata Banner */
.classifier-meta-box {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border: 1.5px solid #86efac;
	border-radius: 18px;
	padding: 22px 26px;
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 30px;
}

.meta-box-icon {
	font-size: 38px;
	flex-shrink: 0;
}

.meta-box-title {
	font-size: 16px;
	font-weight: 800;
	color: #14532d;
	margin-bottom: 4px;
}

.meta-box-stats {
	font-size: 14px;
	color: #166534;
	margin-bottom: 6px;
}

.meta-box-stats .bullet {
	margin: 0 6px;
	opacity: 0.6;
}

.meta-box-version {
	font-size: 13px;
	color: #15803d;
}

/* ── LEVEL 5: FAQ ACCORDION ── */
.emchd-faq-section {
	margin-bottom: 60px;
}

.emchd-faq-accordion {
	max-width: 860px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.faq-item {
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: var(--emchd-radius-inner);
	overflow: hidden;
	transition: all 0.25s var(--emchd-ease-spring);
}

.faq-item:hover {
	border-color: #cbd5e1;
}

.faq-item.open {
	border-color: var(--emchd-accent-orange);
	box-shadow: 0 6px 20px rgba(255, 168, 0, 0.08);
}

.faq-question {
	width: 100%;
	background: transparent;
	border: none;
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: left;
	font-size: 16px;
	font-weight: 800;
	color: #0b111e;
	cursor: pointer;
	gap: 16px;
	font-family: inherit;
	outline: none;
}

.faq-question:focus-visible {
	outline: 2px solid var(--emchd-accent-orange);
	outline-offset: -2px;
	border-radius: var(--emchd-radius-inner);
}

.faq-chevron {
	font-size: 18px;
	color: #94a3b8;
	transition: transform 0.25s ease;
	flex-shrink: 0;
}

.faq-item.open .faq-chevron {
	transform: rotate(180deg);
	color: var(--emchd-accent-orange);
}

.faq-answer {
	display: none;
	padding: 0 24px 22px 24px;
	font-size: 14.5px;
	line-height: 1.65;
	color: #475569;
}

.faq-item.open .faq-answer {
	display: block;
	animation: emchd-fadeIn 0.25s ease;
}

@keyframes emchd-fadeIn {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

.faq-answer p {
	margin: 0;
}

/* Bottom Disclaimer */
.emchd-bottom-disclaimer {
	text-align: center;
	font-size: 12.5px;
	color: #94a3b8;
	max-width: 760px;
	margin: 36px auto 0 auto;
	line-height: 1.5;
}

/* Responsive */
/* ── SVG Icon Base Styles (Bulletproof against theme overrides) ── */
.emchd-selector-wrapper svg,
.emchd-icon svg,
.scenario-card svg,
.scenario-icon-box svg,
.stat-badge-graphite svg,
.stat-badge-btn-hero svg,
.chip-role-btn svg,
.btn-toolbar-action svg {
	display: inline-block !important;
	vertical-align: middle !important;
	fill: none !important;
	stroke: currentColor !important;
	flex-shrink: 0 !important;
	box-sizing: content-box !important;
}

.emchd-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
}

.emchd-icon svg {
	width: 18px !important;
	height: 18px !important;
	stroke-width: 1.75;
}

.emchd-icon--sm svg {
	width: 15px !important;
	height: 15px !important;
	stroke-width: 2;
}

.emchd-icon--lg svg {
	width: 20px !important;
	height: 20px !important;
	stroke-width: 1.75;
}

.emchd-icon--xl svg {
	width: 24px !important;
	height: 24px !important;
	stroke-width: 1.75;
}

/* Responsive */
@media (max-width: 768px) {
	.emchd-hero-graphite {
		padding: 40px 0 65px 0;
	}
	.emchd-hero-graphite h1 {
		font-size: 26px;
	}
	.emchd-card-overlay {
		padding: 24px 18px;
		margin-top: -40px;
		border-radius: 18px;
	}
	.emchd-seo-content-card {
		padding: 28px 20px;
		border-radius: 18px;
	}
	.filter-chips-grid {
		grid-template-columns: 1fr;
	}
	.emchd-scenarios-grid {
		grid-template-columns: 1fr;
	}
	.steps-guide-grid {
		grid-template-columns: 1fr;
	}
	.results-top-bar {
		flex-direction: column;
		align-items: flex-start;
	}
	.results-toolbar-actions {
		width: 100%;
	}
	.btn-toolbar-action {
		flex: 1;
		justify-content: center;
	}
	.classifier-meta-box {
		flex-direction: column;
		text-align: center;
	}
}

