/* PTS-SIM 9.5 · Thầy phán. Dựa trên bảng màu 8.x (nền lục đậm, ánh vàng). */
.tp{--tp-good:#7fc79a;--tp-bad:#e58a74;--tp-pv:#b9b39b;--tp-gold:#e6bf70;--tp-ink:#1d2a22;--tp-paper:#f7eed9;--kim:#e0d9c6;--moc:#80b69a;--thuy:#76b9ce;--hoa:#dc927a;--tho:#d5b26d;margin:0 0 28px}
.tp h3{font-size:19px;margin:6px 0 16px;color:#f2e7cc}
.tp-label{display:flex;justify-content:space-between;gap:12px;font-size:10px;letter-spacing:.14em;color:var(--tp-gold);font-weight:700;border-bottom:1px solid #29483b;padding-bottom:9px;margin-bottom:10px;flex-wrap:wrap}
.tp-label span:last-child{color:#9fb5a7}
.tp-block{background:#102c23;border:1px solid #23463a;border-radius:16px;padding:22px 22px 16px;margin:16px 0}
.tp-method{font-size:11.5px;color:#8fa799;margin:12px 0 0;line-height:1.6}
.tp-note{font-size:13px;color:#c9d6cb;background:#ffffff08;border-left:3px solid var(--tp-gold);padding:9px 12px;border-radius:0 8px 8px 0;margin:12px 0 0}

/* Hero */
.tp-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:26px 26px 18px;border-radius:20px;background:radial-gradient(ellipse at 90% 0%,#e6bf7024,transparent 55%),linear-gradient(160deg,#143628,#0d261d);border:1px solid #e6bf7038}
.tp-eyebrow{font-size:10px;letter-spacing:.2em;color:var(--tp-gold);font-weight:700}
.tp-number{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:12px 0 14px;font-size:inherit}
.tp-digit{display:inline-grid;place-items:center;width:38px;height:48px;border-radius:9px;font-size:28px;font-weight:750;font-variant-numeric:tabular-nums;background:#0a1f18;border:1px solid #ffffff14;border-bottom:3px solid currentColor}
.tp-digit.kim{color:var(--kim)}.tp-digit.moc{color:var(--moc)}.tp-digit.thuy{color:var(--thuy)}.tp-digit.hoa{color:var(--hoa)}.tp-digit.tho{color:var(--tho)}.tp-digit.zero{color:#6f8478}
.tp-gap{width:6px}
.tp-tags{display:flex;flex-wrap:wrap;gap:7px}.tp-tags span{font-size:11.5px;padding:4px 10px;border-radius:999px;background:#ffffff0c;border:1px solid #ffffff17;color:#d6e0d7}
.tp-seal{flex-shrink:0;width:150px;height:150px;border-radius:22px;display:grid;place-items:center;text-align:center;transform:rotate(-6deg);border:3px double currentColor;color:#d9534a;background:#d9534a12;box-shadow:inset 0 0 0 6px #0d261d,inset 0 0 0 7px currentColor}
.tp-seal small{display:block;font-size:9px;letter-spacing:.2em;opacity:.85}
.tp-seal strong{display:block;font-size:24px;line-height:1.1;letter-spacing:.03em;margin:4px 6px;font-weight:850}
.tp-seal b{font-size:22px}.tp-seal b small{display:inline;font-size:11px;letter-spacing:0}
.tp-seal.thuong{color:#ef5a4b}.tp-seal.cat{color:#e7664f}.tp-seal.binh{color:#d6a548}.tp-seal.ha{color:#a7a08a}.tp-seal.hung{color:#8f9a95}
.tp-meters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:14px 0 4px}
.tp-meter{background:#102c23;border:1px solid #23463a;border-radius:12px;padding:11px 12px}
.tp-meter span{display:block;font-size:11px;color:#a7b9ae}.tp-meter b{font-size:21px;color:#f2e7cc}.tp-meter b small{font-size:11px;color:#8fa799;font-weight:500}
.tp-meter i{display:block;height:5px;border-radius:5px;background:#ffffff12;margin:6px 0 6px;overflow:hidden}.tp-meter u{display:block;height:100%;background:var(--tp-gold);border-radius:5px}
.tp-meter.hi u{background:var(--tp-good)}.tp-meter.lo u{background:var(--tp-bad)}.tp-meter.na b{color:#6f8478}
.tp-meter>small{display:block;font-size:10.5px;color:#8fa799;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Lời phán: giấy dó */
.tp-scroll{margin:16px 0;border-radius:18px;background:var(--tp-paper);color:var(--tp-ink);padding:22px 24px 14px;border:1px solid #e1cc9b;box-shadow:0 12px 30px #0006;position:relative}
.tp-scroll:before{content:'';position:absolute;inset:7px;border:1px solid #c7a76055;border-radius:13px;pointer-events:none}
.tp-scroll-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.tp-scroll-head span{font-size:12px;letter-spacing:.24em;font-weight:850;color:#8a2f22}.tp-scroll-head small{color:#7b6a48;font-size:11px}
.tp-lead{margin:0;padding:0 0 0 2px;list-style:none;counter-reset:tp}
.tp-lead li{position:relative;padding:9px 0 9px 30px;border-top:1px dashed #cfb98a}
.tp-lead li:first-child{border-top:0}
.tp-lead li:before{counter-increment:tp;content:counter(tp);position:absolute;left:0;top:11px;width:20px;height:20px;border-radius:50%;background:#8a2f22;color:#fbefd5;font-size:11px;font-weight:700;display:grid;place-items:center}
.tp-lead li.bad:before{background:#b9472f}.tp-lead li.good:before{background:#2f7a52}.tp-lead li.verdict:before{content:'✦';background:#1d2a22}
.tp-lead p{margin:0 0 5px;color:#1d2a22;font-size:15px;line-height:1.65}
.tp-lead li.verdict p{font-weight:750;font-size:16px}
.tp-cc{display:flex;flex-wrap:wrap;gap:5px}
.tp-chip{font-size:10.5px;line-height:1.3;padding:3px 8px;border-radius:6px;background:#ffffff10;border:1px solid #ffffff22;color:#cdd9cf;cursor:help}
.tp-chip em{font-style:normal;opacity:.7;margin-left:5px}
.tp-scroll .tp-chip{background:#efe2c2;border-color:#d6bf8b;color:#5d4a26}

/* Dải năng lượng */
.tp-strip{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));grid-template-rows:auto 46px 46px;gap:6px 3px;padding:4px 0}
.tp-cell{text-align:center;border-radius:9px;padding:6px 0 4px;background:#0a1f18;border:1px solid #ffffff12;border-bottom:3px solid currentColor}
.tp-cell b{display:block;font-size:22px;line-height:1.1}.tp-cell small{font-size:9.5px;color:#93a89b}
.tp-cell.kim{color:var(--kim)}.tp-cell.moc{color:var(--moc)}.tp-cell.thuy{color:var(--thuy)}.tp-cell.hoa{color:var(--hoa)}.tp-cell.tho{color:var(--tho)}.tp-cell.zero{color:#6f8478}
.tp-pair{position:relative;border-radius:8px;padding:4px 5px;text-align:center;display:flex;flex-direction:column;justify-content:center;overflow:hidden;margin:0 6px;border:1px solid}
.tp-pair span{font-size:11px;font-weight:700;line-height:1.15}.tp-pair small{font-size:9.5px;opacity:.8;line-height:1.2}
.tp-pair.good{background:#7fc79a24;border-color:#7fc79a80;color:#bfe6cc}
.tp-pair.bad{background:#e58a7424;border-color:#e58a7480;color:#f4c3b6}
.tp-pair.pv{background:#b9b39b1c;border-color:#b9b39b66;color:#ddd8c6}
.tp-pair.an{border-style:dashed;opacity:.62}.tp-pair.hien{box-shadow:0 0 0 2px #f2d89d55,0 0 14px #f2d89d44}.tp-pair.anhien{border-style:dotted}
.tp-pair.last{outline:2px solid var(--tp-gold);outline-offset:1px}
.tp-legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:12px;font-size:11px;color:#a7b9ae}
.tp-legend span:before{content:'';display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px;border:1px solid}
.tp-legend .good:before{background:#7fc79a55;border-color:#7fc79a}.tp-legend .bad:before{background:#e58a7455;border-color:#e58a74}.tp-legend .pv:before{background:#b9b39b44;border-color:#b9b39b}
.tp-legend .an:before{border-style:dashed;border-color:#ccc}.tp-legend .hien:before{box-shadow:0 0 6px #f2d89d;border-color:#f2d89d}.tp-legend .lastk:before{border:2px solid var(--tp-gold)}

.tp-notes{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:5px}.tp-notes li{font-size:12.5px;color:#cfdbd1;padding:6px 10px;border-radius:8px;background:#ffffff08;border-left:3px solid #f2d89d88}.tp-notes b{color:#f2d89d;margin-right:6px}
/* Ba chặng */
.tp-timeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;position:relative}
.tp-timeline:before{content:'';position:absolute;left:8%;right:8%;top:9px;height:2px;background:linear-gradient(90deg,#e6bf7055,#e6bf70)}
.tp-phase{position:relative;padding:26px 14px 12px;border-radius:12px;background:#0d241c;border:1px solid #23463a}
.tp-phase i{position:absolute;top:2px;left:50%;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:#0d241c;border:3px solid var(--tp-pv)}
.tp-phase.good i{border-color:var(--tp-good)}.tp-phase.bad i{border-color:var(--tp-bad)}
.tp-phase small{display:block;font-size:10px;letter-spacing:.14em;color:var(--tp-gold);text-transform:uppercase}
.tp-phase strong{display:block;font-size:17px;margin:2px 0 4px}.tp-phase.good strong{color:var(--tp-good)}.tp-phase.bad strong{color:var(--tp-bad)}
.tp-phase p{font-size:13.5px;margin:0 0 8px;color:#d7e2d9}

/* Phương diện */
.tp-aspects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tp-aspects article{background:#0d241c;border:1px solid #23463a;border-radius:12px;padding:14px 15px}
.tp-ic{float:right;font-size:18px;color:var(--tp-gold)}
.tp-aspects h4,.tp-combos h4,.tp-hexes h4,.tp-advice h4{margin:0 0 6px;font-size:14px;color:#f2e7cc}
.tp-aspects p{font-size:13.5px;margin:0 0 8px;color:#d0dcd2}
.tp-combos{margin-top:14px}.tp-combos>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;padding:9px 12px;border-radius:10px;margin:6px 0;background:#0d241c;border-left:3px solid var(--tp-pv)}
.tp-combos>div.good{border-left-color:var(--tp-good)}.tp-combos>div.bad{border-left-color:var(--tp-bad)}
.tp-combos b{font-size:13px}.tp-combos span{font-size:13px;color:#cfdbd1}

/* Tướng số */
.tp-patterns{list-style:none;margin:0;padding:0}
.tp-patterns li{display:grid;grid-template-columns:150px 1fr auto;gap:10px;align-items:baseline;padding:10px 0;border-top:1px solid #ffffff10}
.tp-patterns li:first-child{border-top:0}
.tp-patterns b{font-size:13px;color:var(--tp-good)}.tp-patterns li.bad b{color:var(--tp-bad)}
.tp-patterns span{font-size:13.5px;color:#d7e2d9}.tp-patterns em{font-style:normal;font-size:11px;color:#8fa799;white-space:nowrap}

/* Quẻ */
.tp-hexes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tp-hexes article{background:#0d241c;border:1px solid #23463a;border-radius:12px;padding:14px;border-top:3px solid var(--tp-pv)}
.tp-hexes article.good{border-top-color:var(--tp-good)}.tp-hexes article.bad{border-top-color:var(--tp-bad)}
.tp-hex{width:54px;height:60px;fill:#e6bf70;display:block;margin-bottom:6px}.tp-hex .mv{fill:#ef7b62}
.tp-hexes small{font-size:10px;letter-spacing:.12em;color:var(--tp-gold);text-transform:uppercase}
.tp-hexes h4 em{font-style:normal;color:#8fa799;font-size:12px;font-weight:500}
.tp-hexes p{font-size:13px;margin:0 0 6px;color:#d0dcd2}.tp-tuong{font-style:italic;color:#e9dcb8!important}

/* Ngũ hành */
.tp-elems{display:grid;gap:7px;margin:4px 0 14px}
.tp-elem{display:grid;grid-template-columns:52px 1fr 24px minmax(120px,38%);gap:10px;align-items:center;font-size:13px}
.tp-elem i{display:block;height:10px;border-radius:6px;background:#ffffff0d;overflow:hidden}.tp-elem u{display:block;height:100%;border-radius:6px;background:currentColor}
.tp-elem span{font-weight:700}.tp-elem small{font-size:11px;color:#8fa799}.tp-elem b{text-align:right}
.tp-elem.kim{color:var(--kim)}.tp-elem.moc{color:var(--moc)}.tp-elem.thuy{color:var(--thuy)}.tp-elem.hoa{color:var(--hoa)}.tp-elem.tho{color:var(--tho)}
.tp-elem.need{background:#e6bf7014;border-radius:8px;outline:1px solid #e6bf7060;padding:3px 6px;margin:-3px -6px}
.tp-elem.need small{color:var(--tp-gold)}.tp-elem.enemy small{color:var(--tp-bad)}
.tp-hop{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:10px}
.tp-hop>div{background:#0d241c;border:1px solid #23463a;border-radius:12px;padding:12px 14px}
.tp-hop small{font-size:10px;letter-spacing:.14em;color:var(--tp-gold)}.tp-hop strong{display:block;font-size:15px;margin:3px 0 5px;color:#f2e7cc}.tp-hop p{font-size:12.5px;margin:0;color:#c3d1c6}
.tp-hop .verdict{border-color:#e6bf7066;background:#e6bf700d}

/* Lời dặn */
.tp-advice>div{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tp-advice article{border-radius:12px;padding:14px 16px;background:#0d241c;border:1px solid #23463a}
.tp-advice article.good{border-top:3px solid var(--tp-good)}.tp-advice article.bad{border-top:3px solid var(--tp-bad)}
.tp-advice ul{margin:0;padding-left:18px}.tp-advice li{font-size:13.5px;margin:5px 0;color:#d7e2d9}
.tp-foot{font-size:11px;color:#7f978a;margin:14px 2px 0;line-height:1.6}

/* Phụ lục */
.tp-appendix{margin:10px 0 24px;border:1px solid #23463a;border-radius:16px;background:#0b231c}
.tp-appendix>summary{cursor:pointer;list-style:none;padding:16px 20px;font-weight:700;color:#e9dcb8;display:flex;justify-content:space-between;gap:10px}
.tp-appendix>summary::-webkit-details-marker{display:none}
.tp-appendix[open]>summary span{transform:rotate(45deg)}
.tp-appendix-body{padding:0 14px 14px}

@media(max-width:900px){.tp-meters{grid-template-columns:repeat(3,minmax(0,1fr))}.tp-hop{grid-template-columns:1fr}}
@media(max-width:650px){
 .tp-hero{flex-direction:column;align-items:flex-start;padding:20px 16px}
 .tp-seal{width:124px;height:124px;align-self:flex-end;margin-top:-10px}.tp-seal strong{font-size:19px}
 .tp-digit{width:28px;height:38px;font-size:21px;border-radius:7px}.tp-number{gap:3px}.tp-gap{width:3px}
 .tp-meters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tp-block{padding:16px 13px 12px}.tp-scroll{padding:18px 15px 10px}.tp-lead p{font-size:14px}
 .tp-strip{grid-template-rows:auto 50px 50px;gap:5px 2px}.tp-cell b{font-size:17px}.tp-pair{margin:0 2px;padding:3px 2px}.tp-pair span{font-size:9.5px}.tp-pair small{font-size:8.5px}
 .tp-timeline,.tp-aspects,.tp-hexes,.tp-advice>div{grid-template-columns:1fr}
 .tp-timeline:before{display:none}
 .tp-patterns li{grid-template-columns:1fr;gap:2px}
 .tp-elem{grid-template-columns:44px 1fr 20px}.tp-elem small{grid-column:1/-1;margin-top:-4px}
}
@media print{.tp-block,.tp-scroll,.tp-hero{break-inside:avoid;box-shadow:none}.tp-appendix>summary{display:none}.tp-appendix-body{display:block}}
/* 9.7: ô giờ sinh hệ 24 giờ (không phụ thuộc SA/CH của trình duyệt) */
.time24{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center}.time24>span{color:#a7b9ae;font-weight:700}
.time24 select{width:100%;padding:13px 10px;background:#0f281f;border:1px solid #3a5745;border-radius:10px;color:#edf1e8;font-size:15px}
.tp-img{display:block;font-style:normal;font-size:11px;color:#a7b9ae;margin:-4px 0 8px}
@media(max-width:850px){label[for=birth-hour]{grid-column:2;grid-row:7}.time24{grid-column:2;grid-row:8;align-self:center}.time24+.field-help{grid-column:1;grid-row:9;margin-top:13px}.form-error{grid-row:10}.form-privacy{grid-row:11}.sample-area{grid-row:12}}
@media(max-width:520px){#reading-form{grid-template-columns:1fr}label[for=birth-date],#birth-date,label[for=birth-hour],.time24,.time24+.field-help,.submit{grid-column:1!important;grid-row:auto!important}.sample-buttons{grid-template-columns:repeat(2,1fr)!important}.sample-area{grid-template-columns:1fr!important}}
/* 9.8.1 · Các số đề xuất cho bạn */
.tp-dexuat .tp-dx-head{font-size:15px;font-weight:600;color:#e9efe9;margin:2px 0 12px;line-height:1.5}
.tp-dexuat .tp-dx-head b{color:var(--tp-gold)}
.tp-dexuat .tp-dx-filters{display:grid;gap:8px;margin:0 0 10px}
.tp-dexuat .tp-dx-filter{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.tp-dexuat .tp-dx-filter>span{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#9fb3a5;min-width:76px}
.tp-dexuat button.tp-dx-chip{background:#ffffff08;border:1px solid #29483b;color:#cfdcd2;border-radius:999px;padding:5px 11px;font:inherit;font-size:12px;cursor:pointer;line-height:1.2}
.tp-dexuat button.tp-dx-chip small{opacity:.65;margin-left:2px}
.tp-dexuat button.tp-dx-chip[aria-pressed="true"]{background:var(--tp-gold);border-color:var(--tp-gold);color:#14261e;font-weight:700}
.tp-dexuat button.tp-dx-chip:focus-visible{outline:2px solid var(--tp-gold);outline-offset:2px}
.tp-dexuat .tp-dx-count{font-size:12px;color:#9fb3a5;margin:4px 0 10px}
.tp-dexuat .tp-dx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px}
.tp-dexuat .tp-dx-card{background:#0c241c;border:1px solid #23463a;border-radius:14px;padding:14px 14px 12px;display:flex;flex-direction:column;gap:9px;min-width:0}
.tp-dexuat .tp-dx-card[hidden]{display:none}
.tp-dexuat .tp-dx-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tp-dexuat .tp-dx-num{display:flex;align-items:center;gap:2px;flex-wrap:nowrap;font-variant-numeric:tabular-nums;min-width:0}
.tp-dexuat .tp-dx-num i{font-style:normal;font-weight:700;font-size:17px;line-height:1;width:18px;text-align:center;padding:5px 0;border-radius:5px;background:#ffffff0a;color:#e9efe9}
.tp-dexuat .tp-dx-num i.hit{background:#e6bf7033;color:var(--tp-gold)!important;box-shadow:inset 0 -2px 0 var(--tp-gold)}
.tp-dexuat .tp-dx-num b{width:4px}
.tp-dexuat .tp-dx-total{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:62px;padding:6px 8px;border-radius:12px;background:var(--tp-gold);color:#14261e;line-height:1}
.tp-dexuat .tp-dx-total strong{font-size:24px;font-weight:800;letter-spacing:-.02em}
.tp-dexuat .tp-dx-total small{font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-top:3px}
.tp-dexuat .tp-dx-total.g-binh,.tp-dexuat .tp-dx-total.g-ha,.tp-dexuat .tp-dx-total.g-hung{background:#d9cfb5}
.tp-dexuat .tp-dx-meta{display:flex;flex-wrap:wrap;gap:6px;font-size:11px}
.tp-dexuat .tp-dx-meta span{border:1px solid #29483b;border-radius:999px;padding:2px 8px;color:#b9c8bc}
.tp-dexuat .tp-dx-meta span.g-thuong,.tp-dexuat .tp-dx-meta span.g-cat{color:var(--tp-good);border-color:#7fc79a55}
.tp-dexuat .tp-dx-sub{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12px;color:#9fb3a5}
.tp-dexuat .tp-dx-sub b{color:#e9efe9;font-weight:700}
.tp-dexuat .tp-dx-card p{font-size:13px;line-height:1.55;color:#c9d6cb;margin:0;flex:1}
.tp-dexuat button.tp-dx-fill{align-self:flex-start;background:transparent;border:1px solid var(--tp-gold);color:var(--tp-gold);border-radius:999px;padding:6px 12px;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.tp-dexuat button.tp-dx-fill:hover,.tp-dexuat button.tp-dx-fill:focus-visible{background:#e6bf701f;outline:none}
.tp-dexuat button.tp-dx-more{display:block;margin:14px auto 4px;background:#ffffff08;border:1px solid var(--tp-gold);color:var(--tp-gold);border-radius:999px;padding:9px 22px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.tp-dexuat button.tp-dx-more[hidden],.tp-dexuat .tp-dx-empty[hidden]{display:none}
.tp-dexuat button.tp-dx-more:hover,.tp-dexuat button.tp-dx-more:focus-visible{background:#e6bf701f;outline:none}
.tp-dexuat .tp-dx-empty{font-size:13px;color:#c9d6cb;text-align:center;padding:16px 0}
@media (max-width:520px){.tp-dexuat .tp-dx-grid{grid-template-columns:1fr}.tp-dexuat .tp-dx-filter>span{min-width:100%}}
@media print{.tp-dexuat .tp-dx-fill,.tp-dexuat .tp-dx-more,.tp-dexuat .tp-dx-filters{display:none}}
