/**
 * HostingTags Smart Tools Styles
 *
 * @package HostingTags
 * @since   3.8.0
 */

/* ====================================================================
 * PAGE WRAPPER & LAYOUT
 * ==================================================================== */

.httool-page-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 0 40px;
}

.httool-breadcrumbs-wrap {
	margin: 16px 0 20px;
}

.httool-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 28px;
	align-items: start;
}

.httool-main {
	min-width: 0;
}


/* ====================================================================
 * HERO SECTION
 * ==================================================================== */

.httool-hero {
	position: relative;
	text-align: center;
	padding: 52px 24px 40px;
	margin-bottom: 32px;
	overflow: hidden;
	border-radius: var(--ht-radius-lg, 14px);
}

.httool-hero__bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #7c3aed 70%, #a78bfa 100%);
	z-index: 0;
}

.httool-hero__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='rgba(255,255,255,.08)'/%3E%3C/svg%3E") repeat;
	pointer-events: none;
}

.httool-hero__content {
	position: relative;
	z-index: 1;
}

.httool-hero__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255,255,255,.12);
	border: 2px solid rgba(255,255,255,.2);
	color: #fff;
	margin-bottom: 16px;
}

.httool-hero__title {
	font-size: calc(var(--ht-body-size, 14px) * 2.4);
	font-weight: 800;
	color: #fff;
	margin: 0 0 12px;
	line-height: 1.2;
}

.httool-hero__subtitle {
	font-size: calc(var(--ht-body-size, 14px) * 1.07);
	color: rgba(255,255,255,.72);
	max-width: 620px;
	margin: 0 auto 20px;
	line-height: 1.6;
}

.httool-hero__badges {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.httool-hero__badges .ht-badge--outline {
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.25);
	color: #fff;
	backdrop-filter: blur(4px);
}


/* ====================================================================
 * INDEX GRID (4 tool cards)
 * ==================================================================== */

.httool-index-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 36px;
}

.httool-card {
	display: flex;
	flex-direction: column;
	padding: 28px;
	background: #fff;
	border: 2px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius, 12px);
	box-shadow: var(--ht-shadow, 0 1px 3px rgba(0,0,0,.06));
	text-decoration: none !important;
	color: inherit;
	transition: border-color var(--ht-transition, .2s ease), box-shadow var(--ht-transition, .2s ease), transform var(--ht-transition, .2s ease);
}

.httool-card:hover {
	border-color: var(--card-accent, var(--ht-primary));
	box-shadow: 0 8px 30px rgba(0,0,0,.1);
	transform: translateY(-3px);
}

