/* ดูดวง.store — หน้าดวงตามวันเกิด */
/* .section และ .page-hero ใน style.css เขียนทับ padding ซ้าย-ขวาของ .container → คืน gutter ให้หน้านี้ */
body[data-page="birthdate"] .page-hero.container { padding-left: var(--gutter); padding-right: var(--gutter); }
.bd-section.container { padding: 16px var(--gutter) 48px; }
.bd-form { max-width: 760px; margin: 0 auto 28px; }
.bd-form-title { font-size: 1.25rem; }
.bd-toggle, .bd-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--font-head); font-size: .88rem; color: var(--text-2); position: relative; }
.bd-toggle input, .bd-check input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }
.bd-date-row { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 12px; }
.bd-time-row { display: grid; grid-template-columns: minmax(0, 220px) auto; gap: 12px 18px; align-items: end; margin-top: 14px; }
.bd-time-row .bd-check { padding-bottom: 12px; }
.bd-opt { font-size: .8rem; }
.bd-form .help { margin: 10px 0 0; }
.bd-form input[type=time]:disabled { opacity: .45; }
.bd-error { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(239,123,123,.1); border: 1px solid rgba(239,123,123,.4); color: var(--danger); font-size: .95rem; }
@media (max-width: 560px) {
  .bd-date-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
  .bd-date-row label:nth-child(3) { grid-column: 1 / -1; }
  .bd-time-row { grid-template-columns: 1fr; }
  .bd-time-row .bd-check { padding-bottom: 0; }
  .bd-form .form-actions .btn { width: 100%; }
}

