.hap-profile-app {
	--hap-cta: #ff5a5f;
	--hap-cta-dark: #e14b50;
	--hap-text: #172033;
	--hap-text-strong: #111827;
	--hap-text-muted: #667085;
	--hap-bg: #f6f8fb;
	--hap-card-bg: #ffffff;
	--hap-border: #e5e7eb;
	--hap-border-strong: #d7dde5;
	--hap-shadow: 0 4px 6px -1px rgba(17, 24, 39, 0.05), 0 2px 4px -1px rgba(17, 24, 39, 0.03);
	--hap-shadow-soft: 0 1px 3px 0 rgba(17, 24, 39, 0.05), 0 1px 2px 0 rgba(17, 24, 39, 0.03);
	--hap-shadow-hover: 0 10px 15px -3px rgba(17, 24, 39, 0.08), 0 4px 6px -2px rgba(17, 24, 39, 0.04);
	--hap-radius-lg: 16px;
	--hap-radius-md: 12px;
	--hap-radius-sm: 8px;
	--hap-success-bg: #ecfdf3;
	--hap-success-text: #027a48;
	--hap-warning-bg: #fff7ed;
	--hap-warning-text: #c2410c;
	--hap-optional-bg: #fff1f2;
	--hap-optional-text: #be123c;
	--hap-tool-bg: #eef2ff;
	--hap-tool-text: #4338ca;
	background: #f9fafb;
	padding: 28px 16px 56px;
	color: var(--hap-text);
}

.hap-profile-app *,
.hap-profile-app *::before,
.hap-profile-app *::after {
	box-sizing: border-box;
}

.hap-profile-app .hap-dashboard,
.hap-profile-app .hap-login-prompt,
.hap-profile-app .hap-auth-wrap {
	max-width: 1180px;
	margin: 0 auto;
}

.hap-profile-app .hap-dashboard {
	display: grid;
	gap: 24px;
}

.hap-profile-app .hap-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255, 90, 95, 0.10);
	color: var(--hap-cta);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hap-profile-app .hap-hero-card,
.hap-profile-app .hap-stat-card,
.hap-profile-app .hap-section-card,
.hap-profile-app .hap-profile-form-card,
.hap-profile-app .hap-login-card,
.hap-profile-app .hap-missing-card,
.hap-profile-app .hap-share-modal,
.hap-profile-app .hap-notice {
	background: var(--hap-card-bg);
	border: 1px solid var(--hap-border);
	border-radius: var(--hap-radius-lg);
	box-shadow: var(--hap-shadow);
}

.hap-profile-app .hap-hero-card {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.95fr);
	gap: 24px;
	padding: 28px;
}

.hap-profile-app .hap-hero-main {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.hap-profile-app .hap-hero-avatar-wrap {
	flex: 0 0 auto;
}

.hap-profile-app .hap-avatar {
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	border: 4px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 14px 30px rgba(255, 90, 95, 0.18);
}

.hap-profile-app .hap-hero-copy {
	display: grid;
	gap: 14px;
	flex: 1;
}

.hap-profile-app .hap-hero-title,
.hap-profile-app .hap-section-title,
.hap-profile-app .hap-profile-form-title,
.hap-profile-app .hap-login-card h2,
.hap-profile-app .hap-share-modal h3 {
	margin: 0;
	color: var(--hap-text-strong);
}

.hap-profile-app .hap-hero-title {
	font-size: clamp(28px, 4vw, 38px);
	line-height: 1.1;
}

.hap-profile-app .hap-hero-subtitle,
.hap-profile-app .hap-section-copy,
.hap-profile-app .hap-profile-form-copy,
.hap-profile-app .hap-login-card p,
.hap-profile-app .hap-share-desc {
	margin: 0;
	color: var(--hap-text-muted);
	line-height: 1.6;
}

.hap-profile-app .hap-progress-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.hap-profile-app .hap-progress-meta strong,
.hap-profile-app .hap-hero-note strong,
.hap-profile-app .hap-stat-value,
.hap-profile-app .hap-hero-metric-value {
	display: block;
	color: var(--hap-text-strong);
}

.hap-profile-app .hap-progress-meta span,
.hap-profile-app .hap-hero-note span {
	font-size: 14px;
	color: var(--hap-text-muted);
}

.hap-profile-app .hap-progress-chip {
	padding: 10px 12px;
	border-radius: 14px;
	background: #fff4f4;
	color: var(--hap-cta);
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}

.hap-profile-app .hap-progress-bar {
	width: 100%;
	height: 12px;
	border-radius: 999px;
	background: #edf1f6;
	overflow: hidden;
}

.hap-profile-app .hap-progress-fill {
	height: 100%;
	min-width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, #ff5a5f 0%, #ff8a7d 100%);
	transition: width 0.35s ease;
}

.hap-profile-app .hap-hero-actions,
.hap-profile-app .hap-form-footer,
.hap-profile-app .hap-share-url-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.hap-profile-app .hap-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.hap-profile-app .hap-btn:hover {
	transform: translateY(-1px);
}

.hap-profile-app .hap-btn-primary {
	background: var(--hap-cta);
	color: #fff;
	box-shadow: 0 2px 4px rgba(255, 90, 95, 0.2);
}

.hap-profile-app .hap-btn-primary:hover {
	background: var(--hap-cta-dark);
	color: #fff;
}

.hap-profile-app .hap-btn-secondary,
.hap-profile-app .hap-btn-tertiary {
	background: #fff;
	border-color: var(--hap-border);
	color: var(--hap-text-strong);
}

.hap-profile-app .hap-btn-secondary:hover,
.hap-profile-app .hap-btn-tertiary:hover {
	border-color: #ffc8ca;
	color: var(--hap-cta);
}

.hap-profile-app .hap-btn-danger {
	background: #fff;
	border-color: #fecaca;
	color: #b91c1c;
}

.hap-profile-app .hap-btn-danger:hover {
	border-color: #ef4444;
	color: #b91c1c;
}

.hap-profile-app .hap-btn-full,
.hap-profile-app .hap-btn-lg {
	width: 100%;
}

.hap-profile-app .hap-hero-aside {
	display: grid;
	gap: 18px;
	padding: 22px;
	border-radius: var(--hap-radius-md);
	background: linear-gradient(180deg, #fff 0%, #fbfbfd 100%);
	border: 1px solid var(--hap-border);
	box-shadow: var(--hap-shadow-soft);
}

.hap-profile-app .hap-hero-metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.hap-profile-app .hap-hero-metric,
.hap-profile-app .hap-stat-card {
	padding: 18px;
	border-radius: var(--hap-radius-md);
	background: #f8fafc;
	border: 1px solid #edf1f5;
}

.hap-profile-app .hap-hero-metric-label,
.hap-profile-app .hap-stat-label {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--hap-text-muted);
}

.hap-profile-app .hap-hero-metric-value,
.hap-profile-app .hap-stat-value {
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1;
}

.hap-profile-app .hap-hero-note {
	padding: 18px;
	border-radius: var(--hap-radius-md);
	background: #172033;
	color: #fff;
}

.hap-profile-app .hap-hero-note strong,
.hap-profile-app .hap-hero-note span {
	color: #fff;
}

.hap-profile-app .hap-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.hap-profile-app .hap-tone-accent {
	background: linear-gradient(180deg, #fff 0%, #fff6f6 100%);
}

.hap-profile-app .hap-tone-success {
	background: linear-gradient(180deg, #fff 0%, #f3fff7 100%);
}

.hap-profile-app .hap-tone-warning {
	background: linear-gradient(180deg, #fff 0%, #fff8f1 100%);
}

.hap-profile-app .hap-tone-neutral {
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.hap-profile-app .hap-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
}

.hap-profile-app .hap-section-copy {
	max-width: 520px;
}

.hap-profile-app .hap-sections-area {
	display: grid;
	gap: 18px;
}

.hap-profile-app .hap-sections-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.hap-profile-app .hap-section-card {
	padding: 22px;
	display: grid;
	gap: 18px;
}

.hap-profile-app .hap-section-card-top {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.hap-profile-app .hap-section-card-icon,
.hap-profile-app .hap-share-check-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 16px;
	background: #fff1f2;
	color: var(--hap-cta);
	font-size: 14px;
	font-weight: 800;
	flex: 0 0 auto;
}

.hap-profile-app .hap-section-card-head {
	display: grid;
	gap: 6px;
}

.hap-profile-app .hap-section-card-title,
.hap-profile-app .hap-form-step-head h4,
.hap-profile-app .hap-missing-card h3 {
	margin: 0;
	font-size: 22px;
	color: var(--hap-text-strong);
}

.hap-profile-app .hap-section-card-copy,
.hap-profile-app .hap-form-step-head p,
.hap-profile-app .hap-missing-card p {
	margin: 0;
	color: var(--hap-text-muted);
	line-height: 1.6;
}

.hap-profile-app .hap-section-card-stats,
.hap-profile-app .hap-missing-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hap-profile-app .hap-status-pill,
.hap-profile-app .hap-chip,
.hap-profile-app .hap-sensitive-tag,
.hap-profile-app .hap-missing-summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.hap-profile-app .hap-chip {
	background: #f8fafc;
	color: var(--hap-text);
	border: 1px solid var(--hap-border);
}

.hap-profile-app .hap-ready {
	background: var(--hap-success-bg);
	color: var(--hap-success-text);
}

.hap-profile-app .hap-missing {
	background: var(--hap-warning-bg);
	color: var(--hap-warning-text);
}

.hap-profile-app .hap-optional {
	background: var(--hap-optional-bg);
	color: var(--hap-optional-text);
}

.hap-profile-app .hap-tool {
	background: var(--hap-tool-bg);
	color: var(--hap-tool-text);
}

.hap-profile-app .hap-section-progress {
	display: grid;
	gap: 8px;
}

.hap-profile-app .hap-section-progress-label {
	font-size: 13px;
	color: var(--hap-text-muted);
}

.hap-profile-app .hap-module-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.hap-profile-app .hap-module-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-top: 1px solid #eff2f5;
}

.hap-profile-app .hap-module-item:first-child {
	border-top: 0;
	padding-top: 0;
}

.hap-profile-app .hap-module-main {
	flex: 1;
	min-width: 0;
}

.hap-profile-app .hap-module-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.hap-profile-app .hap-module-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--hap-text-strong);
}

.hap-profile-app .hap-module-hint {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--hap-text-muted);
	line-height: 1.5;
}

