.ha-body-container {
	background: #d8e6f4;
	min-height: 100vh;
	padding: 1rem;
	line-height: 1.5;
	padding-top: 36px;
	padding-bottom: 36px;
}

@media (max-width: 480px) {
	.ha-body-container {
		padding-top: 70px;
	}
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

input[type="number"] {
	-moz-appearance: textfield;
}

.calculator-container {
	max-width: 1170px;
	margin: 0 auto;
}

.calculator-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.header-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.brand-icon {
	padding: 0.625rem;
	border-radius: 0.75rem;
	background: #3c82f6;
}

.brand-icon svg {
	width: 30px;
	height: 30px;
	stroke: white;
}

.brand-text h1 {
	font-size: clamp(1.8rem, 4vw, 2rem);
	font-weight: 700;
	line-height: 1;
}

.brand-text h1 .highlight {
	background: #3c82f6;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.brand-text p {
	font-size: 0.75rem;
	color: #94a3b8;
}

.header-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: 0.75rem;
	background: #1e293b;
	border: 1px solid #334155;
	color: white;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.2s;
}

.header-btn:hover {
	background: #334155;
}

.header-btn svg {
	width: 16px;
	height: 16px;
}

.header-btn .ha-blk-wht-frst,
.header-btn .ha-blk-wht-scnd {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Main Grid */
.main-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

@media (max-width: 900px) {
	.main-grid {
		grid-template-columns: 1fr;
	}
}

/* Sections */
.section {
	border-radius: 1.25rem;
	border: 1px solid;
	overflow: hidden;
	backdrop-filter: blur(8px);
	margin-bottom: 1rem;
}

.section.indigo {
	background: #fff;
	border-color: rgba(99, 102, 241, 0.25);
}

.section.emerald {
	background: #fff;
	border-color: rgba(16, 185, 129, 0.25);
}

.section.rose {
	background: #fff;
	border-color: rgba(244, 63, 94, 0.25);
}

.section.slate {
	background: #fff;
	border-color: rgba(71, 85, 105, 0.5);
}

.section-header {
	padding: 1rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	border-bottom: 1px solid rgba(71, 85, 105, 0.3);
	cursor: pointer;
}

.section-header:hover {
	background: rgba(255, 255, 255, 0.02);
}

.section-icon {
	padding: 0.5rem;
	border-radius: 0.5rem;
}

.section-icon svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
}

.section.indigo .section-icon {
	background: rgba(99, 102, 241, 0.2);
	color: #818cf8;
}

.section.emerald .section-icon {
	background: rgba(16, 185, 129, 0.2);
	color: #3c82f6;
}

.section.rose .section-icon {
	background: rgba(244, 63, 94, 0.2);
	color: #fb7185;
}

.section.slate .section-icon {
	background: rgba(100, 116, 139, 0.2);
	color: #94a3b8;
}

.section-title {
	font-weight: 600;
	flex: 1;
}

.section-chevron {
	color: #94a3b8;
	transition: transform 0.3s;
}

.section-chevron svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
}

.section.collapsed .section-chevron {
	transform: rotate(-90deg);
}

