/* =====================================================================
   หมวด "ดวงวันนี้" — สไตล์ร่วมของ daily.html / zodiac.html / topic.html
   ===================================================================== */
.pt-0 { padding-top: 0 !important; }
.h3 { font-size: clamp(1.08rem, 2.4vw, 1.3rem); }
.eyebrow { display: block; font-size: .74rem; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; margin-bottom: 2px; }
.pill-sep { opacity: .5; }
.page-hero .date-pill { flex-wrap: wrap; justify-content: center; }
.page-hero .date-pill svg { width: 16px; height: 16px; }

/* hero ที่มีแสงสีประจำวัน/ธาตุ */
.page-hero.tinted::before {
  content: ''; position: absolute; inset: -10px -16px 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px 240px at 50% 34%, color-mix(in srgb, var(--tint) 30%, transparent), transparent 70%);
}
.page-hero { isolation: isolate; }
.hero-icon.day-icon {
  background: radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--tint) 40%, #fff 30%), var(--tint) 55%, color-mix(in srgb, var(--tint) 50%, #12081f));
  box-shadow: 0 0 0 1px var(--line-2), 0 0 0 6px color-mix(in srgb, var(--tint) 18%, transparent), 0 0 50px -6px var(--tint);
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.hero-icon.topic-icon { color: var(--col); box-shadow: 0 0 0 1px var(--line-2), 0 0 0 6px color-mix(in srgb, var(--col) 14%, transparent), 0 0 46px -6px var(--col); }
.hero-icon.sm-icon { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: rgba(227, 194, 122, .1); box-shadow: 0 0 0 1px var(--line-2); }
.hero-icon.sm-icon svg { width: 26px; height: 26px; }

/* แถบเลือกวันเกิด (ลิงก์) */
.day-switch { justify-content: flex-start; margin: 0 -16px 6px; padding: 2px 16px 10px; }
@media (min-width: 720px) { .day-switch { justify-content: center; margin: 0 0 6px; padding: 2px 2px 10px; } }
.day-switch .chip { min-height: 40px; }

