/* Cụm trang tài vận theo con giáp: phát huy điểm mạnh, ưu thế cầu tài, trở ngại cầu tài, phương hướng tài vận. */
.tvc-h2 { font-size: 20px; font-weight: 700; color: #1d5f3a; margin: 26px 0 12px; line-height: 1.35; }
.tvc-h3 { font-size: 16px; font-weight: 700; color: #1d5f3a; margin: 0 0 6px; line-height: 1.4; }
.tvc-note { font-size: 16px; color: #666; margin: 6px 0 0; }

/* Ô kết quả chính */
.tvc-hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 16px; }
.tvc-hero-item { border: 1px solid #d6e9dd; border-radius: 12px; padding: 12px; background: #f6fbf8; text-align: center; }
.tvc-hero-item .tvc-hk { font-size: 16px; text-transform: uppercase; color: #6b7c72; font-weight: 700; letter-spacing: .2px; }
.tvc-hero-item .tvc-hv { font-size: 20px; font-weight: 700; color: #1d5f3a; line-height: 1.25; margin-top: 4px; }
.tvc-hero-item .tvc-hs { font-size: 16px; color: #555; margin-top: 3px; line-height: 1.35; }
.tvc-hero-item.good { background: #eef8f1; border-color: #b9dcc6; }
.tvc-hero-item.bad { background: #fdf3f2; border-color: #f0c4c0; }
.tvc-hero-item.bad .tvc-hv { color: #b03a2e; }
.tvc-hero-item.warn { background: #fff8ec; border-color: #f1d6a8; }
.tvc-hero-item.warn .tvc-hv { color: #9a6416; }

/* Bảng tóm tắt nhãn - giá trị */
.tvc-sum { border: 1px solid #d6e9dd; border-radius: 12px; overflow: hidden; margin: 0 0 18px; }
.tvc-sum-row { display: flex; gap: 12px; padding: 10px 14px; }
.tvc-sum-row:nth-child(odd) { background: #f4faf6; }
.tvc-sum-row .tvc-k { flex: 0 0 200px; font-weight: 600; color: #1d5f3a; }
.tvc-sum-row .tvc-v { flex: 1; color: #333; }

/* Thẻ xếp hạng 1-2-3 */
.tvc-rank { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 16px; }
.tvc-rank-card { position: relative; border: 1px solid #d6e9dd; border-radius: 12px; padding: 14px 14px 12px 58px; background: #fff; }
.tvc-medal { position: absolute; left: 12px; top: 14px; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 17px; line-height: 36px; text-align: center; }
.tvc-medal.gold { background: linear-gradient(135deg, #f4c542, #c99512); }
.tvc-medal.silver { background: linear-gradient(135deg, #c9ced6, #8d96a3); }
.tvc-medal.bronze { background: linear-gradient(135deg, #e0a06a, #a8622c); }
.tvc-rank-card .tvc-t { font-weight: 700; color: #333; line-height: 1.4; margin: 0 0 6px; font-size: 16px; }
.tvc-rank-card .tvc-d { margin: 0; font-size: 16px; color: #1d7a46; line-height: 1.45; }

/* Lưới thẻ nhỏ có tông màu */
.tvc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 8px; }
.tvc-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tvc-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.tvc-card { border: 1px solid #e3e3e3; border-left-width: 4px; border-radius: 10px; padding: 10px 12px; background: #fff; }
.tvc-card.good { border-left-color: #1d7a46; background: #f1faf4; }
.tvc-card.bad { border-left-color: #d9534f; background: #fdf3f2; }
.tvc-card.warn { border-left-color: #e8a33d; background: #fff9ef; }
.tvc-card.ok { border-left-color: #b8c4bd; }
.tvc-card.today, .tvc-card.current { box-shadow: 0 0 0 2px #1d7a46 inset; }
.tvc-card .tvc-c1 { font-weight: 700; color: #1d5f3a; font-size: 16px; }
.tvc-card .tvc-c2 { font-size: 16px; color: #666; margin: 2px 0 6px; }
.tvc-card .tvc-c3 { font-size: 16px; color: #444; margin-top: 6px; line-height: 1.4; }
.tvc-card .tvc-c3 a { font-weight: 600; }
.tvc-tag { display: inline-block; font-size: 16px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #eef1ef; color: #555; }
.tvc-card.good .tvc-tag { background: #1d7a46; color: #fff; }
.tvc-card.bad .tvc-tag { background: #d9534f; color: #fff; }
.tvc-card.warn .tvc-tag { background: #e8a33d; color: #fff; }

/* Mệnh ngũ hành */
.tvc-chip { display: inline-block; font-size: 16px; font-weight: 600; padding: 2px 9px; border-radius: 10px; color: #fff; margin-bottom: 6px; }
.tvc-chip.moc { background: #2e8b3e; } .tvc-chip.hoa { background: #d2453b; } .tvc-chip.tho { background: #a87a3d; }
.tvc-chip.kim { background: #8a929c; } .tvc-chip.thuy { background: #2f6fb5; }

/* Danh sách bước */
.tvc-steps { counter-reset: tvc; list-style: none; padding: 0; margin: 10px 0 16px; }
.tvc-steps li { counter-increment: tvc; position: relative; padding: 10px 12px 10px 48px; border: 1px solid #e3efe7; border-radius: 10px; margin-bottom: 8px; background: #fbfdfc; }
.tvc-steps li::before { content: counter(tvc); position: absolute; left: 12px; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: #1d7a46; color: #fff; font-weight: 700; text-align: center; line-height: 26px; font-size: 16px; }

/* Cảnh báo */
.tvc-warn { border-left: 4px solid #e08a84; background: #fdf3f2; border-radius: 10px; padding: 12px 14px; margin: 12px 0 18px; }
.tvc-warn ul { margin: 0; padding-left: 18px; }
.tvc-warn li { margin: 4px 0; }

/* La bàn 8 hướng */
.tvc-compass { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 460px; margin: 6px auto 12px; }
.tvc-compass .tvc-dir { border-radius: 12px; padding: 10px 6px; text-align: center; border: 1px solid #e3e3e3; background: #fff; min-height: 72px; }
.tvc-compass .tvc-dir b { display: block; font-size: 16px; color: #333; }
.tvc-compass .tvc-dir span { display: inline-block; margin-top: 4px; font-size: 16px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #eef1ef; color: #555; }
.tvc-compass .tvc-dir.best { background: #1d7a46; border-color: #1d7a46; }
.tvc-compass .tvc-dir.best b { color: #fff; }
.tvc-compass .tvc-dir.best span { background: #fff; color: #1d7a46; }
.tvc-compass .tvc-dir.good { background: #eef8f1; border-color: #b9dcc6; }
.tvc-compass .tvc-dir.good span { background: #1d7a46; color: #fff; }
.tvc-compass .tvc-dir.support { background: #f7fbf8; }
.tvc-compass .tvc-dir.bad { background: #fdf3f2; border-color: #f0c4c0; }
.tvc-compass .tvc-dir.bad span { background: #d9534f; color: #fff; }
.tvc-compass .tvc-center { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #f4faf6; border: 2px dashed #b9dcc6; color: #1d5f3a; font-weight: 700; font-size: 16px; text-align: center; padding: 6px; }

/* Bảng */
.tvc-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tvc-table th, .tvc-table td { border: 1px solid #e3efe7; padding: 8px 10px; text-align: left; vertical-align: top; }
.tvc-table th { background: #f4faf6; color: #1d5f3a; white-space: nowrap; }
.tvc-table tr.current td { background: #eef8f1; font-weight: 600; }

/* Chuyển tuổi */
.tvc-zodiac { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 8px 0 20px; }
.tvc-zodiac a { display: block; text-align: center; padding: 8px 4px; border: 1px solid #d6e9dd; border-radius: 10px; background: #f6fbf8; color: #1d7a46; font-size: 16px; font-weight: 600; }
.tvc-zodiac a.current { background: #1d7a46; color: #fff; border-color: #1d7a46; }

@media (max-width: 767px) {
  .tvc-h2 { font-size: 18px; }
  .tvc-hero { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tvc-hero-item .tvc-hv { font-size: 17px; }
  .tvc-sum-row { flex-direction: column; gap: 2px; }
  .tvc-sum-row .tvc-k { flex: none; font-size: 16px; }
  .tvc-rank { grid-template-columns: 1fr; gap: 10px; }
  .tvc-grid, .tvc-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tvc-grid.cols-6 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tvc-card { padding: 9px 10px; }
  .tvc-table { font-size: 16px; }
  .tvc-table th, .tvc-table td { padding: 6px 7px; }
  .tvc-table .tvc-hide-sm { display: none; }
  .tvc-zodiac { grid-template-columns: repeat(3, 1fr); }
}