.section-content {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.section.collapsed .section-content {
	display: none;
}

/* Inputs */
.input-group {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.input-label {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 500;
}

.tooltip-trigger {
	color: #94a3b8;
	cursor: help;
	position: relative;
	display: inline-flex;
}

.tooltip-trigger:hover {
	color: #3c82f6;
}

.tooltip-trigger svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
}

.tooltip-content {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: 0.5rem;
	padding: 0.75rem;
	background: #1e293b;
	border: 1px solid #334155;
	border-radius: 0.5rem;
	font-size: 0.75rem;
	font-weight: 400;
	color: white;
	width: 220px;
	line-height: 1.5;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
	z-index: 100;
	display: none;
}

.tooltip-trigger:hover .tooltip-content {
	display: block;
}

.input-wrapper {
	position: relative;
}

.input-prefix,
.input-suffix {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	font-size: 0.875rem;
	pointer-events: none;
}

.input-prefix {
	left: 0.75rem;
}

.input-suffix {
	right: 0.75rem;
}

.input-field {
	width: 100%;
	padding: 0.625rem 0.875rem;
	border: 1px solid rgba(71, 85, 105, 0.5);
	border-radius: 0.625rem;
	font-size: 0.9375rem;
	font-family: inherit;
	transition: all 0.2s;
}

.input-field:focus {
	outline: none;
	border-color: #3c82f6;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.input-field.has-prefix {
	padding-left: 1.75rem;
}

.input-field.has-suffix {
	padding-right: 2.5rem;
}

.input-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

/* Verdict Hero */
.verdict-hero {
	border-radius: 1.5rem;
	padding: 1.5rem;
	text-align: center;
	position: relative;
	overflow: hidden;
	margin-bottom: 1rem;
}

.verdict-hero.buy {
	background: #fff;
	border: 2px solid rgba(16, 185, 129, 0.4);
}

.verdict-hero.rent {
	background: #fff;
	border: 2px solid rgba(244, 63, 94, 0.4);
}

.verdict-hero.neutral {
	background: #fff;
	border: 2px solid rgba(99, 102, 241, 0.4);
}

.verdict-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.verdict-hero.buy .verdict-badge {
	background: rgba(16, 185, 129, 0.2);
	color: #3c82f6;
}

.verdict-hero.rent .verdict-badge {
	background: rgba(244, 63, 94, 0.2);
	color: #fb7185;
}

.verdict-hero.neutral .verdict-badge {
	background: rgba(99, 102, 241, 0.2);
	color: #818cf8;
}

.verdict-title {
	font-size: 1.75rem;
	font-weight: 800;
	margin-bottom: 0.5rem;
}

.verdict-hero.buy .verdict-title {
	color: #3c82f6;
}

.verdict-hero.rent .verdict-title {
	color: #fb7185;
}

.verdict-hero.neutral .verdict-title {
	color: #818cf8;
}

.verdict-subtitle {
	font-size: 0.9375rem;
	color: #a6afba;
}

.verdict-savings {
	font-size: 1.125rem;
	font-weight: 700;
	margin-top: 0.75rem;
}

.verdict-hero.buy .verdict-savings {
	color: #3c82f6;
}

.verdict-hero.rent .verdict-savings {
	color: #fb7185;
}

/* Comparison Cards */
.comparison-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}

.comparison-card {
	border-radius: 1rem;
	padding: 1.25rem;
	text-align: center;
}

.comparison-card.buy {
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
	border: 1px solid rgba(16, 185, 129, 0.3);
}

.comparison-card.rent {
	background: linear-gradient(135deg, rgba(244, 63, 94, 0.1) 0%, rgba(225, 29, 72, 0.05) 100%);
	border: 1px solid rgba(244, 63, 94, 0.3);
}

.comparison-card.winner {
	border-width: 2px;
	transform: scale(1.02);
}

