@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Khmer:wght@400;600;700&display=swap');
:root{color-scheme:light;--navy:#0b1f4d;--gold:#e7a92f;--blue:#3b6fd4}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
body{font-family:'Noto Sans Khmer','Khmer OS Siemreap',system-ui,sans-serif;
 background:#dbe2ec;color:#16202c;line-height:1.85;padding:0 24px 24px}
.wrap{max-width:920px;margin:0 auto}
.card{background:#fff;border:1px solid #dfe5ec;border-radius:14px;padding:26px;margin-bottom:18px}
h1{font-size:26px;font-weight:700;margin-bottom:6px}
h2{font-size:19px;font-weight:700;margin-bottom:14px}
.sub{color:#61707f;font-size:14px;margin-bottom:22px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.set{background:#fff;border:1px solid #dfe5ec;border-left:4px solid var(--blue);border-radius:10px;
 padding:16px;cursor:pointer;transition:.15s}
.set:hover{border-color:var(--blue);box-shadow:0 3px 10px rgba(0,0,0,.09);transform:translateY(-1px)}
.set.opt{border-left-color:#8b7cc8}.set.special{border-left-color:#d4883b}.set.timed{border-left-color:#cf4444}
.set.locked{border-left-color:#aab4bf;background:#f7f8fa}
.lkl{margin-top:18px;border-top:1px solid #dfe5ec;padding-top:14px}
.lkl-h{font-weight:700;font-size:16px}
.lkl-s{font-size:13px;color:#4b5866;margin:4px 0 10px}
.lkl-l{margin:0 0 14px;padding-left:2.4em;font-size:15px;line-height:1.7}
.lkl-l li{padding:6px 0;border-bottom:1px dashed #e3e8ee;cursor:pointer;color:#33404d}
.lkl-l li::marker{color:#9aa6b2;font-size:13px}
.lkl-l li::after{content:" 🔒";font-size:12px;opacity:.55}
.set .nm{font-weight:700;font-size:16px}
.set .mt{font-size:13px;color:#61707f;margin-top:5px}
.set .best{font-size:12px;color:#2d8a4e;margin-top:4px;font-weight:600}
.set .lk{font-size:12px;color:#9a6a12;margin-top:4px;font-weight:600}
.prog{height:6px;background:#e6ebf1;border-radius:4px;overflow:hidden;margin:8px 0 2px}.prog>div{height:100%;background:#2d8a4e}
.set.doneset{border-left-color:#2d8a4e;background:#f4fbf6}
button{font-family:inherit;font-size:15px;border:0;border-radius:9px;padding:11px 22px;
 cursor:pointer;background:var(--blue);color:#fff;font-weight:600;line-height:1.6}
button:hover{background:#2f5cb3}button:disabled{background:#c3ccd6;cursor:default}
button.sec{background:#eef1f6;color:#2b3a4a}button.sec:hover{background:#e0e5ec}
button.warn{background:#e8eaf0;color:#7a4ad4}button.warn.on{background:#7a4ad4;color:#fff}
button.gold{background:var(--gold);color:#1d1400}button.gold:hover{background:#d6981f}
button.link{background:none;color:var(--blue);padding:4px 0;font-weight:600}
.bar{height:7px;background:#e7ebf1;border-radius:4px;overflow:hidden;margin:16px 0}
.bar>i{display:block;height:100%;background:var(--blue);transition:.25s}
.qtext{font-size:19px;font-weight:600;margin:14px 0 20px;line-height:2}
.opt{display:flex;gap:13px;align-items:flex-start;border:1.5px solid #c7d7f5;border-left:5px solid #9db8ec;border-radius:12px;
 padding:13px 16px;margin-bottom:10px;cursor:pointer;transition:.12s;background:linear-gradient(100deg,#eef3ff 0%,#fafcff 100%)}
.opt:hover{border-color:#8fb0ef;border-left-color:#5b86d8}
.opt.sel{border:2px solid #2a5bc4;border-left:6px solid #1d3d80;background:linear-gradient(100deg,#c3d6ff 0%,#e3ecff 100%);font-weight:600}
.opt.sel .let{color:#1d3d80}
.opt .let{font-weight:700;color:var(--blue);min-width:26px}
.row{display:flex;gap:11px;flex-wrap:wrap;align-items:center;margin-top:20px}
.spacer{flex:1}
.pill{display:inline-block;font-size:12px;padding:3px 11px;border-radius:20px;background:#eef1f6;color:#5a6875;font-weight:600}
.pill.mine{background:#fff3d9;color:#9a6a11}
.pill.lawp{background:#e3f4ea;color:#2d8a4e}.pill.gkp{background:#fdf1dc;color:#9a6a12}
.score{font-size:56px;font-weight:700;text-align:center;margin:10px 0}
.score small{font-size:20px;color:#8a97a4;font-weight:400}
.tbl{width:100%;border-collapse:collapse;margin-top:16px;font-size:14px}
.tbl td,.tbl th{padding:9px 12px;border-bottom:1px solid #eaeef3;text-align:right}
.tbl th:first-child,.tbl td:first-child{text-align:left}
.rev{border-left:4px solid #cf4444;background:#fff;border-radius:9px;padding:16px 19px;margin-bottom:13px;
 border-top:1px solid #eaeef3;border-right:1px solid #eaeef3;border-bottom:1px solid #eaeef3}
.rev.ok{border-left-color:#2d8a4e}
.rev .qq{font-weight:600;margin-bottom:9px}
.rev .aa{font-size:14px;margin:3px 0}
.g{color:#2d8a4e;font-weight:600}.r{color:#cf4444;font-weight:600}
.nav{font-size:13px;color:#61707f}
.why{font-size:14px;color:#3d4a57;background:#f3f6fa;border-radius:8px;padding:8px 10px;margin-top:6px}
.why .src{font-size:12px;color:#7a8794;margin-top:4px}
.grp{margin:14px 0 6px}.gh{display:flex;align-items:baseline;gap:8px;margin:6px 0 8px}.gi{font-size:20px}.gn{font-weight:700;font-size:16px}.gc{color:#6b7785;font-size:13px;margin-left:auto}
.cnts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.cnts button{width:100%}
.tmr{float:right;font-weight:700;color:#2d6cdf}.tmr.low{color:#cf4444}

/* dialogs */
#qdlg{position:fixed;inset:0;background:rgba(20,28,38,.45);display:flex;align-items:center;justify-content:center;z-index:99;padding:16px}
.dlgbox{background:#fff;border-radius:12px;padding:20px;max-width:400px;width:100%;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.dlgt{font-weight:700;font-size:17px;margin-bottom:8px}.dlgm{color:#3d4a57;margin-bottom:16px}

/* top bar */
#topbar{background:var(--navy);color:#fff;margin:0 -24px 20px;padding:10px 24px;position:sticky;top:0;z-index:60;box-shadow:0 2px 8px rgba(3,19,56,.25)}
.tb{max-width:920px;margin:0 auto;display:flex;align-items:center;gap:10px;flex-wrap:nowrap;min-width:0}
.tb .brand{font-weight:700;font-size:18px;color:var(--gold);letter-spacing:.5px}
.tb .who{font-size:13px;opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}
.tb .ctr{display:flex;gap:8px}
.tb .chip{font-size:12px;border-radius:20px;padding:3px 10px;font-weight:600;white-space:nowrap}
.tb .chip.free{background:#1f7a4a}.tb .chip.paid{background:#2f5cb3}.tb .chip.none{background:#5b6573}
.tb button{padding:5px 12px;font-size:13px}

/* banners */
.banner{border-radius:12px;padding:14px 18px;margin-bottom:18px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.banner.info{background:#eef4ff;border:1px solid #c9d8f5}
.banner.warn{background:#fff6e5;border:1px solid #f3d9a4}
.banner .bt{flex:1;min-width:200px}

/* about LUMA */
.intro{border-top:4px solid var(--gold)}
.about h2{color:var(--navy);margin-bottom:8px}
.about p{margin-bottom:10px}
.about ul{list-style:none;margin:6px 0 10px}
.about li{padding:3px 0}
.about .motto{color:#9a6a12;font-weight:600;font-style:italic;margin-top:6px}
.footer{text-align:center;color:#7a8794;font-size:13px;margin:6px 0 18px;display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap}
.banner .link{padding:0 0 0 4px}

/* legal pages + agree box */
.legalbox{max-width:640px;max-height:88vh;overflow:auto}
.legaltabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.legaltabs button{padding:5px 12px;font-size:13px}
.legal h3{font-size:16px;color:var(--navy);margin:14px 0 4px}
.legal p{margin-bottom:8px}.legal ul{padding-left:20px;margin-bottom:6px}.legal li{margin:8px 0;line-height:1.9}
.legal h3{margin-top:20px!important;padding-top:12px;border-top:1px solid #eaeef3}
.legal .link{padding:0;font-size:inherit}
.auth label.chk{display:flex;gap:10px;align-items:flex-start;font-weight:400;font-size:14px;margin:16px 0 0;line-height:1.8}
.auth label.chk input{width:20px;height:20px;flex:none;margin-top:4px;accent-color:var(--blue)}
.chk a{color:var(--blue);font-weight:600;text-decoration:none}

/* contact list inside legal pages */
.legal ul.contact{list-style:none;padding:4px 0 0 0;margin:0}.legal ul.contact li{margin:2px 0}
.legal a{color:var(--blue);font-weight:600;text-decoration:none}

/* account page */
.acc{max-width:560px;margin:0 auto}
.acc-head{background:linear-gradient(135deg,#0b1f4d 0%,#1a3f8f 100%);color:#fff;border-radius:18px;padding:22px 20px;
 display:flex;gap:14px;align-items:center;margin-bottom:14px;box-shadow:0 6px 18px rgba(11,31,77,.18)}
.avatar{width:58px;height:58px;border-radius:50%;background:var(--gold);color:#0b1f4d;font-weight:700;font-size:26px;
 display:flex;align-items:center;justify-content:center;flex:none;border:3px solid rgba(255,255,255,.25)}
.who2{min-width:0}.acc-head .em{font-weight:700;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acc-head .st{font-size:13px;opacity:.92;display:flex;align-items:center;gap:6px}
.dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:none}.dot.on{background:#4ade80}.dot.off{background:#f6a04d}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.stat{background:#fff;border:1px solid #dfe5ec;border-radius:16px;padding:14px 16px}
.stat .n{font-size:32px;font-weight:700;line-height:1.35}.stat .n span{font-size:15px;font-weight:600;color:#61707f}
.stat .l{font-size:13px;color:#61707f}
.stat.free{border-top:4px solid #1f7a4a}.stat.free .n{color:#1f7a4a}
.stat.paid{border-top:4px solid #2f5cb3}.stat.paid .n{color:#2f5cb3}
.note{font-size:13px;color:#7a8794;margin:10px 4px 0;line-height:1.8}
.acc .gold.full{width:100%;margin-top:14px}
.sect{font-size:13px;font-weight:700;color:#7a8794;margin:22px 6px 8px}
.menu{background:#fff;border:1px solid #dfe5ec;border-radius:16px;overflow:hidden}
.mi{display:flex;align-items:center;gap:12px;width:100%;background:#fff;color:#16202c;border-radius:0;padding:12px 16px;
 font-weight:500;text-align:left;border-bottom:1px solid #eef1f5;text-decoration:none;line-height:1.6}
.mi:last-child{border-bottom:0}button.mi:hover,a.mi:hover{background:#f5f8fc}.mi.static{cursor:default}
.mi .ic{width:36px;height:36px;border-radius:11px;background:#eef3fb;display:flex;align-items:center;justify-content:center;flex:none;font-size:17px}
.mi .tx{flex:1;min-width:0}.mi .tx small{display:block;font-size:12px;color:#7a8794;font-weight:400}
.mi .chev{color:#a3adb8;font-size:22px;line-height:1}
.mi.danger{color:#c03636;font-weight:600}.mi.danger .ic{background:#fdeeee}
button.small{padding:5px 12px;font-size:13px}
#qdlg .menu{margin-bottom:4px}

/* plan banner (account page) */
.planban{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border-radius:16px;padding:16px 16px;margin-bottom:12px;
 background:linear-gradient(120deg,#0b1f4d 0%,#1a3f8f 55%,#c98b17 140%);color:#fff;box-shadow:0 6px 16px rgba(11,31,77,.18)}
.planban:hover{background:linear-gradient(120deg,#0b1f4d 0%,#1a3f8f 55%,#c98b17 140%);filter:brightness(1.08)}
.pb-t{flex:1;min-width:0}.pb-t b{display:block;font-size:16px}.pb-t small{display:block;font-size:13px;opacity:.85;font-weight:400}
.pb-b{background:var(--gold);color:#1d1400;border-radius:12px;padding:7px 12px;font-size:14px;font-weight:700;white-space:nowrap;border:1px solid #f5c766}

/* social row */
.socrow{display:flex;gap:10px;align-items:stretch}
.socs{flex:1;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:#fff;border:1px solid #dfe5ec;border-radius:16px;padding:10px}
.soc{display:flex;flex-direction:column;align-items:center;gap:4px;text-decoration:none;color:#3d4a57;background:none;padding:4px 0;font-weight:500;border-radius:12px}
.soc:hover{background:#f5f8fc}
.soc .si{width:44px;height:44px;border-radius:14px;background:#f1f4f9;display:flex;align-items:center;justify-content:center;font-size:22px}
.soc .sl{font-size:11px;line-height:1.4}
.soc.help{background:#fff;border:1px solid #dfe5ec;border-radius:16px;padding:10px 12px;width:auto}
.soc.help:hover{background:#f5f8fc}.soc.help .si{background:#fdeeee}
a.mailrow{border:1px solid #dfe5ec;border-radius:16px;margin-top:10px}

/* FAQ */
.faq details{border-bottom:1px solid #eef1f5}.faq details:last-child{border-bottom:0}
.faq summary{list-style:none;cursor:pointer;padding:12px 16px;font-weight:600;display:flex;gap:10px;align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq summary .chev{margin-left:auto;color:#a3adb8;font-size:22px;transition:.15s}
.faq details[open] summary .chev{transform:rotate(90deg)}
.faq .ans{padding:0 16px 14px;color:#3d4a57;font-size:14px;line-height:1.9}
.faq .ans .link{padding:0;font-size:inherit}

/* top bar icon buttons + inbox */
.tb .iconbtn{position:relative;width:40px;height:40px;padding:0;border-radius:50%;background:rgba(255,255,255,.12);font-size:18px;line-height:40px;color:#fff}
.tb .iconbtn:hover{background:rgba(255,255,255,.22)}
.rdot{position:absolute;top:6px;right:7px;width:10px;height:10px;border-radius:50%;background:#ef4444;border:2px solid var(--navy)}
.pagehead{display:flex;align-items:center;gap:10px;margin:4px 0 14px}.pagehead h2{margin:0}
.pagehead .back{background:#fff;color:#16202c;border:1px solid #dfe5ec;width:40px;height:40px;padding:0;border-radius:50%;font-size:18px}
.pagehead .back:hover{background:#f5f8fc}
.seg{display:grid;grid-template-columns:1fr 1fr;background:#e9edf3;border-radius:14px;padding:4px;margin-bottom:14px}
.seg button{background:none;color:#61707f;border-radius:11px;padding:8px}.seg button:hover{background:none}
.seg button.on{background:#fff;color:#0b1f4d;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.ibx{display:flex;gap:12px;padding:14px 16px;border-bottom:1px solid #eef1f5}.ibx:last-child{border-bottom:0}
.ibi{width:44px;height:44px;border-radius:12px;background:#eef3fb;display:flex;align-items:center;justify-content:center;font-size:20px;flex:none}
.ibt{flex:1;min-width:0;font-size:14px;color:#3d4a57}.ibt b{display:block;font-size:15px;color:#16202c}.ibt small{color:#8a97a4;font-size:12px}
.mi .amt{text-align:right;font-weight:700;color:#16202c}.mi .amt small{display:block;margin-top:2px}
.tx.empty{color:#8a97a4;text-align:center;padding:18px 0}

/* buy + KHQR */
.msg{font-size:14px;border-radius:8px;padding:8px 12px;margin:8px 0}.msg.err{background:#fdeeee;color:#a12f2f}
.plans{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.plan{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;background:#fff;color:#16202c;border:2px solid #dfe5ec;
 border-radius:16px;padding:16px;text-align:left;font-weight:400}
.plan:hover{background:#fff;border-color:var(--blue);box-shadow:0 4px 14px rgba(59,111,212,.15)}
.plan.off{opacity:.45}.plan.off:hover{border-color:#dfe5ec;box-shadow:none}
.plan .pd{font-size:30px;font-weight:700;color:#0b1f4d;line-height:1.4}.plan .pd small{font-size:15px;color:#61707f}
.plan .pp{font-size:20px;font-weight:700;color:#2f5cb3}.plan .pm{font-size:12px;color:#7a8794}
.plan .tag{position:absolute;top:-10px;right:10px;background:var(--gold);color:#1d1400;font-size:11px;font-weight:700;border-radius:20px;padding:2px 10px}
.paynote{margin-top:14px;background:#fff;border:1px solid #dfe5ec;border-radius:14px;padding:12px 14px;font-size:13px;color:#3d4a57}
.sumbox{background:#f5f8fc;border-radius:12px;padding:10px 14px;margin:8px 0 10px}
.sumrows{display:flex;flex-direction:column;gap:8px;margin:10px 0 12px}
.sumrows .sr{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:10px 14px;border-radius:12px;
  background:linear-gradient(100deg,#c3d6ff 0%,#e3ecff 100%);border:1px solid #8fb0ef;border-left:5px solid #2a5bc4}
.sumrows .sr span{color:#1d3d80;font-size:14px;font-weight:600}
.sumrows .sr b{color:var(--navy);font-size:17px;white-space:nowrap}
.sumbox div{display:flex;justify-content:space-between;gap:10px;padding:3px 0}.sumbox span{color:#61707f}
.rules{list-style:none;font-size:14px;margin:4px 0}.rules li{padding:3px 0}
.khqr{max-width:320px;margin:0 auto;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.12)}
.kh-top{background:#e1232e;color:#fff;font-weight:800;font-size:22px;letter-spacing:2px;text-align:center;padding:10px 0;
 border-bottom-right-radius:26px;margin-right:0}
.kh-m{padding:14px 22px 0;font-size:15px;color:#3d4a57}
.kh-a{padding:0 22px;font-size:28px;font-weight:700}.kh-a small{font-size:14px;color:#61707f}
.kh-line{border-top:2px dashed #d0d6de;margin:10px 0}
.kh-q{display:flex;justify-content:center;padding:4px 0}.kh-q canvas{width:240px;height:240px}
.kh-q.exp{opacity:.15;filter:blur(2px)}
.kh-t{text-align:center;font-size:14px;color:#61707f;padding:8px 0 14px}.kh-t.exp{color:#c03636;font-weight:600}
.paystat{margin:16px 0 12px;padding:12px 14px;border-radius:14px;background:#eef4ff;font-size:14px;line-height:1.8}
.paystat.wait{background:#fff6e5}.paystat.warn{background:#fff6e5;border:1px solid #f3d9a4}.paystat.err{background:#fdeeee;color:#a12f2f}
.acc button.full{width:100%}
.steps{margin-top:14px;background:#fff;border:1px solid #dfe5ec;border-radius:14px;padding:12px 14px;font-size:13px;color:#3d4a57}
.steps ol{padding-left:20px;margin-top:4px}
.done-card{text-align:center}.done-card .big{font-size:56px;line-height:1.4}.done-card .full{width:100%;margin-top:14px}

/* admin */
.mi.adm{flex-wrap:wrap}.mi.adm .tx{flex:1 1 100%}.admbtn{display:flex;gap:6px;margin-left:auto}
.auth select,.auth textarea{width:100%;font-family:inherit;font-size:16px;padding:10px 12px;border:1px solid #cfd8e3;border-radius:9px;background:#fff}
.msg.ok{background:#eefaf1;color:#226b3d}

/* admin tabs + stats */
.seg.seg4{grid-template-columns:repeat(4,1fr)}.seg.seg4 button{padding:7px 2px;font-size:13px}
.stats3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.stats3 .stat{padding:10px 12px}.stats3 .stat .n{font-size:22px}.stats3 .stat .l{font-size:12px}
.menu.pad{padding:12px 14px}
.bars{display:flex;flex-direction:column;gap:6px}
.bar-row{display:grid;grid-template-columns:minmax(60px,32%) 1fr auto;gap:8px;align-items:center;font-size:13px}
.bar-row .bl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3d4a57}
.bar-row .bt{background:#eef1f6;border-radius:6px;height:12px;overflow:hidden}.bar-row .bt i{display:block;height:100%;background:linear-gradient(90deg,#2f5cb3,#5b8def);border-radius:6px}
.bar-row .bv{color:#16202c;font-weight:600;white-space:nowrap}

/* contrast pass: cards lift off the page, active tab is solid navy */
.card{border-color:#d5dce6;box-shadow:0 2px 8px rgba(16,32,60,.06)}
.menu,.stat,.socs,.soc.help,a.mailrow,.paynote,.steps,.plan{border-color:#d5dce6;box-shadow:0 2px 8px rgba(16,32,60,.07)}
.seg{background:#fff;border:1px solid #d5dce6;box-shadow:0 1px 4px rgba(16,32,60,.06)}
.seg button{color:#4a5866;font-weight:600}
.seg button:hover{background:#f1f4f9}
.seg button.on,.seg button.on:hover{background:var(--navy);color:#fff;box-shadow:0 2px 8px rgba(11,31,77,.28)}
.ibx.new{border-left:4px solid var(--gold);background:#fffdf6}
.ibx + .ibx{border-top:1px solid #e3e8ef}

/* darker page: text sitting directly on the page gets darker too */
.sect{color:#475569}.note{color:#4b5866}.footer{color:#4b5866}.sub{color:#4b5866}
.card,.menu,.stat,.socs,.soc.help,a.mailrow,.paynote,.steps,.plan,.seg{box-shadow:0 4px 14px rgba(16,32,60,.10);border-color:#cdd5e1}

/* ---------- home ---------- */
.hero{position:relative;overflow:hidden;background:#0b1f4d;color:#fff;border-radius:22px;padding:24px 22px 22px;margin-bottom:14px;
 box-shadow:0 8px 24px rgba(11,31,77,.25)}
.hero::before{content:"";position:absolute;right:-70px;bottom:-120px;width:260px;height:260px;border-radius:50%;
 background:radial-gradient(circle,#ffd37a 0%,#e7a92f 38%,rgba(231,169,47,.35) 58%,rgba(231,169,47,0) 72%)}
.hero>*{position:relative;z-index:1}
.hero-t{font-size:24px;font-weight:700;line-height:1.6}
.hero-s{font-size:14px;opacity:.8}
.hero-k{display:flex;gap:18px;margin-top:12px;font-size:13px;opacity:.95}.hero-k b{font-size:20px;color:#ffd37a;margin-right:4px}
.hero-go{margin-top:16px;background:var(--gold);color:#1d1400;font-weight:700;border-radius:14px;padding:10px 18px;max-width:100%;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 4px 12px rgba(0,0,0,.25)}
.hero-go:hover{background:#f2b843}
.modes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:6px}
.md{display:flex;flex-direction:column;align-items:center;gap:4px;background:#fff;color:#16202c;border:1px solid #cdd5e1;border-radius:16px;
 padding:12px 4px;font-size:13px;font-weight:600;line-height:1.5;text-align:center;box-shadow:0 4px 14px rgba(16,32,60,.10)}
.md:hover{background:#f8fafd}.md small{display:block;font-size:11px;font-weight:400;color:#61707f}
.md-i{width:38px;height:38px;border-radius:12px;background:#0b1f4d;color:#ffd37a;display:flex;align-items:center;justify-content:center;font-size:18px}
.md.locked{opacity:.6}
.gp{margin-top:22px}
.gp-h{display:flex;align-items:center;gap:10px;margin:0 2px 10px}
.gp-i{width:36px;height:36px;border-radius:11px;background:var(--h);display:flex;align-items:center;justify-content:center;font-size:18px;
 box-shadow:0 3px 8px rgba(0,0,0,.15)}
.gp-n{font-weight:700;font-size:17px;color:#0b1f4d}.gp-c{margin-left:auto;white-space:nowrap;font-size:12px;font-weight:600;color:#475569;background:#fff;border-radius:20px;padding:2px 10px}
.tls{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.tl{display:flex;flex-direction:column;align-items:stretch;gap:4px;text-align:left;background:#fff;color:#16202c;border:1px solid #cdd5e1;border-top:4px solid var(--h);
 border-radius:16px;padding:12px 14px;font-weight:400;line-height:1.6;box-shadow:0 4px 14px rgba(16,32,60,.10)}
.tl:hover{background:#fff;box-shadow:0 6px 18px rgba(16,32,60,.16)}
.tl-n{font-weight:700;font-size:15px}.tl-m{font-size:12px;color:#61707f}
.tl-p{height:6px;background:#e6ebf2;border-radius:6px;overflow:hidden;margin-top:4px}.tl-p i{display:block;height:100%;background:var(--h);border-radius:6px}
.tl-s{font-size:11px;color:#61707f}
.tl.mix{grid-column:1/-1;background:var(--h);color:#fff;border:0}.tl.mix .tl-m{color:rgba(255,255,255,.85)}
.tl.mix:hover{background:var(--h);filter:brightness(1.08)}
.tl.ex{background:#0b1f4d;color:#fff;border:0}.tl.ex .tl-m{color:rgba(255,255,255,.75)}.tl.ex:hover{background:#13296a}
.tl.locked{opacity:.65}
.hist{padding:4px 14px}.hr{display:flex;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #e3e8ef;font-size:14px}.hr:last-child{border-bottom:0}
.hr-n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hr-s{color:#61707f}
.hr-p{font-weight:700;min-width:48px;text-align:right}.hr-p.ok{color:#15803d}.hr-p.mid{color:#b45309}.hr-p.low{color:#c03636}
@media(max-width:620px){.tls{grid-template-columns:1fr 1fr}.tl{padding:10px 12px}.tl-n{font-size:14px}.modes{gap:6px}.md{padding:10px 2px;font-size:12px}}

/* home: group cards */
.gcs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.gcs .gc{width:100%;min-width:0;margin:0}
.gc{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;background:#fff;color:#16202c;border:1px solid #cdd5e1;
 border-radius:18px;padding:14px;font-weight:400;line-height:1.6;box-shadow:0 4px 14px rgba(16,32,60,.10);position:relative;overflow:hidden}
.gc::after{content:"";position:absolute;right:-24px;top:-24px;width:80px;height:80px;border-radius:50%;background:var(--h);opacity:.12}
.gc:hover{background:#fff;box-shadow:0 6px 18px rgba(16,32,60,.16)}
.gc-i{width:42px;height:42px;border-radius:13px;background:var(--h);display:flex;align-items:center;justify-content:center;font-size:21px;margin-bottom:4px;box-shadow:0 3px 8px rgba(0,0,0,.15)}
.gc-n{font-weight:700;font-size:15px;line-height:1.55}.gc-m{font-size:12px;color:#61707f}
.gc .tl-p{width:100%}.gc .tl-p i{background:var(--h)}

.guard{border-radius:14px;padding:10px 14px;margin-bottom:12px;font-size:13px;line-height:1.8}
.guard.ok{background:#e8f6ee;color:#1f6b40;border:1px solid #bfe3cc}.guard.bad{background:#fdeeee;color:#a12f2f;border:1px solid #f3c2c2}

/* devices */
.devrow{display:flex;align-items:center;gap:12px;border:1px solid #e2e8ef;border-radius:10px;padding:10px 14px;margin-bottom:10px}
.devrow .dv{flex:1;min-width:0}
.devrow .mt{font-size:13px;color:#61707f}

/* auth forms */
.auth{max-width:420px;margin:0 auto}
.auth label{display:block;font-size:14px;font-weight:600;margin:14px 0 4px}
.auth input{width:100%;font-family:inherit;font-size:16px;padding:10px 12px;border:1px solid #cfd8e3;border-radius:9px;background:#fff}
.auth input:focus{outline:2px solid #a9bfe4;border-color:var(--blue)}
.auth .msg{margin-top:12px;font-size:14px;border-radius:8px;padding:8px 12px}
.auth .msg.err{background:#fdeeee;color:#a12f2f}.auth .msg.ok{background:#eefaf1;color:#226b3d}
.auth .full{width:100%;margin-top:18px}
.auth .alt{text-align:center;margin-top:14px;font-size:14px;color:#61707f}

@media(max-width:620px){
 body{padding:0 12px 12px}#topbar{margin:0 -12px 14px;padding:8px 12px}
 .card{padding:18px}.qtext{font-size:17px}
 .grp .grid{grid-template-columns:1fr 1fr!important;gap:8px}.grp .set{padding:10px 12px}.grp .set .nm{font-size:14px}
 .tb .who{display:none}
}
@media(prefers-color-scheme:dark){.why{background:#232b33;color:#c9d3dc}}

/* home: history header button + footer */
.gp-h .clr{margin-left:auto;background:#fff;color:#b42318;border:1px solid #f3c4c0;border-radius:20px;padding:4px 12px;font-size:13px;font-weight:600}
.gp-h .clr:hover{background:#fdecea}
.hfoot{margin:22px 0 18px;padding:18px 14px 6px;border-top:1px solid #c3ccd9;text-align:center}
.hf-b{display:flex;gap:10px;justify-content:center;margin-bottom:12px}
.hf-b button{flex:1;max-width:170px;background:#fff;color:#0b1f4d;border:1px solid #cdd5e1;border-radius:12px;padding:10px 8px;font-weight:600;box-shadow:0 1px 3px rgba(15,23,42,.08)}
.hf-b button:hover{background:#f1f5fb}
.hf-l{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 10px;font-size:13px}
.hf-l span{display:none}.hf-l .link{color:#3b5998;font-weight:500}
.hf-m{margin-top:14px;color:#64748b;font-size:13px}
/* group page: the "mix" tile reads as a button */
.tl.mix{flex-direction:row;align-items:center;gap:12px;margin-top:6px}
.mx-t{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.mx-go{flex:none;background:#fff;color:var(--h);font-weight:700;border-radius:22px;padding:8px 14px;font-size:14px;box-shadow:0 2px 6px rgba(0,0,0,.18)}
@media(max-width:420px){.tl.mix{flex-direction:column;align-items:stretch}.mx-go{text-align:center}}

/* "leave LUMA?" window: two big buttons in different colours */
.exitbox{text-align:center}
.exitbox .ex-stay,.exitbox .ex-go{display:block;width:100%;padding:14px;font-size:17px;font-weight:700;border-radius:14px;margin-top:10px}
.exitbox .ex-stay{background:#2f5cb3;color:#fff;border:0}
.exitbox .ex-go{background:#fff;color:#b42318;border:2px solid #e8a39c}

.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:#0b1f4d;color:#fff;padding:10px 18px;border-radius:22px;font-size:14px;z-index:99;box-shadow:0 4px 14px rgba(0,0,0,.25)}

/* delete account */
.delacc{text-align:center;margin:26px 0 8px}
.delacc button{background:none;border:0;color:#b42318;font-size:13px;text-decoration:underline;padding:6px}
.delbox .dl{margin:4px 0 12px;padding-left:20px;font-size:14px;line-height:1.7;color:#334155}
.delbox .dl li{margin-bottom:4px}
.delbox input{margin-bottom:4px}
.delbox .ex-stay,.delbox .ex-go,.auth .ex-stay,.auth .ex-go{display:block;width:100%;padding:13px;font-size:16px;font-weight:700;border-radius:14px;margin-top:10px}
.delbox .ex-stay,.auth .ex-stay{background:#2f5cb3;color:#fff;border:0}
.delbox .ex-go,.auth .ex-go{background:#fff;color:#b42318;border:2px solid #e8a39c}

.why .tip{background:#fff8e1;color:#5c4400;border-radius:6px;padding:4px 8px;margin-top:6px}

/* top bar: one line, home button, visible account button */
.tb .ctr{flex-shrink:1;min-width:0}
.tb .iconbtn{flex-shrink:0}
.tb .iconbtn.me{background:var(--gold);color:var(--navy);font-weight:800;font-size:17px;font-family:system-ui,sans-serif}
.tb .iconbtn.me:hover{background:#f3c24d}
@media (max-width:480px){
  .tb{gap:6px}.tb .brand{font-size:16px}.tb .chip{padding:3px 7px;font-size:11px}
  .tb .iconbtn{width:36px;height:36px;line-height:36px;font-size:16px}
  .tb .chip.off .t{display:none}
}
/* red framed buttons that leave, close or go back */
button.sec.exit{background:#fdecec;color:#c0392b;border:1.5px solid #f1a9a0;font-weight:600}
button.sec.exit:hover{background:#fadbd8}
/* pop-ups: scroll inside, keep their head visible, ✕ in the corner */
.dlgbox{position:relative;max-height:88vh;overflow:auto}
.dlgx{position:sticky;top:0;float:right;margin:-6px -6px 0 8px;width:34px;height:34px;padding:0;border-radius:50%;
  background:#fdecec;color:#c0392b;border:1.5px solid #f1a9a0;font-size:16px;line-height:30px;z-index:5}
.legalbox{padding-top:0}
.legalhead{position:sticky;top:0;background:#fff;padding-top:16px;z-index:3;border-bottom:1px solid #e6ebf1;margin-bottom:10px}
.legalbox .dlgx{top:12px}

/* quiz buttons: row 1 move (big, equal halves), row 2 tools (small) */
.qnav{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.qtools{display:flex;gap:8px;align-items:center;margin-top:10px;flex-wrap:wrap}
button.qb{border-radius:12px;font-weight:600;padding:11px 14px}
.qnav button.qb{padding:13px 10px;font-size:16px}
button.qb.back{background:#eef2f8;color:#2f4f8f;border:1.5px solid #c9d5e8}
button.qb.back:disabled{opacity:.45}
button.qb.skip{background:#fff6e5;color:#a35d00;border:1.5px solid #f2c27a}
button.qb.done{background:var(--blue);color:#fff;border:1.5px solid var(--blue)}
button.qb.go{background:#eef2f8;color:#2f4f8f;border:1.5px solid #c9d5e8}
.qtools button.qb{padding:7px 12px;font-size:13px}
button.qb.flag{background:#f3effd;color:#6a3fc4;border:1.5px solid #cbb8f2}
button.qb.flag.on{background:#7a4ad4;color:#fff;border-color:#7a4ad4}
button.qb.fin{background:#e9f6ee;color:#1f7a4a;border:1.5px solid #9fd4b4}

/* plan picking: the chosen plan turns blue; continue button under the cards */
.plan.sel{border:2px solid #2a5bc4;background:linear-gradient(140deg,#c3d6ff 0%,#e3ecff 100%);box-shadow:0 4px 14px rgba(42,91,196,.25)}
.plan.sel:hover{background:linear-gradient(140deg,#c3d6ff 0%,#e3ecff 100%);border-color:#2a5bc4}
.plan.sel .pd,.plan.sel .pp{color:#1d3d80}
.plan.sel::after{content:"✓";position:absolute;bottom:10px;right:10px;width:22px;height:22px;border-radius:50%;background:#2a5bc4;color:#fff;font-size:13px;line-height:22px;text-align:center}
.plango{margin-top:12px}.plango button{width:100%;padding:13px;font-size:16px;border-radius:12px}
.dlgbox .plans .plan{padding:12px 14px}.dlgbox .plans .plan .pd{font-size:24px}
.later{display:flex;flex-direction:column;gap:8px;margin:0 2px 16px}
.later button{text-align:left;padding:12px 14px;border-radius:12px;border:1.5px solid #c9d5e8;background:#fff;color:#1d3d80;font-weight:600}

/* launch discount */
.plan .pp{white-space:nowrap}.plan .pp .was{display:block;font-size:14px;line-height:1.3;font-weight:700;color:#c0392b;text-decoration:line-through;text-decoration-color:#c0392b;text-decoration-thickness:2px}
.sr b .was{color:#c0392b;font-weight:600;text-decoration:line-through;text-decoration-color:#c0392b;text-decoration-thickness:2px;margin-right:4px}
.promo{margin:0 6px 12px;padding:10px 14px;border-radius:14px;background:linear-gradient(140deg,#fff4d6,#ffe7b0);border:1px solid #f0c75e;color:#5a3d00;font-size:14px;line-height:1.7}

/* ⭐ favourite questions */
.nav.qhead{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.nav.qhead>span{min-width:0}
button.favbtn{flex:none;background:#fff;color:#8a5a00;border:1.5px solid #f0c75e;border-radius:20px;padding:4px 12px;font-size:13px;font-weight:600;line-height:1.5;box-shadow:none}
button.favbtn:hover{background:#fff8e6}
button.favbtn.on{background:#ffe9a8;border-color:#e0a100;color:#6b4300}
.revfav{float:right;margin:0 0 4px 8px}
.tl.favt{grid-column:1/-1;flex-direction:row;align-items:center;gap:12px;background:#fff8e6;border:1.5px solid #f0c75e;color:#5a3d00}
.tl.favt:hover{background:#ffefc4}
.fv-t{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;text-align:left}
.tl.favt .tl-m{color:#7a5a1a}
.fv-go{flex:none;background:#e0a100;color:#fff;font-weight:700;border-radius:22px;padding:6px 14px;font-size:14px}
.set.favset{background:#fff8e6;border-color:#f0c75e}

/* history list with a red − per test */
.histall .hr-n small{display:block;color:#8a96a3;font-size:12px;font-weight:400}
.hrdel{flex:none;width:30px;height:30px;border-radius:50%;border:0;background:#dc2626;color:#fff;font-size:22px;font-weight:700;line-height:1;display:grid;place-items:center;padding:0 0 2px;cursor:pointer}
.hrdel:hover{background:#b91c1c}.hrdel:focus-visible{outline:3px solid #fca5a5;outline-offset:2px}
.minus-t{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#dc2626;color:#fff;font-size:14px;line-height:1}
.undo{display:flex;align-items:center;gap:10px;margin:0 6px 10px;padding:8px 12px;background:#fff7e6;border:1px solid #f5d38a;border-radius:12px;font-size:14px}
.undo span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.undo button{border:0;background:none;color:#1d4ed8;font-weight:700;cursor:pointer}

button.qb.report{background:#fff;color:#9a3412;border:1.5px solid #fdba74}
.fbq{margin:4px 0 6px;padding:8px 10px;background:#f8fafc;border-radius:10px;font-size:13px;color:#475569}
.qtools{gap:6px}.qtools button.qb{padding:7px 9px}

/* buy screen while sales are closed */
.soon{text-align:center;padding:22px 18px}.soon-i{font-size:40px}.soon h3{margin:8px 0 10px}.soon p{margin:0 0 12px;line-height:1.7}.soon .mut{color:#61707f;font-size:14px}

/* prices shown before buying opens: readable, not clickable */
.plans.pv .plan.off{opacity:1;cursor:default;background:#fff}.plans.pv .plan.off .pp{color:#1d2b5c}

/* copyright notice */
.hf-c{margin-top:6px;font-size:12px;color:#7a8794;text-align:center}.copy{margin-top:12px;font-size:12.5px;line-height:1.6;color:#61707f;border-top:1px solid #e3e8ef;padding-top:10px}
