.mht-my-access-table {
	width: 100%;
	border-collapse: collapse;
	font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mht-my-access-table th {
	text-align: left;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #5c6b85;
	padding: 10px 12px;
	border-bottom: 1px solid #e1e6ef;
}

.mht-my-access-table td {
	padding: 14px 12px;
	border-bottom: 1px solid #e1e6ef;
	font-size: 14px;
	color: #0a1c40;
}

.mht-my-access-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.mht-my-access-status--active {
	background: #e9fbec;
	color: #2fb545;
}

.mht-my-access-status--expired,
.mht-my-access-status--revoked {
	background: #fff1ec;
	color: #ff7145;
}

.mht-my-access-renew {
	display: inline-block;
	padding: 6px 16px;
	background: #2471e7;
	color: #ffffff;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.mht-my-access-renew:hover {
	background: #1c5ecf;
	color: #ffffff;
}

.mht-my-access-gate,
.mht-my-access-empty {
	color: #5c6b85;
	font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Account Dashboard */
.mht-account-dashboard {
	--mht-primary: #2471e7;
	--mht-primary-dark: #0a1c40;
	--mht-success: #71e07e;
	--mht-accent: #ff7145;
	--mht-border: #e1e6ef;
	--mht-text-primary: #0a1c40;
	--mht-text-muted: #5c6b85;
	--mht-navy-tint: #f4f6fa;

	font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	max-width: 760px;
}

.mht-account-notice {
	padding: 12px 16px;
	border-radius: 10px;
	margin-bottom: 20px;
	font-size: 14px;
}

.mht-account-notice--success {
	background: #e9fbec;
	color: #2fb545;
}

.mht-account-notice--error {
	background: #fff1ec;
	color: #ff7145;
}

.mht-account-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	border-bottom: 1px solid var(--mht-border);
	margin-bottom: 24px;
}

.mht-account-tab {
	background: none;
	border: none;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	color: var(--mht-text-muted);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.mht-account-tab:hover {
	color: var(--mht-primary);
}

.mht-account-tab.is-active {
	color: var(--mht-primary);
	border-bottom-color: var(--mht-primary);
}

.mht-account-panel {
	display: none;
}

.mht-account-panel.is-active {
	display: block;
}

.mht-account-form p {
	margin-bottom: 16px;
}

.mht-account-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--mht-text-primary);
	margin-bottom: 6px;
}

.mht-account-form input[type="text"],
.mht-account-form input[type="email"],
.mht-account-form input[type="password"] {
	width: 100%;
	max-width: 360px;
	padding: 10px 14px;
	border: 1.5px solid var(--mht-border);
	border-radius: 10px;
	font-size: 14px;
	font-family: inherit;
	color: var(--mht-text-primary);
}

.mht-account-form input:focus {
	outline: none;
	border-color: var(--mht-primary);
}

