/* Premium chart result — chiemtinhlaso style */

.cung12-chart-report {
	background: #0d2131;
	color: #e8e3d8;
	border-radius: 16px;
	overflow: visible;
	margin-top: 12px;
	font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 162, 39, 0.12);
	animation: cung12ReportIn 0.55s ease-out;
}

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

.cung12-chart-report.theme-light {
	background: linear-gradient(165deg, #faf6ee 0%, #f0ebe0 100%);
	color: #1a1a2e;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.cung12-chart-report.theme-anglo {
	background: linear-gradient(165deg, #1a2836 0%, #142030 100%);
	color: #d4cfc4;
}

/* Header */
.cung12-chart-header {
	position: relative;
	padding: 0;
	border-bottom: 1px solid rgba(201, 162, 39, 0.25);
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
}

.cung12-chart-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(7, 13, 22, 0.72) 0%, rgba(11, 22, 34, 0.92) 100%);
	pointer-events: none;
}

.cung12-chart-header-inner {
	position: relative;
	z-index: 1;
	padding: 28px 32px 22px;
}

.cung12-chart-brand {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 20px;
}

.cung12-chart-logo {
	flex-shrink: 0;
	width: 88px;
	height: 88px;
	object-fit: contain;
	filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.cung12-chart-brand-text {
	flex: 1;
	min-width: 0;
}

.cung12-chart-person {
	margin: 0 0 4px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 13px;
	opacity: 0.75;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.cung12-chart-title {
	margin: 0 0 10px;
	font-size: clamp(22px, 4vw, 32px);
	font-weight: 400;
	color: #c9a227;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.cung12-chart-datetime {
	margin: 0 0 6px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	opacity: 0.9;
}

.cung12-chart-coords {
	margin: 0 0 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 12px;
	opacity: 0.65;
}

/* Big 3 */
.cung12-chart-big3 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 18px;
}

@media (max-width: 900px) {
	.cung12-chart-big3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.cung12-chart-big3 {
		grid-template-columns: 1fr;
	}
}

.cung12-big3-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(201, 162, 39, 0.22);
	backdrop-filter: blur(6px);
	transition: transform 0.2s, border-color 0.2s;
}

.cung12-big3-card:hover {
	transform: translateY(-2px);
	border-color: rgba(201, 162, 39, 0.45);
}