.hap-profile-app .hap-module-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 12px;
	background: #fff6f6;
	color: var(--hap-cta);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid #ffd6d8;
	white-space: nowrap;
}

.hap-profile-app .hap-module-action.is-static {
	background: #f9fafb;
	border-color: var(--hap-border);
	color: var(--hap-text-muted);
}

.hap-profile-app .hap-missing-card {
	padding: 24px;
	display: grid;
	gap: 18px;
}

.hap-profile-app .hap-missing-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.hap-profile-app .hap-missing-summary {
	background: #fff4e8;
	color: var(--hap-warning-text);
}

.hap-profile-app .hap-missing-module-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.hap-profile-app .hap-missing-module-item {
	padding: 16px;
	border-radius: 18px;
	background: #fffaf5;
	border: 1px solid #fde7cf;
}

.hap-profile-app .hap-missing-module-item strong,
.hap-profile-app .hap-missing-module-item span {
	display: block;
}

.hap-profile-app .hap-missing-module-item strong {
	margin-bottom: 6px;
	color: var(--hap-text-strong);
}

.hap-profile-app .hap-missing-module-item span {
	font-size: 13px;
	color: var(--hap-text-muted);
	line-height: 1.5;
}

.hap-profile-app .hap-profile-form-section {
	display: grid;
	gap: 18px;
}

.hap-profile-app .hap-profile-form-card {
	padding: 28px;
	display: grid;
	gap: 20px;
}

.hap-profile-app .hap-profile-form-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.hap-profile-app .hap-profile-form-side-note {
	padding: 12px 14px;
	border-radius: 16px;
	background: #f8fafc;
	border: 1px solid var(--hap-border);
	color: var(--hap-text-muted);
	font-size: 14px;
	max-width: 260px;
}

.hap-profile-app .hap-notice {
	padding: 16px 18px;
	border-radius: 18px;
	font-size: 14px;
	box-shadow: none;
}

.hap-profile-app .hap-notice-success {
	background: #effcf4;
	border-color: #bbf7d0;
	color: #166534;
}

.hap-profile-app .hap-notice-error {
	background: #fff1f2;
	border-color: #fecdd3;
	color: #be123c;
}

.hap-profile-app .hap-form-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.hap-profile-app .hap-form-tab {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	text-align: left;
	background: #f8fafc;
	border: 1px solid var(--hap-border);
	border-radius: 18px;
	cursor: pointer;
	color: var(--hap-text);
}

.hap-profile-app .hap-form-tab.active {
	background: #fff4f4;
	border-color: #ffc8ca;
	box-shadow: 0 10px 24px rgba(255, 90, 95, 0.10);
}

.hap-profile-app .hap-form-tab-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--hap-border);
	color: var(--hap-cta);
	font-weight: 800;
	flex: 0 0 auto;
}

.hap-profile-app .hap-form-tab-copy {
	display: grid;
	gap: 4px;
}

.hap-profile-app .hap-form-tab-copy strong {
	font-size: 15px;
}

.hap-profile-app .hap-form-tab-copy small {
	color: var(--hap-text-muted);
	line-height: 1.5;
}

.hap-profile-app .hap-form-step {
	display: none;
	gap: 18px;
}

.hap-profile-app .hap-form-step.active {
	display: grid;
}

.hap-profile-app .hap-form-step-head {
	display: grid;
	gap: 6px;
}

.hap-profile-app .hap-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.hap-profile-app .hap-form-field {
	display: grid;
	gap: 8px;
}

.hap-profile-app .hap-field-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--hap-text-strong);
}

.hap-profile-app .hap-req-star {
	color: var(--hap-cta);
}

.hap-profile-app .hap-sensitive-tag {
	background: #f8fafc;
	color: var(--hap-text-muted);
	border: 1px solid var(--hap-border);
	padding: 5px 10px;
	font-size: 12px;
}

.hap-profile-app .hap-input,
.hap-profile-app .hap-select,
.hap-profile-app .hap-share-url-row input {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--hap-border);
	border-radius: 12px;
	background: #fff;
	color: var(--hap-text-strong);
	font-size: 15px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hap-profile-app .hap-input:focus,
.hap-profile-app .hap-select:focus,
.hap-profile-app .hap-share-url-row input:focus {
	outline: none;
	border-color: var(--hap-cta);
	box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.12);
}

.hap-profile-app .hap-field-desc,
.hap-profile-app .hap-save-msg {
	font-size: 13px;
	color: var(--hap-text-muted);
	line-height: 1.5;
}

.hap-profile-app .hap-save-msg.error {
	color: #b91c1c;
}

.hap-profile-app .hap-form-footer {
	padding-top: 8px;
	align-items: center;
}

.hap-profile-app .hap-share-panel {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.hap-profile-app .hap-share-panel.is-open {
	display: flex;
}

.hap-profile-app .hap-share-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.52);
	backdrop-filter: blur(3px);
}

.hap-profile-app .hap-share-modal {
	position: relative;
	z-index: 1;
	width: min(640px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 28px;
	display: grid;
	gap: 18px;
}

.hap-profile-app .hap-share-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 1px solid var(--hap-border);
	background: #fff;
	color: var(--hap-text-muted);
	font-size: 24px;
	cursor: pointer;
}

.hap-profile-app .hap-share-sections {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.hap-profile-app .hap-share-check {
	position: relative;
	display: block;
}

.hap-profile-app .hap-share-check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hap-profile-app .hap-share-check-ui {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border-radius: 18px;
	border: 1px solid var(--hap-border);
	background: #f8fafc;
	cursor: pointer;
	font-weight: 600;
}

.hap-profile-app .hap-share-check input:checked + .hap-share-check-ui {
	border-color: #ffc8ca;
	background: #fff4f4;
}

.hap-profile-app .hap-share-note,
.hap-profile-app .hap-share-existing {
	padding: 16px;
	border-radius: 18px;
}

.hap-profile-app .hap-share-note {
	background: #fff8ec;
	border: 1px solid #fde7cf;
	color: #9a3412;
}

.hap-profile-app .hap-share-existing {
	background: #f8fafc;
	border: 1px solid var(--hap-border);
}

.hap-profile-app .hap-share-result {
	padding: 16px;
	border-radius: 18px;
	background: #effcf4;
	border: 1px solid #bbf7d0;
}

.hap-profile-app .hap-login-prompt {
	padding: 20px 0;
}

.hap-profile-app .hap-login-card {
	max-width: 760px;
	margin: 0 auto;
	padding: 34px;
	display: grid;
	gap: 20px;
	background:
		radial-gradient(circle at top right, rgba(255, 90, 95, 0.12), transparent 32%),
		#ffffff;
}

.hap-profile-app .hap-login-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: 22px;
	background: #fff1f2;
	color: var(--hap-cta);
	font-size: 28px;
	font-weight: 800;
}

