/* Lập lá số tử vi – nền chung giống trang thắp hương + phần riêng (cuối file) */
.price-badge{display:inline-block;margin-top:16px;background:#fff;color:var(--brand-dk);border-radius:999px;padding:7px 18px;font-size:15px;box-shadow:0 4px 14px rgba(0,0,0,.15)}
.price-badge b{color:#8a5f12;font-size:17px}
.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.f{margin-bottom:12px}
.f2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.time{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:6px}
.time span{font-weight:700;color:var(--muted)}
.time select{padding:0 6px;text-align:center;text-align-last:center;min-width:0}
.seg{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;height:44px;background:#fff}
.seg label{flex:1;margin:0;white-space:nowrap;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--ink);font-weight:500;font-size:14px}
.seg label+label{border-left:1px solid var(--line)}
.seg input{display:none}
.seg label:has(input:checked){background:var(--brand);color:#fff}
.seg.dis{opacity:.7;pointer-events:none}
.dmy{display:flex;align-items:center;height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 10px;cursor:text}
.dmy:focus-within{outline:2px solid var(--leaf);border-color:var(--leaf)}
.dmy input{border:0;height:40px;padding:0;width:2.4em;text-align:center;outline:none!important;background:transparent}
.dmy input.yy{width:3.8em}
.dmy span{color:var(--muted);font-weight:700;padding:0 2px}
.dmy.dis{background:#f4f4f0}
.hint{font-size:13px;color:var(--muted);margin-top:6px;min-height:20px}
.hint b{color:var(--brand-dk)}
.hint .err{color:var(--err);font-weight:600}
.note-sm{font-size:12.5px;color:var(--muted);margin:6px 0 0}
.chk{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--ink);font-weight:400;margin:6px 0 0}
.chk input,.consent input{width:auto;height:auto}
.consent{display:flex;gap:10px;align-items:flex-start;font-weight:400;color:var(--ink);font-size:14px;margin:18px 4px 0;cursor:pointer}
.consent input{margin-top:3px;flex:none}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.err-box{background:var(--err-soft);color:var(--err);border-radius:10px;padding:10px 14px;margin-top:14px;font-weight:600}
#btnXem span{font-weight:400;opacity:.9}
.closed{background:var(--warm-soft);color:#7a5410;border-radius:12px;padding:14px 16px;margin-bottom:16px;font-weight:600;white-space:pre-line;text-align:center}
.locked{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:var(--brand-soft);border:1px solid #d2dfcc;border-radius:12px;padding:12px 16px;margin:0 0 18px;font-size:14px}

/* Phiếu kết quả */
#phieu{max-width:780px;margin:6px auto 0}
.slip{background:var(--paper);border:2px solid var(--leaf);border-radius:18px;padding:26px;position:relative;box-shadow:0 6px 24px rgba(40,60,30,.10)}
.slip:before{content:"";position:absolute;inset:6px;border:1px dashed var(--leaf);border-radius:13px;pointer-events:none}
.slip .top{text-align:center;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:16px}
.slip .top img{height:46px;mix-blend-mode:multiply}
.slip h3{margin:8px 0 4px;font-size:21px;color:var(--brand-dk);letter-spacing:.5px}
.slip .meta{color:var(--muted);font-size:14px}
.slip .code{font-size:12px;color:var(--muted);margin-top:4px}
.blk{margin:18px 0}
.blk h4{margin:0 0 8px;font-size:14.5px;color:var(--brand-dk);text-transform:uppercase;letter-spacing:.6px}
.hours{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.hour{border:1px solid var(--warm);border-radius:12px;padding:12px;text-align:center;background:var(--warm-soft)}
.hour .t{font-size:18px;font-weight:700;color:#8a5f12}
.hour .k{font-size:15px}
.hour.night{background:#fafaf6;border-color:var(--line);opacity:.6}
.hour.night .t{color:var(--muted)}
.hour .tag{font-size:12px;color:var(--muted);margin-top:3px}
.thanks{text-align:center;margin-top:8px;font-weight:600;color:var(--brand-dk)}
.items{display:flex;flex-direction:column;gap:8px}
.item{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 14px}
.dot{width:22px;height:22px;border-radius:50%;border:1px solid #0003;flex:none;display:inline-block}
.note{background:var(--brand-soft);border-left:4px solid var(--leaf);padding:12px 14px;border-radius:8px;white-space:pre-line}
.disc{font-size:12px;color:var(--muted);text-align:center;margin-top:14px}
.history{max-width:780px;margin:18px auto 0;font-size:14px}
.history h3{font-size:14px;color:var(--muted);margin:0 0 6px;text-transform:uppercase;letter-spacing:.5px}
.history ul{margin:0;padding-left:18px}
.history li{margin:3px 0}

/* Popup */
.modal{position:fixed;inset:0;background:rgba(28,38,26,.55);z-index:80;display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(2px)}
.mbox{background:#fff;border-radius:18px;padding:24px;max-width:640px;width:100%;max-height:calc(100vh - 32px);overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,.25);animation:pop .25s ease-out}
@keyframes pop{from{transform:scale(.96);opacity:0}to{transform:none;opacity:1}}
.mbox h3{margin:0 0 6px;color:var(--brand-dk);font-size:20px}
.paygrid{display:grid;grid-template-columns:230px 1fr;gap:18px;align-items:center}
.qrwrap{position:relative;border:1px solid var(--line);border-radius:12px;padding:6px;background:#fff;min-height:230px;display:flex;align-items:center;justify-content:center}
.qrwrap img{width:100%;display:block}
.qrload{position:absolute;color:var(--muted);font-size:13px;padding:10px;text-align:center}
.qrdl{display:block;text-align:center;margin-top:8px;padding:8px 10px;border:1px solid var(--brand);border-radius:10px;color:var(--brand-dk);font-weight:600;font-size:14px;text-decoration:none;background:#fff}
.qrdl:hover{background:var(--brand-soft)}
dl.bank{display:grid;grid-template-columns:110px 1fr;gap:8px 10px;margin:0;font-size:14.5px}
dl.bank dt{color:var(--muted)} dl.bank dd{margin:0;word-break:break-word}
dl.bank .code{color:var(--err);font-size:17px;letter-spacing:1px}
.cp{font-size:12px;padding:2px 8px;border-radius:6px;box-shadow:none;background:#fff;color:var(--brand-dk);border:1px solid var(--line);margin-left:4px;font-weight:600}
.paystatus{display:flex;align-items:center;gap:10px;background:var(--warm-soft);color:#7a5410;border-radius:10px;padding:10px 14px;margin-top:16px;font-weight:600}
.paystatus.ok{background:var(--brand-soft);color:var(--brand-dk)}
.paystatus.bad{background:var(--err-soft);color:var(--err)}
.paystatus .cd{margin-left:auto;font-variant-numeric:tabular-nums;font-weight:500}
.spin{width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:rot 1s linear infinite;flex:none}
.paystatus.ok .spin,.paystatus.bad .spin{display:none}
@keyframes rot{to{transform:rotate(360deg)}}
.mactions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
.mactions button{font-size:14px;padding:9px 18px}

/* Đang nghiên cứu */
.research{text-align:center;max-width:420px;padding:30px 26px}
.orbit{position:relative;width:150px;height:150px;margin:0 auto 18px}
.ring{position:absolute;inset:0;border-radius:50%;border:2px solid transparent}
.r1{border-top-color:var(--leaf);border-bottom-color:var(--leaf);animation:rot 3s linear infinite}
.r2{inset:14px;border-left-color:var(--warm);border-right-color:var(--warm);animation:rot 2.2s linear infinite reverse}
.r3{inset:28px;border-top-color:var(--brand);animation:rot 1.6s linear infinite}
.incense{position:absolute;left:50%;top:50%;width:64px;height:64px;transform:translate(-50%,-50%);fill:#8a6a45}
.incense .ember{fill:#e0541e;animation:glow 1.2s ease-in-out infinite alternate}
.incense .smoke{fill:none;stroke:#9aa39a;stroke-width:1.6;stroke-linecap:round;opacity:.0;animation:smoke 2.4s ease-in-out infinite}
.incense .s2{animation-delay:.8s} .incense .s3{animation-delay:1.6s}
@keyframes glow{from{opacity:.5}to{opacity:1}}
@keyframes smoke{0%{opacity:0;transform:translateY(4px)}40%{opacity:.8}100%{opacity:0;transform:translateY(-8px)}}
.rmsg{min-height:24px;color:var(--muted);margin:6px 0 16px;transition:opacity .3s}
.bar{height:8px;background:var(--brand-soft);border-radius:999px;overflow:hidden}
.bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--leaf),var(--brand));border-radius:999px}

@media (max-width:820px){ .formgrid{grid-template-columns:1fr} }
@media (max-width:640px){
  .hours{grid-template-columns:1fr}
  .paygrid{grid-template-columns:1fr} .qrwrap{max-width:260px;margin:0 auto} .qrdl{max-width:260px;margin:8px auto 0}
  .f2{grid-template-columns:1fr;gap:12px}
  .time{grid-template-columns:1fr auto 1fr}
}
@media print{
  .brandbar,.hero,#form,.actions,.locked,.history,footer,.modal,.toast{display:none!important}
  body{background:#fff} main.wrap{margin:0;max-width:none} .sheet{border:0;box-shadow:none;padding:0;background:#fff}
  #phieu{display:block!important} .slip{box-shadow:none}
}


/* ================= TÔNG MÀU RIÊNG: CHÀM ĐÊM – VÀNG ================= */
body.ls{
  --bg:#eeedf3; --ink:#2f2e3d; --muted:#6f6d80; --line:#e0deea;
  --brand:#3b3683; --brand-dk:#232052; --brand-soft:#ecebf6; --leaf:#9d98d0;
  --warm:#b8892f; --warm-soft:#f8efda;
}
body.ls .brandbar{background:#f5f4f8}
body.ls .hero{background:radial-gradient(120% 140% at 80% 10%,#4a44a0 0%,#2e2a6e 40%,#18163d 100%);position:relative;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:12px;align-items:center;position:relative}
body.ls .hero .wrap.hero-grid{text-align:left;padding-top:26px;padding-bottom:36px}
.hero-txt .lead{margin-left:0;color:#dcdaf2}
.eyebrow{display:inline-block;font-size:12.5px;letter-spacing:.12em;text-transform:uppercase;color:#f5d27a;font-weight:700;margin-bottom:8px}
body.ls .steps3{justify-content:flex-start}
body.ls .steps3 b{color:var(--brand-dk)}
body.ls main.wrap{margin-top:28px}
.hero-art{display:flex;justify-content:center}
.ls-art{width:100%;max-width:420px;height:auto}
.ls-art .wheel .chi{animation:spinw 60s linear infinite;transform-origin:0 0}
.ls-art .core{animation:pulse 4s ease-in-out infinite;transform-origin:0 0}
.ls-art .stars circle{animation:tw 3s ease-in-out infinite} .ls-art .stars circle:nth-child(2n){animation-delay:1.2s} .ls-art .stars circle:nth-child(3n){animation-delay:2.1s}
.ls-art .twk path{transform-box:fill-box;transform-origin:center;animation:tw2 2.6s ease-in-out infinite} .ls-art .twk path+path{animation-delay:1.3s}
@keyframes spinw{to{transform:rotate(360deg)}}
@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@keyframes tw{0%,100%{opacity:.25}50%{opacity:1}}
@keyframes tw2{0%,100%{opacity:.3;transform:scale(.7)}50%{opacity:1;transform:scale(1.1)}}
@media (prefers-reduced-motion:reduce){.ls-art *,.mini-wheel *{animation:none!important}}
body.ls .price-badge b{color:#9a6a12}
body.ls .card h2 .num{background:var(--brand)}
.card.one{max-width:760px;margin:0 auto}
.mini-wheel{width:130px;margin:0 auto 14px} .mini-wheel svg{width:100%;height:auto}
.mini-wheel .spin-w{animation:spinw 3s linear infinite} .mini-wheel .spin-c{animation:spinw 6s linear infinite reverse}

/* ================= LÁ SỐ ================= */
#phieu{max-width:900px}
.ls-head{text-align:center;margin-bottom:12px}
.ls-head img{height:44px;mix-blend-mode:multiply}
.ls-head h3{margin:6px 0 2px;color:var(--brand-dk);font-size:20px;letter-spacing:.5px}
.ls-head .meta{color:var(--muted);font-size:13.5px}
.lsfit{overflow:hidden;width:100%}
#lsBox{width:820px;transform-origin:0 0}
.laso{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:2px solid #333;background:#ecebe6;font-family:Arial,sans-serif;font-size:12px;width:820px;color:#111}
.laso .o{border:1px solid #333;min-height:200px;padding:5px;display:flex;flex-direction:column;position:relative}
.laso .o .h{display:flex;justify-content:space-between;font-weight:700;font-size:12px;gap:4px}
.laso .o .main{text-align:center;font-weight:700;font-size:13px;margin:2px 0 6px}
.laso .o .ss2{display:grid;grid-template-columns:1fr 1fr;gap:4px;flex:1;font-size:11.5px;line-height:1.35}
.laso .o .fo{display:flex;justify-content:space-between;font-size:11px;margin-top:4px;gap:4px}
.laso .o.menh{background:#fffdf2}
.laso i.tg{font-style:normal;background:#111;color:#fff;padding:0 5px;margin-left:3px;border-radius:3px;font-size:10px}
.laso .center{grid-column:2/4;grid-row:2/4;border:1px solid #333;padding:16px;background:#f7f6f1;font-size:13px;display:flex;flex-direction:column;justify-content:center}
.laso .center h5{margin:0 0 4px;text-align:center;color:#1a3fa0;font-size:15px}
.laso .center .brand{text-align:center;color:#8a5f12;font-size:12px;margin-bottom:10px}
.laso .center table{width:100%;font-size:13px;border-collapse:collapse} .laso .center td{border:0;padding:2px 4px;vertical-align:top}
.laso .center td:first-child{color:#555;width:38%}
.legend{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;font-size:13px;margin-top:10px}
.legend span{display:inline-flex;align-items:center;gap:5px}
.ldot{width:13px;height:13px;border-radius:50%;border:1px solid #0002;display:inline-block}
.ls-note{text-align:center;color:var(--muted);font-size:12.5px;margin:8px 0 0;white-space:pre-line}
#btnPng{background:var(--brand);border-color:var(--brand)}

@media (max-width:820px){
  .hero-grid{grid-template-columns:1fr}
  body.ls .hero .wrap.hero-grid{text-align:center;padding-bottom:30px}
  .hero-txt .lead{margin-left:auto}
  body.ls .steps3{justify-content:center}
  .hero-art{order:-1;margin-bottom:-6px} .ls-art{max-width:260px}
  body.ls main.wrap{margin-top:18px}
}
@media print{
  @page{size:A4 portrait;margin:10mm}
  .ls-head img{height:36px}
  .lsfit{overflow:visible} #lsBox{transform:none!important;width:100%} .laso{width:100%;font-size:10.5px} .laso .o{min-height:150px}
  .legend{font-size:11px} #phieu{max-width:none}
  .laso,.laso *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
.zoom-tip{text-align:center;font-size:12.5px;color:var(--muted);margin:0 0 6px}
.lsfit.zoomed{overflow-x:auto}
@media print{.zoom-tip{display:none}}
