:root{
  --ink:#161A2E; --ink2:#3B4160; --mute:#6B7190; --line:#E4E6EF; --soft:#F5F6FA; --paper:#fff; --navy:#141A33;
  --D:#E5484D; --D-bg:#FDECEC; --I:#F2A516; --I-bg:#FFF5DF; --S:#3E63DD; --S-bg:#E8EDFC; --C:#2E9E6A; --C-bg:#E5F5EC;
  --green:#2E9E6A; --green-bg:#E5F5EC; --blue:#3E63DD; --blue-bg:#E8EDFC;
  --ok:#2E9E6A; --bad:#D93036; --r:18px;
  --shadow:0 1px 2px rgba(22,26,46,.04), 0 8px 24px rgba(22,26,46,.06);
}
*{ box-sizing:border-box; margin:0; padding:0 }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth }
body{ font-family:"IBM Plex Sans Thai","Sukhumvit Set",sans-serif; color:var(--ink); background:#FAFAFC; line-height:1.6; font-size:16px }
h1,h2,h3,h4,.prompt{ font-family:"Prompt","Sukhumvit Set",sans-serif; line-height:1.25 }
a{ color:inherit }
img,svg{ max-width:100% }
.ic{ display:inline-block; vertical-align:middle; flex:none }
.muted{ color:var(--mute) }
.wrap{ max-width:1120px; margin:0 auto; padding:0 20px }
.narrow{ max-width:560px; margin:0 auto; padding:0 16px }
.center{ text-align:center }
.inline{ display:inline }
.abadge{ display:inline-grid; place-items:center; border-radius:50%; flex:none; vertical-align:middle }
.abadge svg{ display:block }

/* nav */
.nav{ position:sticky; top:0; z-index:40; background:rgba(255,255,255,.9); backdrop-filter:blur(12px); border-bottom:1px solid var(--line) }
.nav-in{ max-width:1120px; margin:0 auto; padding:10px 20px; display:flex; align-items:center; justify-content:space-between; gap:12px }
.logo{ display:flex; align-items:center; gap:10px; font-family:"Prompt"; font-weight:800; letter-spacing:.2em; text-decoration:none; font-size:15px; white-space:nowrap }
.logo-mark{ display:grid; grid-template-columns:1fr 1fr; gap:2px; width:22px; height:22px }
.logo-mark i{ border-radius:50% }
.nav nav{ display:flex; align-items:center; gap:6px; font-size:14px }
.nav nav a, .nav nav button.link{ display:inline-flex; align-items:center; gap:6px; text-decoration:none; color:var(--ink2); padding:8px 10px; border-radius:10px }
.nav nav a:hover, .nav nav button.link:hover{ background:var(--soft); color:var(--ink) }
.nav nav a.btn{ color:#fff; padding:9px 18px; margin-left:4px }
.nav nav a.btn:hover{ background:var(--navy) }
button.link{ background:none; border:0; font:inherit; color:var(--ink2); cursor:pointer }

/* buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--navy); color:#fff; border:0; border-radius:999px;
      padding:13px 26px; font-family:"Prompt"; font-weight:600; font-size:16px; text-decoration:none; cursor:pointer; transition:transform .12s, box-shadow .12s, background .12s; white-space:nowrap }
.btn:hover{ transform:translateY(-1px); box-shadow:0 8px 20px rgba(20,26,51,.18) }
.btn:active{ transform:translateY(0) }
.btn:disabled{ opacity:.35; cursor:not-allowed; transform:none; box-shadow:none }
.btn.sm{ padding:9px 16px; font-size:14px }
.btn.lg{ padding:16px 30px; font-size:17px }
.btn.green{ background:var(--green) }
.btn.gold{ background:linear-gradient(120deg,#F2A516,#E07A10) }
.btn.white{ background:#fff; color:var(--ink) }
.btn.ghost{ background:#fff; color:var(--ink); border:1.5px solid var(--line) }
.btn.ghost:hover{ box-shadow:none; border-color:#C9CCDA }
.btn.ghost-light{ background:rgba(255,255,255,.08); color:#fff; border:1.5px solid rgba(255,255,255,.28) }
.btn.block{ width:100% }

/* flash */
.flash{ max-width:560px; margin:16px auto 0; padding:12px 16px; border-radius:12px; font-size:15px; background:var(--blue-bg); color:#22357F; display:flex; gap:8px; align-items:center }
.flash.error{ background:var(--D-bg); color:#9B1C21 }
.flash.success{ background:var(--green-bg); color:#1E6B47 }

/* forms */
.card{ background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:26px; box-shadow:var(--shadow) }
.form h1{ font-size:26px; font-weight:700 }
.form .sub{ color:var(--mute); margin-top:4px; font-size:15px }
.form-head{ display:flex; gap:6px; margin-bottom:16px }
.field{ margin-top:16px }
.field label{ display:block; font-weight:500; font-size:15px; margin-bottom:6px }
.field input, .field select{ width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:12px; font:inherit; background:#fff }
.field input:focus, .field select:focus{ outline:none; border-color:var(--green); box-shadow:0 0 0 3px rgba(46,158,106,.15) }
.field .hint{ font-size:13px; color:var(--mute); margin-top:4px }
.row2{ display:grid; grid-template-columns:1fr 1fr; gap:12px }
.check{ display:flex; gap:10px; align-items:flex-start; margin-top:14px; font-size:14px; color:var(--ink2) }
.check input{ width:20px; height:20px; margin-top:2px; flex:none; accent-color:var(--green) }
.errors{ background:var(--D-bg); color:#9B1C21; border-radius:12px; padding:12px 16px; margin-top:16px; font-size:14px }
.errors li{ margin-left:18px }
.alt{ text-align:center; margin-top:16px; font-size:15px; color:var(--mute) }
.page-pad{ padding:32px 0 64px }

/* ---------- landing ---------- */
.hero{ background:var(--navy); color:#fff; position:relative; overflow:hidden }
.hero .glow{ position:absolute; border-radius:50%; filter:blur(10px) }
.hero .g1{ width:560px; height:560px; right:-140px; top:-200px; background:radial-gradient(circle,#2E9E6A 0%,transparent 68%); opacity:.55 }
.hero .g2{ width:420px; height:420px; left:-140px; bottom:-200px; background:radial-gradient(circle,#3E63DD 0%,transparent 68%); opacity:.5 }
.hero .g3{ width:300px; height:300px; right:28%; bottom:-170px; background:radial-gradient(circle,#F2A516 0%,transparent 68%); opacity:.45 }
.hero-in{ position:relative; z-index:1; display:grid; grid-template-columns:1.05fr .95fr; gap:40px; align-items:center; padding-top:72px; padding-bottom:84px }
.pill{ display:inline-flex; align-items:center; gap:8px; font-size:13px; font-family:"Prompt"; font-weight:500; padding:6px 14px; border-radius:99px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18) }
.hero h1{ font-size:clamp(38px,6vw,62px); font-weight:800; margin-top:18px; letter-spacing:-.01em }
.hero h1 em{ font-style:normal; background:linear-gradient(90deg,#5FD39E,#FFC94A); -webkit-background-clip:text; background-clip:text; color:transparent }
.hero p.lead{ font-size:18px; color:rgba(255,255,255,.78); margin-top:16px; max-width:520px }
.hero .cta{ margin-top:28px; display:flex; gap:12px; flex-wrap:wrap }
.trust{ display:flex; gap:22px; flex-wrap:wrap; margin-top:30px; font-size:14px; color:rgba(255,255,255,.75) }
.trust span{ display:inline-flex; align-items:center; gap:8px }
.trust .ic{ color:#5FD39E }
.mock{ position:relative; height:440px }
.mock-card{ position:absolute; left:50%; top:50%; width:330px; transform:translate(-50%,-50%) rotate(-3deg); background:#fff; color:var(--ink); border-radius:24px; padding:22px; box-shadow:0 30px 60px rgba(0,0,0,.35) }
.mock-card .mc-top{ border-radius:16px; padding:18px; color:#fff; display:flex; gap:14px; align-items:center }
.mock-card .mc-top small{ display:block; font-size:12px; opacity:.85 }
.mock-card .mc-top b{ font-family:"Prompt"; font-size:24px; line-height:1.1 }
.mock-card .mc-radar svg{ width:100%; height:auto; display:block; margin-top:6px }
.mock-card .mc-list{ display:grid; gap:6px; margin-top:4px }
.mock-card .mc-list div{ display:flex; align-items:center; gap:10px; font-size:14px; background:var(--soft); border-radius:10px; padding:7px 10px }
.mock-card .mc-list b{ font-family:"Prompt"; width:18px; color:var(--mute) }
.float{ position:absolute; animation:bob 5s ease-in-out infinite; filter:drop-shadow(0 10px 20px rgba(0,0,0,.25)) }
.float.f1{ left:2%; top:6% } .float.f2{ right:0; top:14%; animation-delay:-1.2s } .float.f3{ left:6%; bottom:6%; animation-delay:-2.4s } .float.f4{ right:6%; bottom:2%; animation-delay:-3.6s }
@keyframes bob{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-12px) } }

.sec{ padding:80px 0 }
.sec.tint{ background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line) }
.sec-head{ max-width:640px }
.sec-head.c{ margin:0 auto; text-align:center }
.eyebrow{ display:inline-flex; align-items:center; gap:8px; font-family:"Prompt"; font-size:13px; font-weight:600; letter-spacing:.14em; color:var(--green); text-transform:uppercase }
.sec h2{ font-size:clamp(28px,4vw,38px); font-weight:700; margin-top:8px }
.sec .lead{ color:var(--ink2); margin-top:10px; font-size:17px }
.houses4{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:36px }
.h4c{ border-radius:var(--r); padding:22px; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); position:relative; overflow:hidden }
.h4c::before{ content:""; position:absolute; inset:0 0 auto; height:5px; background:var(--hc) }
.h4c .k{ font-family:"Prompt"; font-size:12px; letter-spacing:.12em; font-weight:600; margin-top:14px; color:var(--hc) }
.h4c h3{ font-size:22px; font-weight:700; margin-top:2px }
.h4c p{ font-size:14.5px; color:var(--ink2); margin-top:8px }
.h4c .tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:12px }
.h4c .tags span{ font-size:12.5px; background:var(--hbg); color:var(--ink2); border-radius:99px; padding:3px 10px }
.same{ display:grid; grid-template-columns:1fr 1fr 1.2fr; gap:16px; margin-top:36px; align-items:stretch }
.person{ background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:20px; box-shadow:var(--shadow) }
.person .ph{ display:flex; align-items:center; gap:12px }
.person .ph b{ font-family:"Prompt"; font-size:18px; display:block }
.person .ph small{ color:var(--mute); font-size:13px }
.person ol{ list-style:none; margin-top:14px; display:grid; gap:8px; counter-reset:n }
.person li{ counter-increment:n; display:flex; align-items:center; gap:10px; font-size:15px; background:var(--soft); border-radius:12px; padding:9px 12px }
.person li::before{ content:counter(n); font-family:"Prompt"; font-weight:700; color:var(--mute); width:14px }
.person li i{ width:8px; height:8px; border-radius:50%; margin-left:auto }
.str24{ background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:20px; box-shadow:var(--shadow); display:grid; grid-template-columns:1fr 1fr; gap:14px 18px }
.s24 b{ display:flex; align-items:center; gap:8px; font-family:"Prompt"; font-size:15px }
.s24 ul{ list-style:none; margin-top:6px; display:flex; flex-wrap:wrap; gap:5px }
.s24 li{ font-size:12.5px; padding:2px 9px; border-radius:99px; background:var(--soft); color:var(--ink2) }
.feat{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:28px }
.feat div{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px }
.feat .fi{ width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:var(--green-bg); color:var(--green) }
.feat h3{ font-size:16px; font-weight:600; margin-top:12px }
.feat p{ font-size:14px; color:var(--ink2); margin-top:4px }
.preview{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:18px; margin-top:36px; align-items:end }
.preview figure{ background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; box-shadow:0 18px 40px rgba(22,26,46,.12) }
.preview figure:nth-child(2){ transform:translateY(-18px) }
.preview img{ display:block; width:100%; height:auto }
.preview figcaption{ font-size:13px; color:var(--mute); padding:10px 14px; border-top:1px solid var(--line) }
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:36px }
.step{ background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:24px; box-shadow:var(--shadow) }
.step .si{ width:44px; height:44px; border-radius:14px; display:grid; place-items:center; background:var(--navy); color:#fff }
.step .n{ font-family:"Prompt"; font-size:13px; font-weight:600; color:var(--mute); margin-top:16px }
.step h3{ font-size:19px; font-weight:600; margin-top:2px }
.step p{ font-size:15px; color:var(--ink2); margin-top:6px }
.plans{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:36px auto 0; max-width:860px }
.plan{ background:#fff; border:1px solid var(--line); border-radius:22px; padding:28px; box-shadow:var(--shadow) }
.plan.pro{ border:2px solid var(--green); position:relative }
.plan .tag{ position:absolute; top:-13px; left:26px; background:var(--green); color:#fff; font-size:12.5px; font-family:"Prompt"; font-weight:600; padding:3px 14px; border-radius:999px }
.plan h3{ font-size:20px; font-weight:700 }
.plan .price{ font-family:"Prompt"; font-size:42px; font-weight:800; margin-top:4px }
.plan .price small{ font-size:15px; color:var(--mute); font-weight:500 }
.plan ul{ list-style:none; margin:16px 0 22px }
.plan li{ padding:8px 0; display:flex; gap:10px; align-items:flex-start; font-size:15px; border-top:1px dashed var(--line) }
.plan li .ic{ color:var(--green); margin-top:3px }
.plan li.no{ color:var(--mute) } .plan li.no .ic{ color:#C4C7D4 }
.faq{ max-width:760px; margin:32px auto 0; display:grid; gap:10px }
.faq details{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:4px 18px }
.faq summary{ list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 0; font-family:"Prompt"; font-weight:500; font-size:16px }
.faq summary::-webkit-details-marker{ display:none }
.faq summary .ic{ transition:transform .2s; color:var(--mute) }
.faq details[open] summary .ic{ transform:rotate(180deg) }
.faq details p{ padding:0 0 16px; color:var(--ink2); font-size:15px }
.band{ background:linear-gradient(120deg,#141A33,#22306A); color:#fff; border-radius:28px; padding:48px 32px; text-align:center; position:relative; overflow:hidden }
.band h2{ color:#fff; margin-top:14px }
.band p{ color:rgba(255,255,255,.75); margin-top:8px }
.band .row{ display:flex; justify-content:center; gap:10px }
.band .btn{ margin-top:24px }

/* ---------- dashboard ---------- */
.dash-head{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap }
.dash-head .hi{ display:flex; align-items:center; gap:14px }
.dash-head h1{ font-size:28px; font-weight:700 }
.dash-head p{ color:var(--mute); font-size:15px }
.resume{ display:flex; align-items:center; gap:16px; background:#fff; border:1.5px solid var(--I); border-radius:var(--r); padding:16px 20px; margin-top:20px; box-shadow:var(--shadow) }
.resume .ri{ width:44px; height:44px; border-radius:12px; background:var(--I-bg); color:#B26F00; display:grid; place-items:center; flex:none }
.resume .t{ flex:1; min-width:0 }
.resume .t b{ font-family:"Prompt"; display:block }
.resume .bar{ height:6px; background:var(--soft); border-radius:99px; margin-top:6px; overflow:hidden }
.resume .bar div{ height:100%; background:var(--I) }
.latest{ display:grid; grid-template-columns:1.2fr 1fr; gap:0; background:#fff; border:1px solid var(--line); border-radius:24px; overflow:hidden; margin-top:20px; box-shadow:var(--shadow) }
.latest .lt-l{ padding:26px; color:#fff; position:relative; overflow:hidden }
.latest .lt-l::after{ content:""; position:absolute; width:260px; height:260px; border-radius:50%; background:rgba(255,255,255,.1); right:-90px; bottom:-120px }
.latest .lt-l small{ font-family:"Prompt"; font-size:13px; letter-spacing:.08em; opacity:.85 }
.latest .lt-l h2{ font-size:34px; font-weight:800; margin-top:10px }
.latest .lt-l .q{ margin-top:6px; opacity:.9; font-size:15px; max-width:340px }
.latest .lt-l .acts{ display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; position:relative; z-index:1 }
.latest .lt-r{ padding:22px 24px }
.latest .lt-r h3{ font-size:15px; font-weight:600; color:var(--mute) }
.top3{ display:grid; gap:8px; margin-top:10px }
.top3 div{ display:flex; align-items:center; gap:10px; font-size:15px; padding:10px 12px; border-radius:12px; background:var(--soft) }
.top3 b{ font-family:"Prompt"; color:var(--mute); width:16px }
.top3 i{ width:8px; height:8px; border-radius:50%; margin-left:auto }
.sec-title{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-top:34px }
.sec-title h2{ font-size:20px; font-weight:700 }
.sec-title span{ color:var(--mute); font-size:14px }
.compare{ display:grid; grid-template-columns:1fr 1.1fr; gap:20px; background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:22px; margin-top:12px; box-shadow:var(--shadow) }
.compare .radar-cmp svg{ width:100%; max-width:360px; height:auto; display:block; margin:0 auto }
.cmp-legend{ display:flex; justify-content:center; gap:16px; font-size:13px; color:var(--mute); margin-top:4px }
.cmp-legend i{ display:inline-block; width:18px; height:0; border-top:3px solid; vertical-align:middle; margin-right:6px }
.cmp-legend i.prev{ border-top-style:dashed; border-color:#9AA0B8 }
.deltas{ display:grid; gap:10px; align-content:start }
.delta{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; padding:10px 12px; border-radius:12px; background:var(--soft) }
.delta b{ font-family:"Prompt"; font-size:15px }
.delta .num{ font-family:"Prompt"; font-weight:700; text-align:right; white-space:nowrap }
.delta .chg{ display:inline-flex; align-items:center; gap:2px; font-size:13px; font-weight:600; margin-left:8px }
.chg.up{ color:var(--ok) } .chg.down{ color:var(--bad) } .chg.same{ color:var(--mute) }
.cmp-note{ font-size:14px; color:var(--ink2); background:var(--green-bg); border-radius:12px; padding:12px 14px }
.new-str{ display:flex; flex-wrap:wrap; gap:6px; margin-top:6px }
.new-str span{ font-size:13px; background:#fff; border:1px solid var(--line); border-radius:99px; padding:2px 10px }
.list{ display:grid; gap:10px; margin-top:12px }
.item{ display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:14px 16px; text-decoration:none; transition:border-color .12s }
.item:hover{ border-color:#C9CCDA }
.item .t{ flex:1; min-width:0 }
.item .t b{ font-family:"Prompt"; font-size:16px; display:block }
.item .t span{ font-size:13px; color:var(--mute) }
.item > .ic{ color:#C4C7D4 }
.pill-s{ font-size:12px; font-family:"Prompt"; font-weight:600; border-radius:999px; padding:3px 10px; white-space:nowrap }
.pill-s.paid{ background:var(--green-bg); color:#1E6B47 } .pill-s.free{ background:var(--soft); color:var(--mute) } .pill-s.prog{ background:var(--I-bg); color:#8A5A00 }
.empty{ text-align:center; padding:48px 20px; background:#fff; border:1px dashed var(--line); border-radius:var(--r); margin-top:20px }
.empty .animals{ display:flex; justify-content:center; gap:8px }
.empty h2{ margin-top:14px; font-size:22px }
.retake-note{ display:flex; gap:10px; align-items:center; font-size:14px; color:var(--mute); margin-top:14px }

/* ---------- quiz ---------- */
body.quiz{ background:#F2F3F8 }
.qtop{ position:sticky; top:0; z-index:10; background:#F2F3F8; padding:14px 0 8px }
.qbar{ height:8px; background:#E1E3EC; border-radius:99px; overflow:hidden }
.qbar div{ height:100%; background:linear-gradient(90deg,var(--D),var(--I),var(--S),var(--C)); background-size:400px 100%; width:0; transition:width .35s ease }
.qmeta{ display:flex; justify-content:space-between; font-size:13px; color:var(--mute); margin-top:8px; font-family:"Prompt" }
.qmeta .ic{ margin-right:4px; vertical-align:-3px }
.qcard{ background:#fff; border-radius:22px; padding:24px 20px 20px; box-shadow:0 6px 24px rgba(22,26,46,.07); margin-top:8px }
.qcard.enter{ animation:qin .32s ease both } .qcard.enter-back{ animation:qback .32s ease both }
@keyframes qin{ from{ opacity:0; transform:translateX(28px) } to{ opacity:1; transform:none } }
@keyframes qback{ from{ opacity:0; transform:translateX(-28px) } to{ opacity:1; transform:none } }
.qscene{ display:inline-flex; align-items:center; gap:6px; font-family:"Prompt"; font-size:12.5px; font-weight:600; background:var(--soft); border-radius:99px; padding:4px 12px; color:var(--ink2) }
.qtext{ font-family:"Prompt"; font-size:22px; font-weight:600; margin-top:12px; line-height:1.4 }
.qhint{ font-size:14.5px; color:var(--mute); margin-top:8px; min-height:22px; display:flex; align-items:center; gap:6px }
.qnav{ display:flex; gap:10px; margin-top:16px }
.qnav .btn{ flex:1 }
.qnav .btn.ghost{ flex:0 0 auto }
.qkeys{ text-align:center; font-size:12.5px; color:var(--mute); margin-top:12px }
.qkeys kbd{ font-family:inherit; font-size:11.5px; border:1px solid var(--line); border-bottom-width:2px; border-radius:6px; padding:0 6px; background:#fff }
.qsaving{ font-size:12.5px; color:var(--mute); text-align:center; margin-top:10px; min-height:18px; display:flex; justify-content:center; align-items:center; gap:4px }
.qintro{ text-align:center; padding:34px 22px 24px }
.qintro .animals{ display:flex; justify-content:center; gap:8px }
.qintro h2{ font-size:26px; margin-top:16px }
.qintro p{ color:var(--ink2); margin-top:8px }
.tips{ display:grid; gap:10px; margin-top:20px; text-align:left }
.tips > div{ display:flex; gap:12px; align-items:flex-start; background:var(--soft); border-radius:14px; padding:12px 14px; font-size:15px }
.tips .ti{ width:34px; height:34px; border-radius:10px; display:grid; place-items:center; flex:none; background:#fff; color:var(--ink2) }
.tips b{ font-family:"Prompt"; display:block; font-size:15px }
.tips span{ color:var(--mute); font-size:14px }
.toast{ position:fixed; left:50%; bottom:28px; transform:translate(-50%,30px); opacity:0; display:flex; align-items:center; gap:12px; background:var(--navy); color:#fff; padding:10px 18px 10px 10px; border-radius:99px; font-family:"Prompt"; font-size:15px; box-shadow:0 12px 30px rgba(0,0,0,.25); transition:all .35s ease; z-index:60; pointer-events:none; white-space:nowrap }
.toast.show{ transform:translate(-50%,0); opacity:1 }
.decode{ position:fixed; inset:0; z-index:70; background:rgba(242,243,248,.96); display:none; place-items:center; text-align:center }
.decode.show{ display:grid }
.decode .animals{ display:flex; gap:12px; justify-content:center }
.decode .abadge{ animation:hop 1.2s ease-in-out infinite }
.decode .abadge:nth-child(2){ animation-delay:.15s } .decode .abadge:nth-child(3){ animation-delay:.3s } .decode .abadge:nth-child(4){ animation-delay:.45s }
@keyframes hop{ 0%,60%,100%{ transform:translateY(0) } 30%{ transform:translateY(-16px) } }
.decode h2{ margin-top:22px; font-size:22px }
.decode p{ color:var(--mute); margin-top:4px }

/* ---------- result (free) ---------- */
.res-hero{ border-radius:28px; color:#fff; padding:30px 24px 26px; position:relative; overflow:hidden; margin-top:20px; text-align:center; animation:pop .6s cubic-bezier(.2,.9,.3,1.2) both }
.res-hero::before, .res-hero::after{ content:""; position:absolute; border-radius:50%; background:rgba(255,255,255,.12) }
.res-hero::before{ width:240px; height:240px; right:-70px; top:-90px }
.res-hero::after{ width:160px; height:160px; left:-60px; bottom:-70px }
.res-hero > *{ position:relative; z-index:1 }
.res-hero .abadge{ box-shadow:0 0 0 8px rgba(255,255,255,.18); animation:pop .7s .15s cubic-bezier(.2,.9,.3,1.3) both }
.res-hero .k{ font-family:"Prompt"; letter-spacing:.1em; font-size:13px; opacity:.9; margin-top:16px }
.res-hero h1{ font-size:clamp(38px,9vw,54px); font-weight:800; margin-top:2px }
.res-hero .en{ opacity:.85; font-size:14px; letter-spacing:.06em }
.res-hero .q{ font-family:"Prompt"; font-size:18px; font-weight:500; margin:14px auto 0; max-width:420px }
@keyframes pop{ from{ opacity:0; transform:scale(.9) } to{ opacity:1; transform:none } }
.fade-up{ animation:fadeup .5s ease both } .d1{ animation-delay:.2s } .d2{ animation-delay:.3s } .d3{ animation-delay:.4s } .d4{ animation-delay:.5s }
@keyframes fadeup{ from{ opacity:0; transform:translateY(12px) } to{ opacity:1; transform:none } }
.share{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; justify-content:center }
.blk{ background:#fff; border:1px solid var(--line); border-radius:22px; padding:24px 22px; margin-top:16px; box-shadow:var(--shadow) }
.blk h2{ font-size:20px; font-weight:700 }
.blk .sub{ color:var(--mute); font-size:14px }
.top1{ margin-top:14px; background:var(--green-bg); border-radius:16px; padding:18px }
.top1 .n{ font-family:"Prompt"; font-weight:700; color:var(--green); font-size:13px; letter-spacing:.1em; display:flex; align-items:center; gap:6px }
.top1 h3{ font-size:21px; margin-top:4px; display:flex; align-items:center; gap:8px }
.top1 p{ font-size:15px; color:var(--ink2); margin-top:6px }
.blur-list{ margin-top:12px; display:grid; gap:8px }
.blur-list div{ display:flex; gap:10px; align-items:center; background:var(--soft); border-radius:12px; padding:12px 14px }
.blur-list b{ font-family:"Prompt"; color:var(--mute); width:18px }
.blur-list span{ filter:blur(5px); user-select:none; flex:1 }
.blur-list .ic{ color:var(--mute) }
.locked-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:14px }
.locked-grid div{ font-size:14px; background:var(--soft); border-radius:12px; padding:11px 12px; display:flex; gap:10px; align-items:center }
.locked-grid .ic{ color:var(--mute) }
.upsell{ background:var(--navy); color:#fff; border-radius:24px; padding:28px 22px; margin-top:16px; text-align:center; position:relative; overflow:hidden }
.upsell::before{ content:""; position:absolute; width:220px; height:220px; border-radius:50%; background:radial-gradient(circle,#3FC48A,transparent 70%); left:-80px; bottom:-110px; opacity:.6 }
.upsell > *{ position:relative }
.upsell h2{ font-size:22px }
.upsell p{ opacity:.8; margin-top:6px; font-size:15px }
.upsell .price{ font-family:"Prompt"; font-size:44px; font-weight:800; margin-top:6px }
.upsell .price small{ font-size:16px; opacity:.7; font-weight:500 }
[data-unlock]{ cursor:pointer; transition:background .15s, transform .15s }
[data-unlock]:hover{ background:#ECEEF5 }
[data-unlock]:active{ transform:scale(.98) }
[data-unlock]:focus-visible{ outline:2px solid var(--I); outline-offset:2px }
.locked-grid .lk{ margin-left:auto; opacity:.6 }
.lock-row{ display:flex; align-items:center; gap:12px; margin-top:12px; background:var(--soft); border-radius:14px; padding:12px 14px }
.lock-row .lr-ic{ width:38px; height:38px; border-radius:50%; display:grid; place-items:center; flex:none; background:var(--I-bg); color:#E07A10 }
.lock-row .lr-t{ flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.4 }
.lock-row .lr-t b{ font-size:15px; font-weight:600 }
.lock-row .lr-t small{ font-size:13px; color:var(--mute) }
.lock-row > .ic{ color:var(--mute) }
/* unlock popup on the free result */
.unlock-dlg{ margin:auto; border:0; width:min(400px, calc(100vw - 32px)); background:var(--navy); color:#fff; border-radius:24px; padding:30px 24px 18px; text-align:center; box-shadow:0 24px 60px rgba(20,26,51,.35); overflow:hidden }
.unlock-dlg::before{ content:""; position:absolute; width:240px; height:240px; border-radius:50%; background:radial-gradient(circle,#F2A516,transparent 70%); right:-110px; top:-120px; opacity:.45; pointer-events:none }
.unlock-dlg > *{ position:relative }
.unlock-dlg::backdrop{ background:rgba(20,26,51,.45); backdrop-filter:blur(2px) }
.unlock-dlg[open]{ animation:unlock-in .2s ease-out }
@keyframes unlock-in{ from{ opacity:0; transform:translateY(12px) scale(.97) } to{ opacity:1; transform:none } }
.unlock-dlg .x{ position:absolute; right:12px; top:12px; width:36px; height:36px; border:0; border-radius:50%; background:rgba(255,255,255,.1); color:#fff; cursor:pointer; display:grid; place-items:center }
.unlock-dlg .lk-ring{ width:60px; height:60px; border-radius:50%; margin:0 auto; display:grid; place-items:center; background:linear-gradient(120deg,#F2A516,#E07A10) }
.unlock-dlg .what{ display:inline-block; margin-top:14px; font-size:13.5px; background:rgba(255,255,255,.1); border-radius:99px; padding:3px 12px }
.unlock-dlg h2{ font-size:22px; margin-top:8px }
.unlock-dlg p{ opacity:.8; margin-top:6px; font-size:14.5px }
.unlock-dlg .price{ font-family:"Prompt"; font-size:40px; font-weight:800; margin-top:6px }
.unlock-dlg .price small{ font-size:16px; opacity:.7; font-weight:500 }
.unlock-dlg .btn{ width:100%; justify-content:center; margin-top:10px }
.unlock-dlg .later{ margin-top:6px; background:none; border:0; color:#fff; opacity:.6; font:inherit; font-size:14px; padding:10px; cursor:pointer }
.radar-free svg{ width:100%; max-width:400px; height:auto; display:block; margin:6px auto 0 }

/* ---------- share card ---------- */
.share-wrap{ display:grid; grid-template-columns:minmax(0,340px) 1fr; gap:32px; align-items:start; margin-top:24px }
.share-prev{ position:relative; border-radius:24px; overflow:hidden; box-shadow:0 24px 50px rgba(22,26,46,.18); background:#E8E9F0; aspect-ratio:9/16 }
.share-prev img, .share-prev canvas{ display:block; width:100%; height:100% }
.share-prev .loading{ position:absolute; inset:0; display:grid; place-items:center; color:var(--mute); font-size:14px }
.share-side h1{ font-size:28px; font-weight:700 }
.share-side p{ color:var(--ink2); margin-top:8px }
.share-acts{ display:grid; gap:10px; margin-top:22px; max-width:340px }
.themes{ display:flex; gap:10px; margin-top:20px; align-items:center; font-size:14px; color:var(--mute) }
.themes button{ width:34px; height:34px; border-radius:50%; border:3px solid #fff; box-shadow:0 0 0 1.5px var(--line); cursor:pointer }
.themes button.on{ box-shadow:0 0 0 2px var(--ink) }
.howto{ margin-top:24px; display:grid; gap:8px; max-width:380px }
.howto div{ display:flex; gap:10px; align-items:center; font-size:14px; color:var(--ink2) }
.howto b{ width:24px; height:24px; border-radius:50%; background:var(--soft); display:grid; place-items:center; font-family:"Prompt"; font-size:12px; flex:none }

/* checkout */
.order{ display:flex; gap:14px; align-items:center; padding:16px 0; border-bottom:1px solid var(--line) }
.order .t{ flex:1 } .order .t b{ font-family:"Prompt" } .order .t span{ display:block; font-size:13px; color:var(--mute) }
.order .amt{ font-family:"Prompt"; font-weight:700; font-size:18px }
.qrbox{ text-align:center; margin-top:18px }
.qrbox svg{ width:180px; height:180px; background:#fff; padding:10px; border:1px solid var(--line); border-radius:12px }
.mock-note{ display:flex; gap:10px; align-items:flex-start; background:var(--I-bg); color:#7A5200; border-radius:12px; padding:12px 14px; font-size:14px; margin-top:16px }
.mock-note .ic{ margin-top:2px }

.foot{ padding:40px 20px 44px; font-size:13px; color:var(--ink2); border-top:1px solid var(--line); margin-top:40px; background:#fff }
.foot-in{ max-width:1120px; margin:0 auto; display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap }
.foot .muted{ margin-top:6px; font-size:12.5px; max-width:520px }
.foot nav{ display:flex; gap:18px; flex-wrap:wrap }
.foot nav a{ text-decoration:none; color:var(--ink2) }

@media (max-width:960px){
  .hero-in{ grid-template-columns:1fr; padding-top:48px; padding-bottom:40px }
  .mock{ height:400px }
  .houses4, .feat{ grid-template-columns:1fr 1fr }
  .same{ grid-template-columns:1fr 1fr }
  .same .str24{ grid-column:1 / -1 }
  .steps{ grid-template-columns:1fr }
  .plans{ grid-template-columns:1fr }
  .preview{ grid-template-columns:1fr 1fr 1fr; gap:10px }
  .latest{ grid-template-columns:1fr }
  .compare{ grid-template-columns:1fr }
  .share-wrap{ grid-template-columns:1fr; justify-items:center; text-align:center }
  .share-prev{ width:min(320px,100%) }
  .share-acts, .howto{ margin-left:auto; margin-right:auto }
  .themes{ justify-content:center }
}
@media (max-width:560px){
  .sec{ padding:56px 0 }
  .wrap{ padding:0 16px }
  .nav nav{ gap:0; font-size:13px }
  .nav nav a span.hide-sm, .nav nav button.link span{ display:none }
  .logo{ letter-spacing:.12em; font-size:14px }
  .houses4, .feat, .same{ grid-template-columns:1fr }
  .str24{ grid-template-columns:1fr }
  .preview figure:nth-child(2){ transform:none }
  .row2, .locked-grid{ grid-template-columns:1fr }
  .qtext{ font-size:20px }
  .qkeys{ display:none }
  .qnav{ position:sticky; bottom:0; background:linear-gradient(rgba(255,255,255,0),#fff 30%); margin:12px -20px -20px; padding:14px 20px 6px; border-radius:0 0 22px 22px }
  .band{ padding:36px 20px; border-radius:22px }
  .mock-card{ width:300px }
  .float{ display:none }
}
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important }
}

/* quiz: rate every option 1–5 (everything centred) */
.qcard.qrate{ text-align:center; padding:26px 20px 20px }
.qrate .qtext{ margin:12px auto 0; max-width:30em; font-size:21px }
.qrate .qhint{ flex-direction:column; justify-content:center; gap:8px; margin-top:10px }
.rate-progress{ display:flex; gap:5px }
.rate-progress i{ width:22px; height:5px; border-radius:99px; background:var(--line) }
.rate-progress i.on{ background:var(--green) }
.rates{ display:grid; gap:10px; margin-top:16px }
.rate{ border:2px solid var(--line); border-radius:18px; padding:14px 14px 10px; transition:border-color .15s, background .15s }
.rate.current{ border-color:var(--navy); box-shadow:0 0 0 3px rgba(20,26,51,.06) }
.rate.rated{ background:#FAFBFD }
.rate-text{ font-size:16px; line-height:1.45; max-width:28em; margin:0 auto }
.scale{ display:flex; align-items:center; justify-content:center; gap:10px; margin:12px auto 0 }
.scale .end{ font-size:12px; font-family:"Prompt"; font-weight:500; width:42px; flex:none }
.scale .end.no{ color:#B4232A; text-align:right } .scale .end.yes{ color:#1E7C53; text-align:left }
.rate-val{ font-family:"Prompt"; font-size:12.5px; color:var(--faint, #A1A1AA); margin-top:6px; min-height:19px }
.rate-val.v1{ color:#B4232A } .rate-val.v2{ color:#C2575B } .rate-val.v3{ color:var(--mute) } .rate-val.v4{ color:#2E8B60 } .rate-val.v5{ color:#1E7C53; font-weight:600 }
.qrate .qnav{ margin-top:18px }
.dot{ flex:none; border-radius:50%; border:2px solid; background:#fff; cursor:pointer; padding:0; transition:transform .1s, background .12s }
.dot:hover{ transform:scale(1.08) }
.dot:active{ transform:scale(.94) }
.dot.d1{ width:40px; height:40px; border-color:#E5878A } .dot.d2{ width:32px; height:32px; border-color:#EBA9AB }
.dot.d3{ width:26px; height:26px; border-color:#C4C7D4 }
.dot.d4{ width:32px; height:32px; border-color:#8FCDB0 } .dot.d5{ width:40px; height:40px; border-color:#5BB78B }
.dot.d1.on{ background:#D93036; border-color:#D93036 } .dot.d2.on{ background:#E5878A; border-color:#E5878A }
.dot.d3.on{ background:#9AA0B8; border-color:#9AA0B8 }
.dot.d4.on{ background:#5BB78B; border-color:#5BB78B } .dot.d5.on{ background:#2E9E6A; border-color:#2E9E6A }
.dot.on{ box-shadow:0 0 0 4px rgba(22,26,46,.06) }
.scale.demo{ margin:8px 0 0; justify-content:flex-start; gap:7px; pointer-events:none }
.scale.demo .dot.d1, .scale.demo .dot.d5{ width:26px; height:26px } .scale.demo .dot.d2, .scale.demo .dot.d4{ width:21px; height:21px } .scale.demo .dot.d3{ width:17px; height:17px }
.tips .scale.demo .end{ width:auto; font-size:11px }
@media (max-width:560px){
  .qcard.qrate{ padding:22px 14px 16px }
  .qrate .qtext{ font-size:19px }
  .rate{ padding:12px 10px 8px }
  .rate-text{ font-size:15px }
  .scale{ gap:8px }
  .scale .end{ width:34px }
}
.nw{ white-space:nowrap }

/* ---------- login / sign-up ---------- */
.auth-page{ padding:28px 16px 64px }
.auth{ max-width:1040px; margin:0 auto; display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1fr); background:#fff; border:1px solid var(--line); border-radius:28px; overflow:hidden; box-shadow:var(--shadow) }
.auth.short{ max-width:920px }
.auth-art{ position:relative; overflow:hidden; background:var(--navy); color:#fff; padding:40px 40px 32px; display:flex; flex-direction:column; min-height:560px }
.auth-art .glow{ position:absolute; border-radius:50%; filter:blur(60px); opacity:.55 }
.auth-art .g1{ width:300px; height:300px; background:#3E63DD; top:-90px; right:-90px }
.auth-art .g2{ width:260px; height:260px; background:#2E9E6A; bottom:-80px; left:-70px; opacity:.45 }
.art-animals{ position:relative; display:flex; gap:10px }
.art-animals .abadge{ box-shadow:0 10px 24px rgba(0,0,0,.25); animation:bob 4s ease-in-out infinite }
.art-animals .abadge:nth-child(2){ animation-delay:-1s; transform:translateY(10px) }
.art-animals .abadge:nth-child(3){ animation-delay:-2s }
.art-animals .abadge:nth-child(4){ animation-delay:-3s; transform:translateY(10px) }
@keyframes bob{ 0%,100%{ translate:0 0 } 50%{ translate:0 -6px } }
@media (prefers-reduced-motion:reduce){ .art-animals .abadge{ animation:none } }
.art-copy{ position:relative; margin-top:56px }
.art-kick{ font-family:"Prompt"; font-weight:700; font-size:12px; letter-spacing:.3em; opacity:.6 }
.art-copy h2{ font-size:34px; font-weight:800; margin-top:8px; letter-spacing:-.01em }
.art-copy p{ margin-top:10px; opacity:.78; font-size:15.5px; max-width:340px }
.art-copy ul{ list-style:none; margin-top:22px; display:grid; gap:10px; font-size:14.5px }
.art-copy li{ display:flex; gap:10px; align-items:center; opacity:.92 }
.art-copy li .ic{ color:#7EE0AE }
.art-houses{ position:relative; display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; padding-top:28px }
.art-houses span{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); border-radius:99px; padding:4px 11px }
.art-houses i{ width:8px; height:8px; border-radius:50% }

.auth-form{ padding:40px 44px 36px }
.auth-form h1{ font-size:28px; font-weight:700 }
.auth-form .sub{ color:var(--mute); margin-top:4px; font-size:15px }
.auth-form .field{ margin-top:14px }
.auth-form .field label{ font-size:14px; margin-bottom:5px }
.auth-form .field input, .auth-form .field select{ padding:11px 13px; font-size:15.5px }
.auth-form .errors{ margin-top:16px }
.auth-sec{ display:flex; align-items:center; gap:10px; margin-top:24px; font-family:"Prompt"; font-weight:600; font-size:13px; letter-spacing:.04em; color:var(--mute) }
.auth-sec::after{ content:""; flex:1; height:1px; background:var(--line) }
.auth-sec + .field, .auth-sec + .row2 .field{ margin-top:10px }
.dob{ display:grid; grid-template-columns:.8fr 1.4fr 1fr; gap:8px }
.dob-age{ display:flex; align-items:center; gap:8px; margin-top:8px; font-size:13.5px; color:var(--mute); min-height:24px }
.dob-age b{ display:inline-flex; align-items:center; gap:6px; background:var(--green-bg); color:#1E6B47; border-radius:99px; padding:2px 12px; font-weight:600; font-size:14px }
.dob-age b.bad{ background:var(--D-bg); color:#9B1C21 }
.pw{ position:relative }
.pw input{ padding-right:74px !important }
.pw button{ position:absolute; right:6px; top:50%; transform:translateY(-50%); border:0; background:var(--soft); color:var(--ink2); font:inherit; font-size:13px; border-radius:9px; padding:6px 10px; cursor:pointer }
.auth-form .check{ background:var(--soft); border-radius:12px; padding:12px 14px; margin-top:20px; font-size:13.5px }
.auth-form .btn.block{ margin-top:18px; padding:15px 24px; font-size:16.5px }
.auth-form .alt{ margin-top:18px; font-size:14.5px }
.auth-form .alt a{ color:var(--green); font-weight:600; text-decoration:none }
.field.err input, .field.err select{ border-color:var(--bad) }
.req{ color:var(--bad); margin-left:2px }
.opt{ color:var(--mute); font-weight:400; font-size:12.5px; margin-left:4px }

@media (max-width:860px){
  .auth{ grid-template-columns:1fr; border-radius:22px }
  .auth-art{ min-height:0; padding:24px 24px 22px }
  .art-copy{ margin-top:18px }
  .art-copy h2{ font-size:24px }
  .art-copy p{ font-size:14.5px }
  .art-copy ul, .art-houses{ display:none }
  .art-animals .abadge{ width:46px !important; height:46px !important }
  .art-animals .abadge svg{ width:33px; height:33px }
  .auth-form{ padding:26px 22px 28px }
  .auth-form h1{ font-size:24px }
}
@media (max-width:420px){ .auth-page{ padding:16px 12px 48px } .dob{ grid-template-columns:.8fr 1.5fr 1.1fr; gap:6px } }
.auth.short .auth-form{ display:flex; flex-direction:column; justify-content:center; padding-top:48px; padding-bottom:44px }
.login-note{ display:flex; gap:8px; align-items:center; justify-content:center; margin-top:26px; padding-top:18px; border-top:1px solid var(--line); font-size:13.5px; color:var(--mute) }
.nav nav a{ white-space:nowrap }
@media (max-width:420px){
  .nav-in{ padding:10px 14px }
  .logo{ letter-spacing:.12em; font-size:14px }
  .auth-form .row2{ grid-template-columns:1fr 1fr; gap:10px }
}
@media (max-width:420px){
  .nav nav{ gap:2px }
  .nav nav a{ padding:8px 6px }
  .nav nav a.btn.sm{ padding:8px 12px; font-size:13px }
}

/* ---------- checkout ---------- */
.pay-get{ list-style:none; display:grid; gap:8px; margin:16px 0 20px; font-size:14.5px; color:var(--ink2) }
.pay-get li{ display:flex; gap:10px; align-items:center }
.pay-get .ic{ color:var(--green) }
.pay-methods{ display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:14px }
.pay-methods span{ display:inline-flex; gap:6px; align-items:center; font-size:13px; color:var(--ink2); background:var(--soft); border-radius:99px; padding:5px 12px }
.pay-secure{ display:flex; gap:8px; align-items:center; justify-content:center; text-align:center; margin-top:12px; font-size:13px; color:var(--mute) }
.pay-note{ display:flex; gap:10px; align-items:flex-start; background:var(--blue-bg); color:#22357F; border-radius:12px; padding:12px 14px; font-size:14px; margin-top:16px }
.pay-note.warn{ background:var(--I-bg); color:#7A5200 }
.pay-note .ic{ margin-top:2px }
.pay.center{ text-align:center }
.pay-spin{ width:44px; height:44px; margin:6px auto 18px; border-radius:50%; border:4px solid var(--soft); border-top-color:var(--green); animation:spin 1s linear infinite }
@keyframes spin{ to{ transform:rotate(360deg) } }

/* choose the question set (views/quiz_pick.php) */
.pick h1{ font-size:26px; font-weight:700 }
.pick-sub{ color:var(--mute); margin-top:6px }
.pick-opts{ display:grid; gap:12px; margin:22px 0 20px }
.pick-opt{ display:block; cursor:pointer }
.pick-opt input{ position:absolute; opacity:0; pointer-events:none }
.pick-card{ display:block; background:#fff; border:2px solid var(--line); border-radius:var(--r); padding:18px; transition:border-color .15s, box-shadow .15s }
.pick-opt:hover .pick-card{ border-color:#C9CDDD }
.pick-opt input:checked + .pick-card{ border-color:var(--green); box-shadow:0 0 0 4px var(--green-bg) }
.pick-opt input:focus-visible + .pick-card{ outline:2px solid var(--navy); outline-offset:2px }
.pick-h{ display:flex; align-items:center; gap:12px }
.pick-h b{ display:block; font-family:"Prompt"; font-size:18px; font-weight:600 }
.pick-h small{ display:block; color:var(--mute); font-size:13px }
.pick-ic{ display:grid; place-items:center; width:44px; height:44px; border-radius:12px; background:var(--soft); color:var(--ink2); flex:none }
.pick-opt input:checked + .pick-card .pick-ic{ background:var(--green-bg); color:var(--green) }
.pick-rec{ margin-left:auto; font-size:12px; font-family:"Prompt"; font-weight:600; color:#1E6B47; background:var(--green-bg); border-radius:99px; padding:3px 10px; white-space:nowrap }
.pick-desc{ display:block; margin-top:12px; color:var(--ink2); font-size:14.5px }
.pick-ex{ display:block; margin-top:10px; padding:10px 12px; background:var(--soft); border-radius:12px; font-size:14px; color:var(--ink2) }
.pick-ex em{ display:block; font-style:normal; font-size:12px; color:var(--mute); font-family:"Prompt"; margin-bottom:2px }
.pick-note{ text-align:center; color:var(--mute); font-size:13px; margin-top:12px }
.qedition{ font-weight:500; color:var(--ink2) }
@media (max-width:420px){ .pick-h{ flex-wrap:wrap } .pick-rec{ margin-left:56px } .qedition{ display:none } }

/* landing: the two question sets */
.eds{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:32px }
.ed{ background:var(--soft); border:1px solid var(--line); border-radius:var(--r); padding:22px }
.ed-h{ display:flex; align-items:center; gap:12px }
.ed-h b{ display:block; font-family:"Prompt"; font-size:19px; font-weight:600 }
.ed-h small{ display:block; color:var(--mute); font-size:13.5px }
.ed-ic{ display:grid; place-items:center; width:46px; height:46px; border-radius:12px; background:#fff; color:var(--green); flex:none }
.ed-q{ margin-top:16px; background:#fff; border-radius:14px; padding:14px 16px; font-family:"Prompt"; font-size:16.5px; font-weight:500; line-height:1.45 }
.ed-q em{ display:block; font-style:normal; font-family:"IBM Plex Sans Thai"; font-weight:400; font-size:12.5px; color:var(--mute); margin-bottom:4px }
.ed p{ margin-top:14px; color:var(--ink2); font-size:14.5px }
@media (max-width:720px){ .eds{ grid-template-columns:1fr } }

/* policy pages: privacy, terms, refund, contact (legal_head() in inc/layout.php) */
.legal-wrap{ max-width:760px; margin:0 auto; padding:0 16px }
.legal-nav{ display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; padding-bottom:4px; margin-bottom:22px }
.legal-nav a{ flex:none; font-size:14px; color:var(--ink2); background:#fff; border:1px solid var(--line); border-radius:99px; padding:7px 14px; white-space:nowrap }
.legal-nav a:hover{ border-color:#C9CDDD }
.legal-nav a.on{ background:var(--navy); border-color:var(--navy); color:#fff }
.legal h1{ font-size:clamp(28px,5vw,36px); font-weight:700 }
.legal-date{ color:var(--mute); font-size:13.5px; margin-top:6px }
.legal-lead{ font-size:16.5px; color:var(--ink2); margin-top:18px; line-height:1.7 }
.legal section{ background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:20px 22px; margin-top:14px }
.legal section h2{ font-size:18px; font-weight:600 }
.legal section p, .legal section li{ color:var(--ink2); line-height:1.75; font-size:15px }
.legal section p{ margin-top:8px }
.legal section ul, .legal section ol{ margin:8px 0 0 20px; display:grid; gap:6px }
.legal a{ color:var(--blue); text-decoration:underline; text-underline-offset:2px }
.legal-tbl{ width:100%; border-collapse:collapse; margin-top:10px; font-size:14.5px }
.legal-tbl th{ text-align:left; font-weight:600; color:var(--mute); font-size:13px; padding:8px 10px; border-bottom:1px solid var(--line); background:var(--soft) }
.legal-tbl td{ padding:10px; border-bottom:1px solid var(--line); color:var(--ink2); vertical-align:top; line-height:1.6 }
.legal-tbl tr:last-child td{ border-bottom:0 }
.legal-key{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:20px }
.legal-key div{ background:var(--green-bg); border-radius:14px; padding:14px 16px; color:#1E6B47 }
.legal-key b{ display:block; font-family:"Prompt"; font-weight:600; margin-top:6px; color:var(--ink) }
.legal-key span{ display:block; font-size:13.5px; color:var(--ink2); overflow-wrap:anywhere }
.contact-card{ display:flex; gap:16px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:22px; margin-top:20px; box-shadow:var(--shadow) }
.contact-card .ci{ display:grid; place-items:center; width:54px; height:54px; border-radius:16px; background:var(--green-bg); color:var(--green); flex:none }
.contact-card small{ display:block; color:var(--mute); font-size:13px }
.contact-card .cm{ display:block; font-family:"Prompt"; font-size:clamp(18px,4.5vw,22px); font-weight:600; color:var(--ink); text-decoration:none; overflow-wrap:anywhere }
.contact-card span{ display:block; color:var(--ink2); font-size:14px }
.contact-topics{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px }
.contact-topics > div{ display:flex; gap:12px; background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:18px }
.contact-topics .ti{ display:grid; place-items:center; width:36px; height:36px; border-radius:10px; background:var(--soft); color:var(--ink2); flex:none }
.contact-topics b{ font-family:"Prompt"; font-weight:600 }
.contact-topics p{ color:var(--ink2); font-size:14px; margin-top:2px }
.contact-topics a{ display:inline-flex; align-items:center; gap:4px; margin-top:6px; font-size:14px }
@media (max-width:640px){
  .legal-key, .contact-topics{ grid-template-columns:1fr }
  .legal section{ padding:16px }
  .legal-tbl, .legal-tbl tbody, .legal-tbl tr, .legal-tbl td{ display:block }
  .legal-tbl thead{ display:none }
  .legal-tbl tr{ border-bottom:1px solid var(--line); padding:8px 0 }
  .legal-tbl td{ border:0; padding:2px 0 }
  .legal-tbl td + td{ color:var(--mute); font-size:13.5px }
}
.foot-legal{ max-width:1120px; margin:22px auto 0; padding-top:16px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:10px 20px; flex-wrap:wrap; font-size:12.5px; color:var(--mute) }
.foot-legal nav{ display:flex; gap:6px 16px; flex-wrap:wrap }
.foot-legal a{ color:var(--mute); text-decoration:none }
.foot-legal a:hover, .foot nav a:hover{ color:var(--ink); text-decoration:underline }
.check a{ color:var(--blue); text-decoration:underline }
.pay-terms{ text-align:center; font-size:12.5px; color:var(--mute); margin-top:14px }
.pay-terms a{ color:var(--ink2); text-decoration:underline }
.login-note a{ color:var(--ink2); text-decoration:underline }
.auth-ok{ display:grid; place-items:center; width:56px; height:56px; border-radius:16px; background:var(--green-bg); color:var(--green); margin-bottom:14px }
.auth-ok.bad{ background:var(--I-bg); color:#8A5A00 }
.auth-tips{ margin:16px 0 4px 18px; color:var(--ink2); font-size:14px; display:grid; gap:6px }
.auth-tips a{ color:var(--blue) }
.legal .legal-nav a{ text-decoration:none }

/* sign in with Google (google_button() in lib/google.php) */
.btn-google{ display:flex; align-items:center; justify-content:center; gap:10px; width:100%; margin-top:18px; padding:12px 18px; border:1px solid #DADCE0; border-radius:999px; background:#fff; color:#1F1F1F; font-family:"Prompt"; font-weight:500; font-size:15.5px; text-decoration:none; transition:background .15s, box-shadow .15s }
.btn-google:hover{ background:#F8FAFF; box-shadow:0 1px 3px rgba(60,64,67,.18) }
.btn-google svg{ flex:none }
.or{ display:flex; align-items:center; gap:12px; margin:18px 0 2px; color:var(--mute); font-size:13px }
.or::before, .or::after{ content:""; flex:1; height:1px; background:var(--line) }
.g-who{ display:flex; align-items:center; gap:12px; margin-top:14px; padding:12px 14px; background:var(--soft); border-radius:14px }
.g-who img{ width:44px; height:44px; border-radius:50%; object-fit:cover; flex:none }
.g-who b{ display:block; font-family:"Prompt"; font-weight:600 }
.g-who span{ display:block; font-size:13px; color:var(--mute); overflow-wrap:anywhere }
.nav-pic{ width:24px; height:24px; border-radius:50%; object-fit:cover; flex:none }
.auth-form .alt button.link{ text-decoration:underline; color:var(--ink2); font-size:14px }
.contact-more{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:10px; margin-top:12px }
.contact-more a{ display:flex; align-items:center; gap:12px; background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:14px 16px; text-decoration:none; color:var(--ink) }
.contact-more a:hover{ border-color:#C9CDDD }
.contact-more .ti{ display:grid; place-items:center; width:36px; height:36px; border-radius:10px; background:var(--soft); color:var(--ink2); flex:none }
.contact-more small{ display:block; color:var(--mute); font-size:12.5px }
.contact-more b{ font-family:"Prompt"; font-weight:600; overflow-wrap:anywhere }
.contact-addr{ display:flex; gap:8px; align-items:flex-start; margin-top:12px; color:var(--ink2); font-size:14px }
.contact-addr .ic{ margin-top:3px; color:var(--mute); flex:none }

/* ประวัติของฉัน (profile.php) */
.pf{ max-width:1000px }
.pf-head{ display:flex; gap:20px; align-items:center; flex-wrap:wrap; background:#fff; border:1px solid var(--line); border-top:4px solid var(--hc); border-radius:var(--r); padding:22px 24px; box-shadow:var(--shadow) }
.pf-pic{ width:76px; height:76px; border-radius:50%; object-fit:cover; box-shadow:0 0 0 3px var(--hc); flex:none }
.pf-ini{ display:grid; place-items:center; width:76px; height:76px; border-radius:50%; background:var(--hc); color:#fff; font-family:"Prompt"; font-size:30px; font-weight:600; flex:none }
.pf-id{ flex:1; min-width:220px }
.pf-id h1{ font-size:26px; font-weight:700 }
.pf-id p{ color:var(--ink2) }
.pf-tags{ display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:8px; font-size:13.5px; color:var(--mute) }
.pf-tags span{ display:inline-flex; align-items:center; gap:6px; overflow-wrap:anywhere }
.pf-tags .g{ color:var(--green) }
.pf-count{ display:flex; gap:18px; align-items:center; flex-wrap:wrap }
.pf-count div{ text-align:center }
.pf-count b{ display:block; font-family:"Prompt"; font-size:22px; font-weight:600 }
.pf-count span{ font-size:12.5px; color:var(--mute) }
.pf-grid{ display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:16px; margin-top:16px; align-items:start }
.pf-side{ display:grid; gap:16px }
.pf-card{ background:#fff; border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow) }
.pf-card.auth-form{ padding:24px }
.pf-card h2{ font-size:19px; font-weight:700 }
.pf-card .btn.block{ margin-top:18px }
.pf-note{ padding:20px 24px }
.pf-note p{ color:var(--ink2); font-size:14px; margin-top:6px }
.pf-note a{ color:var(--blue); text-decoration:underline }
.pf-note > a{ display:inline-flex; align-items:center; gap:4px; margin-top:8px; font-size:14px }
.field .hint.bad{ color:var(--bad) }
@media (max-width:860px){ .pf-grid{ grid-template-columns:1fr } .pf-count{ width:100% } }