.hap-profile-app .hap-login-benefits {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.hap-profile-app .hap-login-benefit {
	padding: 16px;
	border-radius: 18px;
	background: #f8fafc;
	border: 1px solid var(--hap-border);
}

.hap-profile-app .hap-login-benefit strong {
	display: block;
	margin-bottom: 6px;
	color: var(--hap-text-strong);
}

.hap-profile-app .hap-login-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.hap-profile-app .hap-login-register {
	margin: 0;
	font-size: 14px;
	color: var(--hap-text-muted);
}

.hap-profile-app .hap-login-register a {
	color: var(--hap-cta);
	font-weight: 700;
	text-decoration: none;
}

.hap-modal-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.hap-profile-app .hap-hero-card,
	.hap-profile-app .hap-section-heading,
	.hap-profile-app .hap-profile-form-head {
		grid-template-columns: 1fr;
		display: grid;
	}

	.hap-profile-app .hap-stats-grid,
	.hap-profile-app .hap-sections-grid,
	.hap-profile-app .hap-missing-module-list,
	.hap-profile-app .hap-login-benefits {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.hap-profile-app {
		padding: 20px 12px 40px;
	}

	.hap-profile-app .hap-hero-card,
	.hap-profile-app .hap-section-card,
	.hap-profile-app .hap-profile-form-card,
	.hap-profile-app .hap-login-card,
	.hap-profile-app .hap-missing-card,
	.hap-profile-app .hap-share-modal {
		padding: 20px;
		border-radius: 20px;
	}

	.hap-profile-app .hap-hero-main,
	.hap-profile-app .hap-progress-meta,
	.hap-profile-app .hap-missing-card-head {
		flex-direction: column;
	}

	.hap-profile-app .hap-hero-metrics,
	.hap-profile-app .hap-stats-grid,
	.hap-profile-app .hap-sections-grid,
	.hap-profile-app .hap-form-grid,
	.hap-profile-app .hap-form-tabs,
	.hap-profile-app .hap-share-sections,
	.hap-profile-app .hap-missing-module-list,
	.hap-profile-app .hap-login-benefits {
		grid-template-columns: 1fr;
	}

	.hap-profile-app .hap-section-heading,
	.hap-profile-app .hap-profile-form-head {
		display: grid;
	}

	.hap-profile-app .hap-btn,
	.hap-profile-app .hap-module-action,
	.hap-profile-app .hap-share-url-row .hap-btn {
		width: 100%;
	}

.hap-profile-app .hap-module-item,
	.hap-profile-app .hap-hero-actions,
	.hap-profile-app .hap-form-footer,
	.hap-profile-app .hap-login-actions,
	.hap-profile-app .hap-share-url-row {
		flex-direction: column;
	}
}

.hap-profile-app .hap-dashboard-hero,
.hap-profile-app .hap-onboarding-hero,
.hap-profile-app .hap-onboarding-card,
.hap-profile-app .hap-summary-card,
.hap-profile-app .hap-analysis-card,
.hap-profile-app .hap-result-card,
.hap-profile-app .hap-related-tool {
	background: var(--hap-card-bg);
	border: 1px solid var(--hap-border);
	border-radius: var(--hap-radius-lg);
	box-shadow: var(--hap-shadow);
}

.hap-profile-app .hap-summary-layout,
.hap-profile-app .hap-analysis-card-grid,
.hap-profile-app .hap-results-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.hap-profile-app .hap-onboarding-shell,
.hap-profile-app .hap-tools-area,
.hap-profile-app .hap-results-area {
	display: grid;
	gap: 24px;
}

.hap-profile-app .hap-onboarding-hero,
.hap-profile-app .hap-onboarding-card,
.hap-profile-app .hap-summary-card,
.hap-profile-app .hap-analysis-card,
.hap-profile-app .hap-result-card,
.hap-profile-app .hap-related-tool,
.hap-profile-app .hap-progress-card {
	padding: 24px;
}

.hap-profile-app .hap-onboarding-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
	gap: 24px;
}

.hap-profile-app .hap-onboarding-hero-stats,
.hap-profile-app .hap-progress-cluster,
.hap-profile-app .hap-onboarding-panels {
	display: grid;
	gap: 16px;
}

.hap-profile-app .hap-onboarding-stat {
	padding: 18px;
	border-radius: 18px;
	background: #fff7f7;
	border: 1px solid #ffe1e2;
}

.hap-profile-app .hap-onboarding-stat strong,
.hap-profile-app .hap-onboarding-why strong,
.hap-profile-app .hap-related-tool strong,
.hap-profile-app .hap-result-card h3 {
	display: block;
	color: var(--hap-text-strong);
}

.hap-profile-app .hap-onboarding-stat span,
.hap-profile-app .hap-related-tool span,
.hap-profile-app .hap-result-card-copy,
.hap-profile-app .hap-result-card-detail,
.hap-profile-app .hap-analysis-card-message {
	color: var(--hap-text-muted);
	line-height: 1.6;
}

.hap-profile-app .hap-onboarding-steps {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin: 22px 0 10px;
}

.hap-profile-app .hap-onboarding-step-pill {
	display: grid;
	gap: 8px;
	text-align: left;
	padding: 14px 16px;
	border: 1px solid var(--hap-border);
	border-radius: 18px;
	background: #fff;
	cursor: pointer;
}

.hap-profile-app .hap-onboarding-step-pill.is-active {
	border-color: #ffc8ca;
	box-shadow: 0 10px 20px rgba(255, 90, 95, 0.12);
}

.hap-profile-app .hap-onboarding-step-no {
	font-size: 12px;
	font-weight: 700;
	color: var(--hap-cta);
}

.hap-profile-app .hap-onboarding-step-text {
	font-size: 14px;
	font-weight: 600;
	color: var(--hap-text-strong);
}

.hap-profile-app .hap-onboarding-panel {
	display: none;
	gap: 20px;
}

.hap-profile-app .hap-onboarding-panel.is-active {
	display: grid;
}

.hap-profile-app .hap-onboarding-panel-head,
.hap-profile-app .hap-analysis-card-top,
.hap-profile-app .hap-result-card-head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: flex-start;
}

.hap-profile-app .hap-onboarding-why {
	padding: 18px;
	border-radius: 18px;
	background: linear-gradient(180deg, #fff8f8 0%, #fff 100%);
	border: 1px solid #ffe1e2;
}

.hap-profile-app .hap-onboarding-why p,
.hap-profile-app .hap-section-card-copy,
.hap-profile-app .hap-result-card h3,
.hap-profile-app .hap-related-tool strong {
	margin: 0;
}

.hap-profile-app .hap-onboarding-feedback {
	min-height: 24px;
	font-size: 14px;
	font-weight: 600;
}

.hap-profile-app .hap-onboarding-feedback.is-error {
	color: #b91c1c;
}

.hap-profile-app .hap-onboarding-feedback.is-success {
	color: #027a48;
}

.hap-profile-app .hap-onboarding-actions,
.hap-profile-app .hap-analysis-card-actions,
.hap-profile-app .hap-result-card-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.hap-profile-app .hap-summary-card {
	display: grid;
	gap: 16px;
}

.hap-profile-app .hap-suggestion-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hap-profile-app .hap-missing-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: #fff4f4;
	color: #b42318;
	font-size: 13px;
	font-weight: 600;
}

.hap-profile-app .hap-missing-chip.is-ready {
	background: var(--hap-success-bg);
	color: var(--hap-success-text);
}

.hap-profile-app .hap-analysis-card {
	display: grid;
	gap: 16px;
}

.hap-profile-app .hap-analysis-card-head {
	display: grid;
	gap: 6px;
	flex: 1;
}