.mht-account-btn {
	display: inline-block;
	padding: 10px 24px;
	background: var(--mht-primary);
	color: #ffffff;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}

.mht-account-btn:hover {
	background: #1c5ecf;
}

.mht-account-btn--danger {
	background: var(--mht-accent);
}

.mht-account-btn--danger:hover {
	background: #e85c30;
}

.mht-account-privacy-intro {
	color: var(--mht-text-muted);
	font-size: 14px;
	max-width: 520px;
	margin-bottom: 20px;
}

/* Results Viewer */
.mht-results-viewer {
	--mht-primary: #2471e7;
	--mht-primary-dark: #0a1c40;
	--mht-success: #71e07e;
	--mht-accent: #ff7145;
	--mht-primary-light: #e8f0fd;
	--mht-navy-tint: #f4f6fa;
	--mht-border: #e1e6ef;
	--mht-text-primary: #0a1c40;
	--mht-text-muted: #5c6b85;

	font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mht-results-loading,
.mht-results-error {
	color: var(--mht-text-muted);
	padding: 24px 0;
	text-align: center;
}

.mht-results-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.mht-result-card {
	border: 1.5px solid var(--mht-border);
	border-radius: 14px;
	padding: 18px;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mht-result-card-test {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--mht-text-muted);
}

.mht-result-card-headline {
	font-size: 16px;
	font-weight: 700;
	color: var(--mht-text-primary);
	margin: 2px 0 4px;
}

.mht-result-card-date {
	font-size: 12px;
	color: var(--mht-text-muted);
	margin-bottom: 12px;
}

.mht-result-card-btn {
	margin-top: auto;
	padding: 8px 14px;
	background: var(--mht-primary-light);
	color: var(--mht-primary);
	border: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	align-self: flex-start;
}

.mht-result-card-btn:hover {
	background: var(--mht-primary);
	color: #ffffff;
}

/* Detail view */
.mht-result-detail {
	max-width: 560px;
}

.mht-result-back {
	background: none;
	border: none;
	color: var(--mht-primary);
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	padding: 0;
	margin-bottom: 20px;
}

.mht-result-detail-test {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--mht-text-muted);
}

.mht-result-detail-headline {
	font-size: 24px;
	font-weight: 700;
	color: var(--mht-text-primary);
	margin: 4px 0;
}

.mht-result-detail-date {
	font-size: 13px;
	color: var(--mht-text-muted);
	margin-bottom: 24px;
}

.mht-result-detail-desc {
	color: var(--mht-text-muted);
	font-size: 14px;
	line-height: 1.7;
	margin-top: 20px;
}

/* Generic dichotomy rings (shared visual language with the MBTI add-on's own rings) */
.mht-result-rings {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
	gap: 16px;
}

.mht-result-ring {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.mht-result-ring-visual {
	position: relative;
	width: 84px;
	height: 84px;
}

.mht-result-ring-svg {
	width: 84px;
	height: 84px;
	transform: rotate(-90deg);
	display: block;
}

.mht-result-ring-track {
	fill: none;
	stroke: var(--mht-navy-tint);
	stroke-width: 8;
}

.mht-result-ring-progress {
	fill: none;
	stroke-width: 8;
	stroke-linecap: round;
}

.mht-ring-c1 { stroke: #2471e7; }
.mht-ring-c2 { stroke: #71e07e; }
.mht-ring-c3 { stroke: #ff7145; }
.mht-ring-c4 { stroke: #0a1c40; }
.mht-ring-c5 { stroke: #9b6bd6; }
.mht-ring-c6 { stroke: #e0c057; }

.mht-result-ring-label {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.mht-result-ring-pct {
	font-size: 14px;
	font-weight: 700;
	color: var(--mht-text-primary);
}

.mht-result-ring-letter {
	font-size: 10px;
	color: var(--mht-text-muted);
}

.mht-result-ring-caption {
	margin-top: 14px;
	font-size: 11px;
	color: var(--mht-text-muted);
	text-align: center;
}

/* Generic gauge (score-style results) */
.mht-result-gauge-track {
	height: 12px;
	background: var(--mht-navy-tint);
	border-radius: 999px;
	overflow: hidden;
}

.mht-result-gauge-fill {
	height: 100%;
	background: var(--mht-primary);
	border-radius: 999px;
	transition: width 0.4s ease;
}

.mht-result-gauge-caption {
	margin-top: 10px;
	font-size: 13px;
	color: var(--mht-text-muted);
}

/* Fallback for any unrecognized score_data shape */
.mht-result-fallback-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.mht-result-fallback-table td {
	padding: 8px 0;
	border-bottom: 1px solid var(--mht-border);
	color: var(--mht-text-primary);
}

.mht-result-fallback-table td:first-child {
	color: var(--mht-text-muted);
	text-transform: capitalize;
	width: 40%;
}

/* Generic radar/spider chart */
.mht-result-radar {
	display: flex;
	justify-content: center;
	margin: 8px 0 16px;
}

.mht-result-radar-svg {
	width: 100%;
	max-width: 320px;
	height: auto;
	overflow: visible;
}

.mht-radar-grid {
	fill: none;
	stroke: var(--mht-border);
	stroke-width: 1;
}

.mht-radar-axis {
	stroke: var(--mht-border);
	stroke-width: 1;
}

.mht-radar-data {
	fill: rgba(36, 113, 231, 0.18);
	stroke: var(--mht-primary);
	stroke-width: 2;
	stroke-linejoin: round;
}

.mht-radar-label {
	font-size: 11px;
	fill: var(--mht-text-muted);
	font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Generic heatmap grid */
.mht-result-heatmap {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 10px;
	margin: 8px 0 16px;
}

.mht-result-heatmap-cell {
	border-radius: 12px;
	padding: 16px 10px;
	text-align: center;
}

.mht-result-heatmap-pct {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 4px;
}

.mht-result-heatmap-label {
	font-size: 11px;
	font-weight: 600;
	opacity: 0.85;
}

/* Compare with a friend */
.mht-result-compare {
	margin-top: 28px;
	padding: 18px 20px;
	background: var(--mht-navy-tint);
	border-radius: 14px;
	text-align: center;
}

.mht-result-compare-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--mht-text-primary);
	margin-bottom: 6px;
}

.mht-result-compare-desc {
	font-size: 13px;
	color: var(--mht-text-muted);
	margin-bottom: 12px;
}

.mht-result-compare-link {
	width: 100%;
	max-width: 400px;
	padding: 8px 12px;
	border: 1.5px solid var(--mht-border);
	border-radius: 8px;
	font-size: 12px;
	color: var(--mht-text-primary);
	background: #ffffff;
	text-align: center;
	margin-bottom: 8px;
}

.mht-result-compare-copy {
	display: block;
	margin: 0 auto;
}

.mht-account-lang-row {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 16px;
}
	display: inline-flex;
	border: 1.5px solid var(--mht-border);
	border-radius: 999px;
	padding: 3px;
	gap: 2px;
}

.mht-lang-switcher-btn {
	border: none;
	background: none;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	font-family: inherit;
	color: var(--mht-text-muted);
	cursor: pointer;
}

.mht-lang-switcher-btn.is-active {
	background: var(--mht-primary);
	color: #ffffff;
}

.mht-lang-switcher-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Character avatar - simple original circular face, not based on any
   existing character design. Color and expression come from the
   add-on's score_data; core only knows how to draw the shape. */
.mht-result-avatar {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}

.mht-result-avatar svg {
	width: 72px;
	height: 72px;
}

.mht-result-card .mht-result-avatar svg {
	width: 48px;
	height: 48px;
}

.mht-result-card .mht-result-avatar {
	margin-bottom: 8px;
}

/* Social share section */
.mht-result-share {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--mht-border);
}

.mht-result-share-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--mht-text-primary);
	margin-bottom: 14px;
}

.mht-result-share-canvas {
	width: 100%;
	max-width: 300px;
	height: auto;
	aspect-ratio: 4 / 5;
	border-radius: 16px;
	display: block;
	margin: 0 auto 16px;
	box-shadow: 0 4px 16px rgba(10, 28, 64, 0.12);
}

.mht-result-share-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.mht-result-share-caption-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--mht-text-muted);
	margin-bottom: 6px;
}

.mht-result-share-caption {
	width: 100%;
	max-width: 480px;
	display: block;
	margin: 0 auto;
	padding: 12px 14px;
	border: 1.5px solid var(--mht-border);
	border-radius: 10px;
	font-family: inherit;
	font-size: 13px;
	color: var(--mht-text-primary);
	background: var(--mht-navy-tint);
	resize: vertical;
}

.mht-result-share-copy {
	display: block;
	margin: 8px auto 0;
}

.mht-result-share-instagram-note {
	max-width: 480px;
	margin: 16px auto 0;
	font-size: 12px;
	color: var(--mht-text-muted);
	text-align: center;
	line-height: 1.6;
}

/* Social Login */
.mht-social-login {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 320px;
	margin: 16px 0;
}

.mht-social-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	border: 1.5px solid #e1e6ef;
	border-radius: 10px;
	background: #ffffff;
	color: #0a1c40;
	font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.mht-social-btn:hover {
	border-color: #2471e7;
	color: #0a1c40;
}

.mht-social-btn-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
	flex-shrink: 0;
}

.mht-social-btn--google .mht-social-btn-badge {
	background: #2471e7;
}

.mht-social-btn--facebook .mht-social-btn-badge {
	background: #1877f2;
}

.mht-social-btn--linkedin .mht-social-btn-badge {
	background: #0a66c2;
}

.mht-social-btn--tiktok .mht-social-btn-badge {
	background: #0a1c40;
}

.mht-connected-accounts {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #e1e6ef;
}

.mht-connected-accounts-title {
	font-size: 14px;
	font-weight: 700;
	color: #0a1c40;
	margin-bottom: 12px;
}

.mht-connected-account-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	font-size: 14px;
}

.mht-connected-account-status {
	color: #5c6b85;
	font-size: 13px;
}

.mht-connected-account-status--connected {
	color: #2fb545;
}

.mht-account-link-small {
	font-size: 13px;
	color: #ff7145;
	text-decoration: none;
}

.mht-account-link-small:hover {
	text-decoration: underline;
}
