/* ===================================================================
   BÀN CỜ TỬ VI 12 CUNG & THIÊN BÀN (CELESTIAL GRID)
   Bố cục chuẩn mực 4x4: 12 Cung viền + Thiên Bàn 2x2 ở tâm
   Tích hợp Bảng Soi Cung Chi Tiết (Cung Inspector Panel)
   =================================================================== */

.laso-tab-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: rgba(20, 24, 34, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.sub-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.panel-section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.panel-section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 650px;
}

.intro-guide {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(10, 12, 17, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #adb5bd;
}

.dot-color {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-kim  { background: #ffd43b; box-shadow: 0 0 6px rgba(255, 212, 59, 0.6); }
.dot-moc  { background: #51cf66; box-shadow: 0 0 6px rgba(81, 207, 102, 0.6); }
.dot-thuy { background: #4dabf7; box-shadow: 0 0 6px rgba(77, 171, 247, 0.6); }
.dot-hoa  { background: #ff6b6b; box-shadow: 0 0 6px rgba(255, 107, 107, 0.6); }
.dot-tho  { background: #f08c00; box-shadow: 0 0 6px rgba(240, 140, 0, 0.6); }

.laso-container {
  margin: 16px 0 28px;
  perspective: 1000px;
}

.laso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(180px, auto));
  gap: 8px;
  background: rgba(10, 12, 17, 0.95);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8), 0 0 24px rgba(230, 202, 101, 0.15);
  position: relative;
}

/* ================= THIÊN BÀN (TRUNG TÂM) ================= */
.thien-ban {
  grid-column: 2 / span 2;
  grid-row: 2 / span 2;
  background: radial-gradient(circle at center, rgba(30, 38, 56, 0.95) 0%, rgba(15, 18, 26, 0.98) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.thien-ban-bg-motif {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(230, 202, 101, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.thien-ban-header-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 4px 14px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.thien-ban-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.55));
  display: block;
}

.thien-ban-brand-name {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.thien-ban-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.thien-ban-gender {
  font-size: 0.85rem;
  color: #adb5bd;
  margin-bottom: 12px;
}

.thien-ban-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  width: 100%;
  font-size: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
  margin-bottom: 10px;
}

.thien-ban-row {
  display: flex;
  justify-content: space-between;
}

.tb-label {
  color: #868e96;
}

.tb-val {
  color: var(--gold-light);
  font-weight: 600;
}

.thien-ban-extra {
  font-size: 0.8rem;
  color: #ced4da;
  line-height: 1.4;
}

/* ================= 12 CUNG ĐỊA BÀN ================= */
.cung-cell {
  background: rgba(22, 27, 38, 0.85);
  border: 1px solid rgba(230, 202, 101, 0.22);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}

.cung-cell:hover {
  background: rgba(30, 38, 56, 0.95);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 20px rgba(230, 202, 101, 0.25);
  transform: translateY(-2px);
  z-index: 10;
}

.cung-cell.selected {
  border-color: #ffd43b;
  border-width: 2px;
  background: rgba(38, 48, 70, 0.95);
  box-shadow: 0 0 20px rgba(255, 212, 59, 0.6);
  z-index: 12;
}

.cung-cell.aspect-tam-hop {
  border-color: #4dabf7;
  border-width: 2px;
  background: rgba(18, 42, 73, 0.88);
  box-shadow: 0 0 14px rgba(77, 171, 247, 0.4);
}

.cung-cell.aspect-xung-chieu {
  border-color: #ff6b6b;
  border-width: 2px;
  background: rgba(60, 22, 28, 0.88);
  box-shadow: 0 0 14px rgba(255, 107, 107, 0.4);
}

/* Vị trí 12 Cung theo quy chuẩn Tử Vi */
.cung-5  { grid-column: 1; grid-row: 1; } /* Tỵ - Góc trên trái */
.cung-6  { grid-column: 2; grid-row: 1; } /* Ngọ */
.cung-7  { grid-column: 3; grid-row: 1; } /* Mùi */
.cung-8  { grid-column: 4; grid-row: 1; } /* Thân - Góc trên phải */
.cung-9  { grid-column: 4; grid-row: 2; } /* Dậu */
.cung-10 { grid-column: 4; grid-row: 3; } /* Tuất */
.cung-11 { grid-column: 4; grid-row: 4; } /* Hợi - Góc dưới phải */
.cung-0  { grid-column: 3; grid-row: 4; } /* Tý */
.cung-1  { grid-column: 2; grid-row: 4; } /* Sửu */
.cung-2  { grid-column: 1; grid-row: 4; } /* Dần - Góc dưới trái */
.cung-3  { grid-column: 1; grid-row: 3; } /* Mão */
.cung-4  { grid-column: 1; grid-row: 2; } /* Thìn */

/* Header Cung */
.cung-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.cung-chuc-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-than {
  background: var(--crimson-royal);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

.badge-tuan-triet {
  display: flex;
  gap: 2px;
}

.badge-tuan {
  background: #343a40;
  color: #ced4da;
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 2px;
}

.badge-triet {
  background: #c92a2a;
  color: #fff;
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 2px;
}

/* Danh sách Chính Tinh */
.chinh-tinh-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.chinh-tinh-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 1px 0;
}

/* Màu sao theo Ngũ Hành */
.star-kim  { color: #ffd43b; } /* Vàng ánh kim */
.star-moc  { color: #51cf66; } /* Xanh lá cây */
.star-thuy { color: #4dabf7; } /* Xanh da trời */
.star-hoa  { color: #ff6b6b; } /* Đỏ hỏa */
.star-tho  { color: #f08c00; } /* Nâu vàng thổ */

.dac-ham-badge {
  font-size: 0.7rem;
  padding: 0 4px;
  border-radius: 2px;
  font-weight: 600;
}

.dh-M { background: rgba(201, 42, 42, 0.3); color: #ff8787; } /* Miếu */
.dh-V { background: rgba(134, 46, 156, 0.3); color: #da77f2; } /* Vượng */
.dh-D { background: rgba(43, 138, 62, 0.3); color: #8ce99a; } /* Đắc */
.dh-B { background: rgba(73, 80, 87, 0.3); color: #adb5bd; } /* Bình */
.dh-H { background: rgba(0, 0, 0, 0.4); color: #868e96; } /* Hãm */

/* Phụ Tinh */
.phu-tinh-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 4px;
  font-size: 0.72rem;
  flex: 1;
}

.phu-cat-col {
  color: #99e9f2;
}

.phu-hung-col {
  color: #ffc9c9;
}

.star-mini {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer Cung: Can Chi Cung & Đại Hạn */
.cung-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 4px;
  margin-top: 4px;
  font-size: 0.72rem;
  color: #868e96;
}

.cung-can-chi {
  color: var(--gold-primary);
  font-weight: 600;
}

.cung-dai-han {
  color: #adb5bd;
}

/* ===================================================================
   BẢNG SOI CUNG CHI TIẾT (CUNG INSPECTOR PANEL)
   Giải quyết vấn đề nhìn 12 ô nhỏ bị khó theo dõi
   =================================================================== */
.cung-inspector-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.cung-inspector-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.inspector-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.inspector-cung-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 2px;
}

.inspector-cung-sub {
  font-size: 0.88rem;
  color: #ced4da;
}

.inspector-aspects-quick {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.aspect-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.aspect-chip.tam-hop {
  background: rgba(77, 171, 247, 0.15);
  border: 1px solid #4dabf7;
  color: #a5d8ff;
}

.aspect-chip.xung-chieu {
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid #ff6b6b;
  color: #ffc9c9;
}

.inspector-body-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.insp-col {
  background: rgba(13, 16, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.insp-col-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.insp-stars-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
}

.insp-star-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.insp-star-item .star-name {
  font-weight: 700;
}

.insp-star-item .star-badge {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.insp-stars-list.insp-cat {
  color: #99e9f2;
}

.insp-stars-list.insp-hung {
  color: #ffa8a8;
}

.inspector-footer-note {
  background: rgba(230, 202, 101, 0.08);
  border-left: 3px solid var(--gold-primary);
  padding: 12px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: #e5e7eb;
}

.insp-note-icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* ===================================================================
   SAO LƯU DIỆU ĐỘNG & HIỆU CHỈNH GIỜ MẶT TRỜI CHÂN PHƯƠNG
   =================================================================== */
.solar-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(245, 159, 0, 0.15);
  border: 1px solid rgba(245, 159, 0, 0.45);
  color: #ffd43b;
  margin-top: 6px;
}
.solar-time-badge .st-icon {
  font-size: 0.85rem;
}

.solar-time-banner {
  background: linear-gradient(135deg, rgba(245, 159, 0, 0.12), rgba(230, 202, 101, 0.08));
  border: 1px solid rgba(245, 159, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  color: #f8f9fa;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}
.solar-time-banner.is-shifted {
  background: linear-gradient(135deg, rgba(224, 49, 49, 0.18), rgba(245, 159, 0, 0.15));
  border-color: rgba(255, 107, 107, 0.6);
  box-shadow: 0 0 15px rgba(255, 107, 107, 0.25);
}
.solar-time-banner .st-banner-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.solar-time-banner .st-banner-content {
  flex: 1;
  line-height: 1.5;
}
.solar-time-banner .st-banner-title {
  font-weight: 700;
  color: #ffd43b;
  margin-bottom: 2px;
  font-family: var(--font-serif);
}
.solar-time-banner.is-shifted .st-banner-title {
  color: #ff8787;
}


.sao-luu-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px dashed rgba(168, 85, 247, 0.35);
}
.badge-sao-luu {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(147, 51, 234, 0.22);
  border: 1px solid rgba(168, 85, 247, 0.55);
  color: #e9d5ff;
  cursor: help;
  transition: all 0.2s ease;
}
.badge-sao-luu:hover {
  background: rgba(147, 51, 234, 0.5);
  color: #ffffff;
  border-color: #d8b4fe;
}

.inspector-body-grid.inspector-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.insp-col-luu {
  border-color: rgba(168, 85, 247, 0.25);
  background: rgba(24, 15, 38, 0.65);
}
.insp-col-luu .insp-col-title {
  color: #d8b4fe;
  border-bottom-color: rgba(168, 85, 247, 0.25);
}
.insp-stars-list.insp-luu {
  color: #e9d5ff;
}

/* ===================================================================
   BẢNG CÂN BẰNG NGŨ HÀNH & PHONG THỦY ỨNG DỤNG (BÁT TỰ + TỬ VI)
   =================================================================== */
.bazi-balance-card {
  margin-top: 32px;
  background: linear-gradient(145deg, rgba(17, 22, 33, 0.95), rgba(10, 14, 22, 0.98));
  border: 1px solid rgba(230, 202, 101, 0.35);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.bazi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}
.bazi-title-wrap h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--gold-primary);
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bazi-title-wrap p {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.bazi-badge-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(230, 202, 101, 0.12);
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* 4 Hộp tóm tắt chỉ số Bát Tự */
.bazi-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.bazi-summary-box {
  background: rgba(13, 17, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.bazi-summary-box .bazi-box-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #adb5bd;
  margin-bottom: 4px;
}
.bazi-summary-box .bazi-box-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8f9fa;
}
.bazi-summary-box.highlight-dung-than {
  border-color: rgba(77, 171, 247, 0.4);
  background: rgba(24, 49, 83, 0.25);
}
.bazi-summary-box.highlight-dung-than .bazi-box-val {
  color: #74c0fc;
}

/* Biểu đồ phân bổ 5 hành */
.bazi-element-section {
  margin-bottom: 26px;
}
.bazi-section-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.element-bars-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.element-bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 65px 140px;
  align-items: center;
  gap: 14px;
  font-size: 0.86rem;
}
@media (max-width: 680px) {
  .element-bar-row {
    grid-template-columns: 80px 1fr 50px;
  }
  .element-bar-row .elem-status-col {
    display: none;
  }
}
.elem-name-col {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.elem-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.elem-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.elem-fill.fill-kim  { background: linear-gradient(90deg, #e9ecef, #ffd43b); box-shadow: 0 0 8px rgba(255, 212, 59, 0.5); }
.elem-fill.fill-moc  { background: linear-gradient(90deg, #69db7c, #2b8a3e); box-shadow: 0 0 8px rgba(81, 207, 102, 0.5); }
.elem-fill.fill-thuy { background: linear-gradient(90deg, #4dabf7, #1971c2); box-shadow: 0 0 8px rgba(77, 171, 247, 0.5); }
.elem-fill.fill-hoa  { background: linear-gradient(90deg, #ff8787, #e03131); box-shadow: 0 0 8px rgba(255, 107, 107, 0.5); }
.elem-fill.fill-tho  { background: linear-gradient(90deg, #ffd43b, #d9480f); box-shadow: 0 0 8px rgba(240, 140, 0, 0.5); }

.elem-pct-col {
  font-weight: 700;
  text-align: right;
  color: #f1f3f5;
}
.elem-status-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}
.status-vuong  { background: rgba(81, 207, 102, 0.15); color: #8ce99a; border: 1px solid rgba(81, 207, 102, 0.3); }
.status-canbang { background: rgba(77, 171, 247, 0.15); color: #a5d8ff; border: 1px solid rgba(77, 171, 247, 0.3); }
.status-nhuoc  { background: rgba(245, 159, 0, 0.15); color: #ffe066; border: 1px solid rgba(245, 159, 0, 0.3); }
.status-khuyet { background: rgba(255, 107, 107, 0.18); color: #ffc9c9; border: 1px solid rgba(255, 107, 107, 0.4); }

/* 4 Hộp Phong Thủy Ứng Dụng */
.fengshui-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.fengshui-card {
  background: rgba(13, 17, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.fengshui-card:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 202, 101, 0.3);
}
.fengshui-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gold-light);
}
.fengshui-card-header .fs-icon {
  font-size: 1.25rem;
}
.fengshui-card-body {
  font-size: 0.86rem;
  color: #ced4da;
  line-height: 1.5;
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.fengshui-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8f9fa;
}
.fengshui-chip.chip-accent {
  background: rgba(230, 202, 101, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}
.fengshui-chip.chip-avoid {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.3);
  color: #ffc9c9;
}

/* Hộp Lời Khuyên Hành Động Thực Tế */
.bazi-master-advice {
  background: rgba(230, 202, 101, 0.08);
  border-left: 3px solid var(--gold-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #f1f3f5;
  line-height: 1.6;
}

/* Evidence Tags */
.evidence-tags-container {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(230, 202, 101, 0.05);
  border: 1px solid rgba(230, 202, 101, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.evidence-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold-light);
}
.evidence-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.evidence-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}
.evidence-tag:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

@media (max-width: 900px) {
  .laso-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .thien-ban {
    grid-column: 1;
    grid-row: 1;
  }
  .cung-cell {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}