.comparison-card-icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.comparison-card-title {
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.comparison-card-value {
	font-size: 1.5rem;
	font-weight: 800;
	margin-bottom: 0.25rem;
}

.comparison-card.buy .comparison-card-value {
	color: #3c82f6;
}

.comparison-card.rent .comparison-card-value {
	color: #fb7185;
}

.comparison-card-label {
	font-size: 0.6875rem;
	color: #64748b;
	text-transform: uppercase;
}

.winner-tag {
	display: inline-block;
	background: linear-gradient(90deg, #10b981, #3c82f6);
	color: white;
	font-size: 0.625rem;
	font-weight: 700;
	padding: 0.25rem 0.5rem;
	border-radius: 9999px;
	margin-top: 0.5rem;
}

/* Timeline Chart */
.timeline-section {
	margin-top: 1rem;
}

.timeline-title {
	font-size: 0.875rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.timeline-chart {
	background: #a8bbda80;
	border-radius: 0.75rem;
	padding: 1rem;
	position: relative;
	height: 200px;
}

.timeline-bars {
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
	height: 150px;
	gap: 0.25rem;
}

.timeline-bar-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
}

.timeline-bar-container {
	display: flex;
	gap: 2px;
	align-items: flex-end;
	height: 130px;
}

.timeline-bar {
	width: 12px;
	border-radius: 2px 2px 0 0;
	transition: height 0.3s;
}

.timeline-bar.buy {
	background: linear-gradient(180deg, #3c82f6, #10b981);
}

.timeline-bar.rent {
	background: linear-gradient(180deg, #fb7185, #f43f5e);
}

.timeline-bar-label {
	font-size: 0.625rem;
	margin-top: 0.25rem;
}

.timeline-legend {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin-top: 0.75rem;
}

.timeline-legend-item {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.6875rem;
	color: #94a3b8;
}

.timeline-legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 2px;
}

.timeline-legend-dot.buy {
	background: #3c82f6;
}

.timeline-legend-dot.rent {
	background: #fb7185;
}

/* Breakeven indicator */
.breakeven-marker {
	position: absolute;
	top: 10px;
	background: #fff;
	padding: 0.25rem 0.5rem;
	border-radius: 0.375rem;
	font-size: 0.625rem;
	font-weight: 600;
	white-space: nowrap;
}

.breakeven-marker::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 4px solid transparent;
	border-top-color: #fff;
}

/* Summary Stats */
.summary-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	margin-top: 1rem;
	margin-bottom: 1rem;
}

@media (max-width: 500px) {
	.summary-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.summary-card {
	background: #fff;
	border: 1px solid rgba(71, 85, 105, 0.3);
	border-radius: 0.75rem;
	padding: 0.75rem;
	text-align: center;
}

.summary-card-label {
	font-size: 0.6875rem;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.25rem;
}

.summary-card-value {
	font-size: 1rem;
	font-weight: 700;
}

.summary-card-value.positive {
	color: #3c82f6;
}

.summary-card-value.negative {
	color: #fb7185;
}

/* Cost Breakdown */
.breakdown-section {
	margin-top: 1rem;
}

.breakdown-title {
	font-size: 0.8125rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.breakdown-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.breakdown-list {
	background: #a8bbda80;
	border-radius: 0.5rem;
	padding: 0.75rem;
}

.breakdown-list-title {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

.breakdown-list.buy .breakdown-list-title {
	color: #3c82f6;
}

.breakdown-list.rent .breakdown-list-title {
	color: #fb7185;
}

.breakdown-item {
	display: flex;
	justify-content: space-between;
	font-size: 0.75rem;
	padding: 0.25rem 0;
}

.breakdown-item.total {
	border-top: 1px solid rgba(71, 85, 105, 0.3);
	margin-top: 0.25rem;
	padding-top: 0.5rem;
	font-weight: 600;
}

/* Full Width */
.full-width {
	grid-column: 1 / -1;
}

/* Modal */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.modal-overlay.open {
	display: flex;
}

.modal-content {
	background: #fff;
	border: 1px solid #334155;
	border-radius: 1.5rem;
	max-width: 600px;
	width: 100%;
	max-height: 85vh;
	overflow: hidden;
}

.modal-header {
	position: sticky;
	top: 0;
	background: #fff;
	border-bottom: 1px solid #334155;
	padding: 1rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.modal-header h2 {
	font-size: 1.25rem;
	font-weight: 700;
}

.modal-close {
	padding: 0.5rem;
	border-radius: 0.75rem;
	background: transparent;
	border: none;
	color: #94a3b8;
	cursor: pointer;
}

.modal-close:hover {
	background: #1e293b;
	color: white;
}

.modal-close svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
}

.modal-body {
	overflow-y: auto;
	max-height: calc(85vh - 70px);
	padding: 1.5rem;
}

.glossary-term {
	background: #d8e6f4;
	border: 1px solid rgba(71, 85, 105, 0.5);
	border-radius: 0.75rem;
	padding: 1rem;
	margin-bottom: 1rem;
}

.glossary-term h3 {
	font-weight: 600;
	color: #000;
	margin-bottom: 0.5rem;
}

.glossary-term p {
	font-size: 0.875rem;
	color: #72767a;
	line-height: 1.6;
}