.httool-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.httool-card__icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
	box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.httool-card__num {
	font-size: calc(var(--ht-body-size, 14px) * 0.86);
	font-weight: 700;
	color: var(--ht-gray-300, #d1d5db);
}

.httool-card__title {
	font-size: calc(var(--ht-body-size, 14px) * 1.28);
	font-weight: 700;
	color: var(--ht-gray-900, #111827);
	margin: 0 0 8px;
}

.httool-card__desc {
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
	color: var(--ht-gray-500, #6b7280);
	line-height: 1.6;
	margin: 0 0 18px;
	flex: 1;
}

.httool-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
	font-weight: 600;
	color: var(--card-accent, var(--ht-primary));
	transition: gap var(--ht-transition, .2s ease);
}

.httool-card:hover .httool-card__cta {
	gap: 12px;
}


/* ====================================================================
 * CROSS LINKS
 * ==================================================================== */

.httool-cross-links {
	padding: 24px;
	background: var(--ht-gray-50, #f9fafb);
	border: 1px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius, 12px);
}

.httool-cross-links__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: calc(var(--ht-body-size, 14px) * 1);
	font-weight: 700;
	color: var(--ht-gray-800, #1f2937);
	margin: 0 0 14px;
}

.httool-cross-links__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.httool-cross-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: #fff;
	border: 1px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius-sm, 8px);
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
	font-weight: 500;
	color: var(--ht-primary, #054239) !important;
	text-decoration: none !important;
	transition: border-color var(--ht-transition, .2s ease), background var(--ht-transition, .2s ease);
}

.httool-cross-link:hover {
	border-color: var(--ht-primary, #054239);
	background: var(--ht-primary-lighter, rgba(18,65,135,.06));
}


/* ====================================================================
 * SIDEBAR
 * ==================================================================== */

.httool-sidebar {
	position: sticky;
	top: 80px;
}

.httool-sidebar-card {
	background: #fff;
	border: 1px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius, 12px);
	padding: 20px;
	margin-bottom: 16px;
	box-shadow: var(--ht-shadow, 0 1px 3px rgba(0,0,0,.06));
}

.httool-sidebar-card__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
	font-weight: 700;
	color: var(--ht-gray-800, #1f2937);
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--ht-gray-100, #f3f4f6);
	text-transform: uppercase;
	letter-spacing: .04em;
}

.httool-sidebar-card__title svg {
	color: var(--ht-primary, #054239);
}

.httool-sidebar-nav {
	list-style: none;
	padding: 0;
	margin: 0;
}

.httool-sidebar-nav li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid var(--ht-gray-100, #f3f4f6);
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
	font-weight: 500;
	color: var(--ht-gray-700, #374151) !important;
	text-decoration: none !important;
	transition: color var(--ht-transition, .2s ease);
}

.httool-sidebar-nav li:last-child a {
	border-bottom: none;
}

.httool-sidebar-nav li a:hover,
.httool-sidebar-nav li.active a {
	color: var(--ht-primary, #054239) !important;
}

.httool-sidebar-nav li.active a {
	font-weight: 700;
}

.httool-sidebar-nav__icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.httool-sidebar-nav__active {
	margin-left: auto;
	font-size: calc(var(--ht-body-size, 14px) * 0.71);
	font-weight: 600;
	color: #fff;
	background: var(--ht-primary, #054239);
	padding: 1px 8px;
	border-radius: 10px;
}

.httool-sidebar-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.httool-sidebar-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: var(--ht-gray-50, #f9fafb);
	border-radius: var(--ht-radius-sm, 8px);
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
	font-weight: 500;
	color: var(--ht-primary, #054239) !important;
	text-decoration: none !important;
	transition: background var(--ht-transition, .2s ease);
}

.httool-sidebar-link:hover {
	background: var(--ht-primary-lighter, rgba(18,65,135,.06));
}


/* ====================================================================
 * APP (Tool) WRAPPER
 * ==================================================================== */

.httool-app {
	background: #fff;
	border: 1px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius, 12px);
	box-shadow: var(--ht-shadow, 0 1px 3px rgba(0,0,0,.06));
	overflow: hidden;
}

.httool-app__header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px;
	border-bottom: 1px solid var(--ht-gray-200, #e5e7eb);
	background: var(--ht-gray-50, #f9fafb);
}

.httool-app__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
}

.httool-app__title {
	font-size: calc(var(--ht-body-size, 14px) * 1.5);
	font-weight: 700;
	color: var(--ht-gray-900, #111827);
	margin: 0 0 4px;
}

.httool-app__desc {
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
	color: var(--ht-gray-500, #6b7280);
	margin: 0;
	line-height: 1.4;
}


/* ====================================================================
 * BUTTONS
 * ==================================================================== */

.httool-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	font-size: calc(var(--ht-body-size, 14px) * 1);
	font-weight: 600;
	border-radius: var(--ht-radius-sm, 8px);
	border: 2px solid transparent;
	cursor: pointer;
	transition: all var(--ht-transition, .2s ease);
	text-decoration: none !important;
	font-family: inherit;
	line-height: 1.4;
}

.httool-btn--primary {
	background: var(--ht-primary, #054239);
	color: #fff;
	border-color: var(--ht-primary, #054239);
}

.httool-btn--primary:hover {
	background: var(--ht-primary-dark);
	border-color: var(--ht-primary-dark);
}

.httool-btn--primary:disabled {
	opacity: .5;
	cursor: not-allowed;
}

.httool-btn--outline {
	background: transparent;
	color: var(--ht-gray-600, #4b5563);
	border-color: var(--ht-gray-300, #d1d5db);
}

.httool-btn--outline:hover {
	border-color: var(--ht-primary);
	color: var(--ht-primary);
}

.httool-btn--sm {
	padding: 6px 14px;
	font-size: calc(var(--ht-body-size, 14px) * 0.86);
}

.httool-btn--lg {
	padding: 14px 28px;
	font-size: calc(var(--ht-body-size, 14px) * 1.14);
}

.httool-btn--block {
	width: 100%;
}

.httool-btn--danger {
	background: transparent;
	color: var(--ht-danger, #dc2626);
	border-color: var(--ht-danger, #dc2626);
}

.httool-btn--danger:hover {
	background: var(--ht-danger, #dc2626);
	color: #fff;
}

.httool-btn--success {
	background: var(--ht-success, #16a34a);
	color: #fff;
	border-color: var(--ht-success, #16a34a);
}


/* ====================================================================
 * FORM ELEMENTS
 * ==================================================================== */

.httool-input,
.httool-select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--ht-gray-300, #d1d5db);
	border-radius: var(--ht-radius-sm, 8px);
	font-size: calc(var(--ht-body-size, 14px) * 1);
	color: var(--ht-gray-700, #374151);
	background: #fff;
	transition: border-color .2s;
	box-sizing: border-box;
	font-family: inherit;
}

.httool-input:focus,
.httool-select:focus {
	outline: none;
	border-color: var(--ht-primary, #054239);
	box-shadow: 0 0 0 3px rgba(18,65,135,.1);
}

.httool-range {
	width: 100%;
	accent-color: var(--ht-primary, #054239);
}

.httool-range-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
}

.httool-range__val {
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
	font-weight: 600;
	color: var(--ht-primary, #054239);
	min-width: 40px;
	text-align: right;
}

.httool-checkbox {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: calc(var(--ht-body-size, 14px) * 0.86);
	color: var(--ht-gray-600, #4b5563);
	cursor: pointer;
}

.httool-checkbox input {
	accent-color: var(--ht-primary, #054239);
}

.httool-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}


/* ====================================================================
 * TOGGLE SWITCH
 * ==================================================================== */

.httool-toggle {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	cursor: pointer;
}

.httool-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.httool-toggle__slider {
	position: absolute;
	inset: 0;
	background: var(--ht-gray-300, #d1d5db);
	border-radius: 24px;
	transition: background .2s;
}

.httool-toggle__slider::before {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	left: 2px;
	bottom: 2px;
	background: #fff;
	border-radius: 50%;
	transition: transform .2s;
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.httool-toggle input:checked + .httool-toggle__slider {
	background: var(--ht-primary, #054239);
}

.httool-toggle input:checked + .httool-toggle__slider::before {
	transform: translateX(20px);
}


/* ====================================================================
 * CHIP BUTTONS (Stack Builder + multi-select)
 * ==================================================================== */

.httool-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 7px 16px;
	font-size: calc(var(--ht-body-size, 14px) * 0.86);
	font-weight: 500;
	color: var(--ht-gray-600, #4b5563);
	background: #fff;
	border: 1px solid var(--ht-gray-300, #d1d5db);
	border-radius: 20px;
	cursor: pointer;
	transition: all var(--ht-transition, .2s ease);
	font-family: inherit;
}

.httool-chip:hover {
	border-color: var(--ht-primary, #054239);
	color: var(--ht-primary, #054239);
}

.httool-chip.active {
	background: var(--ht-primary, #054239);
	border-color: var(--ht-primary, #054239);
	color: #fff;
}


/* ====================================================================
 * WIZARD
 * ==================================================================== */

.httool-wizard {
	padding: 28px;
}

.httool-wizard__progress {
	height: 4px;
	background: var(--ht-gray-200, #e5e7eb);
	border-radius: 4px;
	margin-bottom: 28px;
	overflow: hidden;
}

.httool-wizard__bar {
	height: 100%;
	width: 20%;
	background: linear-gradient(90deg, #7c3aed, #a78bfa);
	border-radius: 4px;
	transition: width .4s ease;
}

.httool-wstep {
	display: none;
	animation: httoolFadeIn .3s ease;
}

.httool-wstep.active {
	display: block;
}

@keyframes httoolFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

.httool-wstep__q {
	font-size: calc(var(--ht-body-size, 14px) * 1.35);
	font-weight: 700;
	color: var(--ht-gray-900, #111827);
	margin: 0 0 8px;
}

.httool-wstep__hint {
	font-size: calc(var(--ht-body-size, 14px) * 0.86);
	color: var(--ht-gray-400, #9ca3af);
	margin: 0 0 16px;
}

.httool-wstep__options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
}

.httool-wstep__options--grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.httool-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	background: #fff;
	border: 2px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius-sm, 8px);
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
	font-weight: 500;
	color: var(--ht-gray-700, #374151);
	cursor: pointer;
	transition: all var(--ht-transition, .2s ease);
	font-family: inherit;
	text-align: left;
}

.httool-opt:hover {
	border-color: var(--ht-primary, #054239);
	color: var(--ht-primary, #054239);
}

.httool-opt.selected {
	border-color: #7c3aed;
	background: rgba(124,58,237,.06);
	color: #7c3aed;
	font-weight: 600;
}

.httool-opt svg {
	flex-shrink: 0;
}

.httool-wizard__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--ht-gray-200, #e5e7eb);
}

.httool-wizard__step-count {
	font-size: calc(var(--ht-body-size, 14px) * 0.86);
	font-weight: 600;
	color: var(--ht-gray-400, #9ca3af);
}

#htWizardPrev {
	flex-direction: row-reverse;
}

.httool-wizard__results {
	margin-top: 24px;
}


/* ====================================================================
 * WIZARD RESULTS
 * ==================================================================== */

.httool-wresult {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius, 12px);
	margin-bottom: 14px;
	animation: httoolFadeIn .4s ease;
	transition: border-color var(--ht-transition, .2s ease);
}

.httool-wresult:first-child {
	border-color: #7c3aed;
	background: rgba(124,58,237,.02);
}

.httool-wresult__rank {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--ht-gray-100, #f3f4f6);
	font-size: calc(var(--ht-body-size, 14px) * 0.86);
	font-weight: 700;
	color: var(--ht-gray-500, #6b7280);
	flex-shrink: 0;
}

.httool-wresult:first-child .httool-wresult__rank {
	background: #7c3aed;
	color: #fff;
}

.httool-wresult__logo {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	object-fit: contain;
	background: var(--ht-gray-50, #f9fafb);
	flex-shrink: 0;
}

.httool-wresult__body {
	flex: 1;
	min-width: 0;
}

.httool-wresult__top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.httool-wresult__name {
	font-size: calc(var(--ht-body-size, 14px) * 1.07);
	font-weight: 700;
	color: var(--ht-gray-900, #111827);
}

.httool-wresult__match {
	font-size: calc(var(--ht-body-size, 14px) * 0.71);
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 10px;
	background: #dcfce7;
	color: #15803d;
}

.httool-wresult__match--high {
	background: #dcfce7;
	color: #15803d;
}

.httool-wresult__match--medium {
	background: #fef3c7;
	color: #d97706;
}

.httool-wresult__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: calc(var(--ht-body-size, 14px) * 0.79);
	color: var(--ht-gray-500, #6b7280);
	margin-bottom: 10px;
}

.httool-wresult__meta strong {
	color: var(--ht-gray-800, #1f2937);
}

.httool-wresult__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.httool-wresult__tag {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 8px;
	background: var(--ht-gray-100, #f3f4f6);
	border-radius: 12px;
	font-size: calc(var(--ht-body-size, 14px) * 0.71);
	font-weight: 500;
	color: var(--ht-gray-600, #4b5563);
}

.httool-wresult__actions {
	display: flex;
	gap: 8px;
}


/* ====================================================================
 * SEARCH
 * ==================================================================== */

.httool-search {
	padding: 24px;
}

.httool-search__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: var(--ht-gray-50, #f9fafb);
	border: 2px solid var(--ht-gray-200, #e5e7eb);
	border-radius: 50px;
	transition: border-color .2s;
	margin-bottom: 16px;
}

.httool-search__bar:focus-within {
	border-color: var(--ht-primary, #054239);
}

.httool-search__icon {
	display: flex;
	color: var(--ht-gray-400, #9ca3af);
	flex-shrink: 0;
}

.httool-search__input {
	flex: 1;
	border: none;
	background: transparent;
	font-size: calc(var(--ht-body-size, 14px) * 1);
	color: var(--ht-gray-800, #1f2937);
	outline: none;
	font-family: inherit;
}

.httool-search__count {
	font-size: calc(var(--ht-body-size, 14px) * 0.79);
	font-weight: 600;
	color: var(--ht-gray-400, #9ca3af);
	flex-shrink: 0;
}

.httool-search__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.httool-search__filters {
	display: flex;
	gap: 10px;
}

.httool-search__filters .httool-select {
	width: auto;
	min-width: 140px;
}

.httool-search__advanced {
	background: var(--ht-gray-50, #f9fafb);
	border: 1px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius, 12px);
	padding: 20px;
	margin-bottom: 20px;
}

.httool-search__adv-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 14px;
}

.httool-search__adv-group label:first-child {
	display: block;
	font-size: calc(var(--ht-body-size, 14px) * 0.86);
	font-weight: 600;
	color: var(--ht-gray-700, #374151);
	margin-bottom: 8px;
}

.httool-search__results {
	min-height: 200px;
}

/* Search result card */
.httool-scard {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px;
	border: 1px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius-sm, 8px);
	margin-bottom: 10px;
	transition: border-color var(--ht-transition, .2s ease), box-shadow var(--ht-transition, .2s ease);
	animation: httoolFadeIn .3s ease;
}

.httool-scard:hover {
	border-color: var(--ht-primary, #054239);
	box-shadow: var(--ht-shadow, 0 1px 3px rgba(0,0,0,.06));
}

.httool-scard__logo {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	object-fit: contain;
	background: var(--ht-gray-50, #f9fafb);
	flex-shrink: 0;
}

.httool-scard__body {
	flex: 1;
	min-width: 0;
}

.httool-scard__top {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.httool-scard__name {
	font-size: calc(var(--ht-body-size, 14px) * 1);
	font-weight: 700;
	color: var(--ht-gray-900, #111827);
}

.httool-scard__type {
	font-size: calc(var(--ht-body-size, 14px) * 0.71);
	font-weight: 500;
	padding: 1px 8px;
	background: var(--ht-gray-100, #f3f4f6);
	border-radius: 10px;
	color: var(--ht-gray-500, #6b7280);
}

.httool-scard__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: calc(var(--ht-body-size, 14px) * 0.79);
	color: var(--ht-gray-500, #6b7280);
	margin-bottom: 8px;
}

.httool-scard__meta strong {
	color: var(--ht-gray-800, #1f2937);
}

.httool-scard__features {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.httool-scard__feat {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 8px;
	font-size: calc(var(--ht-body-size, 14px) * 0.71);
	font-weight: 500;
	border-radius: 10px;
}

.httool-scard__feat--yes {
	background: var(--ht-success-light, #dcfce7);
	color: var(--ht-success-dark, #15803d);
}

.httool-scard__actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
	align-self: center;
}


/* ====================================================================
 * STACK BUILDER
 * ==================================================================== */

.httool-stack {
	padding: 24px;
}

.httool-stack__builder {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-bottom: 24px;
}

.httool-stack__cat-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: calc(var(--ht-body-size, 14px) * 1);
	font-weight: 700;
	color: var(--ht-gray-800, #1f2937);
	margin: 0 0 12px;
}

.httool-stack__cat-title svg {
	color: var(--ht-primary, #054239);
}

.httool-stack__items {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.httool-stack__summary {
	background: var(--ht-gray-50, #f9fafb);
	border: 1px solid var(--ht-gray-200, #e5e7eb);
	border-radius: var(--ht-radius, 12px);
	padding: 20px;
	margin-bottom: 20px;
}

.httool-stack__summary-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: calc(var(--ht-body-size, 14px) * 1);
	font-weight: 700;
	color: var(--ht-gray-800, #1f2937);
	margin: 0 0 14px;
}

.httool-stack__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	background: var(--ht-primary, #054239);
	color: #fff;
	border-radius: 11px;
	font-size: calc(var(--ht-body-size, 14px) * 0.71);
	font-weight: 700;
}

.httool-stack__selected {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
	min-height: 40px;
}

.httool-stack__empty {
	font-size: calc(var(--ht-body-size, 14px) * 0.86);
	color: var(--ht-gray-400, #9ca3af);
	margin: 0;
}

.httool-stack__tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	background: var(--ht-primary, #054239);
	color: #fff;
	border-radius: 16px;
	font-size: calc(var(--ht-body-size, 14px) * 0.79);
	font-weight: 600;
}

.httool-stack__tag-remove {
	display: flex;
	align-items: center;
	cursor: pointer;
	opacity: .7;
	transition: opacity .2s;
	background: none;
	border: none;
	color: inherit;
	padding: 0;
	font-size: 16px;
	line-height: 1;
}

.httool-stack__tag-remove:hover {
	opacity: 1;
}


/* ====================================================================
 * CHECKLIST
 * ==================================================================== */

.httool-checklist {
	padding: 24px;
}

.httool-check-section {
	margin-bottom: 28px;
}

.httool-check-section__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: calc(var(--ht-body-size, 14px) * 1.07);
	font-weight: 700;
	color: var(--ht-gray-800, #1f2937);
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--ht-gray-200, #e5e7eb);
}

.httool-check-section__title svg {
	color: var(--ht-primary, #054239);
}

.httool-check-section__items {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.httool-check-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px;
	background: var(--ht-gray-50, #f9fafb);
	border-radius: var(--ht-radius-sm, 8px);
}

.httool-check-item__label {
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
	font-weight: 600;
	color: var(--ht-gray-700, #374151);
	flex-shrink: 0;
	min-width: 180px;
}

.httool-check-item .httool-input,
.httool-check-item .httool-select {
	max-width: 300px;
}

.httool-check-item .httool-multi-select {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.httool-checklist__actions {
	text-align: center;
	padding: 20px 0;
	border-top: 1px solid var(--ht-gray-200, #e5e7eb);
}


/* ====================================================================
 * CHECKLIST OUTPUT
 * ==================================================================== */

.httool-checklist__output {
	margin-top: 24px;
}

.httool-output {
	background: #fff;
	border: 2px solid var(--ht-primary, #054239);
	border-radius: var(--ht-radius, 12px);
	overflow: hidden;
}

.httool-output__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	background: var(--ht-gray-50, #f9fafb);
	border-bottom: 1px solid var(--ht-gray-200, #e5e7eb);
}

.httool-output__title {
	font-size: calc(var(--ht-body-size, 14px) * 1.14);
	font-weight: 700;
	color: var(--ht-gray-900, #111827);
	margin: 0;
}

.httool-output__actions {
	display: flex;
	gap: 8px;
}

.httool-output__body {
	padding: 24px;
}

.httool-output__section {
	margin-bottom: 20px;
}

.httool-output__section-title {
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
	font-weight: 700;
	color: var(--ht-primary, #054239);
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.httool-output__row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--ht-gray-100, #f3f4f6);
	font-size: calc(var(--ht-body-size, 14px) * 0.93);
}

.httool-output__row:last-child {
	border-bottom: none;
}

.httool-output__label {
	color: var(--ht-gray-600, #4b5563);
}

.httool-output__value {
	font-weight: 600;
	color: var(--ht-gray-900, #111827);
}

.httool-output__value--yes {
	color: var(--ht-success, #16a34a);
}

.httool-output__value--no {
	color: var(--ht-gray-400, #9ca3af);
}

.httool-output__matching {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 2px solid var(--ht-gray-200, #e5e7eb);
}

.httool-output__matching-title {
	font-size: calc(var(--ht-body-size, 14px) * 1);
	font-weight: 700;
	color: var(--ht-gray-800, #1f2937);
	margin: 0 0 14px;
}


/* ====================================================================
 * NO RESULTS
 * ==================================================================== */

.httool-no-results {
	text-align: center;
	padding: 40px 20px;
	color: var(--ht-gray-400, #9ca3af);
}

.httool-no-results svg {
	opacity: .4;
	margin-bottom: 12px;
}

.httool-no-results p {
	margin: 0;
	font-size: calc(var(--ht-body-size, 14px) * 1);
}

.httool-not-found {
	text-align: center;
	padding: 60px 20px;
}


/* ====================================================================
 * RESPONSIVE
 * ==================================================================== */

@media (max-width: 1024px) {
	.httool-layout {
		grid-template-columns: 1fr 260px;
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.httool-layout {
		grid-template-columns: 1fr;
	}

	.httool-sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
		gap: 16px;
	}

	.httool-sidebar-card {
		margin-bottom: 0;
	}

	.httool-index-grid {
		grid-template-columns: 1fr;
	}

	.httool-hero {
		padding: 36px 16px 28px;
	}

	.httool-hero__title {
		font-size: calc(var(--ht-body-size, 14px) * 1.7);
	}

	.httool-wstep__options--grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.httool-search__adv-grid {
		grid-template-columns: 1fr;
	}

	.httool-search__controls {
		flex-direction: column;
		align-items: stretch;
	}

	.httool-search__filters {
		flex-direction: column;
	}

	.httool-search__filters .httool-select {
		width: 100%;
	}

	.httool-check-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.httool-check-item .httool-input,
	.httool-check-item .httool-select {
		max-width: 100%;
	}

	.httool-scard {
		flex-direction: column;
	}

	.httool-scard__actions {
		align-self: stretch;
	}

	.httool-scard__actions .httool-btn {
		flex: 1;
	}

	.httool-wresult {
		flex-wrap: wrap;
	}
}

@media (max-width: 480px) {
	.httool-page-wrap {
		padding: 0 0 24px;
	}

	.httool-hero {
		padding: 28px 14px 22px;
	}

	.httool-wstep__options--grid {
		grid-template-columns: 1fr;
	}

	.httool-wizard {
		padding: 20px 16px;
	}

	.httool-search,
	.httool-stack,
	.httool-checklist {
		padding: 16px;
	}

	.httool-card {
		padding: 20px;
	}

	.httool-output__actions {
		flex-direction: column;
	}

	.httool-sidebar {
		grid-template-columns: 1fr;
	}
}

@media print {
	.httool-sidebar,
	.httool-checklist__actions,
	.httool-output__actions,
	.httool-wizard__nav,
	.httool-btn {
		display: none !important;
	}

	.httool-output {
		border: 1px solid #ccc;
	}

	.httool-output__body {
		padding: 16px;
	}
}
