/* PTC Xông đất — dùng biến màu / font của giao diện mới (tc-ui.css) */
.ptc-xd .tc-form__btns--one { grid-template-columns: 1fr; }
.ptc-xd .tc-form[hidden] { display: none; }
.ptc-xd .tc-hint a { color: var(--tc-red); text-decoration: underline; }

.ptc-xd-result { margin-top: 28px; display: grid; gap: 14px; }
.ptc-xd-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; border-radius: 16px; color: #fbeedd;
  background: radial-gradient(ellipse at 15% 0%, #a82222, transparent 60%), linear-gradient(135deg, var(--tc-red-2), var(--tc-red-dark)); box-shadow: var(--tc-shadow); }
.ptc-xd-sum__k { margin: 0 0 2px !important; color: #f0d58c; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.tc-scope .ptc-xd-sum h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); }
.ptc-xd-sum p { margin: 4px 0 0; color: #f3dcc4; font-size: 15px; }
.tc-scope .ptc-xd-sum .tc-fbtn--line { background: rgba(255, 255, 255, .08); border-color: rgba(240, 213, 140, .7); color: #fff; }
.tc-scope .ptc-xd-sum .tc-fbtn--line:hover { background: rgba(255, 255, 255, .18); }
.tc-scope .ptc-xd-sum .tc-fbtn--line .tc-ic--d [stroke] { stroke: #f0d58c; }

.tc-scope .ptc-xd-h { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 22px; }
.tc-scope .ptc-xd-h .tc-ic--d { width: 28px; height: 28px; }
.ptc-xd-sub { margin: 0 !important; font-size: 14px; font-weight: 600; color: var(--tc-muted); }

.ptc-xd-top, .ptc-xd-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ptc-xd-p { position: relative; display: flex; gap: 12px; padding: 14px 14px 12px; border: 1px solid var(--tc-line); border-left: 4px solid var(--xd-c, var(--tc-gold)); border-radius: 12px; background: var(--tc-card); box-shadow: var(--tc-shadow); }
.ptc-xd-top .ptc-xd-p { padding: 18px 16px 14px; background: linear-gradient(180deg, #fffaf0, var(--tc-card)); border-color: #e3c98e; }
.ptc-xd-p--kim { --xd-c: #c9a227; } .ptc-xd-p--moc { --xd-c: #3f8a4a; } .ptc-xd-p--thuy { --xd-c: #2f6fb0; } .ptc-xd-p--hoa { --xd-c: #c0392b; } .ptc-xd-p--tho { --xd-c: #9a6a32; }
.ptc-xd-p__rank { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f4e6c8; color: var(--tc-red-2); font-weight: 700; font-size: 14px; }
.ptc-xd-top .ptc-xd-p__rank { width: 36px; height: 36px; background: linear-gradient(180deg, #a92424, var(--tc-red-2)); color: #fff; font-size: 16px; }
.ptc-xd-p__main { min-width: 0; flex: 1; }
.tc-scope .ptc-xd-p h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 4px; font-family: var(--tc-serif); font-size: 19px; color: var(--tc-red-2); }
.ptc-xd-top .ptc-xd-p h4 { font-size: 22px; }
.ptc-xd-stars { font-family: var(--tc-sans); font-size: 14px; letter-spacing: 1px; color: #d39b1f; white-space: nowrap; }
.ptc-xd-stars i { font-style: normal; color: #e6d8bb; }
.ptc-xd-p p { margin: 0 !important; font-size: 14px; color: var(--tc-text); line-height: 1.45; }
.ptc-xd-p .ptc-xd-p__nap { color: var(--tc-muted); font-size: 13.5px; }
.ptc-xd-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #eef3fb; color: #2f6fb0; font-size: 12px; font-weight: 600; }
.ptc-xd-p details { margin-top: 6px; font-size: 13.5px; }
.ptc-xd-p summary { cursor: pointer; color: var(--tc-red); font-weight: 600; list-style: none; }
.ptc-xd-p summary::-webkit-details-marker { display: none; }
.ptc-xd-p summary::after { content: " ▾"; }
.ptc-xd-p details[open] summary::after { content: " ▴"; }
.tc-scope .ptc-xd-p details ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; color: var(--tc-text); }
.ptc-xd-p details li { margin-bottom: 3px; }

.ptc-xd-avoid { display: flex; flex-wrap: wrap; gap: 8px; }
.ptc-xd-avoid span { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 10px; background: #fdf0ee; border: 1px solid #f1c6bf; font-size: 14px; color: #8d161a; }
.ptc-xd-avoid b { font-weight: 700; }

.ptc-xd-note { display: flex; gap: 12px; margin-top: 8px; padding: 16px 18px; border-radius: 12px; background: #f4ecdc; border: 1px dashed #d6c09a; font-size: 14.5px; }
.tc-scope .ptc-xd-note .tc-ic--d { flex: none; width: 28px; height: 28px; }
.tc-scope .ptc-xd-note ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }
.ptc-xd-note li { margin-bottom: 4px; }
.ptc-xd-note a { color: var(--tc-red); text-decoration: underline; }

@media (max-width: 900px) { .ptc-xd-top, .ptc-xd-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .ptc-xd-top, .ptc-xd-list { grid-template-columns: 1fr; }
  .ptc-xd-sum { padding: 16px; }
  .ptc-xd-sum .tc-fbtn { width: 100%; }
  .tc-scope .ptc-xd-h { font-size: 20px; }
}