/* ---------- การ์ดคะแนนหลัก ---------- */
.score-card { display: grid; gap: 18px; overflow: hidden; }
.score-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tint, var(--gold)) 22%, transparent), transparent 70%); pointer-events: none; }
.score-main { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.score-meta { display: grid; gap: 4px; }
.score-label { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; line-height: 1.2; color: var(--gold-2); }
.score-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.score-body { position: relative; z-index: 1; }
.summary { font-size: 1.04rem; line-height: 1.85; color: var(--text); margin-bottom: 16px; }
.bar-row { grid-template-columns: 88px 1fr 34px; }
@media (max-width: 400px) { .score-main .ring.lg { --size: 132px; } .score-label { font-size: 1.45rem; } }
@media (min-width: 860px) {
  .score-card { grid-template-columns: 260px 1fr; align-items: center; gap: 32px; }
  .score-main { flex-direction: column; text-align: center; }
  .score-meta { justify-items: center; }
  .score-tags { justify-content: center; }
}

/* ---------- ทักษา ---------- */
.taksa-box { display: grid; gap: 18px; align-items: center; }
@media (min-width: 760px) { .taksa-box { grid-template-columns: 250px 1fr; gap: 28px; } }
.taksa-wheel { width: 100%; max-width: 250px; margin: 0 auto; overflow: visible; }
.taksa-wheel .tw-ring { fill: none; stroke: var(--line-2); stroke-dasharray: 2 5; }
.taksa-wheel .tw-core { fill: rgba(227, 194, 122, .08); stroke: var(--line-2); }
.taksa-wheel text { text-anchor: middle; font-family: var(--font-body); }
.taksa-wheel .tw-c1 { fill: var(--text-3); font-size: 10px; }
.taksa-wheel .tw-c2 { fill: var(--gold-2); font-size: 15px; font-weight: 600; font-family: var(--font-head); }
.tw-node circle { fill: #241240; stroke: var(--line-2); stroke-width: 1; }
.tw-node .tw-k { fill: var(--text); font-size: 9.5px; font-weight: 500; }
.tw-node .tw-p { fill: var(--text-3); font-size: 7.5px; }
.tw-node.bad circle { stroke: rgba(240, 138, 138, .5); }
.tw-node.on circle { fill: #e3c27a; stroke: #fff1c9; stroke-width: 2; filter: drop-shadow(0 0 8px rgba(227, 194, 122, .7)); }
.tw-node.on.bad circle { fill: #f08a8a; stroke: #ffd0d0; filter: drop-shadow(0 0 8px rgba(240, 138, 138, .6)); }
.tw-node.on .tw-k { fill: #2a1640; font-weight: 700; }
.tw-node.on .tw-p { fill: #4a2d6b; }
.taksa-text h2 { margin-bottom: .4em; }
.taksa-text p { font-size: .96rem; }
.mini-faq { border-top: 1px dashed var(--line-soft); padding-top: 10px; font-size: .9rem; color: var(--text-2); }
.mini-faq summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--gold); min-height: 40px; list-style: none; }
.mini-faq summary::-webkit-details-marker { display: none; }
.mini-faq summary svg { width: 16px; height: 16px; }
.mini-faq p { margin: 6px 0 0; }

/* ---------- topic cards ---------- */
.topic-card.link-card { display: block; }
.topic-card .advice { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; color: var(--gold-2); font-size: .9rem; }
.topic-card .advice svg { width: 15px; height: 15px; flex: none; margin-top: 5px; color: var(--gold); }

/* ---------- เคล็ดลับเสริมดวง (การ์ดครีม) ---------- */
.tips-card .section-head { margin-bottom: 12px; }
.tip-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .tip-grid { grid-template-columns: repeat(4, 1fr); } }
.tip { padding: 14px; border-radius: 16px; background: rgba(184, 138, 62, .07); border: 1px solid rgba(184, 138, 62, .18); display: grid; gap: 8px; align-content: start; min-width: 0; }
.tip-k { font-size: .76rem; letter-spacing: .08em; color: #8a5a12; font-weight: 500; }
.tip .swatch { align-items: flex-start; }
.tip .swatch .sw { width: 38px; height: 38px; }
.tip .swatch b { color: var(--ink); }
.tip .swatch small { color: var(--ink-3); display: block; line-height: 1.4; }
.tip .num-row { gap: 6px; }
.time-big { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 1rem; }
.time-big svg { width: 18px; height: 18px; color: #8a5a12; flex: none; }
.tip small.dim { font-size: .78rem; line-height: 1.4; }
@media (max-width: 359px) { .tip-grid { grid-template-columns: 1fr; } }

/* ---------- พรุ่งนี้ ---------- */
.tomorrow { display: flex; gap: 16px; align-items: center; }
.tomorrow h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.tomorrow p { margin: 0; font-size: .92rem; }

/* ---------- ดูต่อ ---------- */
.more-links { grid-template-columns: 1fr; }
@media (min-width: 720px) { .more-links { grid-template-columns: 1fr 1fr; } }
.more-links a { min-height: 56px; }
.more-links .mi { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(227, 194, 122, .1); color: var(--gold); }
.more-links .mi svg { width: 18px; height: 18px; }
.more-links small { display: block; color: var(--text-3); font-size: .8rem; line-height: 1.3; }

/* ---------- หน้ารวม: การ์ดดวงของคุณ ---------- */
.my-cta .hero-icon { margin-bottom: 8px; }
.my-cta p { max-width: 460px; margin: 0 auto 16px; }
.my-card { overflow: hidden; }
.my-card::after { content: ''; position: absolute; left: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tint) 25%, transparent), transparent 70%); pointer-events: none; }
.my-card > * { position: relative; z-index: 1; }
.my-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.my-head h2 { margin: 0 0 6px; font-size: 1.35rem; }
.my-head .ring.lg { --size: 116px; }
.my-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dot-c { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mini-scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.mini-scores > div { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.mini-scores svg { width: 18px; height: 18px; color: var(--col); }
.mini-scores b { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.2; }
.mini-scores small { font-size: .74rem; color: var(--text-3); }
.my-card .btn-row { justify-content: flex-start; }
@media (max-width: 359px) { .my-head { flex-direction: column; text-align: center; } .my-tags { justify-content: center; } .my-card .btn-row { justify-content: center; } }

/* ---------- 7 วันเกิด ---------- */
.day-grid-lux { gap: 8px; }
.day-grid-lux .day-btn { position: relative; padding: 14px 4px 10px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, transparent), rgba(27, 13, 49, .5)); border-color: color-mix(in srgb, var(--c) 30%, transparent); }
.day-grid-lux .day-btn b { font-weight: 500; font-size: .88rem; }
.day-grid-lux .dscore { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1; color: var(--gold-2); }
.day-grid-lux .dscore small { font-size: .6em; color: var(--text-3); }
.day-grid-lux .stars { font-size: .62rem; letter-spacing: 0; }
.best-tag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 99px; font-size: .64rem; font-weight: 600; background: var(--gold-grad); color: var(--ink); white-space: nowrap; }
.best-tag.mine { background: var(--purple-2); }
@media (max-width: 520px) { .day-grid-lux { row-gap: 14px; } }

/* ---------- 4 ด้าน ---------- */
.topic-tiles .tt { display: grid; gap: 4px; padding: 16px 14px; border-radius: var(--radius); position: relative; overflow: hidden; background: linear-gradient(165deg, color-mix(in srgb, var(--col) 20%, rgba(58, 29, 99, .6)), rgba(27, 13, 49, .75)); border: 1px solid color-mix(in srgb, var(--col) 30%, transparent); }
.tt-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--col); background: color-mix(in srgb, var(--col) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--col) 40%, transparent); }
.tt-ic svg { width: 22px; height: 22px; }
.tt h3 { margin: 6px 0 0; font-size: 1.05rem; }
.tt-best { font-size: .82rem; color: var(--text-2); line-height: 1.4; }
.tt-row { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.tt-row i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .64rem; color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.tt-row em { margin-left: auto; font-style: normal; font-family: var(--font-head); font-weight: 700; color: var(--col); }

/* ---------- สี / เลขมงคล ---------- */
.lucky-card { display: block; }
.lucky-card .section-head { margin-bottom: 10px; align-items: flex-start; }
.lucky-card .section-head h2 { margin: 0; }
.color-list { display: grid; gap: 4px; }
.cl-row { display: grid; grid-template-columns: 26px 64px auto 1fr; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed rgba(42, 22, 64, .12); font-size: .92rem; }
.cl-row:last-child { border-bottom: 0; }
.cl-ic svg { width: 18px; height: 18px; color: #8a5a12; }
.cl-k { color: var(--ink-2); }
.cl-sw { display: flex; gap: 3px; }
.cl-sw i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4), 0 2px 6px rgba(42, 22, 64, .25); }
.cl-row b { color: var(--ink); font-weight: 500; text-align: right; }
.cl-row.avoid .cl-ic svg { color: #b04a4a; }
.num-hero { display: flex; align-items: center; gap: 16px; margin: 6px 0 14px; }
.num-hero small { display: block; margin-bottom: 4px; }
.range-card { display: flex; align-items: center; gap: 14px; }
.range-card h3 { margin: 0; font-size: 1.05rem; }
.range-card p { margin: 0; font-size: .88rem; }
.range-card .chev { width: 18px; height: 18px; margin-left: auto; color: var(--gold); flex: none; }
.rc-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--gold); background: rgba(227, 194, 122, .1); box-shadow: inset 0 0 0 1px var(--line-2); }
.rc-ic svg { width: 24px; height: 24px; }

/* วงกลมราศี (ใช้ร่วม zodiac / topic) */
.zc-orb {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 1.55rem; line-height: 1; color: #fff;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .55), transparent 45%), var(--zc, linear-gradient(135deg, #b996ec, #5d3a96));
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(255, 255, 255, .35);
}
.zc-orb.sm { width: 34px; height: 34px; font-size: 1.05rem; }
.zc-orb.hero-orb { width: 84px; height: 84px; font-size: 2.6rem; margin: 0 auto 12px; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 7px rgba(227, 194, 122, .08), 0 0 50px -6px var(--tint); }

/* มือถือ: 7 วันเกิดจัดกึ่งกลางแถวสุดท้าย */
@media (max-width: 520px) {
  .day-grid-lux { display: flex; flex-wrap: wrap; justify-content: center; }
  .day-grid-lux .day-btn { width: calc(25% - 6px); }
}
@media (max-width: 520px) {
  .my-head { gap: 12px; }
  .my-head .ring.lg { --size: 96px; }
  .my-head h2 { font-size: 1.15rem; }
  .my-tags .badge { font-size: .72rem; padding: 2px 8px; }
}
.time-big b { white-space: nowrap; font-size: .95rem; }