.cung12-big3-icon img,
.cung12-big3-icon .cung12-planet-icon,
.cung12-big3-icon .cung12-sign-icon {
	display: block;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cung12-big3-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.cung12-big3-label {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.65;
}

.cung12-big3-sign {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	color: #e8e3d8;
	font-weight: 600;
}

.cung12-big3-sign img {
	border-radius: 4px;
}

.cung12-big3-deg {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 11px;
	opacity: 0.6;
	font-variant-numeric: tabular-nums;
}

.cung12-big3-house {
	font-size: 10px;
	opacity: 0.55;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cung12-el-fire { border-left: 3px solid #e87722; }
.cung12-el-earth { border-left: 3px solid #6b9e5a; }
.cung12-el-air { border-left: 3px solid #5d8de8; }
.cung12-el-water { border-left: 3px solid #4a90c4; }

.cung12-chart-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cung12-chart-tag {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid rgba(201, 162, 39, 0.45);
	border-radius: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 12px;
	color: #c9a227;
	background: rgba(201, 162, 39, 0.08);
}

/* Tabs */
.cung12-chart-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 12px 20px;
	background: rgba(0, 0, 0, 0.25);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cung12-chart-tab {
	background: transparent;
	border: 1px solid transparent;
	border-radius: 20px;
	padding: 8px 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 13px;
	color: #b0a898;
	cursor: pointer;
	transition: all 0.2s;
}

.cung12-chart-tab:hover {
	color: #e8e3d8;
	border-color: rgba(201, 162, 39, 0.35);
}

.cung12-chart-tab.is-active {
	color: #c9a227;
	border-color: #c9a227;
	background: rgba(201, 162, 39, 0.1);
}

.cung12-chart-tab.cung12-tab-cta {
	margin-left: auto;
	background: #e87722;
	border-color: #e87722;
	color: #fff !important;
	font-weight: 600;
	border-radius: 6px;
}

.cung12-chart-tab.cung12-tab-cta:hover {
	background: #cf6618;
	border-color: #cf6618;
}

.cung12-chart-tab.cung12-tab-cta.is-active {
	background: #cf6618;
	border-color: #c9a227;
	box-shadow: 0 0 0 1px #c9a227;
}

/* Panels */
.cung12-chart-panel {
	display: none;
	padding: 28px 32px 32px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 120px);
}

.cung12-chart-panel.is-active {
	display: block;
}

.cung12-chart-panel-title {
	text-align: center;
	margin: 0 0 24px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: rgba(201, 162, 39, 0.85);
}

/* Wheel layout */
.cung12-chart-visual-row {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	gap: 24px;
	align-items: start;
	margin-bottom: 8px;
}

@media (max-width: 960px) {
	.cung12-chart-visual-row {
		grid-template-columns: 1fr;
	}
}

.cung12-chart-wheel-col {
	min-width: 0;
}

.cung12-chart-side-col {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cung12-chart-wheel-box {
	position: relative;
	max-width: min(980px, 100%);
	width: 100%;
	margin: 0 auto 12px;
	overflow: visible;
	padding: 0;
}

.cung12-chart-wheel-col {
	min-width: 0;
	overflow: visible;
}

.cung12-natal-output {
	margin-top: 8px;
	overflow: visible;
}

.cung12-wheel-glow {
	position: absolute;
	inset: 8%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(201, 162, 39, 0.18) 0%, transparent 70%);
	pointer-events: none;
	animation: cung12WheelPulse 4s ease-in-out infinite;
}

@keyframes cung12WheelPulse {
	0%, 100% { opacity: 0.6; transform: scale(1); }
	50% { opacity: 1; transform: scale(1.02); }
}

.cung12-chart-wheel {
	width: 100%;
	height: auto;
	display: block;
	position: relative;
	z-index: 1;
	overflow: visible;
	filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

.cung12-chart-wheel-api {
	max-width: 720px;
	margin: 0 auto;
	background: transparent;
}

.cung12-chart-watermark {
	position: absolute;
	bottom: 4px;
	right: 10px;
	left: auto;
	margin: 0;
	font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
	font-size: 10px;
	opacity: 0.55;
	color: #8899aa;
	max-width: 55%;
	text-align: right;
	line-height: 1.35;
	word-break: break-word;
}

.cung12-aspect-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 16px;
	margin: 0 auto 8px;
	max-width: 720px;
	font-size: 11px;
	opacity: 0.85;
}

.cung12-aspect-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cung12-aspect-legend-item i {
	display: inline-block;
	width: 18px;
	height: 3px;
	border-radius: 2px;
}

.cung12-chart-stats {
	padding: 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(201, 162, 39, 0.2);
}

.cung12-chart-stats h4,
.cung12-planet-list-wrap h4 {
	font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
	font-size: 13px;
	color: #c9a227;
	margin: 0 0 12px;
	font-weight: 600;
}

.cung12-stat-group {
	margin-bottom: 14px;
}

.cung12-stat-group:last-child {
	margin-bottom: 0;
}

.cung12-stat-label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.65;
	margin-bottom: 8px;
}

.cung12-stat-bar-row {
	display: grid;
	grid-template-columns: 52px 1fr 24px;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	font-size: 12px;
}

.cung12-stat-bar {
	height: 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.cung12-stat-bar-fill {
	display: block;
	height: 100%;
	border-radius: 4px;
	background: #5d8de8;
}

.cung12-stat-bar-fill.cung12-el-fire { background: #e87722; }
.cung12-stat-bar-fill.cung12-el-earth { background: #6b9e5a; }
.cung12-stat-bar-fill.cung12-el-air { background: #5d8de8; }
.cung12-stat-bar-fill.cung12-el-water { background: #4a90c4; }
.cung12-stat-bar-fill.cung12-mod-cardinal { background: #c9a227; }
.cung12-stat-bar-fill.cung12-mod-fixed { background: #b388ff; }
.cung12-stat-bar-fill.cung12-mod-mutable { background: #5d8de8; }

.cung12-stat-bar-val {
	text-align: right;
	font-variant-numeric: tabular-nums;
	opacity: 0.75;
}

.cung12-stat-note {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.5;
	opacity: 0.85;
}

.cung12-planet-list-wrap {
	padding: 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	max-height: 420px;
	overflow: auto;
}

.cung12-stale-chart-notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 8px;
	border: 1px solid rgba(232, 119, 34, 0.45);
	background: rgba(232, 119, 34, 0.12);
	color: #f5e6d3;
	font-size: 14px;
	line-height: 1.5;
}

.cung12-stale-chart-notice strong {
	color: #ffb86a;
}

.cung12-retro-badge {
	display: inline-block;
	color: #e87722;
	font-weight: 600;
	font-size: 11px;
	white-space: nowrap;
}

/* Toolbar */
.cung12-chart-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin: 20px auto 8px;
	padding: 12px 16px;
	max-width: 100%;
	font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
	font-size: 13px;
	background: rgba(6, 16, 28, 0.72);
	border: 1px solid rgba(201, 162, 39, 0.22);
	border-radius: 16px;
}

.cung12-chart-toolbar-ct {
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.cung12-toolbar-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.cung12-chart-toolbar-label {
	opacity: 0.7;
	margin-right: 2px;
	color: #dce6f0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cung12-theme-btn,
.cung12-save-chart,
.cung12-download-png,
.cung12-download-svg,
.cung12-save-browser {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	padding: 8px 16px;
	color: #c5d0ef;
	cursor: pointer;
	font-size: 13px;
	font-family: inherit;
	transition: all 0.2s;
}

.cung12-chart-toolbar-label.cung12-toolbar-divider {
	margin-left: 4px;
	padding-left: 12px;
	border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.cung12-theme-btn.is-active {
	border-color: #c9a227;
	color: #fff1b8;
	box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35);
}

.cung12-theme-btn:hover {
	border-color: rgba(201, 162, 39, 0.55);
	color: #fff1b8;
}

.cung12-download-png {
	background: rgba(201, 162, 39, 0.18) !important;
	border-color: rgba(201, 162, 39, 0.45) !important;
	color: #e8d08a !important;
	font-weight: 600;
}

.cung12-download-png:hover:not(:disabled) {
	border-color: #c9a227 !important;
	color: #fff3c4 !important;
}

.cung12-download-png:disabled {
	opacity: 0.6;
	cursor: wait;
}

.cung12-download-svg {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.2);
	color: #b0a898;
}

.cung12-download-svg:hover {
	border-color: rgba(201, 162, 39, 0.4);
	color: #c9a227;
}

.cung12-save-chart {
	background: rgba(201, 162, 39, 0.15);
	border-color: rgba(201, 162, 39, 0.4);
	color: #c9a227;
	margin-left: 8px;
}

/* Bottom: aspect grid + planet list */
.cung12-chart-bottom {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin-top: 8px;
}

.cung12-aspect-grid-wrap h4,
.cung12-planet-list-wrap h4 {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 13px;
	color: #c9a227;
	margin: 0 0 10px;
	font-weight: 600;
}

.cung12-aspect-grid {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cung12-aspect-grid th,
.cung12-aspect-grid td {
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 4px 6px;
	text-align: center;
	min-width: 28px;
}

.cung12-aspect-grid th {
	background: rgba(255, 255, 255, 0.05);
	color: #c9a227;
	font-size: 14px;
}

.cung12-ag-empty {
	background: rgba(0, 0, 0, 0.15);
}

.cung12-ag-none {
	opacity: 0.25;
}

.cung12-planet-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 13px;
}

.cung12-aspect-grid th img,
.cung12-aspect-grid th .cung12-planet-icon {
	display: block;
	margin: 0 auto;
	border-radius: 50%;
}

.cung12-planet-list li,
.cung12-pl-item {
	display: block;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	transition: background 0.15s;
}

.cung12-pl-row {
	display: grid;
	grid-template-columns: 32px 1fr auto;
	align-items: center;
	gap: 10px;
}

.cung12-pl-pos {
	display: block;
	font-size: 11px;
	opacity: 0.75;
	padding-left: 42px;
	margin-top: 4px;
	font-variant-numeric: tabular-nums;
}

.cung12-planet-list li:hover {
	background: rgba(201, 162, 39, 0.06);
}

.cung12-pl-glyph img,
.cung12-pl-glyph .cung12-planet-icon {
	display: block;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.cung12-pl-sign img {
	display: block;
	border-radius: 4px;
}

.cung12-sign-icon,
.cung12-planet-icon {
	object-fit: contain;
	vertical-align: middle;
}

.cung12-sign-icon-png {
	background: #0a1018;
	border-radius: 6px;
	border: 1px solid rgba(201, 162, 39, 0.35);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	padding: 1px;
}

.cung12-sign-fallback,
.cung12-planet-fallback {
	font-size: 20px;
	color: #c9a227;
}

.cung12-pl-name {
	flex: 0 0 100px;
	opacity: 0.75;
	font-size: 12px;
}

.cung12-pl-pos {
	flex: 1;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* Interpretation panels */
.cung12-chart-interp,
.cung12-chart-report .cung12-natal-interp {
	font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.85;
}

.cung12-interp-text p {
	margin: 0 0 14px;
}

.cung12-interp-text p:last-child {
	margin-bottom: 0;
}

.cung12-chart-report .cung12-natal-interp h4 {
	color: #c9a227;
	font-family: Georgia, serif;
	font-size: 18px;
	margin: 20px 0 8px;
}

.cung12-chart-report .cung12-natal-interp p {
	margin: 0 0 12px;
}

.cung12-chart-report .cung12-natal-note {
	opacity: 0.65;
	font-size: 13px;
}

/* Theme variants */
.cung12-chart-report.theme-light .cung12-chart-header::before {
	background: linear-gradient(180deg, rgba(250, 246, 238, 0.88) 0%, rgba(244, 240, 232, 0.96) 100%);
}

.cung12-chart-report.theme-light .cung12-big3-card {
	background: rgba(255, 255, 255, 0.7);
	border-color: rgba(139, 105, 20, 0.25);
}

.cung12-chart-report.theme-light .cung12-big3-sign {
	color: #1a1a2e;
}

.cung12-chart-report.theme-light .cung12-chart-title,
.cung12-chart-report.theme-light .cung12-chart-tag,
.cung12-chart-report.theme-light .cung12-chart-panel-title {
	color: #8b6914;
}

.cung12-chart-report.theme-light .cung12-chart-tab.is-active {
	color: #8b6914;
	border-color: #8b6914;
}

.cung12-chart-report.theme-anglo .cung12-chart-wheel-box circle[fill="#0d1b2a"] {
	/* SVG stays dark — anglo tints wrapper only */
}

/* Legacy wrapper inside output */
.cung12-natal-output .cung12-chart-report {
	margin-top: 0;
}

@media (max-width: 768px) {
	.cung12-chart-report,
	.cung12-natal-output,
	.cung12-chart-data-section,
	.cung12-chart-bottom,
	.cung12-data-table-wrap {
		min-width: 0;
		max-width: 100%;
	}

	.cung12-chart-big3 {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.cung12-big3-card {
		padding: 10px 12px;
	}

	.cung12-chart-brand {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 12px;
		margin-bottom: 14px;
	}

	.cung12-chart-logo {
		width: 72px;
	}

	.cung12-chart-header-inner {
		padding: 18px 14px 16px;
	}

	.cung12-chart-title {
		font-size: 20px;
	}

	.cung12-chart-bottom {
		grid-template-columns: 1fr;
	}

	.cung12-chart-tab.cung12-tab-cta {
		margin-left: 0;
		width: 100%;
		text-align: center;
	}

	.cung12-chart-header,
	.cung12-chart-panel {
		padding-left: 12px;
		padding-right: 12px;
	}

	.cung12-chart-tabs {
		flex-wrap: nowrap;
		gap: 6px;
		padding: 8px 12px 10px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.cung12-chart-tabs::-webkit-scrollbar {
		display: none;
	}

	.cung12-chart-tab {
		flex-shrink: 0;
		padding: 8px 12px;
		font-size: 12px;
	}

	.cung12-chart-visual-row {
		gap: 12px;
	}

	.cung12-chart-stats,
	.cung12-planet-list-wrap {
		padding: 10px 12px;
		border-radius: 10px;
	}

	.cung12-planet-list-wrap {
		max-height: none;
	}

	.cung12-planet-list {
		font-size: 12px;
	}

	.cung12-planet-list li,
	.cung12-pl-item {
		padding: 5px 0;
	}

	.cung12-pl-row {
		grid-template-columns: 22px minmax(0, 1fr) auto;
		gap: 6px;
		align-items: flex-start;
	}

	.cung12-pl-name {
		font-size: 11px;
		line-height: 1.35;
		opacity: 0.9;
		word-break: break-word;
	}

	.cung12-pl-pos {
		padding-left: 28px;
		margin-top: 2px;
		font-size: 10px;
		line-height: 1.4;
		opacity: 0.8;
		word-break: break-word;
	}

	.cung12-pl-glyph img,
	.cung12-pl-glyph .cung12-planet-icon {
		width: 20px !important;
		height: 20px !important;
	}

	.cung12-pl-sign img,
	.cung12-pl-sign .cung12-sign-icon {
		width: 18px !important;
		height: 18px !important;
	}

	.cung12-dignity {
		display: inline-block;
		margin: 2px 0 0;
		padding: 1px 5px;
		font-size: 9px;
	}

	.cung12-chart-toolbar {
		gap: 6px;
		margin-bottom: 16px;
	}

	.cung12-theme-btn,
	.cung12-save-chart,
	.cung12-download-png,
	.cung12-download-svg,
	.cung12-save-browser {
		padding: 5px 10px;
		font-size: 11px;
	}

	.cung12-data-section-title {
		font-size: 14px;
		margin: 14px 0 8px;
	}

	.cung12-data-table-wrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		max-width: 100%;
	}

	.cung12-data-table {
		font-size: 11px;
	}

	.cung12-data-table thead th,
	.cung12-data-table tbody td {
		padding: 7px 8px;
	}

	.cung12-data-table thead th {
		white-space: normal;
		font-size: 10px;
		line-height: 1.3;
	}

	.cung12-planet-name-cell {
		white-space: normal;
		flex-wrap: wrap;
		gap: 4px 6px;
	}

	.cung12-lon-cell .cung12-sign-icon,
	.cung12-lon-cell .cung12-sign-icon-png,
	.cung12-lon-cell img {
		width: 16px !important;
		height: 16px !important;
		flex-shrink: 0;
	}

	.cung12-lon-sign,
	.cung12-lon-dms {
		white-space: normal;
		word-break: break-word;
	}

	.cung12-houses-table .cung12-col-house-label {
		width: 36%;
		font-size: 10px;
		padding-right: 6px;
	}

	.cung12-houses-table .cung12-col-lon {
		width: 64%;
	}

	.cung12-planets-table {
		min-width: 480px;
	}

	.cung12-col-house,
	.cung12-col-house-label {
		font-size: 11px;
	}

	.cung12-aspect-grid {
		font-size: 10px;
	}

	.cung12-stat-bar-row {
		grid-template-columns: 44px 1fr 20px;
		gap: 6px;
		font-size: 11px;
		margin-bottom: 4px;
	}

	.cung12-stat-group {
		margin-bottom: 10px;
	}
}

@media (max-width: 480px) {
	.cung12-chart-header-inner {
		padding: 14px 10px 12px;
	}

	.cung12-chart-header,
	.cung12-chart-panel {
		padding-left: 10px;
		padding-right: 10px;
	}

	.cung12-houses-table .cung12-col-house-label {
		width: 34%;
		font-size: 9px;
	}

	.cung12-houses-table .cung12-col-lon {
		width: 66%;
	}

	.cung12-lon-sign {
		font-size: 10px;
	}

	.cung12-lon-dms {
		font-size: 10px;
	}
}

/* Form area stays light */
.cung12-tool-natal {
	width: 100%;
	margin: 10px 0;
	border: 1px solid #ccc;
	border-radius: 8px;
	background: #fbfbfb;
	overflow: hidden;
}

.cung12-natal-lead {
	margin: 0 12px 12px;
	color: #444;
	line-height: 1.5;
	font-size: 14px;
}

.cung12-cookie-hint {
	font-size: 12px;
	opacity: 0.7;
	font-style: normal;
}


.cung12-natal-form {
	margin: 0 10px 14px;
}

.cung12-natal-submit {
	display: flex;
	justify-content: center;
	padding: 18px 0 10px;
}

.cung12-tool-natal #btnNatal,
.cung12-astro-form-wrap #btnNatal,
button#btnNatal.cung12-btn-natal,
.cung12-tool-natal button.button#btnNatal {
	appearance: none;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: min(280px, 100%);
	min-height: 52px !important;
	height: auto !important;
	margin: 0 auto !important;
	padding: 14px 36px !important;
	border: 1px solid rgba(255, 224, 140, 0.55) !important;
	border-radius: 999px !important;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 42%),
		linear-gradient(135deg, #e8c547 0%, #c9a227 48%, #a67c12 100%) !important;
	color: #1a1204 !important;
	font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	letter-spacing: 0.08em !important;
	line-height: 1.2 !important;
	text-transform: uppercase !important;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
	box-shadow:
		0 10px 28px rgba(201, 162, 39, 0.38),
		inset 0 1px 0 rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.cung12-tool-natal #btnNatal:hover,
.cung12-astro-form-wrap #btnNatal:hover,
button#btnNatal.cung12-btn-natal:hover {
	transform: translateY(-2px);
	filter: brightness(1.08);
	color: #140e02 !important;
	box-shadow:
		0 14px 34px rgba(201, 162, 39, 0.5),
		0 0 0 4px rgba(201, 162, 39, 0.18),
		inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cung12-tool-natal #btnNatal:active,
button#btnNatal.cung12-btn-natal:active {
	transform: translateY(0);
	filter: brightness(0.98);
}

.cung12-tool-natal #btnNatal:disabled,
button#btnNatal.cung12-btn-natal:disabled {
	opacity: 0.72;
	cursor: wait;
	transform: none;
	filter: saturate(0.85);
	box-shadow: 0 6px 16px rgba(201, 162, 39, 0.22);
}

@media (max-width: 520px) {
	.cung12-tool-natal #btnNatal,
	button#btnNatal.cung12-btn-natal {
		width: 100%;
		min-width: 0;
		padding: 14px 18px !important;
		font-size: 14px !important;
	}
}

.cung12-field-label {
	margin: 5px 0;
	text-align: left;
	font-weight: bold;
	color: #333;
	font-size: 13px;
}

.cung12-natal-unknown {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #333;
	margin-bottom: 8px;
	cursor: pointer;
}

.cung12-natal-loading,
.cung12-natal-error {
	padding: 12px;
	text-align: center;
	color: #555;
}

/* Loading overlay */
.cung12-loading-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding: 32px 20px;
	margin: 12px 0;
	border-radius: 14px;
	background: linear-gradient(165deg, #0b1622 0%, #0d1a28 100%);
	border: 1px solid rgba(201, 162, 39, 0.2);
	color: #e8e3d8;
	text-align: center;
	font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
}

.cung12-loading-spinner {
	width: 48px;
	height: 48px;
	border: 3px solid rgba(201, 162, 39, 0.2);
	border-top-color: #c9a227;
	border-radius: 50%;
	animation: cung12Spin 0.85s linear infinite;
	margin-bottom: 16px;
}

@keyframes cung12Spin {
	to { transform: rotate(360deg); }
}

.cung12-loading-title {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 600;
	color: #c9a227;
}

.cung12-loading-step {
	margin: 4px 0;
	font-size: 13px;
	opacity: 0.55;
	transition: opacity 0.3s;
}

.cung12-loading-step.is-active {
	opacity: 1;
}

.cung12-loading-step.is-done {
	opacity: 1;
	color: #6b9e5a;
}

.cung12-loading-hint {
	margin: 14px 0 0;
	font-size: 12px;
	opacity: 0.5;
}

.cung12-gpt-inline-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	padding: 32px 20px;
	text-align: center;
}

.cung12-tab-gpt-pending {
	opacity: 0.75;
	pointer-events: none;
}

.cung12-gpt-block.is-pending .cung12-chart-panel {
	display: block;
}

/* Bản đồ đôi — synastry */
.cung12-dual-wheels {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 16px;
}

@media (max-width: 960px) {
	.cung12-dual-wheels {
		grid-template-columns: 1fr;
	}
}

.cung12-dual-wheel-item {
	padding: 16px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(201, 162, 39, 0.18);
}

.cung12-dual-accent-a {
	border-top: 3px solid #5d8de8;
}

.cung12-dual-accent-b {
	border-top: 3px solid #e87722;
}

.cung12-dual-wheel-head {
	margin-bottom: 12px;
}

.cung12-dual-wheel-title {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 600;
	color: #c9a227;
}

.cung12-dual-wheel-meta {
	margin: 0 0 8px;
	font-size: 12px;
	opacity: 0.75;
}

.cung12-dual-wheel-box {
	max-width: 100%;
	margin-bottom: 12px;
}

.cung12-dual-wheel-item .cung12-chart-big3 {
	grid-template-columns: repeat(2, 1fr);
	margin-bottom: 12px;
}

.cung12-dual-side-mini .cung12-planet-list-wrap {
	max-height: 280px;
}

.cung12-dual-watermark {
	position: static;
	text-align: center;
	margin: 8px 0 16px;
}

.cung12-dual-data-tables {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 20px;
}

@media (max-width: 960px) {
	.cung12-dual-data-tables {
		grid-template-columns: 1fr;
	}
}

.cung12-chart-person-b {
	opacity: 0.85;
}

.cung12-synastry-aspects {
	margin-top: 20px;
}

/* Lá số đã lưu — localStorage */
.cung12-saved-charts-wrap {
	margin: 12px 0 16px;
}

.cung12-saved-charts {
	border-radius: 12px;
	border: 1px solid rgba(201, 162, 39, 0.25);
	background: rgba(255, 255, 255, 0.03);
	overflow: hidden;
}

.cung12-saved-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 12px 16px;
	background: transparent;
	border: none;
	color: #c9a227;
	font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-align: left;
}

.cung12-saved-toggle:hover {
	background: rgba(201, 162, 39, 0.08);
}

.cung12-saved-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: rgba(201, 162, 39, 0.2);
	font-size: 12px;
}

.cung12-saved-panel {
	padding: 0 12px 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cung12-saved-hint {
	margin: 10px 4px 8px;
	font-size: 12px;
	opacity: 0.65;
}

.cung12-saved-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 280px;
	overflow-y: auto;
}

.cung12-saved-item {
	display: flex;
	align-items: stretch;
	gap: 4px;
	margin-bottom: 6px;
}

.cung12-saved-item.is-active .cung12-saved-load {
	border-color: #c9a227;
	background: rgba(201, 162, 39, 0.12);
}

.cung12-saved-load {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.15);
	color: #e8e3d8;
	cursor: pointer;
	text-align: left;
	font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
	transition: border-color 0.15s, background 0.15s;
}

.cung12-saved-load:hover {
	border-color: rgba(201, 162, 39, 0.45);
	background: rgba(201, 162, 39, 0.08);
}

.cung12-saved-item-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.cung12-saved-item-meta {
	font-size: 11px;
	opacity: 0.65;
}

.cung12-saved-badge {
	display: inline-block;
	margin-top: 2px;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 10px;
	background: rgba(255, 255, 255, 0.08);
	opacity: 0.85;
}

.cung12-saved-badge.is-gpt {
	background: rgba(107, 158, 90, 0.2);
	color: #9fd48a;
}

.cung12-saved-delete {
	flex-shrink: 0;
	width: 36px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.2);
	color: #b0a898;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
}

.cung12-saved-delete:hover {
	color: #e87722;
	border-color: rgba(232, 119, 34, 0.45);
}

.cung12-save-browser {
	background: rgba(93, 141, 232, 0.18) !important;
	border-color: rgba(93, 141, 232, 0.45) !important;
	color: #9eb8f0 !important;
}

.cung12-save-browser:hover {
	border-color: #5d8de8 !important;
	color: #c9d8f5 !important;
}

/* Data tables — chiemtinhlaso style */
.cung12-chart-data-section {
	margin-top: 24px;
}

.cung12-data-section-title {
	font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #c9a227;
	margin: 20px 0 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.cung12-data-section-title:first-child {
	margin-top: 0;
}

.cung12-data-table-wrap {
	overflow-x: auto;
	margin-bottom: 8px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.cung12-data-table {
	width: 100%;
	border-collapse: collapse;
	font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
	font-size: 13px;
}

.cung12-data-table thead th {
	background: rgba(30, 60, 90, 0.85);
	color: #e8e3d8;
	font-weight: 600;
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	white-space: nowrap;
}

.cung12-data-table tbody td {
	padding: 9px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	vertical-align: middle;
	color: #dce6f0;
}

.cung12-data-table tbody tr:hover {
	background: rgba(201, 162, 39, 0.05);
}

.cung12-data-table tbody tr:nth-child(even) {
	background: rgba(0, 0, 0, 0.12);
}

.cung12-planet-name-cell {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.cung12-lon-cell {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 6px;
	max-width: 100%;
	line-height: 1.35;
}

.cung12-houses-table {
	table-layout: fixed;
	width: 100%;
}

.cung12-houses-table .cung12-col-house-label {
	width: 40%;
	text-align: left;
	white-space: normal;
	word-break: break-word;
	vertical-align: middle;
}

.cung12-houses-table .cung12-col-lon {
	width: 60%;
	overflow: visible;
	word-break: break-word;
	vertical-align: middle;
}

.cung12-lon-sign {
	font-weight: 500;
}

.cung12-lon-dms {
	font-variant-numeric: tabular-nums;
	opacity: 0.9;
}

.cung12-dignity {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	margin-left: 4px;
}

.cung12-dignity-good {
	background: rgba(46, 125, 50, 0.35);
	color: #81c784;
	border: 1px solid rgba(129, 199, 132, 0.4);
}

.cung12-dignity-bad {
	background: rgba(183, 90, 40, 0.35);
	color: #ffb074;
	border: 1px solid rgba(255, 176, 116, 0.35);
}

.cung12-col-house,
.cung12-col-house-label {
	text-align: center;
	font-weight: 600;
	color: #c9a227;
}

.cung12-col-aspect {
	color: #8899aa;
	font-size: 12px;
}

.cung12-col-orb {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Wheel + classic detail — premium dark (v1.15) */
.cung12-chart-sheet {
	position: relative;
	background:
		radial-gradient(ellipse 90% 55% at 50% -5%, rgba(130, 90, 180, 0.14) 0%, transparent 55%),
		radial-gradient(ellipse 50% 35% at 95% 90%, rgba(201, 162, 39, 0.1) 0%, transparent 50%),
		linear-gradient(168deg, #0e2d45 0%, #0a2238 42%, #071828 100%);
	color: #e8edf5;
	border-radius: 20px;
	padding: 32px 28px 26px;
	margin: 16px 0 12px;
	border: 1px solid rgba(201, 162, 39, 0.28);
	box-shadow:
		0 24px 64px rgba(0, 0, 0, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.07),
		inset 0 -1px 0 rgba(0, 0, 0, 0.2);
	overflow: visible;
}

.cung12-chart-sheet::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px);
	background-size: 28px 28px;
	opacity: 0.04;
	pointer-events: none;
}

.cung12-chart-sheet .cung12-chart-wheel-section .cung12-chart-wheel-box {
	max-width: min(980px, 100%);
	width: 100%;
	margin: 0 auto;
	padding: 0;
}

.cung12-chart-wheel-section {
	position: relative;
	margin-bottom: 4px;
	text-align: center;
	z-index: 1;
	width: 100%;
}

.cung12-chart-sheet .cung12-chart-wheel {
	max-width: 100%;
	width: 100%;
}

.cung12-wheel-frame {
	position: relative;
	display: block;
	width: 100%;
	max-width: min(980px, 100%);
	margin: 0 auto;
	padding: 0;
	background: transparent;
	border-radius: 0;
}

.cung12-wheel-ring {
	display: none;
}

.cung12-wheel-glow {
	position: absolute;
	inset: 5%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 65%);
	pointer-events: none;
	animation: cung12WheelPulse 5s ease-in-out infinite;
	z-index: 0;
}

.cung12-chart-sheet .cung12-chart-wheel {
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 10px 32px rgba(0, 0, 0, 0.55));
	max-width: 100%;
}

.cung12-chart-watermark-below {
	position: static !important;
	display: block;
	text-align: center;
	margin: 14px auto 0;
	max-width: 100%;
	font-size: 11px;
	font-style: italic;
	letter-spacing: 0.03em;
	color: rgba(184, 204, 224, 0.65) !important;
	opacity: 1 !important;
}

/* Classic detail — xếp dọc: lưới 2 cột trên, phân cấp dưới */
.cung12-chart-classic-detail {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 28px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid rgba(201, 162, 39, 0.18);
	align-items: stretch;
	position: relative;
	z-index: 1;
}

.cung12-classic-stack {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.cung12-classic-aspect-card {
	width: 100%;
}

.cung12-classic-matrix-card {
	width: 100%;
}

.cung12-aspectarian-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
	gap: 16px 20px;
	align-items: start;
	min-width: 0;
}

.cung12-aspectarian-grid {
	min-width: 0;
	overflow-x: auto;
}

.cung12-aspectarian-grid .cung12-aspect-grid-wrap {
	margin: 0;
}

.cung12-aspectarian-list {
	min-width: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	padding-left: 14px;
}

.cung12-aspectarian-list .cung12-planet-list-wrap {
	margin: 0;
}

.cung12-aspectarian-list .cung12-planet-list {
	max-height: none;
	overflow: visible;
}

.cung12-aspectarian-list .cung12-pl-classic {
	grid-template-columns: minmax(118px, 1fr) minmax(140px, 1.15fr);
	padding: 6px 6px !important;
}

.cung12-aspectarian-list .cung12-pl-classic .cung12-pl-name {
	font-size: 12px;
	font-weight: 600;
	color: #e8f2fa;
}

.cung12-aspectarian-list .cung12-pl-deg {
	font-size: 14px !important;
	color: #fff8ee !important;
}

.cung12-aspectarian-list .cung12-pl-signname {
	font-size: 12px !important;
	color: #b8cfe4 !important;
}

.cung12-aspectarian-list .cung12-pl-dms {
	font-size: 11px !important;
	color: #9eb8d4 !important;
}

.cung12-aspectarian-list .cung12-pl-el-fire .cung12-pl-deg,
.cung12-aspectarian-list .cung12-pl-el-fire .cung12-pl-signname {
	color: #ff8a80 !important;
}

.cung12-aspectarian-list .cung12-pl-el-earth .cung12-pl-deg,
.cung12-aspectarian-list .cung12-pl-el-earth .cung12-pl-signname {
	color: #a5d6a7 !important;
}

.cung12-aspectarian-list .cung12-pl-el-air .cung12-pl-deg,
.cung12-aspectarian-list .cung12-pl-el-air .cung12-pl-signname {
	color: #ffe082 !important;
}

.cung12-aspectarian-list .cung12-pl-el-water .cung12-pl-deg,
.cung12-aspectarian-list .cung12-pl-el-water .cung12-pl-signname {
	color: #81d4fa !important;
}

.cung12-aspect-grid-with-list .cung12-aspect-grid-scroll {
	overflow-x: auto;
}

.cung12-classic-left .cung12-classic-legend-inline {
	margin-top: 14px;
}

.cung12-classic-right {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.cung12-classic-legend-inline {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cung12-classic-legend-inline .cung12-aspect-legend-vertical {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 6px 10px;
}

.cung12-classic-legend-inline .cung12-aspect-legend-row {
	width: auto;
	flex: 1 1 calc(33% - 10px);
	min-width: 120px;
	padding: 5px 8px;
}

.cung12-classic-card {
	background: rgba(6, 16, 28, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 14px;
	padding: 14px 14px 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(8px);
	transition: border-color 0.25s, box-shadow 0.25s;
}

.cung12-classic-card:hover {
	border-color: rgba(201, 162, 39, 0.22);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.cung12-classic-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding-bottom: 10px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #e8c547;
	border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.cung12-section-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: rgba(201, 162, 39, 0.12);
	border: 1px solid rgba(201, 162, 39, 0.25);
	font-size: 11px;
	color: #e8c547;
	flex-shrink: 0;
}

.cung12-classic-col {
	min-width: 0;
}

.cung12-classic-mid {
	display: none;
}

.cung12-chart-sheet .cung12-planet-list-wrap {
	max-height: none !important;
	overflow: visible !important;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.cung12-planet-list-classic .cung12-planet-list {
	font-size: 12px;
	line-height: 1.4;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cung12-pl-classic {
	display: grid !important;
	grid-template-columns: minmax(128px, 1fr) minmax(150px, 1.15fr);
	align-items: center;
	gap: 8px 10px;
	padding: 7px 8px !important;
	border-bottom: none !important;
	border-radius: 8px;
	transition: background 0.18s;
}

.cung12-pl-classic:nth-child(even) {
	background: rgba(255, 255, 255, 0.025);
}

.cung12-pl-classic:hover {
	background: rgba(201, 162, 39, 0.07);
}

.cung12-pl-left {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.cung12-pl-classic .cung12-pl-glyph .cung12-planet-icon {
	width: 22px;
	height: 22px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.cung12-pl-classic .cung12-pl-name {
	flex: unset;
	font-size: 12px;
	font-weight: 500;
	opacity: 1;
	color: #d8e4f0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cung12-pl-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: nowrap;
	gap: 4px;
	min-width: 0;
	font-variant-numeric: tabular-nums;
	text-align: right;
	overflow: hidden;
}

.cung12-chart-sheet .cung12-pl-deg {
	color: #fff8ee;
	font-weight: 700;
	font-size: 13px;
}

.cung12-chart-sheet .cung12-pl-signname {
	color: #a8c0d8;
	font-size: 11px;
	font-weight: 500;
}

.cung12-chart-sheet .cung12-pl-dms {
	color: #7a90a8;
	font-size: 10px;
}

.cung12-pl-house {
	font-size: 10px;
	color: #6a8098;
	white-space: nowrap;
	padding: 1px 5px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.04);
}

.cung12-pl-classic .cung12-dignity {
	font-size: 9px;
	padding: 2px 6px;
	border-radius: 999px;
	white-space: nowrap;
	flex-shrink: 0;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.cung12-chart-sheet .cung12-dignity-good {
	background: rgba(76, 175, 80, 0.18);
	color: #a5d6a7;
	border: 1px solid rgba(129, 199, 132, 0.25);
}

.cung12-chart-sheet .cung12-dignity-bad {
	background: rgba(239, 83, 80, 0.15);
	color: #ef9a9a;
	border: 1px solid rgba(239, 154, 154, 0.2);
}

.cung12-classic-aspects {
	overflow-x: auto;
	min-width: 0;
	scrollbar-width: thin;
	scrollbar-color: rgba(201, 162, 39, 0.3) transparent;
}

/* Lưới góc chiếu pro — giống chiemtinhlaso */
.cung12-aspect-grid-pro .cung12-aspect-grid-scroll {
	overflow-x: auto;
	border-radius: 8px;
	background: #060f1a;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.cung12-aspect-grid-pro .cung12-aspect-grid {
	font-size: 14px;
	background: #060f1a;
	border-collapse: collapse;
	border: none;
	border-radius: 0;
}

.cung12-aspect-grid-pro .cung12-aspect-grid th,
.cung12-aspect-grid-pro .cung12-aspect-grid td {
	padding: 5px 6px;
	min-width: 24px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	text-align: center;
	vertical-align: middle;
	line-height: 1.1;
}

.cung12-aspect-grid-pro .cung12-ag-aspect-sym {
	font-size: 15px;
	font-weight: 700;
}

.cung12-aspect-grid-pro .cung12-ag-corner,
.cung12-aspect-grid-pro .cung12-ag-col-repeat {
	background: #060f1a;
	border-color: rgba(255, 255, 255, 0.12);
	min-width: 6px;
	width: 6px;
	padding: 0;
}

.cung12-aspect-grid-pro .cung12-ag-row-h,
.cung12-aspect-grid-pro .cung12-ag-col-h,
.cung12-aspect-grid-pro .cung12-ag-row-repeat {
	background: #0a1628;
	padding: 3px 4px;
}

.cung12-aspect-grid-pro .cung12-ag-row-repeat {
	border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.cung12-aspect-grid-pro .cung12-ag-empty {
	background: #060f1a;
	border-color: rgba(255, 255, 255, 0.08);
}

.cung12-aspect-grid-pro .cung12-ag-none {
	background: #081420;
	border-color: rgba(255, 255, 255, 0.1);
}

.cung12-aspect-grid-pro .cung12-ag-cell {
	background: #081420;
}

.cung12-aspect-grid-pro .cung12-ag-aspect-sym {
	display: inline-block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

.cung12-aspect-grid-pro .cung12-ag-glyph {
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	min-width: 18px;
}

.cung12-aspect-grid-pro .cung12-ag-point .cung12-planet-icon {
	width: 18px;
	height: 18px;
	display: block;
	margin: 0 auto;
}

.cung12-aspect-grid-classic .cung12-aspect-grid {
	font-size: 12px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.cung12-aspect-grid-pro.cung12-aspect-grid-classic .cung12-aspect-grid {
	border-radius: 0;
	overflow: visible;
	border: none;
}

.cung12-aspect-grid-classic .cung12-aspect-grid th,
.cung12-aspect-grid-classic .cung12-aspect-grid td {
	padding: 5px 5px;
	min-width: 26px;
	border-color: rgba(255, 255, 255, 0.06);
	transition: background 0.15s;
}

.cung12-aspect-grid-classic .cung12-aspect-grid td:not(.cung12-ag-empty):not(.cung12-ag-none):hover {
	background: rgba(255, 255, 255, 0.06);
}

.cung12-chart-sheet .cung12-aspect-grid th {
	background: rgba(201, 162, 39, 0.1);
	color: #e8c547;
	font-weight: 600;
}

.cung12-chart-sheet .cung12-aspect-grid th img,
.cung12-chart-sheet .cung12-aspect-grid th .cung12-planet-icon {
	width: 20px;
	height: 20px;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.cung12-chart-sheet .cung12-ag-empty {
	background: rgba(0, 0, 0, 0.18);
}

.cung12-chart-sheet .cung12-ag-none {
	color: rgba(255, 255, 255, 0.12);
}

.cung12-element-matrix-wrap {
	overflow-x: auto;
	min-width: 0;
}

.cung12-chart-sheet .cung12-element-matrix th,
.cung12-chart-sheet .cung12-element-matrix td {
	border-color: rgba(255, 255, 255, 0.07);
}

.cung12-chart-sheet .cung12-element-matrix thead th {
	background: rgba(201, 162, 39, 0.1);
	color: #e8c547;
	font-size: 9px;
	letter-spacing: 0.04em;
}

.cung12-aspect-legend-vertical {
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 6px;
	max-width: none;
	margin: 0;
	font-size: 11px;
	color: #b8cce0;
}

.cung12-chart-sheet .cung12-aspect-legend-txt {
	opacity: 1;
	color: #c0d0e0;
	font-size: 11px;
}

.cung12-element-matrix {
	width: 100%;
	max-width: 720px;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 12px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.cung12-classic-matrix-card .cung12-element-matrix-wrap {
	max-width: 720px;
}

.cung12-element-matrix th,
.cung12-element-matrix td {
	border: 1px solid rgba(255, 255, 255, 0.06);
	padding: 8px 5px;
	text-align: center;
	vertical-align: middle;
}

.cung12-element-matrix thead th {
	background: rgba(255, 255, 255, 0.05);
	font-weight: 600;
	font-size: 9px;
	color: #c9a227;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.cung12-element-matrix tbody th {
	text-align: left;
	padding-left: 10px;
	font-weight: 700;
	font-size: 11px;
	border-left-width: 3px;
}

.cung12-element-matrix tbody tr:nth-child(1) th { background: rgba(229, 57, 53, 0.08); border-left-color: #e53935; }
.cung12-element-matrix tbody tr:nth-child(2) th { background: rgba(67, 160, 71, 0.08); border-left-color: #43a047; }
.cung12-element-matrix tbody tr:nth-child(3) th { background: rgba(251, 140, 0, 0.08); border-left-color: #fb8c00; }
.cung12-element-matrix tbody tr:nth-child(4) th { background: rgba(30, 136, 229, 0.08); border-left-color: #1e88e5; }

.cung12-element-matrix .cung12-el-fire { color: #ff8a80; }
.cung12-element-matrix .cung12-el-earth { color: #81c784; }
.cung12-element-matrix .cung12-el-air { color: #ffb74d; }
.cung12-element-matrix .cung12-el-water { color: #64b5f6; }

.cung12-em-cell {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 3px;
	justify-content: center;
	align-items: center;
	min-height: 24px;
}

.cung12-em-planet .cung12-planet-icon {
	width: 20px;
	height: 20px;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
	transition: transform 0.15s;
}

.cung12-em-planet:hover .cung12-planet-icon {
	transform: scale(1.15);
}

.cung12-element-legend {
	margin-top: 12px;
	padding: 10px 10px 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 0 0 8px 8px;
	background: rgba(0, 0, 0, 0.15);
	font-size: 10px;
	line-height: 1.5;
	color: #98aab8;
}

.cung12-element-legend-title {
	margin: 0 0 8px;
	font-size: 9px;
	font-weight: 700;
	color: #c9a227;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.cung12-element-legend-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cung12-element-legend-list li {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 8px;
	margin-bottom: 5px;
	align-items: baseline;
}

.cung12-element-legend-key {
	font-weight: 700;
	font-size: 10px;
}

.cung12-element-legend-key.cung12-el-fire { color: #ff8a80; }
.cung12-element-legend-key.cung12-el-earth { color: #81c784; }
.cung12-element-legend-key.cung12-el-air { color: #ffb74d; }
.cung12-element-legend-key.cung12-el-water { color: #64b5f6; }

.cung12-element-legend-desc {
	color: #8899aa;
	font-size: 10px;
}

.cung12-element-legend-modality {
	margin: 10px 0 0;
	padding-top: 8px;
	border-top: 1px dashed rgba(255, 255, 255, 0.06);
	font-size: 9px;
	color: #6a8098;
	line-height: 1.55;
}

.cung12-aspect-legend-row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 6px 10px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.05);
	transition: background 0.15s, border-color 0.15s;
}

.cung12-aspect-legend-row:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(201, 162, 39, 0.15);
}

.cung12-aspect-legend-sym {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.25);
}

.cung12-chart-data-expand {
	margin-top: 12px;
	border: 1px solid rgba(201, 162, 39, 0.15);
	border-radius: 10px;
	overflow: hidden;
}

.cung12-chart-data-expand-toggle {
	cursor: pointer;
	padding: 10px 14px;
	font-size: 13px;
	color: #c9a227;
	background: rgba(0, 0, 0, 0.15);
	list-style: none;
}

.cung12-chart-data-expand-toggle::-webkit-details-marker {
	display: none;
}

.cung12-chart-data-expand[open] .cung12-chart-data-expand-toggle {
	border-bottom: 1px solid rgba(201, 162, 39, 0.12);
}

.cung12-chart-data-expand .cung12-chart-bottom {
	margin-top: 0;
	padding: 12px 14px 14px;
}

@media (max-width: 900px) {
	.cung12-aspectarian-split {
		grid-template-columns: 1fr;
	}
	.cung12-aspectarian-list {
		border-left: none;
		padding-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		padding-top: 12px;
	}
	.cung12-classic-legend-inline .cung12-aspect-legend-row {
		flex: 1 1 calc(50% - 8px);
		min-width: 140px;
	}
}

@media (max-width: 720px) {
	.cung12-chart-sheet {
		padding: 20px 14px 18px;
		border-radius: 14px;
	}
	.cung12-wheel-frame {
		padding: 10px;
	}
	.cung12-chart-classic-detail {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-top: 20px;
		padding-top: 18px;
	}
	.cung12-classic-mid {
		display: none;
	}
	.cung12-classic-card {
		padding: 12px;
	}
	.cung12-pl-classic {
		grid-template-columns: 1fr;
		gap: 4px;
	}
	.cung12-pl-right {
		justify-content: flex-start;
		flex-wrap: wrap;
	}
	.cung12-chart-panel {
		padding: 20px 14px 24px;
	}
}

.cung12-chart-place {
	margin: 4px 0 0;
	font-size: 13px;
	opacity: 0.85;
}

.cung12-chart-bottom-grid {
	margin-top: 20px;
}

.cung12-chart-report.theme-light .cung12-data-table thead th {
	background: rgba(139, 105, 20, 0.15);
	color: #1a1a2e;
}

.cung12-chart-report.theme-light .cung12-data-table tbody td {
	color: #333;
}

/* ── v1.17 — Glyph badges + typography polish ── */

.cung12-glyph-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: var(--badge-size, 28px);
	height: var(--badge-size, 28px);
	border-radius: 50%;
	background: linear-gradient(145deg, rgba(8, 16, 24, 0.95) 0%, rgba(14, 28, 42, 0.92) 100%);
	border: 1.5px solid var(--badge-color, #c9a227);
	box-shadow:
		0 2px 8px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	vertical-align: middle;
	line-height: 1;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cung12-glyph-badge-inner {
	display: block;
	font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", sans-serif;
	font-size: calc(var(--badge-size, 28px) * 0.52);
	font-weight: 700;
	color: var(--badge-color, #c9a227);
	line-height: 1;
	text-align: center;
	user-select: none;
}

.cung12-glyph-badge-sign {
	border-radius: 8px;
}

.cung12-glyph-badge-sign .cung12-glyph-badge-inner {
	font-size: calc(var(--badge-size, 28px) * 0.58);
}

.cung12-big3-icon .cung12-glyph-badge,
.cung12-pl-glyph .cung12-glyph-badge,
.cung12-ag-point .cung12-glyph-badge,
.cung12-em-planet .cung12-glyph-badge {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cung12-big3-card:hover .cung12-glyph-badge,
.cung12-pl-classic:hover .cung12-glyph-badge,
.cung12-em-planet:hover .cung12-glyph-badge {
	transform: scale(1.06);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

/* Legacy img selectors — map to badges */
.cung12-big3-icon .cung12-planet-icon,
.cung12-big3-icon .cung12-sign-icon,
.cung12-pl-glyph .cung12-planet-icon,
.cung12-aspect-grid th .cung12-planet-icon,
.cung12-aspect-grid-pro .cung12-ag-point .cung12-planet-icon,
.cung12-em-planet .cung12-planet-icon {
	display: inline-flex;
	border-radius: 50%;
	box-shadow: none;
}

/* Planet list — readable sizes, no overlap */
.cung12-planet-list-classic .cung12-planet-list {
	font-size: 13px;
}

.cung12-pl-classic {
	grid-template-columns: minmax(140px, 1fr) minmax(168px, 1.2fr);
	gap: 10px 14px;
	padding: 9px 10px !important;
}

.cung12-pl-classic .cung12-pl-name {
	font-size: 13px;
	font-weight: 600;
}

.cung12-chart-sheet .cung12-pl-deg {
	font-size: 14px;
}

.cung12-chart-sheet .cung12-pl-signname {
	font-size: 12px;
}

.cung12-chart-sheet .cung12-pl-dms {
	font-size: 11px;
}

.cung12-pl-classic .cung12-dignity {
	font-size: 10px;
	padding: 2px 7px;
}

.cung12-pl-left {
	gap: 10px;
}

/* Aspect grid — larger cells & symbols */
.cung12-aspect-grid-pro .cung12-aspect-grid {
	font-size: 15px;
}

.cung12-aspect-grid-pro .cung12-aspect-grid th,
.cung12-aspect-grid-pro .cung12-aspect-grid td {
	padding: 6px 7px;
	min-width: 28px;
}

.cung12-aspect-grid-pro .cung12-ag-aspect-sym {
	font-size: 16px;
}

.cung12-aspect-grid-pro .cung12-ag-point .cung12-glyph-badge {
	--badge-size: 24px;
}

.cung12-aspect-grid-pro .cung12-ag-row-h,
.cung12-aspect-grid-pro .cung12-ag-col-h {
	padding: 5px 6px;
}

/* Element matrix — legible headers */
.cung12-element-matrix {
	font-size: 13px;
}

.cung12-element-matrix thead th {
	font-size: 10px;
}

.cung12-element-matrix tbody th {
	font-size: 12px;
}

.cung12-em-planet .cung12-glyph-badge {
	--badge-size: 22px;
}

.cung12-element-legend {
	font-size: 11px;
}

.cung12-element-legend-title {
	font-size: 10px;
}

/* Wheel SVG text clarity */
.cung12-chart-wheel .c12wtxt {
	paint-order: stroke fill;
	stroke: #081018;
	stroke-width: 2.5px;
	stroke-linejoin: round;
}

.cung12-chart-wheel .c12-sign-glyph,
.cung12-chart-wheel .c12-planet-glyph {
	stroke-width: 3px;
}

.cung12-chart-wheel .c12-house-num {
	stroke-width: 2px;
}

@media (max-width: 768px) {
	.cung12-glyph-badge {
		border-width: 1px;
	}

	.cung12-pl-classic {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		padding: 8px 6px !important;
	}

	.cung12-pl-classic .cung12-pl-name {
		font-size: 12px;
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
	}

	.cung12-chart-sheet .cung12-pl-deg {
		font-size: 13px;
	}

	.cung12-aspect-grid-pro .cung12-aspect-grid {
		font-size: 13px;
	}

	.cung12-aspect-grid-pro .cung12-ag-point .cung12-glyph-badge {
		--badge-size: 22px;
	}

	.cung12-aspect-grid-pro .cung12-aspect-grid th,
	.cung12-aspect-grid-pro .cung12-aspect-grid td {
		padding: 5px 5px;
		min-width: 26px;
	}
}

/* ── v1.18 — SVG logos (Wikimedia planetary-color) ── */

.cung12-astro-icon,
img.cung12-planet-icon,
img.cung12-sign-icon,
.cung12-ag-point img,
.cung12-pl-glyph img,
.cung12-pl-sign img,
.cung12-big3-icon img,
.cung12-em-planet img,
.cung12-lon-cell img {
	display: inline-block;
	vertical-align: middle;
	object-fit: contain;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

.cung12-pl-classic:hover .cung12-astro-icon,
.cung12-em-planet:hover .cung12-astro-icon,
.cung12-big3-card:hover .cung12-astro-icon {
	transform: scale(1.08);
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.cung12-aspect-grid-pro .cung12-ag-point .cung12-astro-icon,
.cung12-aspect-grid-pro .cung12-ag-point img {
	width: 24px;
	height: 24px;
}

.cung12-pl-classic .cung12-pl-glyph .cung12-astro-icon,
.cung12-pl-classic .cung12-pl-glyph img {
	width: 28px;
	height: 28px;
}

.cung12-pl-classic .cung12-pl-sign .cung12-astro-icon,
.cung12-pl-classic .cung12-pl-sign img {
	width: 24px;
	height: 24px;
}

.cung12-data-table {
	font-size: 14px;
}

.cung12-data-table thead th {
	background: linear-gradient(180deg, rgba(40, 72, 108, 0.95) 0%, rgba(22, 48, 78, 0.95) 100%);
	color: #f3e4a8;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 12px 14px;
}

.cung12-data-table tbody td {
	padding: 11px 14px;
	font-size: 14px;
	color: #e8eef6;
}

.cung12-planet-name-cell {
	gap: 10px;
	font-weight: 600;
	font-size: 14px;
}

.cung12-chart-data-expand {
	margin-top: 8px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	background: rgba(6, 16, 28, 0.4);
	overflow: hidden;
}

.cung12-chart-data-expand-toggle {
	font-size: 14px;
	font-weight: 600;
	padding: 12px 16px;
}

.cung12-chart-sheet .cung12-chart-wheel {
	background: transparent;
}

.cung12-save-browser {
	background: rgba(201, 162, 39, 0.16);
	border-color: rgba(201, 162, 39, 0.4);
	color: #e8d08a;
	font-weight: 600;
}

@media (max-width: 768px) {
	.cung12-chart-logo {
		width: 64px;
		height: 64px;
	}

	.cung12-toolbar-group {
		width: 100%;
	}

	.cung12-pl-classic .cung12-pl-glyph .cung12-astro-icon,
	.cung12-pl-classic .cung12-pl-glyph img,
	.cung12-pl-classic .cung12-pl-sign .cung12-astro-icon,
	.cung12-pl-classic .cung12-pl-sign img {
		width: 22px !important;
		height: 22px !important;
	}

	.cung12-data-table,
	.cung12-data-table tbody td {
		font-size: 13px;
	}
}
