/* Xem Ngày Tốt Xấu — giao diện widget */
.xntx-widget {
	max-width: 1000px;
	margin: 0 auto;
	font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #2b2b2b;
	line-height: 1.55;
}

/* Xem tuổi vợ chồng — luận giải duyên nghiệp */
.xntx-vc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; }
.xntx-vc-col > label { display: block; font-weight: 700; margin-bottom: 6px; color: #1f2d3d; }
.xntx-vc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.xntx-vc-table th, .xntx-vc-table td { padding: 9px 12px; border-bottom: 1px solid #eef0f2; text-align: left; vertical-align: top; }
.xntx-vc-table thead th { background: #f6f7f9; color: #444; font-weight: 700; }
.xntx-vc-table tbody th { background: #fbfcfd; color: #5a6472; font-weight: 600; white-space: nowrap; width: 130px; }
.xntx-vc-sub { color: #8a8f98; font-size: 11.5px; }
.xntx-vc-ketluan { margin-top: 14px; padding: 14px 16px; border-radius: 12px; line-height: 1.6; }
.xntx-vc-ketluan .xntx-vc-diem { display: inline-block; font-weight: 800; margin-right: 8px; padding: 2px 10px; border-radius: 20px; background: rgba(0,0,0,.06); }
.xntx-vc-vgood { background: #eafaf1; border: 1px solid #a9dfbf; }
.xntx-vc-good { background: #f0f9f4; border: 1px solid #c8e6d4; }
.xntx-vc-mid { background: #fbf6e7; border: 1px solid #ecd9a6; }
.xntx-vc-bad { background: #fdeeec; border: 1px solid #f1b7ad; }
.xntx-vc-list { margin: 8px 0 0; padding-left: 20px; }
.xntx-vc-list li { margin-bottom: 8px; line-height: 1.55; }
@media (max-width: 560px) { .xntx-vc-form { grid-template-columns: 1fr; } }

/* Đặt tên con theo ngũ hành */
.xntx-dt input[type=text] { min-width: 150px; }
.xntx-dt-chu { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 15px; }
.xntx-dt-word { font-weight: 700; }
.xntx-dt-word em { font-style: normal; font-size: 12px; font-weight: 600; }

/* Xem bói nốt ruồi */
.xntx-nr-bar { position: sticky; top: 0; background: #fff; padding: 8px 0 12px; z-index: 2; }
#xntx-nr-search { width: 100%; padding: 11px 14px; border: 1px solid #d7dbe0; border-radius: 10px; font-size: 14px; box-sizing: border-box; }
#xntx-nr-search:focus { outline: none; border-color: #7d1f2b; box-shadow: 0 0 0 3px rgba(125,31,43,.1); }
.xntx-nr-legend { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 11px; }
.xntx-nr-group { border: 1px solid #eef0f2; border-radius: 12px; padding: 0 16px 16px; margin-bottom: 22px; background: #fff; overflow: hidden; }
.xntx-nr-group > h4 {
	margin: 0 -16px 16px;
	padding: 13px 18px;
	background: linear-gradient(135deg, #7d1f2b, #c0392b);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: .3px;
	border-left: 5px solid #f1c40f;
	display: flex;
	align-items: center;
	gap: 8px;
}
.xntx-nr-group > h4::before { content: "🔴"; font-size: 15px; }
.xntx-nr-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.xntx-nr-imgbox { max-width: 100%; overflow-x: auto; border: 1px solid #eef0f2; border-radius: 10px; background: #fff; padding: 6px; margin: 0 auto; }
.xntx-nr-imgbox img { display: block; margin: 0 auto; max-width: none; }
.xntx-nr-list { width: 100%; margin: 0; padding-left: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.xntx-nr-item { font-size: 13px; color: #2b2b2b; line-height: 1.5; padding: 3px 4px; border-radius: 6px; }
.xntx-nr-item:target { background: #fff6d5; box-shadow: 0 0 0 2px #ecd9a6; }
.xntx-nr-item .xntx-nr-txt { color: #3a4553; }
.xntx-nr-item .xntx-badge-good, .xntx-nr-item .xntx-badge-bad, .xntx-nr-item .xntx-badge-mid { font-size: 10px; padding: 1px 6px; margin-right: 4px; }
@media (max-width: 900px) { .xntx-nr-wrap { flex-direction: column; } .xntx-nr-list { grid-template-columns: 1fr; } }

/* Tử Vi — bình giải chi tiết 12 cung */
.xntx-bg-cung { border: 1px solid #eef0f2; border-left: 4px solid #7d1f2b; border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; background: #fbfcfd; }
.xntx-bg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.xntx-bg-ten { font-size: 16px; font-weight: 800; color: #7d1f2b; }
.xntx-bg-meta { font-size: 12px; color: #8a8f98; }
.xntx-bg-y { margin: 4px 0 8px; font-size: 13px; color: #5a6472; }
.xntx-bg-sao { margin: 5px 0; font-size: 13.5px; line-height: 1.55; color: #2b2b2b; }
.xntx-bg-phu { margin: 6px 0; font-size: 12.5px; color: #4a5568; line-height: 1.55; }
.xntx-bg-hoa { margin: 5px 0; font-size: 13px; color: #7d1f2b; line-height: 1.5; }

/* Đầu năm bói quẻ — Kinh Dịch */
.xntx-bq-card { border: 1px solid #e7ebf0; border-radius: 14px; padding: 20px 22px; background: #fff; }
.xntx-bq-head { display: flex; align-items: center; gap: 18px; }
.xntx-bq-symbol { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 34px; line-height: 1.15; width: 62px; height: 62px; border-radius: 12px; background: linear-gradient(135deg, #7d1f2b, #c0392b); color: #fff; }
.xntx-bq-title h3 { margin: 3px 0 6px; font-size: 22px; color: #1f2d3d; }
.xntx-bq-no { font-size: 12.5px; color: #8a8f98; font-weight: 700; letter-spacing: .3px; }
.xntx-bq-trigrams { margin: 12px 0; color: #4a5568; font-size: 13.5px; }
.xntx-bq-luan, .xntx-bq-hao { margin-top: 8px; }
.xntx-bq-luan h4, .xntx-bq-hao h4 { margin: 10px 0 4px; font-size: 15px; }
.xntx-bq-card input[type=text] { min-width: 160px; }
.xntx-bq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.xntx-bq-item { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid #eef0f2; border-radius: 10px; background: #fbfcfd; }
.xntx-bq-item .xntx-bq-ic { font-size: 22px; line-height: 1.2; }
.xntx-bq-item strong { display: block; font-size: 13.5px; color: #1f2d3d; margin-bottom: 2px; }
.xntx-bq-item p { margin: 0; font-size: 13px; color: #4a5568; line-height: 1.5; }
.xntx-bq-khuyen { background: #f6faf7; border: 1px solid #cde8d6; border-radius: 10px; padding: 10px 14px; }
@media (max-width: 560px) { .xntx-bq-grid { grid-template-columns: 1fr; } .xntx-bq-head { gap: 12px; } }

/* Trang tổng "Xem Ngày" — lưới thẻ icon */
.xntx-hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 16px;
}
.xntx-hub-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 22px 16px;
	border: 1px solid #e7ebf0;
	border-radius: 14px;
	background: #fff;
	text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.xntx-hub-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(16, 24, 40, .12);
	border-color: #c0392b;
}
.xntx-hub-icon {
	font-size: 40px;
	line-height: 1;
}
.xntx-hub-title {
	font-size: 15.5px;
	font-weight: 700;
	color: #1f2d3d;
}
.xntx-hub-desc {
	font-size: 12.5px;
	color: #7a828c;
	line-height: 1.45;
}
@media (max-width: 520px) {
	.xntx-hub-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
	.xntx-hub-icon { font-size: 32px; }
	.xntx-hub-title { font-size: 14px; }
}

/* Form */
.xntx-form {
	background: #f6f7f9;
	border: 1px solid #e3e6ea;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 20px;
}
.xntx-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}
.xntx-form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.xntx-form select,
.xntx-form input[type="text"],
.xntx-form input[type="number"] {
	flex: 1 1 auto;
	min-width: 110px;
	padding: 11px 13px;
	border: 1.5px solid #c3cad2;
	border-radius: 9px;
	background: #fff;
	font-size: 15px;
	color: #222;
	line-height: 1.2;
	box-shadow: 0 1px 2px rgba(16,24,40,.04);
	transition: border-color .15s, box-shadow .15s;
	box-sizing: border-box;
	height: 44px;
}
.xntx-form input::placeholder { color: #9aa2ac; }
/* Mũi tên tùy biến cho select */
.xntx-form select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 34px;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c0392b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
	cursor: pointer;
}
.xntx-form select:hover,
.xntx-form input[type="text"]:hover { border-color: #a7b0ba; }
.xntx-form select:focus,
.xntx-form input[type="text"]:focus,
.xntx-form input[type="number"]:focus {
	outline: none;
	border-color: #c0392b;
	box-shadow: 0 0 0 3px rgba(192,57,43,.14);
}
.xntx-form button {
	flex: 0 0 auto;
	padding: 0 24px;
	height: 44px;
	border: 0;
	border-radius: 9px;
	background: #c0392b;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .2px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(192,57,43,.28);
	transition: background .15s, transform .05s;
}
.xntx-form button:hover { background: #a5311f; }
.xntx-form button:active { transform: translateY(1px); }
.xntx-form label { color: #2b3440; font-size: 14px; }

/* Kết quả */
.xntx-result {
	border: 1px solid #e3e6ea;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

/* Header */
.xntx-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding: 20px;
	color: #fff;
}
.xntx-head.xntx-good { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.xntx-head.xntx-bad  { background: linear-gradient(135deg, #34495e, #5d6d7e); }
.xntx-solar { text-align: center; min-width: 120px; }
.xntx-solar .xntx-day { display: block; font-size: 56px; font-weight: 800; line-height: 1; }
.xntx-solar .xntx-md, .xntx-solar .xntx-thu { display: block; font-size: 14px; opacity: .95; }
.xntx-lunar { min-width: 120px; }
.xntx-lunar span { display: block; }
.xntx-lunar-label { font-size: 13px; text-transform: uppercase; opacity: .85; }
.xntx-lunar-day { font-size: 30px; font-weight: 700; }
.xntx-lunar-year { font-size: 14px; opacity: .95; }
.xntx-verdict { margin-left: auto; text-align: right; }
.xntx-badge {
	display: inline-block;
	background: rgba(255, 255, 255, .22);
	padding: 6px 14px;
	border-radius: 999px;
	font-weight: 700;
	letter-spacing: .5px;
}
.xntx-than { display: block; margin-top: 6px; font-size: 14px; opacity: .95; }

/* Bảng can chi */
.xntx-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}
.xntx-table th, .xntx-table td {
	padding: 11px 20px;
	border-bottom: 1px solid #eef0f2;
	text-align: left;
}
.xntx-table th { width: 120px; color: #6b7280; font-weight: 600; }
.xntx-table td { font-weight: 600; }

/* Section */
.xntx-section { padding: 16px 20px; border-top: 1px solid #eef0f2; }
.xntx-section h4 { margin: 0 0 8px; font-size: 16px; }
.xntx-section p { margin: 0; }
.xntx-gio { font-weight: 600; color: #b8860b; }
.xntx-tag-good { color: #1e8449; font-weight: 700; }
.xntx-tag-bad { color: #c0392b; font-weight: 700; }
.xntx-canhbao { background: #fdecea; border-top: 1px solid #f5b7b1; }
.xntx-canhbao h4 { color: #c0392b; }

/* Lịch tháng */
.xntx-thang-legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; font-size: 13px; }
.xntx-lg { display: inline-flex; align-items: center; gap: 6px; }
.xntx-lg::before { content: ""; width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.xntx-lg-vgood::before { background: #1e8449; }
.xntx-lg-good::before { background: #7dcea0; }
.xntx-lg-mid::before { background: #f4d03f; }
.xntx-lg-bad::before { background: #e6b0aa; }

.xntx-cal {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}
.xntx-cal-head {
	text-align: center;
	font-weight: 700;
	font-size: 13px;
	color: #6b7280;
	padding: 4px 0;
}
.xntx-cal-cell {
	min-height: 72px;
	border: 1px solid #e3e6ea;
	border-radius: 6px;
	padding: 5px;
	display: flex;
	flex-direction: column;
	position: relative;
}
.xntx-cal-empty { border: 0; background: transparent; }
/* Lịch âm dương */
.xntx-lich-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.xntx-lich-btn { flex: 0 0 auto; text-decoration: none !important; background: #7d1f2b; color: #fff !important; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; }
.xntx-lich-btn:hover { background: #c0392b; }
.xntx-lich-title { text-align: center; line-height: 1.35; }
.xntx-lich-title strong { display: block; font-size: 18px; color: #1f2d3d; }
.xntx-lich-title span { font-size: 12px; color: #7a828c; }
.xntx-cal-cn { color: #c0392b; }
a.xntx-cal-cell { text-decoration: none !important; color: #2b2b2b; transition: box-shadow .12s; }
a.xntx-cal-cell:hover { box-shadow: 0 3px 10px rgba(0,0,0,.14); }
.xntx-cal-cc { font-size: 10.5px; color: #7d6a45; margin-top: auto; font-weight: 600; }
.xntx-cal-cnday .xntx-cal-d { color: #c0392b; }
.xntx-cal-today { box-shadow: 0 0 0 2px #f1c40f inset; }
.xntx-lich-legend { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; font-size: 11px; }
.xntx-cal-d { font-size: 17px; font-weight: 700; line-height: 1; }
.xntx-cal-am { font-size: 11px; color: #8a8f98; }
.xntx-cal-truc { font-size: 11px; color: #555; margin-top: auto; }
.xntx-cal-badge { font-size: 10px; font-weight: 700; margin-top: 2px; }
.xntx-cal-vgood { background: #eafaf1; border-color: #1e8449; }
.xntx-cal-vgood .xntx-cal-badge { color: #1e8449; }
.xntx-cal-good { background: #f4fbf7; border-color: #7dcea0; }
.xntx-cal-good .xntx-cal-badge { color: #1e8449; }
.xntx-cal-mid { background: #fef9e7; border-color: #f4d03f; }
.xntx-cal-mid .xntx-cal-badge { color: #b9770e; }
.xntx-cal-bad { background: #fdedec; border-color: #e6b0aa; }
.xntx-cal-bad .xntx-cal-badge { color: #c0392b; }

@media (max-width: 520px) {
	.xntx-cal { gap: 2px; }
	.xntx-cal-cell { min-height: 58px; padding: 3px; }
	.xntx-cal-d { font-size: 14px; }
	.xntx-cal-am, .xntx-cal-truc { font-size: 9.5px; }
	.xntx-cal-badge { font-size: 9px; }
}

/* Bảng chi tiết nên làm / tránh cả tháng */
.xntx-table-scroll { overflow-x: auto; }
.xntx-thang-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 780px; }
.xntx-thang-table th, .xntx-thang-table td { padding: 8px 10px; border-bottom: 1px solid #eef0f2; text-align: left; vertical-align: top; }
.xntx-thang-table thead th { background: #f6f7f9; color: #444; font-weight: 700; position: sticky; top: 0; }
.xntx-td-day, .xntx-td-am { white-space: nowrap; text-align: center; }
.xntx-dl-lbl, .xntx-al-lbl { display: inline-block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 1px 7px; border-radius: 9px; }
.xntx-dl-lbl { background: #fdecea; color: #c0392b; }
.xntx-al-lbl { background: #eaf1fb; color: #2c56ad; }
.xntx-date-d { display: block; font-size: 19px; font-weight: 800; color: #2c3e50; line-height: 1.1; margin-top: 2px; }
.xntx-date-m { display: block; font-size: 10.5px; color: #8a8f98; letter-spacing: .2px; }
.xntx-td-am strong { display: block; font-size: 17px; font-weight: 800; color: #2c56ad; line-height: 1.1; margin-top: 2px; }
.xntx-td-am span { display: block; font-size: 10.5px; color: #9aa0a8; letter-spacing: .2px; }
.xntx-td-gio { color: #b8860b; font-weight: 600; white-space: nowrap; }
.xntx-td-nen { color: #1e6b3a; }
.xntx-td-tranh { color: #a5311f; }
.xntx-ky-mini { font-size: 11px; color: #c0392b; font-weight: 600; }
.xntx-badge-vgood, .xntx-badge-good, .xntx-badge-mid, .xntx-badge-low, .xntx-badge-bad { display: inline-block; padding: 2px 9px; border-radius: 11px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.xntx-badge-vgood { color: #fff; background: #1e8449; }
.xntx-badge-good { color: #1e8449; background: #e7f6ee; }
.xntx-badge-mid { color: #7d6608; background: #fbf3d5; }
.xntx-badge-low { color: #a5642e; background: #fbebdd; }
.xntx-badge-bad { color: #fff; background: #c0392b; }
.xntx-row-vgood { background: #f4fbf7; }
.xntx-row-good { background: #fafdfb; }
.xntx-row-low { background: #fffaf4; }
.xntx-row-bad { background: #fdf3f2; }
.xntx-td-luan { color: #4a5568; font-size: 12.5px; line-height: 1.5; min-width: 220px; }

/* Xem tuổi kết hôn */
.xntx-head.xntx-kh-vgood, .xntx-head.xntx-kh-good { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.xntx-head.xntx-kh-mid { background: linear-gradient(135deg, #b9770e, #d4a017); }
.xntx-head.xntx-kh-bad { background: linear-gradient(135deg, #566573, #808b96); }
.xntx-kh-person { flex: 1; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.xntx-kh-label { font-size: 13px; text-transform: uppercase; opacity: .85; }
.xntx-kh-year { font-size: 34px; font-weight: 800; line-height: 1; }
.xntx-kh-cc, .xntx-kh-menh { font-size: 13px; opacity: .95; }
.xntx-kh-heart { font-size: 34px; padding: 0 8px; }
.xntx-kh-verdict { padding: 18px 20px; text-align: center; border-bottom: 1px solid #eef0f2; }
.xntx-kh-muc { font-size: 24px; font-weight: 800; display: block; }
.xntx-kh-v-vgood .xntx-kh-muc, .xntx-kh-v-good .xntx-kh-muc { color: #1e8449; }
.xntx-kh-v-mid .xntx-kh-muc { color: #b9770e; }
.xntx-kh-v-bad .xntx-kh-muc { color: #c0392b; }
.xntx-kh-diem { font-size: 13px; color: #6b7280; display: block; margin-top: 2px; }
.xntx-kh-verdict p { margin: 8px 0 0; color: #444; }
@media (max-width: 520px) {
	.xntx-kh-year { font-size: 26px; }
	.xntx-kh-heart { font-size: 26px; }
	.xntx-kh-muc { font-size: 20px; }
}
.xntx-kh-tag { display: inline-flex; align-items: center; font-weight: 700; color: #c0392b; min-width: 34px; }
.xntx-hoagiai { background: #eef7fb; border-top: 1px solid #d4e6f1; }
.xntx-hoagiai h4 { color: #2471a3; }
.xntx-hoagiai ul { margin: 0; padding-left: 20px; }
.xntx-hoagiai li { margin-bottom: 8px; }

/* Xem ngày cưới hỏi */
.xntx-cuoi-nam { border-radius: 8px; margin: 14px 0; }
.xntx-cuoi-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.xntx-chip { display: inline-block; background: #1e8449; color: #fff; font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; }
.xntx-ttc-table th { background: #f6f7f9; width: auto; }
.xntx-ttc-table td { vertical-align: top; }
.xntx-ttc-sub { font-size: 12px; color: #8a8f98; }
.xntx-cuoi-dailoi { margin-top: 14px; background: #f4fbf7; border: 1px solid #d4efdf; border-radius: 8px; padding: 12px 16px; }
.xntx-cuoi-dailoi ul { margin: 8px 0 0; padding-left: 20px; }
.xntx-cuoi-dailoi li { margin-bottom: 6px; }

.xntx-cols { display: flex; flex-wrap: wrap; }
.xntx-cols .xntx-section { flex: 1 1 260px; border-top: 1px solid #eef0f2; }
.xntx-nen h4 { color: #1e8449; }
.xntx-tranh h4 { color: #c0392b; }

/* 12 giờ */
.xntx-hours {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 8px;
}
.xntx-hour {
	border: 1px solid #e3e6ea;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 14px;
}
.xntx-hour-name { display: block; font-weight: 700; }
.xntx-hour-time { display: block; color: #6b7280; font-size: 13px; }
.xntx-hour-tag { display: inline-block; margin-top: 4px; font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.xntx-hour.xntx-hd { background: #fef9e7; border-color: #f7dc6f; }
.xntx-hour.xntx-hd .xntx-hour-tag { background: #f9e79f; color: #7d6608; }
.xntx-hour.xntx-kd .xntx-hour-tag { background: #eaecee; color: #5d6d7e; }

.xntx-note {
	padding: 14px 20px;
	margin: 0;
	font-size: 13px;
	font-style: italic;
	color: #8a8f98;
	border-top: 1px solid #eef0f2;
}

/* Bảng lá số 12 cung */
.xntx-laso-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(4, minmax(92px, auto));
	gap: 4px;
	margin: 12px 0;
}
.xntx-cung {
	border: 1px solid #cbb994;
	border-radius: 4px;
	padding: 6px 7px;
	background: #fdfaf1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.xntx-cung-menh {
	border: 2px solid #cc3300;
	background: #fdf3ec;
}
.xntx-cung-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	border-bottom: 1px solid #e6dcc4;
	padding-bottom: 3px;
	margin-bottom: 5px;
}
.xntx-cung-ten { font-size: 12.5px; font-weight: 800; color: #cc3300; letter-spacing: .2px; }
.xntx-cung-chi { font-size: 11.5px; color: #6b5a3a; font-weight: 600; }
.xntx-cung-sao { display: flex; flex-wrap: wrap; gap: 2px 6px; }
.xntx-sao {
	font-size: 13px;
	font-weight: 700;
	color: #333;
	line-height: 1.5;
}
/* Màu sao theo ngũ hành (giống lá số truyền thống). */
.xntx-h-kim  { color: #808080; }
.xntx-h-moc  { color: #009933; }
.xntx-h-thuy { color: #0073e6; }
.xntx-h-hoa  { color: #ff0000; }
.xntx-h-tho  { color: #caa200; }
.xntx-ds { font-style: normal; font-size: 10px; font-weight: 700; margin-left: 1px; }
.xntx-ds-tot { color: #c0392b; }
.xntx-ds-binh { color: #999; }
.xntx-ds-xau { color: #555; }
.xntx-ts { color: #8a6d1b; font-weight: 600; }
.xntx-vcd { font-size: 12px; font-style: italic; color: #b0b4ba; }
.xntx-cung-aux { display: flex; flex-wrap: wrap; gap: 2px 7px; margin-top: 5px; padding-top: 4px; border-top: 1px dotted #e6dcc4; }
.xntx-aux { font-size: 11px; line-height: 1.5; color: #555; }
.xntx-aux-dot-cat::before { content: "•"; color: #1e8449; margin-right: 1px; }
.xntx-aux-dot-sat::before { content: "•"; color: #c0392b; margin-right: 1px; }
.xntx-cung-dh {
	margin-top: auto;
	padding-top: 4px;
	font-size: 10.5px;
	color: #8a8f98;
	text-align: right;
}

/* Tứ Hóa */
.xntx-hoa {
	font-style: normal;
	font-size: 9.5px;
	font-weight: 700;
	color: #fff;
	border-radius: 3px;
	padding: 0 3px;
	margin-left: 2px;
	vertical-align: super;
}
.xntx-hoa-loc { background: #1e8449; }
.xntx-hoa-quyen { background: #b9770e; }
.xntx-hoa-khoa { background: #2471a3; }
.xntx-hoa-ky { background: #c0392b; }

/* Cung tiểu hạn năm nay */
.xntx-cung-th { background: #fffbea; box-shadow: inset 0 0 0 2px #f1c40f; }
.xntx-cung-menh.xntx-cung-th { background: #fff6f0; }
.xntx-th-badge {
	font-style: normal;
	font-size: 9.5px;
	font-weight: 700;
	color: #7d6608;
	background: #f9e79f;
	border-radius: 3px;
	padding: 0 3px;
}
.xntx-cung-center {
	grid-row: 2 / 4;
	grid-column: 2 / 4;
	border: 1px solid #d9dee4;
	border-radius: 6px;
	background: linear-gradient(135deg, #fbeee6, #f6f7f9);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 10px;
}
.xntx-cung-center strong { font-size: 16px; color: #c0392b; }
.xntx-cung-center span { font-size: 12.5px; color: #555; }

@media (max-width: 520px) {
	.xntx-laso-grid { gap: 2px; grid-template-rows: repeat(4, minmax(74px, auto)); }
	.xntx-sao { font-size: 11px; padding: 0 3px; }
	.xntx-cung-ten, .xntx-cung-chi { font-size: 10.5px; }
	.xntx-cung-center strong { font-size: 13px; }
	.xntx-cung-center span { font-size: 10.5px; }
}

@media (max-width: 520px) {
	.xntx-verdict { margin-left: 0; text-align: left; width: 100%; }
	.xntx-solar .xntx-day { font-size: 44px; }
}