/* Header */
.bd-head .eyebrow { margin-bottom: 6px; }
.bd-headline { font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 6px 0 10px; overflow-wrap: anywhere; }
.bd-time { font-size: .7em; color: var(--text-2); white-space: nowrap; }
.bd-note { font-size: .92rem; color: var(--text-2); margin: 0 0 14px; padding-left: 12px; border-left: 2px solid var(--purple-2); }
.bd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px; margin: 14px 0 4px; }
.bd-tiles .info-tile { min-width: 0; }
.bd-tiles .big { display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.bd-tiles .swatch i { width: 18px; height: 18px; flex: none; }
.bd-glyph { font-family: 'Noto Sans Symbols', 'Segoe UI Symbol', serif; }
.bd-emoji { font-size: 1.2em; line-height: 1; }
.bd-bignum { font-size: 2.2rem !important; font-weight: 600; line-height: 1 !important; color: var(--gold) !important; text-shadow: 0 0 18px var(--gold-glow); }
.bd-today { margin-bottom: 0; font-size: .95rem; }

.bd-mb { margin-bottom: 14px; }
.bd-mt, .card h4.bd-mt { margin-top: 18px; }
.bd-mt-sm { margin-top: 10px; }
.bd-kanit { font-family: var(--font-head); }
.card h4 { font-family: var(--font-head); font-weight: 500; font-size: 1.02rem; margin: 0 0 8px; }
.bd-three { margin-top: 6px; }
.bd-three .card { margin: 0; }
.bd-three p { margin: 0; color: var(--text-2); font-size: .95rem; }
.bd-caution { border-color: var(--warn); background: rgba(242,180,107,.07); margin-bottom: 0; }
.bd-caution strong { color: var(--warn); font-family: var(--font-head); font-weight: 500; }

/* Taksa */
.bd-taksa { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 24px; align-items: start; }
.bd-wheel-wrap { width: 100%; max-width: 320px; margin: 0 auto; }
.bd-wheel { display: block; width: 100%; max-width: 320px; height: auto; }
.bd-wheel .seg { fill: rgba(255,255,255,.03); stroke: rgba(206,184,255,.22); stroke-width: 1; }
.bd-wheel .seg.good { fill: rgba(233,196,106,.14); stroke: var(--gold-3); }
.bd-wheel .seg.bad { fill: rgba(239,123,123,.15); stroke: rgba(239,123,123,.6); }
.bd-wheel .hub { fill: var(--bg-3); stroke: var(--gold-3); stroke-width: 1.5; }
.bd-wheel text { text-anchor: middle; dominant-baseline: central; font-family: var(--font-head); }
.bd-wheel .pos { font-size: 11px; fill: var(--text-3); }
.bd-wheel .pos.good { fill: var(--gold); font-weight: 500; }
.bd-wheel .pos.bad { fill: var(--danger); font-weight: 500; }
.bd-wheel .pname { font-size: 12.5px; fill: var(--text); }
.bd-wheel .pdot { stroke: rgba(0,0,0,.35); stroke-width: 1; }
.bd-wheel .pnum { font-size: 10px; fill: #fff; font-weight: 600; paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: 2px; }
.bd-wheel .hub-lbl { font-size: 10px; fill: var(--text-3); }
.bd-wheel .hub-name { font-size: 17px; fill: var(--gold-2); font-weight: 500; }
.bd-legend { display: flex; justify-content: center; gap: 16px; margin-top: 10px; font-size: .82rem; color: var(--text-3); font-family: var(--font-head); flex-wrap: wrap; }
.bd-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bd-legend .lg.good { background: rgba(233,196,106,.45); border: 1px solid var(--gold); }
.bd-legend .lg.bad { background: rgba(239,123,123,.4); border: 1px solid var(--danger); }

.bd-table-wrap { min-width: 0; }
.bd-taksa-table td { font-size: .92rem; }
.bd-taksa-table tr.good td:first-child .bd-pos { color: var(--gold); }
.bd-taksa-table tr.bad td:first-child .bd-pos { color: var(--danger); }
.bd-taksa-table tr.good { background: rgba(233,196,106,.04); }
.bd-taksa-table tr.bad { background: rgba(239,123,123,.05); }
.bd-pos { font-family: var(--font-head); white-space: nowrap; }
.bd-num { font-family: var(--font-head); color: var(--gold-2); font-size: 1.05rem !important; }
.bd-meaning { color: var(--text-2); font-size: .88rem !important; line-height: 1.6; }
.bd-goodfor { color: var(--gold-2); margin-top: 4px; font-size: .85rem; }
.bd-pdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 6px currentColor; vertical-align: 0; }
.bd-taksa-table td:nth-child(2) { white-space: nowrap; }

.bd-lucky { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.bd-chip-bad { border-color: rgba(239,123,123,.5); color: var(--danger); background: rgba(239,123,123,.08); }
.bd-nums { display: flex; flex-wrap: wrap; gap: 10px; }
.bd-numball { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(246,217,138,.25), rgba(233,196,106,.06)); border: 1px solid var(--border-2); box-shadow: var(--shadow-gold); }
.bd-numball b { font-family: var(--font-head); font-size: 1.6rem; font-weight: 500; color: var(--gold-2); line-height: 1; }
.bd-numball small { font-size: .68rem; color: var(--text-3); font-family: var(--font-head); }
.bd-numball.bad { background: rgba(239,123,123,.08); border-color: rgba(239,123,123,.5); box-shadow: none; }
.bd-numball.bad b { color: var(--danger); }
.bd-lucky .chip small { color: var(--text-3); font-size: .72rem; }

@media (max-width: 900px) {
  .bd-taksa { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bd-taksa-table thead { display: none; }
  .bd-taksa-table, .bd-taksa-table tbody { display: block; width: 100%; }
  .bd-taksa-table tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 10px 14px; }
  .bd-taksa-table tr.good { border-color: var(--border-2); }
  .bd-taksa-table tr.bad { border-color: rgba(239,123,123,.45); }
  .bd-taksa-table td { display: block; border: 0; padding: 0; }
  .bd-taksa-table td:nth-child(1) .bd-pos { font-size: 1.05rem; }
  .bd-taksa-table td:nth-child(3)::before { content: 'สี '; color: var(--text-3); font-size: .8rem; }
  .bd-taksa-table td:nth-child(4)::before { content: 'เลข '; color: var(--text-3); font-size: .8rem; font-family: var(--font-body); }
  .bd-taksa-table td.bd-meaning { flex: 1 1 100%; margin-top: 2px; }
}

/* Zodiac */
.bd-tagline { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 10px; }
.bd-kv { margin-top: 6px; }
.bd-kv dd { color: var(--text-2); }
@media (max-width: 560px) { .bd-kv { grid-template-columns: 1fr; gap: 2px; } .bd-kv dd { margin-bottom: 10px; } }
.bd-asc { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: rgba(233,196,106,.05); }
.bd-asc p:last-child { margin-bottom: 0; }

/* Numerology */
.bd-lifepath { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; }
.bd-lp-num { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 120px; height: 120px; border-radius: 50%;
  border: 1px solid var(--border-2); background: radial-gradient(circle at 35% 30%, rgba(246,217,138,.22), rgba(139,92,246,.12)); box-shadow: var(--shadow-gold); }
.bd-lp-num span { font-family: var(--font-head); font-size: 3.1rem; font-weight: 500; line-height: 1; color: var(--gold); }
.bd-lp-num small { font-size: .72rem; margin-top: 4px; font-family: var(--font-head); }
.bd-numgrid { margin-top: 22px; }
.bd-numgrid .card { margin: 0; }
.bd-numgrid p { font-size: .93rem; color: var(--text-2); margin-bottom: .6em; }
.bd-numgrid .lbl { font-family: var(--font-head); font-size: .82rem; }
.bd-mid-num { font-family: var(--font-head); font-size: 2.3rem; font-weight: 500; color: var(--gold-2); line-height: 1.1; margin: 4px 0 8px; }
@media (max-width: 560px) {
  .bd-lifepath { grid-template-columns: 1fr; justify-items: center; }
  .bd-lifepath h4 { text-align: center; }
}

/* Chinese */
.bd-cn { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; align-items: start; }
.bd-cn-emoji { font-size: 4.6rem; line-height: 1; text-align: center; filter: drop-shadow(0 0 18px var(--gold-glow)); }
.bd-cn-name { font-size: 1.3rem !important; }
@media (max-width: 560px) { .bd-cn { grid-template-columns: 1fr; gap: 8px; } .bd-cn-name { text-align: center; } }

.bd-actions { margin-top: 22px; }
@media (max-width: 480px) { .bd-actions .btn { flex: 1 1 calc(50% - 10px); padding-left: 12px; padding-right: 12px; font-size: .92rem; } }