.hap-profile-app .hap-analysis-card-meta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.hap-profile-app .hap-results-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hap-profile-app .hap-result-card {
	display: grid;
	gap: 16px;
	padding: 24px;
	background: var(--hap-card-bg);
	border: 1px solid var(--hap-border);
	border-radius: var(--hap-radius-md);
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.hap-profile-app .hap-result-card:hover {
	border-color: #cbd5e1;
	box-shadow: var(--hap-shadow-hover);
	transform: translateY(-2px);
}

.hap-profile-app .hap-result-card.is-ready {
	background: #ffffff;
}

.hap-profile-app .hap-result-card.is-locked {
	background: #fafafa;
	opacity: 0.8;
}

/* ── Result card severity modifiers ───────────────────────────────── */
.hap-profile-app .hap-result-card.is-success {
	background: #ffffff;
	border-color: #e5e7eb;
}
.hap-profile-app .hap-result-card.is-success .hap-result-value {
	background: #f0fdf4;
	border-color: #bbf7d0;
	border-radius: var(--hap-radius-sm);
	padding: 16px;
}
.hap-profile-app .hap-result-card.is-success .hap-result-value-text,
.hap-profile-app .hap-result-card.is-success .hap-result-unit { color: #027a48; }

.hap-profile-app .hap-result-card.is-warning {
	background: #ffffff;
	border-color: #e5e7eb;
}
.hap-profile-app .hap-result-card.is-warning .hap-result-value {
	background: #fffbeb;
	border-color: #fcd34d;
	border-radius: var(--hap-radius-sm);
	padding: 16px;
}
.hap-profile-app .hap-result-card.is-warning .hap-result-value-text,
.hap-profile-app .hap-result-card.is-warning .hap-result-unit { color: #92400e; }

.hap-profile-app .hap-result-card.is-danger {
	background: #ffffff;
	border-color: #e5e7eb;
}
.hap-profile-app .hap-result-card.is-danger .hap-result-value {
	background: #fff1f2;
	border-color: #fca5a5;
	border-radius: var(--hap-radius-sm);
	padding: 16px;
}
.hap-profile-app .hap-result-card.is-danger .hap-result-value-text,
.hap-profile-app .hap-result-card.is-danger .hap-result-unit { color: #b91c1c; }

.hap-profile-app .hap-result-card.is-info {
	background: #ffffff;
	border-color: #e5e7eb;
}
.hap-profile-app .hap-result-card.is-info .hap-result-value {
	background: #eff6ff;
	border-color: #93c5fd;
	border-radius: var(--hap-radius-sm);
	padding: 16px;
}
.hap-profile-app .hap-result-card.is-info .hap-result-value-text,
.hap-profile-app .hap-result-card.is-info .hap-result-unit { color: #1e40af; }

.hap-profile-app .hap-result-card.is-mystic {
	background: #ffffff;
	border-color: #e5e7eb;
}
.hap-profile-app .hap-result-card.is-mystic .hap-result-value {
	background: #faf5ff;
	border-color: #d8b4fe;
	border-radius: var(--hap-radius-sm);
	padding: 16px;
}
.hap-profile-app .hap-result-card.is-mystic .hap-result-value-text,
.hap-profile-app .hap-result-card.is-mystic .hap-result-unit { color: #6d28d9; }

.hap-profile-app .hap-result-card.is-neutral {
	background: #ffffff;
	border-color: #e5e7eb;
}
.hap-profile-app .hap-result-card.is-neutral .hap-result-value {
	background: #f8fafc;
	border-color: #cbd5e1;
	border-radius: var(--hap-radius-sm);
	padding: 16px;
}
.hap-profile-app .hap-result-card.is-neutral .hap-result-value-text,
.hap-profile-app .hap-result-card.is-neutral .hap-result-unit { color: #475569; }

/* Featured card severity overrides */
.hap-profile-app .hap-result-card--featured.is-warning {
	border-color: #fde68a;
	box-shadow: 0 18px 40px rgba(146, 64, 14, 0.08);
}
.hap-profile-app .hap-result-card--featured.is-danger {
	border-color: #fecaca;
	box-shadow: 0 18px 40px rgba(185, 28, 28, 0.08);
}
.hap-profile-app .hap-result-card--featured.is-mystic {
	background: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
	border-color: #e9d5ff;
	box-shadow: 0 18px 40px rgba(109, 40, 217, 0.08);
}
.hap-profile-app .hap-result-card--featured.is-info {
	background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
	border-color: #bfdbfe;
	box-shadow: 0 18px 40px rgba(30, 64, 175, 0.07);
}
.hap-profile-app .hap-result-card--featured.is-neutral {
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
	border-color: #e2e8f0;
	box-shadow: 0 18px 40px rgba(71, 85, 105, 0.06);
}

/* Severity status pills */
.hap-profile-app .hap-severity-pill {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 999px;
	white-space: nowrap;
	flex-shrink: 0;
}
.hap-profile-app .hap-severity-pill.ok     { background: #dcfce7; color: #16a34a; }
.hap-profile-app .hap-severity-pill.warn   { background: #fef9c3; color: #a16207; }
.hap-profile-app .hap-severity-pill.danger { background: #fee2e2; color: #b91c1c; }
.hap-profile-app .hap-severity-pill.info   { background: #dbeafe; color: #1e40af; }
.hap-profile-app .hap-severity-pill.mystic { background: #f3e8ff; color: #7c3aed; }

/* Collapsible extra results */
.hap-profile-app .hap-results-collapsible {
	margin-top: 12px;
}
.hap-profile-app .hap-results-collapsible-summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--hap-border);
	background: #fff;
	color: var(--hap-text-muted);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	transition: all 0.18s ease;
}
.hap-profile-app .hap-results-collapsible-summary::-webkit-details-marker { display: none; }
.hap-profile-app .hap-results-collapsible-summary:hover {
	border-color: var(--hap-cta);
	color: var(--hap-cta);
}
.hap-profile-app .hap-results-collapsible[open] .hap-results-collapsible-summary {
	display: none;
}
.hap-profile-app .hap-cat-results-grid--extra {
	margin-top: 12px;
}

.hap-profile-app .hap-result-link {
	color: var(--hap-cta);
	font-weight: 700;
	text-decoration: none;
}

.hap-profile-app .hap-related-tools {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.hap-profile-app .hap-related-tool {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	align-items: center;
	padding: 18px 20px;
}

.hap-profile-app .hap-progress-card {
	padding: 18px;
	border: 1px solid #eef2f7;
	border-radius: 18px;
	background: #f8fafc;
}

.hap-profile-app .hap-onboarding-complete {
	display: grid;
	gap: 18px;
	max-width: 640px;
}

/* Suggestion action rows */
.hap-profile-app .hap-suggestion-action {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 14px;
	background: #fff8f8;
	border: 1px solid #ffe4e4;
	width: 100%;
}

.hap-profile-app .hap-suggestion-action.is-complete {
	background: var(--hap-success-bg);
	border-color: #bbf7d0;
}

.hap-profile-app .hap-suggestion-dot {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--hap-cta);
	margin-top: 6px;
}

.hap-profile-app .hap-suggestion-action.is-complete .hap-suggestion-dot {
	background: var(--hap-success-text);
}

.hap-profile-app .hap-suggestion-text {
	flex: 1;
	font-size: 14px;
	line-height: 1.6;
	color: var(--hap-text);
}

.hap-profile-app .hap-suggestion-cta {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 700;
	color: var(--hap-cta);
	text-decoration: none;
	white-space: nowrap;
	padding: 4px 10px;
	border-radius: 8px;
	background: rgba(255, 90, 95, 0.08);
}

.hap-profile-app .hap-suggestion-cta:hover {
	background: rgba(255, 90, 95, 0.15);
}

.hap-profile-app .hap-suggestion-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Allow chip-only suggestion lists to wrap */
.hap-profile-app .hap-suggestion-list:has(.hap-missing-chip) {
	flex-direction: row;
	flex-wrap: wrap;
}

/* Analysis card states */
.hap-profile-app .hap-analysis-card.is-open {
	border-left: 3px solid #22c55e;
}

.hap-profile-app .hap-analysis-card.is-locked {
	opacity: 0.88;
}

.hap-profile-app .hap-analysis-card.is-upcoming {
	opacity: 0.65;
	background: #f8fafc;
}

/* Upcoming status pill */
.hap-profile-app .hap-status-pill.hap-upcoming {
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

/* Section card icon — emoji-based, not text abbreviation */
.hap-profile-app .hap-section-card-icon {
	font-size: 28px;
	line-height: 1;
	flex: 0 0 auto;
	padding: 8px;
}

/* Result card — gerçek değer gösterimi */
.hap-profile-app .hap-result-value {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	background: linear-gradient(135deg, #f0fdf4, #ecfdf3);
	border: 1px solid #bbf7d0;
	border-radius: 14px;
}

.hap-profile-app .hap-result-value-text {
	font-size: 22px;
	font-weight: 800;
	color: var(--hap-success-text);
}

.hap-profile-app .hap-result-value-label {
	font-size: 13px;
	color: var(--hap-text-muted);
}

.hap-profile-app .hap-result-unit {
	font-size: 14px;
	font-weight: 600;
	color: var(--hap-success-text);
	margin-left: 3px;
}

.hap-profile-app .hap-result-description {
	font-size: 13px;
	color: var(--hap-text-body);
	margin: 6px 0 0;
	line-height: 1.5;
}

.hap-profile-app .hap-result-warning {
	font-size: 11px;
	color: var(--hap-text-muted);
	margin: 6px 0 0;
	font-style: italic;
}

/* Result card — pending state */
.hap-profile-app .hap-result-card.hap-result-pending {
	opacity: 0.9;
}

.hap-profile-app .hap-status-pill.hap-pending {
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.hap-profile-app .hap-result-tool-link {
	margin: 0;
}

.hap-profile-app .hap-result-tool-link a {
	color: var(--hap-text-muted);
	font-size: 13px;
	text-decoration: underline;
}

.hap-profile-app .hap-featured-results {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.hap-profile-app .hap-result-card--featured {
	background: linear-gradient(180deg, #fff 0%, #f6fffa 100%);
	border-color: #d8f5e3;
	box-shadow: 0 18px 40px rgba(2, 122, 72, 0.08);
}

.hap-profile-app .hap-result-card--featured .hap-result-value {
	padding: 18px;
}

.hap-profile-app .hap-result-card--featured .hap-result-value-text {
	font-size: clamp(28px, 4vw, 38px);
	line-height: 1.05;
}

.hap-profile-app .hap-result-card--featured .hap-result-unit {
	font-size: 12px;
	opacity: 0.85;
}

.hap-profile-app .hap-result-card--featured .hap-result-warning {
	font-size: 10px;
	opacity: 0.8;
}

.hap-profile-app .hap-result-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hap-profile-app .hap-result-filter {
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid var(--hap-border);
	background: #fff;
	color: var(--hap-text-strong);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.hap-profile-app .hap-result-filter.is-active {
	background: #fff1f2;
	border-color: #ffc8ca;
	color: var(--hap-cta);
}

.hap-profile-app .hap-results-grid--main {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hap-profile-app .hap-collapsible {
	background: transparent;
}

.hap-profile-app .hap-collapsible-summary {
	list-style: none;
	cursor: pointer;
}

.hap-profile-app .hap-collapsible-summary::-webkit-details-marker {
	display: none;
}

.hap-profile-app .hap-results-grid--pending .hap-result-card--pending {
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
	opacity: 0.82;
	border-style: dashed;
}

.hap-profile-app .hap-analysis-card-grid--compact {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hap-profile-app .hap-analysis-card--mini {
	padding: 18px;
	box-shadow: var(--hap-shadow-soft);
}

.hap-profile-app .hap-analysis-card--mini .hap-section-card-copy {
	font-size: 13px;
	line-height: 1.45;
}

/* Profile form section spacer */
.hap-profile-app .hap-profile-form-section {
	display: grid;
	gap: 20px;
}

@media (max-width: 980px) {
	.hap-profile-app .hap-onboarding-hero,
	.hap-profile-app .hap-summary-layout,
	.hap-profile-app .hap-analysis-card-grid,
	.hap-profile-app .hap-results-grid,
	.hap-profile-app .hap-related-tools,
	.hap-profile-app .hap-featured-results,
	.hap-profile-app .hap-analysis-card-grid--compact {
		grid-template-columns: 1fr;
	}

	.hap-profile-app .hap-onboarding-steps {
		grid-template-columns: 1fr;
	}

	.hap-profile-app .hap-suggestion-action {
		flex-wrap: wrap;
	}

	.hap-profile-app .hap-suggestion-cta {
		width: 100%;
		text-align: center;
	}
}

/* ==========================================================================
   Premium sidebar layout — v3
   ========================================================================== */

/* App wrapper: fill the theme content column */
.hap-profile-app {
	box-sizing: border-box;
}

/* Main content wrapper */
.hap-profile-app .hap-main-content {
	display: grid;
	gap: 24px;
	min-width: 0;
	width: 100%;
}

/* Sidebar: hidden by default */
.hap-profile-app .hap-sidebar {
	display: none;
}

/* ── Section subnav — visible on all screen sizes ───────────────────────── */
.hap-profile-app .hap-mobile-subnav {
	display: block;
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--hap-border);
	margin-bottom: 20px;
}

.hap-profile-app .hap-mobile-subnav-inner {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 8px 0;
	-webkit-overflow-scrolling: touch;
}

.hap-profile-app .hap-mobile-subnav-inner::-webkit-scrollbar {
	display: none;
}

.hap-profile-app .hap-mobile-nav-link {
	flex-shrink: 0;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	color: var(--hap-text-muted);
	text-decoration: none;
	border: 1px solid transparent;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}

.hap-profile-app .hap-mobile-nav-link:hover,
.hap-profile-app .hap-mobile-nav-link.is-active {
	background: rgba(255, 90, 95, 0.08);
	color: var(--hap-cta);
	border-color: rgba(255, 90, 95, 0.2);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Sidebar component styles (layout applied only at ≥1180px)
   -------------------------------------------------------------------------- */
.hap-profile-app .hap-sidebar-inner {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--hap-card-bg);
	border: 1px solid var(--hap-border);
	border-radius: var(--hap-radius-md);
	box-shadow: var(--hap-shadow-soft);
	padding: 20px 16px 16px;
	overflow: hidden;
}

.hap-profile-app .hap-sidebar-profile {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--hap-border);
	margin-bottom: 4px;
}

.hap-profile-app .hap-sidebar-avatar {
	width: 44px !important;
	height: 44px !important;
	border-radius: 50%;
	flex-shrink: 0;
}

.hap-profile-app .hap-sidebar-user-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hap-profile-app .hap-sidebar-name {
	font-size: 13px;
	font-weight: 700;
	color: var(--hap-text-strong);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hap-profile-app .hap-sidebar-completion-label {
	font-size: 11px;
	color: var(--hap-text-muted);
}

.hap-profile-app .hap-sidebar-progress-bar {
	width: 100%;
	height: 4px;
	background: var(--hap-border);
	border-radius: 4px;
	overflow: hidden;
}

.hap-profile-app .hap-sidebar-progress-fill {
	height: 100%;
	background: var(--hap-cta);
	border-radius: 4px;
	transition: width 0.4s ease;
}

.hap-profile-app .hap-sidebar-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hap-profile-app .hap-sidebar-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 500;
	color: var(--hap-text);
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.hap-profile-app .hap-sidebar-link:hover {
	background: var(--hap-bg);
	color: var(--hap-text-strong);
}

.hap-profile-app .hap-sidebar-link.is-active {
	background: rgba(255, 90, 95, 0.08);
	color: var(--hap-cta);
	font-weight: 600;
}

.hap-profile-app .hap-sidebar-icon {
	font-size: 15px;
	flex-shrink: 0;
	width: 20px;
	text-align: center;
}

.hap-profile-app .hap-sidebar-link-label {
	flex: 1;
}

.hap-profile-app .hap-sidebar-badge {
	font-size: 11px;
	font-weight: 700;
	background: var(--hap-border);
	color: var(--hap-text-muted);
	padding: 2px 7px;
	border-radius: 20px;
	min-width: 20px;
	text-align: center;
}

.hap-profile-app .hap-sidebar-badge.hap-badge-green {
	background: var(--hap-success-bg);
	color: var(--hap-success-text);
}

.hap-profile-app .hap-sidebar-badge.hap-badge-warn {
	background: var(--hap-warning-bg);
	color: var(--hap-warning-text);
}

.hap-profile-app .hap-sidebar-footer {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--hap-border);
	margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Hero stat chips — span full hero width
   -------------------------------------------------------------------------- */
.hap-profile-app .hap-hero-stat-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
	grid-column: 1 / -1;
}

.hap-profile-app .hap-stat-chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	background: var(--hap-bg);
	border: 1px solid var(--hap-border);
	border-radius: 12px;
	padding: 10px 18px;
	min-width: 80px;
}

.hap-profile-app .hap-stat-chip--green {
	background: var(--hap-success-bg);
	border-color: #a7f3d0;
}

.hap-profile-app .hap-stat-chip--warn {
	background: var(--hap-warning-bg);
	border-color: #fed7aa;
}

.hap-profile-app .hap-stat-chip-value {
	font-size: 22px;
	font-weight: 800;
	color: var(--hap-text-strong);
	line-height: 1;
}

.hap-profile-app .hap-stat-chip--green .hap-stat-chip-value {
	color: var(--hap-success-text);
}

.hap-profile-app .hap-stat-chip--warn .hap-stat-chip-value {
	color: var(--hap-warning-text);
}

.hap-profile-app .hap-stat-chip-label {
	font-size: 11px;
	color: var(--hap-text-muted);
	text-align: center;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Result & category grid — fluid, never overflow
   -------------------------------------------------------------------------- */
.hap-profile-app .hap-featured-results,
.hap-profile-app .hap-results-grid,
.hap-profile-app .hap-analysis-card-grid,
.hap-profile-app .hap-analysis-card-grid--compact {
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.hap-profile-app .hap-result-card,
.hap-profile-app .hap-analysis-card {
	min-width: 0;
	overflow: hidden;
}

.hap-profile-app .hap-result-card h3,
.hap-profile-app .hap-analysis-card h3 {
	overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Hero card: single column for typical theme content widths (≤1100px viewport)
   Theme containers are often 700-900px; 2-col hero only makes sense on wide screens.
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.hap-profile-app .hap-hero-card {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
   Two-column sidebar layout — only on very wide viewports (≥1420px)
   At this width, even with a theme container, there is room for sidebar.
   -------------------------------------------------------------------------- */
@media (min-width: 1420px) {
	.hap-profile-app .hap-dashboard {
		grid-template-columns: 260px minmax(0, 1fr);
		align-items: start;
		gap: 0 28px;
	}

	.hap-profile-app .hap-sidebar {
		display: block;
		position: sticky;
		top: 24px;
		grid-row: 1 / 99;
	}

	/* Hide section subnav when sidebar is shown */
	.hap-profile-app .hap-mobile-subnav {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Mobile (≤480px) — compact chips
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
	.hap-profile-app .hap-hero-stat-row {
		gap: 8px;
	}

	.hap-profile-app .hap-stat-chip {
		flex: 1;
		min-width: 64px;
		padding: 8px 10px;
	}

	.hap-profile-app .hap-stat-chip-value {
		font-size: 18px;
	}
}

/* ==========================================================================
   Full-page shell — template_include mode
   Liberates dashboard from the theme's narrow content area.
   All rules scoped under .hap-profile-page-shell to avoid leaking.
   ========================================================================== */

.hap-profile-page-shell {
	width: 100%;
	box-sizing: border-box;
}

/* Override app padding/width so it fills the full-width shell */
.hap-profile-page-shell .hap-profile-app {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding-left: clamp(16px, 4vw, 56px);
	padding-right: clamp(16px, 4vw, 56px);
	background:
		radial-gradient(circle at top left, rgba(255, 90, 95, 0.08), transparent 32%),
		linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 100%);
}

/* Dashboard: generous max-width now that we own full viewport width */
.hap-profile-page-shell .hap-profile-app .hap-dashboard {
	max-width: 1240px;
	margin-inline: auto;
}

/* ==========================================================================
   Category-based analysis layout — premium polish
   ========================================================================== */

/* 6-card overview grid — 3 cols desktop, 2 tablet, 1 mobile */
.hap-profile-app .hap-cat-overview-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

/* Summary card — clickable link */
.hap-profile-app .hap-cat-summary-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	background: var(--hap-card-bg);
	border: 1px solid var(--hap-border);
	border-radius: 16px;
	box-shadow: 0 1px 4px rgba(17, 24, 39, 0.06), 0 4px 12px rgba(17, 24, 39, 0.04);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.hap-profile-app .hap-cat-summary-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 18px rgba(17, 24, 39, 0.10);
	transform: translateY(-1px);
}

.hap-profile-app .hap-cat-summary-card.has-results {
	/* status communicated via count badge, no colored left border */
}

.hap-profile-app .hap-cat-summary-card.no-results {
	opacity: 0.62;
	background: #f9fafb;
}

.hap-profile-app .hap-cat-summary-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.hap-profile-app .hap-cat-summary-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	font-size: 16px;
	line-height: 1;
	flex-shrink: 0;
}

.hap-profile-app .hap-cat-summary-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	border-radius: 999px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	color: #64748b;
	font-size: 11px;
	font-weight: 700;
	padding: 0 5px;
}

.hap-profile-app .hap-cat-summary-count.hap-ready {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #059669;
}

.hap-profile-app .hap-cat-summary-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--hap-text-strong);
	line-height: 1.3;
}

.hap-profile-app .hap-cat-summary-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.hap-profile-app .hap-cat-chip {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 3px 8px;
	border-radius: 6px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	color: #334155;
	font-size: 11px;
	font-weight: 600;
}

.hap-profile-app .hap-cat-chip small {
	font-size: 10px;
	opacity: 0.75;
}

.hap-profile-app .hap-cat-summary-empty {
	margin: 0;
	font-size: 11px;
	color: var(--hap-text-muted);
}

/* Category detail section */
.hap-profile-app .hap-cat-detail {
	background: var(--hap-card-bg);
	border: 1px solid var(--hap-border);
	border-radius: 20px;
	box-shadow: 0 1px 4px rgba(17, 24, 39, 0.05), 0 4px 16px rgba(17, 24, 39, 0.04);
	padding: 24px;
	display: grid;
	gap: 20px;
}

.hap-profile-app .hap-cat-detail-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.hap-profile-app .hap-cat-detail-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	font-size: 20px;
	flex: 0 0 auto;
}

.hap-profile-app .hap-cat-detail-title-wrap {
	flex: 1;
	min-width: 0;
	display: grid;
	gap: 5px;
}

.hap-profile-app .hap-cat-detail-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--hap-text-strong);
}

.hap-profile-app .hap-cat-insight {
	margin: 0;
	font-size: 13px;
	color: var(--hap-text-muted);
	line-height: 1.55;
}

/* Contextual note within a category detail (e.g. 30-min sport assumption) */
.hap-profile-app .hap-cat-note {
	margin: 0;
	font-size: 12px;
	color: #64748b;
	padding: 8px 12px;
	border-radius: 8px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	line-height: 1.5;
}

/* Result grid inside each category */
.hap-profile-app .hap-cat-results-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 16px;
}

/* ── Responsive breakpoints ────────────────────────────────────────────── */
@media (max-width: 900px) {
	.hap-profile-app .hap-cat-overview-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.hap-profile-app .hap-cat-overview-grid {
		grid-template-columns: 1fr;
	}

	.hap-profile-app .hap-cat-detail-head {
		flex-wrap: wrap;
	}

	.hap-profile-app .hap-cat-results-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Sidebar grid — reliable at 1180px+ because shell owns full width ─── */
@media (min-width: 1180px) {
	.hap-profile-page-shell .hap-profile-app .hap-dashboard {
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 28px;
		align-items: start;
	}

	.hap-profile-page-shell .hap-profile-app .hap-sidebar {
		display: block;
		position: sticky;
		top: 24px;
		grid-row: 1 / 99;
	}

	.hap-profile-page-shell .hap-profile-app .hap-mobile-subnav {
		display: none;
	}
}

@media (max-width: 1179px) {
	.hap-profile-page-shell .hap-profile-app .hap-dashboard {
		grid-template-columns: 1fr;
	}

	.hap-profile-page-shell .hap-profile-app .hap-sidebar {
		display: none;
	}

	.hap-profile-page-shell .hap-profile-app .hap-mobile-subnav {
		display: block;
	}
}

/* ── Hero: 2-col at ≥900px in full-page context ─────────────────────── */
@media (min-width: 900px) {
	.hap-profile-page-shell .hap-profile-app .hap-hero-card {
		grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.95fr);
	}
}

/* ── Fluid result / category grids ──────────────────────────────────── */
.hap-profile-page-shell .hap-profile-app .hap-featured-results,
.hap-profile-page-shell .hap-profile-app .hap-results-grid,
.hap-profile-page-shell .hap-profile-app .hap-analysis-card-grid,
.hap-profile-page-shell .hap-profile-app .hap-analysis-card-grid--compact {
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

/* ── Overflow guards ────────────────────────────────────────────────── */
.hap-profile-page-shell .hap-profile-app .hap-main-content,
.hap-profile-page-shell .hap-profile-app .hap-result-card,
.hap-profile-page-shell .hap-profile-app .hap-analysis-card {
	min-width: 0;
	overflow: hidden;
}

.hap-profile-page-shell .hap-profile-app .hap-result-card h3,
.hap-profile-page-shell .hap-profile-app .hap-analysis-card h3 {
	overflow-wrap: anywhere;
}

/* ── Mobile compact (≤480px) ────────────────────────────────────────── */
@media (max-width: 480px) {
	.hap-profile-page-shell .hap-profile-app {
		padding-left: 12px;
		padding-right: 12px;
	}
}

/* ==========================================================================
   v4 UI Stabilisation — final
   Selectors deliberately target BOTH .hap-profile-page-shell scope
   AND plain .hap-profile-app scope so rules work with or without the
   full-page-template wrapper.
   ========================================================================== */

/* ── 1. Desktop (≥1180px): hide subnav, show sidebar ─────────────────────── */
@media (min-width: 1180px) {
	/* Double-target: shell scope + plain app scope */
	.hap-profile-page-shell .hap-mobile-subnav,
	.hap-profile-app .hap-mobile-subnav {
		display: none !important;
	}

	.hap-profile-page-shell .hap-sidebar {
		display: block !important;
		position: sticky;
		top: 96px;
		width: 260px;
		align-self: start;
	}

	/* Dashboard grid: sidebar left | main right */
	.hap-profile-page-shell .hap-dashboard {
		grid-template-columns: 260px minmax(0, 1fr) !important;
		gap: 28px;
		align-items: start;
	}
}

/* ── 2. Mobile/tablet (≤1179px): hide sidebar, show subnav ───────────────── */
@media (max-width: 1179px) {
	.hap-profile-page-shell .hap-sidebar,
	.hap-profile-app .hap-sidebar {
		display: none !important;
	}

	.hap-profile-page-shell .hap-mobile-subnav {
		display: flex !important;
	}
}

/* ── 3. Mobile subnav: chip-style links ───────────────────────────────────── */
.hap-profile-app .hap-mobile-subnav {
	position: sticky;
	top: 0;
	z-index: 110;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid #e8edf2;
	margin-bottom: 20px;
}

.hap-profile-app .hap-mobile-subnav-inner {
	display: flex !important;
	flex-wrap: nowrap;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 10px 0;
	-webkit-overflow-scrolling: touch;
}

.hap-profile-app .hap-mobile-subnav-inner::-webkit-scrollbar {
	display: none;
}

.hap-profile-app .hap-mobile-nav-link {
	display: inline-flex !important;
	align-items: center;
	flex-shrink: 0;
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
	text-decoration: none !important;
	border: 1px solid #e8edf2;
	background: #ffffff;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	line-height: 1;
}

.hap-profile-app .hap-mobile-nav-link:hover,
.hap-profile-app .hap-mobile-nav-link.is-active {
	background: rgba(255, 90, 95, 0.08) !important;
	color: #ff5a5f !important;
	border-color: rgba(255, 90, 95, 0.25) !important;
	font-weight: 600;
}

/* ── 4. Sidebar card visual ───────────────────────────────────────────────── */
.hap-profile-app .hap-sidebar-inner {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #ffffff;
	border: 1px solid #e8edf2;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	padding: 20px 16px 16px;
	overflow: hidden;
}

/* ── 5. Hero card: flex column (no grid ambiguity) ────────────────────────── */
.hap-profile-app .hap-hero-card {
	display: flex !important;
	flex-direction: column !important;
	gap: 28px;
	padding: 32px;
}

/* ── 6. Hero top: user left | progress right ──────────────────────────────── */
.hap-profile-app .hap-hero-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
	gap: 28px;
	align-items: start;
}

@media (max-width: 900px) {
	.hap-profile-app .hap-hero-top {
		grid-template-columns: 1fr;
	}
}

/* ── 7. Hero stat chips at bottom ─────────────────────────────────────────── */
.hap-profile-app .hap-hero-stats {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	padding-top: 20px;
	border-top: 1px solid #e8edf2;
}

.hap-profile-app .hap-hero-stats .hap-stat-chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 16px 20px;
	border-radius: 14px;
	background: #f8fafc;
	border: 1px solid #e8edf2;
}

.hap-profile-app .hap-hero-stats .hap-stat-chip--green {
	background: #f0fdf4;
	border-color: #a7f3d0;
}

.hap-profile-app .hap-hero-stats .hap-stat-chip--warn {
	background: #fff7ed;
	border-color: #fed7aa;
}

.hap-profile-app .hap-hero-stats .hap-stat-chip-value {
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
	color: #1e293b;
}

.hap-profile-app .hap-hero-stats .hap-stat-chip--green .hap-stat-chip-value {
	color: #059669;
}

.hap-profile-app .hap-hero-stats .hap-stat-chip--warn .hap-stat-chip-value {
	color: #d97706;
}

.hap-profile-app .hap-hero-stats .hap-stat-chip-label {
	font-size: 12px;
	color: #64748b;
	text-align: center;
	white-space: nowrap;
}

/* ── 8. Progress bar overflow guard ──────────────────────────────────────── */
.hap-profile-app .hap-progress-bar {
	overflow: hidden;
	max-width: 100%;
	box-sizing: border-box;
}

/* ── 9. Mobile compact ≤480px ────────────────────────────────────────────── */
@media (max-width: 480px) {
	.hap-profile-app .hap-hero-card {
		padding: 20px 16px !important;
	}
	.hap-profile-app .hap-hero-stats {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* ==========================================================================
   Personal summary + result meaning layer
   ========================================================================== */

/* Kişisel Özet grid */
.hap-profile-app .hap-personal-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 14px;
}

.hap-profile-app .hap-personal-insight {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--hap-border);
	border-radius: 14px;
	box-shadow: 0 1px 4px rgba(17, 24, 39, 0.05);
}

.hap-profile-app .hap-personal-insight-label {
	font-size: 11px;
	font-weight: 700;
	color: var(--hap-text-muted);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hap-profile-app .hap-personal-insight-value {
	font-size: 17px;
	font-weight: 800;
	color: var(--hap-text-strong);
	line-height: 1.2;
}

.hap-profile-app .hap-personal-insight-suffix {
	font-size: 12px;
	color: var(--hap-text-muted);
	line-height: 1.5;
}

/* Category summary teaser */
.hap-profile-app .hap-cat-summary-teaser {
	margin: 0;
	font-size: 12px;
	color: var(--hap-text-muted);
	line-height: 1.5;
}

/* Result meaning block */
.hap-profile-app .hap-result-meaning {
	margin-top: 6px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #f8fafc;
	border: 1px solid #e8edf2;
}

.hap-profile-app .hap-result-meaning-label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	color: var(--hap-text-muted);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 4px;
}

.hap-profile-app .hap-result-meaning-text {
	margin: 0;
	font-size: 12px;
	color: #475569;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* ==========================================================================
   Analysis panel layout
   ========================================================================== */

.hap-profile-app .hap-analysis-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.hap-profile-app .hap-analysis-sidebar {
	position: sticky;
	top: 24px;
	display: grid;
	gap: 16px;
}

.hap-profile-app .hap-analysis-sidebar-card,
.hap-profile-app .hap-analysis-panel,
.hap-profile-app .hap-analysis-category-card,
.hap-profile-app .hap-analysis-kpi-card,
.hap-profile-app .hap-overview-compact-note {
	background: #fff;
	border: 1px solid var(--hap-border);
	border-radius: 22px;
	box-shadow: var(--hap-shadow-soft);
}

.hap-profile-app .hap-analysis-sidebar-card {
	padding: 18px;
}

.hap-profile-app .hap-analysis-profile-head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.hap-profile-app .hap-analysis-avatar {
	width: 64px !important;
	height: 64px !important;
	border-radius: 50%;
	flex: 0 0 auto;
}

.hap-profile-app .hap-analysis-profile-meta {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.hap-profile-app .hap-analysis-profile-meta strong {
	font-size: 18px;
	color: var(--hap-text-strong);
}

.hap-profile-app .hap-analysis-profile-meta span,
.hap-profile-app .hap-analysis-sidebar-stats span,
.hap-profile-app .hap-analysis-kpi-meta,
.hap-profile-app .hap-analysis-empty-state span,
.hap-profile-app .hap-analysis-category-card p {
	color: var(--hap-text-muted);
	line-height: 1.6;
}

.hap-profile-app .hap-analysis-progress {
	margin-top: 16px;
	height: 10px;
	border-radius: 999px;
	background: #edf1f6;
	overflow: hidden;
}

.hap-profile-app .hap-analysis-progress-fill {
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #ff6f61 0%, #ff9a76 100%);
}

.hap-profile-app .hap-analysis-sidebar-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.hap-profile-app .hap-analysis-sidebar-stats div {
	padding: 12px 14px;
	border-radius: 16px;
	background: #f8fafc;
	border: 1px solid #edf1f5;
}

.hap-profile-app .hap-analysis-sidebar-stats strong,
.hap-profile-app .hap-analysis-kpi-value {
	display: block;
	font-size: 24px;
	line-height: 1.1;
	color: var(--hap-text-strong);
}

.hap-profile-app .hap-analysis-sidebar-actions {
	display: grid;
	gap: 10px;
	margin-top: 16px;
}

.hap-profile-app .hap-analysis-nav {
	display: grid;
	gap: 8px;
}

.hap-profile-app .hap-analysis-nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 14px;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: var(--hap-text);
	text-align: left;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.2s ease;
}

.hap-profile-app .hap-analysis-nav-item:hover {
	background: #f1f5f9;
	color: var(--hap-text-strong);
}

.hap-profile-app .hap-analysis-nav-item.is-active {
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	color: var(--hap-cta);
	font-weight: 600;
}

.hap-profile-app .hap-analysis-nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 12px;
	background: #fff4f2;
	flex: 0 0 auto;
}

.hap-profile-app .hap-analysis-nav-label {
	flex: 1;
	font-weight: 700;
}

.hap-profile-app .hap-analysis-nav-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	padding: 6px 10px;
	border-radius: 999px;
	background: #eef2f7;
	color: var(--hap-text-muted);
	font-size: 12px;
	font-weight: 700;
}

.hap-profile-app .hap-analysis-nav-badge.is-ready {
	background: #ecfdf3;
	color: #027a48;
}

.hap-profile-app .hap-analysis-nav-badge.is-neutral {
	background: #eef2ff;
	color: #4f46e5;
}

.hap-profile-app .hap-analysis-main {
	min-width: 0;
}

.hap-profile-app .hap-analysis-panel {
	display: none;
	padding: 26px;
}

.hap-profile-app .hap-analysis-panel.is-active {
	display: grid;
	gap: 24px;
}

.hap-profile-app .hap-analysis-panel-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
}

.hap-profile-app .hap-overview-compact-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
	gap: 24px;
	padding: 32px;
	border-radius: var(--hap-radius-lg);
	background: var(--hap-card-bg);
	border: 1px solid var(--hap-border);
	box-shadow: var(--hap-shadow-soft);
}

.hap-profile-app .hap-overview-compact-copy {
	display: grid;
	gap: 14px;
}

.hap-profile-app .hap-overview-compact-aside {
	display: grid;
	gap: 14px;
}

.hap-profile-app .hap-overview-compact-note {
	padding: 18px;
}

.hap-profile-app .hap-overview-compact-note strong {
	display: block;
	margin-bottom: 6px;
	color: var(--hap-text-strong);
}

.hap-profile-app .hap-overview-compact-note.is-soft {
	background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.hap-profile-app .hap-analysis-kpi-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.hap-profile-app .hap-analysis-kpi-card {
	padding: 20px;
}

.hap-profile-app .hap-analysis-kpi-card.is-ready {
	background: linear-gradient(180deg, #f5fff9 0%, #ffffff 100%);
}

.hap-profile-app .hap-analysis-kpi-label {
	display: block;
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hap-text-muted);
}

.hap-profile-app .hap-analysis-panel-block {
	display: grid;
	gap: 18px;
}

.hap-profile-app .hap-analysis-head-action {
	flex: 0 0 auto;
}

.hap-profile-app .hap-analysis-category-grid,
.hap-profile-app .hap-cat-results-grid,
.hap-profile-app .hap-featured-results {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 16px;
}

.hap-profile-app .hap-analysis-category-card {
	display: grid;
	gap: 12px;
	padding: 20px;
	text-align: left;
	cursor: pointer;
	background: var(--hap-card-bg);
	border: 1px solid var(--hap-border);
	border-radius: var(--hap-radius-md);
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.hap-profile-app .hap-analysis-category-card:hover {
	transform: translateY(-2px);
	border-color: #cbd5e1;
	box-shadow: var(--hap-shadow-hover);
}

.hap-profile-app .hap-analysis-category-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.hap-profile-app .hap-analysis-category-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 16px;
	background: #fff4f2;
	font-size: 20px;
}

.hap-profile-app .hap-analysis-category-card strong {
	font-size: 20px;
	color: var(--hap-text-strong);
}

.hap-profile-app .hap-analysis-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hap-profile-app .hap-analysis-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: #f8fafc;
	border: 1px solid #e6ebf2;
	color: #3b4a60;
	font-size: 13px;
	font-weight: 600;
}

.hap-profile-app .hap-analysis-insight {
	padding: 16px 18px;
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(255, 111, 97, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
	border: 1px solid rgba(255, 111, 97, 0.15);
	color: #334155;
}

.hap-profile-app .hap-analysis-empty-state {
	display: grid;
	gap: 6px;
	padding: 20px;
	border-radius: 18px;
	background: #f8fafc;
	border: 1px dashed #d7dde5;
}

.hap-profile-app .hap-result-card-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

@media (max-width: 1024px) {
	.hap-profile-app .hap-analysis-layout {
		display: flex;
		flex-direction: column;
	}

	.hap-profile-app .hap-analysis-sidebar {
		display: contents;
	}

	.hap-profile-app .hap-analysis-sidebar-card--profile {
		order: 0;
		margin-top: 0;
		margin-bottom: 24px;
	}

	.hap-profile-app .hap-analysis-profile-head {
		cursor: pointer;
		position: relative;
		padding-right: 24px;
	}

	.hap-profile-app .hap-analysis-profile-head::after {
		content: "";
		position: absolute;
		right: 0;
		top: 50%;
		transform: translateY(-50%) rotate(45deg);
		width: 8px;
		height: 8px;
		border-right: 2px solid var(--hap-text-muted);
		border-bottom: 2px solid var(--hap-text-muted);
		transition: transform 0.2s ease;
	}

	.hap-profile-app .hap-analysis-profile-head.is-open::after {
		transform: translateY(-50%) rotate(-135deg);
	}

	.hap-profile-app .hap-profile-accordion-content {
		display: none;
		margin-top: 20px;
		border-top: 1px solid var(--hap-border);
		padding-top: 20px;
	}

	.hap-profile-app .hap-analysis-main {
		order: 2;
	}

	.hap-profile-app .hap-analysis-nav {
		order: 1;
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		padding: 0 0 16px 0;
		margin: 0;
		position: static;
		background: transparent;
		border: none;
	}

	.hap-profile-app .hap-analysis-nav::before {
		content: "Analiz Kategorileri";
		width: 100%;
		font-size: 13px;
		font-weight: 700;
		color: var(--hap-text-muted);
		margin-bottom: 4px;
		padding-left: 4px;
		text-transform: uppercase;
		letter-spacing: 0.5px;
	}

	.hap-profile-app .hap-analysis-nav::-webkit-scrollbar {
		display: none;
	}

	.hap-profile-app .hap-analysis-nav-item {
		flex: 0 0 auto;
		min-width: max-content;
		background: #ffffff;
		border: 1px solid var(--hap-border);
		border-radius: 12px;
	}

	.hap-profile-app .hap-analysis-panel {
		padding: 16px 0 0 0;
	}

	.hap-profile-app .hap-overview-compact-hero,
	.hap-profile-app .hap-analysis-kpi-grid {
		display: none; /* Redundant on mobile, profile card handles this */
	}

	.hap-profile-app .hap-result-card,
	.hap-profile-app .hap-analysis-category-card {
		padding: 16px;
	}
}

/* Dashboard Analysis Layout Override */
.hap-profile-app .hap-analysis-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	grid-column: 1 / -1;
}

.hap-profile-app .hap-analysis-sidebar {
	width: 280px;
	min-width: 280px;
	position: sticky;
	top: 96px;
}

.hap-profile-app .hap-analysis-main {
	min-width: 0;
	width: 100%;
	max-width: none;
	display: block;
}

.hap-profile-app .hap-analysis-panel {
	width: 100%;
	max-width: none;
	display: none;
}

.hap-profile-app .hap-analysis-panel.is-active {
	display: block;
}

.hap-profile-app .hap-results-grid,
.hap-profile-app .hap-cat-results-grid,
.hap-profile-app .hap-featured-grid,
.hap-profile-app .hap-featured-results,
.hap-profile-app .hap-analysis-results-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
	width: 100%;
}

.hap-profile-app .hap-analysis-panel-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
}

@media (max-width: 900px) {
	.hap-profile-app .hap-analysis-layout {
		display: block;
	}

	.hap-profile-app .hap-analysis-sidebar {
		position: static;
		width: 100%;
		min-width: 0;
	}

	.hap-profile-app .hap-results-grid,
	.hap-profile-app .hap-cat-results-grid,
	.hap-profile-app .hap-featured-grid,
	.hap-profile-app .hap-featured-results,
	.hap-profile-app .hap-analysis-results-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.hap-profile-app .hap-analysis-panel,
	.hap-profile-app .hap-analysis-sidebar-card {
		padding: 18px;
	}

	.hap-profile-app .hap-analysis-panel-head {
		align-items: start;
		flex-direction: column;
	}

	.hap-profile-app .hap-analysis-sidebar-stats {
		grid-template-columns: 1fr;
	}
}
