/* ===== GURU E-Exam ก.พ. — หน้าผู้เรียน (โทนแอปฝึกซ้อม ไม่ใช่หลังบ้าน) ===== */
body.student {
  --navy: #13235B; --royal: #2F5BEA; --royal-ink: #2445C4; --sky: #EAF1FF; --yellow: #FFCE1B; --yellow-ink: #6B5200;
  --paper: #FFFFFF; --mist: #F3F7FE; --ink: #16204A; --muted: #5B6584; --line: #E3E9F5;
  --shadow-sm: 0 2px 10px rgba(30, 64, 175, .06); --shadow-md: 0 12px 34px rgba(30, 64, 175, .10);
  --blue: var(--royal); --bg: var(--mist); --border: var(--line);
  font-family: Anuphan, Prompt, system-ui, sans-serif; font-size: 15px; color: var(--ink);
  background: radial-gradient(1200px 500px at 50% -120px, #E4EDFF 0%, transparent 70%), var(--mist);
}
body.student button, body.student input, body.student select { font-family: inherit; }
body.student h1, body.student h2, body.student h3 { letter-spacing: 0; }
body.student :focus-visible { outline: 3px solid #9DB8FF; outline-offset: 2px; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
body.student .btn { background: var(--royal); box-shadow: none; border-radius: 14px; padding: 12px 20px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
body.student .btn:hover { background: var(--royal-ink); }
body.student .btn.secondary { background: var(--sky); color: var(--royal-ink); }
body.student .btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
body.student .btn.yellow { background: var(--yellow); color: var(--navy); }
body.student .btn.yellow:hover { background: #FFD94D; }
body.student .btn.small { padding: 7px 13px; border-radius: 10px; }
body.student .btn.grad { background: linear-gradient(135deg, #2D5BFF, #4F82FF); box-shadow: 0 10px 24px rgba(45, 91, 255, .32); padding: 15px 24px; font-size: 16px; }
body.student .btn.grad:hover { filter: brightness(1.06); }
body.student .btn.white { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); padding: 15px 22px; font-size: 16px; }
body.student .btn.white:hover { background: #F8FAFF; color: var(--royal-ink); }
body.student .btn.white .ico { color: var(--royal); }
body.student .card { border-radius: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
body.student .progress { background: #E3E9F8; height: 8px; }
body.student .progress b { background: linear-gradient(90deg, #2D5BFF, #5B8BFF); }
body.student .notice { background: #E9EEFC; color: var(--navy); border-radius: 12px; }

/* ---------- แถบบน (ลอย) ---------- */
.sbar { position: sticky; top: 0; z-index: 20; padding: 12px 16px 6px; background: linear-gradient(var(--mist) 65%, rgba(243, 247, 254, 0)); }
.sbar-in { max-width: 1240px; margin: auto; display: flex; align-items: center; gap: 22px; padding: 10px 14px 10px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.slogo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 21px; letter-spacing: -.3px; }
.slogo-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font-size: 18px; }
.slogo b { color: var(--royal); font-weight: 800; }
.snav { display: flex; gap: 6px; flex: 1; }
.snav a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 10px 18px; border-radius: 12px; }
.snav a:hover { color: var(--ink); background: var(--mist); }
.snav a.active { color: var(--navy); background: var(--sky); }
.sright { display: flex; align-items: center; gap: 12px; position: relative; margin-left: auto; }
.savatar { width: 42px; height: 42px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #2D5BFF, #5B8BFF); color: #fff; font-weight: 700; font-size: 17px; overflow: hidden; padding: 0; display: grid; place-items: center; }
.savatar img { width: 100%; height: 100%; object-fit: cover; }
.smenu { position: absolute; right: 0; top: 52px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md); min-width: 230px; padding: 8px; }
.smenu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.smenu .who b { display: block; }
.smenu a, .smenu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: var(--ink); font-size: 14px; }
.smenu a:hover, .smenu button:hover { background: var(--mist); }
.pchip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; border: 0; border-radius: 14px; padding: 10px 16px; background: var(--mist); color: var(--ink); cursor: pointer; }
.pchip .ico { color: #E0A100; }
.pchip:hover { background: var(--sky); }
.pchip.on { background: #FFF4C7; color: var(--navy); }

.smain { max-width: 1240px; margin: auto; padding: 14px 16px 60px; }
#pageHead h1 { font-size: 26px; font-weight: 800; margin: 8px 0 18px; color: var(--navy); }
.sec { margin-top: 38px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sh-l { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.sh-ico { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #2D5BFF, #5B8BFF); color: #fff; display: grid; place-items: center; font-size: 18px; flex: none; }
.sec-head h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--navy); }
.sh-sub { color: var(--muted); font-size: 14px; }
.sec-head a, .sh-link { color: var(--royal); font-weight: 600; text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ---------- หน้าแรก: hero ---------- */
.hero3 { position: relative; overflow: hidden; border-radius: 28px; padding: 40px; display: grid; grid-template-columns: 1.25fr 1fr .95fr; gap: 16px; align-items: center;
  background: linear-gradient(115deg, #F5F9FF 0%, #E6EFFF 55%, #D3E2FF 100%); border: 1px solid #DDE7FB; }
.hero3::before { content: ""; position: absolute; width: 520px; height: 520px; right: 18%; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.75), rgba(255,255,255,0) 65%); pointer-events: none; }
.h3-text { position: relative; z-index: 1; }
.hero3 .hello { color: var(--royal); font-weight: 700; font-size: 17px; margin: 0 0 10px; }
.hero3 h2 { font-size: clamp(34px, 3.1vw, 46px); line-height: 1.22; margin: 0 0 16px; font-weight: 800; color: var(--navy); }
.hero3 h2 span { display: block; color: var(--royal); white-space: nowrap; }
.hero3 .sub { color: #3E4A6E; font-size: 16px; margin: 0 0 26px; max-width: 44ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.art { position: relative; align-self: stretch; min-height: 330px; margin: -20px -10px -40px; }
.art .desk { position: absolute; left: -4%; bottom: 18px; width: 108%; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob.b1 { width: 270px; height: 270px; left: 14%; bottom: 60px; background: radial-gradient(circle at 35% 35%, #CFE0FF, #B4CCFF); opacity: .7; }
.blob.b2 { width: 70px; height: 70px; left: 2%; top: 10%; background: #DCE8FF; }
.ftile { position: absolute; width: 58px; height: 58px; border-radius: 18px; background: var(--paper); color: var(--royal); display: grid; place-items: center; font-size: 26px; box-shadow: var(--shadow-md); animation: float 6s ease-in-out infinite; }
.ftile.t1 { left: 4%; top: 12%; transform: rotate(-8deg); }
.ftile.t2 { left: 10%; top: 42%; width: 50px; height: 50px; font-size: 22px; animation-delay: -2s; }
.ftile.t3 { right: 6%; top: 46%; background: var(--royal); color: #fff; animation-delay: -4s; }
.hand { position: absolute; right: 2%; top: 9%; margin: 0; font-family: Mali, cursive; font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--royal); transform: rotate(-9deg); text-align: center; }
.spark { position: absolute; color: var(--royal); font-size: 14px; }
.spark.s1 { right: 12%; top: 28%; } .spark.s2 { left: 34%; top: 4%; font-size: 10px; color: #8FB0FF; }
@keyframes float { 50% { translate: 0 -8px; } }

.statcard { position: relative; z-index: 1; background: var(--paper); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-md); }
.stc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.stc-head h3 { margin: 0; font-size: 18px; color: var(--navy); }
.stc-head a { color: var(--royal); font-size: 13px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
.stc-body { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.ring2 { position: relative; width: 136px; height: 136px; }
.ring2 svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring2 circle { fill: none; stroke-width: 11; }
.ring2 .trk { stroke: #E8EEFB; }
.ring2 .val { stroke: var(--royal); stroke-linecap: round; transition: stroke-dashoffset .8s; }
.ring2 > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.15; }
.ring2 b { font-size: 34px; color: var(--navy); }
.ring2 small { font-size: 12px; color: var(--muted); }
.st-list { list-style: none; margin: 0; padding: 0; display: grid; }
.st-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.st-list li:last-child { border-bottom: 0; }
.st-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--sky); color: var(--royal); display: grid; place-items: center; font-size: 20px; flex: none; }
.st-list small { display: block; font-size: 12px; color: var(--muted); }
.st-list b { font-size: 19px; color: var(--navy); white-space: nowrap; }

.resume { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #FFF4C7; border: 1px solid #F5DE82; color: var(--navy); border-radius: 16px; padding: 14px 18px; margin-bottom: 16px; }

/* ---------- landing (ก่อนเข้าสู่ระบบ) ---------- */
.land-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.g-ic { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.g-ic svg { width: 16px; height: 16px; }
.demo-tag { font-size: 12px; font-weight: 600; color: var(--royal-ink); background: var(--sky); padding: 3px 10px; border-radius: 99px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-sm); }
.step-no { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #2D5BFF, #5B8BFF); color: #fff; font-weight: 800; font-size: 18px; display: grid; place-items: center; flex: none; }
.step h3 { margin: 2px 0 4px; font-size: 17px; color: var(--navy); }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- โหมดฝึก ---------- */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mtile { position: relative; text-align: left; border-radius: 22px; padding: 22px; cursor: pointer; display: flex; flex-direction: column; gap: 18px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.mtile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mt-head { display: flex; gap: 16px; align-items: flex-start; }
.mt-ico { width: 68px; height: 68px; border-radius: 18px; background: var(--sky); color: var(--royal); display: grid; place-items: center; font-size: 32px; flex: none; }
.mt-txt { flex: 1; min-width: 0; }
.mtile h3 { font-size: 20px; margin: 6px 0 4px; color: var(--navy); }
.mtile p { margin: 0; color: var(--muted); font-size: 14px; }
.mt-go { width: 36px; height: 36px; border-radius: 50%; background: var(--sky); color: var(--royal); display: grid; place-items: center; flex: none; align-self: center; }
.mt-feats { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; background: #F6F8FE; border-radius: 14px; padding: 10px 14px; font-size: 13px; color: #44507A; }
.mt-feats span { display: inline-flex; align-items: center; gap: 5px; }
.mt-feats .ico { color: var(--royal); }
.mt-badge { position: absolute; top: 16px; right: 18px; display: inline-flex; align-items: center; gap: 5px; background: #fff; color: var(--royal-ink); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; }
.mt-badge .ico { color: #F5A300; }
.mtile.random { background: linear-gradient(135deg, #2D5BFF, #5B8BFF); color: #fff; border: 0; box-shadow: 0 14px 30px rgba(45, 91, 255, .28); }
.mtile.random h3 { color: #fff; }
.mtile.random p { color: #E2EAFF; }
.mtile.random .mt-ico, .mtile.random .mt-go { background: rgba(255,255,255,.18); color: #fff; }
.mtile.random .mt-feats { background: rgba(255,255,255,.14); color: #fff; }
.mtile.random .mt-feats .ico { color: #fff; opacity: .85; }
.mtile.random.lockd .mt-feats span:last-child { color: #FFE38A; }

/* ---------- การ์ดชุดข้อสอบ ---------- */
.setgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.setrow { position: relative; }
.setgrid.row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 64px) / 5); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: none; }
.setgrid.row::-webkit-scrollbar { display: none; }
.setgrid.row .setcard { scroll-snap-align: start; }
.rowarrow { position: absolute; right: -14px; top: 50%; translate: 0 -60%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--navy); box-shadow: var(--shadow-md); display: grid; place-items: center; font-size: 20px; }
.setcard { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; min-width: 0; }
.setcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sc-top { display: flex; justify-content: space-between; align-items: center; }
.sc-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--sky); color: var(--royal); display: grid; place-items: center; font-size: 21px; }
.sc-count { background: #F1F4FA; color: #44507A; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 99px; }
.setcard h3 { margin: 6px 0 0; font-size: 18px; color: var(--navy); line-height: 1.35; }
.setcard h3 b { display: block; font-size: 17px; }
.sc-meta { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.sc-meta .ico { color: var(--royal); }
.sc-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.sc-tag.free { background: #E4F8EC; color: #15803D; }
.sc-tag.best { background: var(--sky); color: var(--royal-ink); }
.sc-tag.lock { background: #FFF2D6; color: #B45309; }
.sc-go { margin-top: auto; border: 0; border-radius: 12px; background: var(--sky); color: var(--royal); font-weight: 700; padding: 11px; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.sc-go:hover { background: var(--royal); color: #fff; }
.setcard.locked .sc-go { background: #FFF6E0; color: #B45309; }
.setcard.locked .sc-ico { background: #F1F4FA; color: #9AA3BF; }

/* ---------- รายวิชา (แถวรายการ) ---------- */
.subjlist { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.subjrow { display: grid; grid-template-columns: 1fr 150px auto; gap: 16px; align-items: center; width: 100%; padding: 15px 18px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; color: var(--ink); }
.subjrow:last-child { border-bottom: 0; }
.subjrow:hover { background: #F8FAFF; }
.subjrow:disabled { cursor: default; opacity: .55; }
.subjrow b { font-size: 15px; }
.subjrow .meta { font-size: 12px; color: var(--muted); }
.subjrow .go { font-size: 13px; font-weight: 700; color: var(--royal-ink); white-space: nowrap; }
.subjrow .go.lockd { color: #B45309; }

.unlock { background: linear-gradient(135deg, #2D5BFF, #5B8BFF); border-radius: 20px; padding: 24px; color: #fff; box-shadow: 0 14px 30px rgba(45, 91, 255, .22); }
.unlock h2 { margin: 0 0 6px; font-size: 20px; }
.unlock p { color: #E2EAFF; }
.unlock ul { margin: 12px 0 18px; padding-left: 18px; }
body.student .unlock .btn { background: #fff; color: var(--royal-ink); }
.vip { background: var(--navy); color: #fff; border-radius: 20px; padding: 24px; }
.vip h2 { margin: 0 0 6px; color: var(--yellow); }
.vip p { color: #C9D3F2; margin: 0; }

.trackbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.trackbar .label { font-size: 14px; }
body.student .seg button { border-radius: 10px; }
body.student .seg button.active { background: var(--royal); border-color: var(--royal); }

.bigrandom { background: linear-gradient(135deg, #2D5BFF, #5B8BFF); color: #fff; border-radius: 24px; padding: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; box-shadow: 0 14px 30px rgba(45, 91, 255, .25); }
.bigrandom .mt-ico { background: rgba(255,255,255,.18); color: #fff; }
.bigrandom h2 { margin: 0 0 4px; font-size: 22px; }
.bigrandom p { margin: 0; color: #E2EAFF; }

/* ---------- โหมดทำข้อสอบ (โฟกัส) ---------- */
body.student.focus .snav, body.student.focus .mobilebar, body.student.focus #pageHead, body.student.focus .footer { display: none !important; }
.exambar { position: sticky; top: 80px; z-index: 15; background: var(--navy); color: #fff; }
.exambar-in { max-width: 1120px; margin: auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
.exambar .ttl { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exambar .ttl small { display: block; color: #C9D3F2; font-weight: 500; font-size: 12px; }
body.student .timer { background: var(--yellow); color: var(--navy); border-radius: 10px; font-size: 18px; padding: 6px 12px; }
body.student .timer.warn { background: #FFB020; }
body.student .timer.danger { background: #EF4444; color: #fff; }
.exambar .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--yellow); transition: width .3s; }
.examwrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; max-width: 1080px; margin: auto; }
.qcard { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.qmeta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 13px; }
.qmeta .qn { background: var(--navy); color: #fff; font-weight: 800; border-radius: 8px; padding: 3px 10px; font-size: 14px; }
body.student .qtext { font-size: 19px; line-height: 1.8; }
body.student .answer { border-radius: 14px; border: 1.5px solid var(--line); padding: 15px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
body.student .answer b { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; font-size: 14px; color: var(--navy); }
body.student .answer.selected { border-color: var(--royal); background: #EEF2FE; color: var(--ink); }
body.student .answer.selected b { background: var(--royal); color: #fff; }
body.student .answer.correct { border-color: #34B36B; background: #ECFAF2; }
body.student .answer.wrong { border-color: #F08A8A; background: #FFF1F1; }
body.student .answer .mark { margin-left: auto; float: none; }
.qnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.qside { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px; align-self: start; position: sticky; top: 130px; }
.qside summary { list-style: none; cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; }
.qside summary::-webkit-details-marker { display: none; }
body.student .qnum { border-radius: 9px; font-weight: 600; }
body.student .qnum.active { background: var(--royal); border-color: var(--royal); }
body.student .qnum.done { background: #DCE4FD; border-color: #C3D0FA; }

body.student .footer { color: #8A93AE; }
body.student .mobilebar button.active { color: var(--royal-ink); }

@media (max-width: 1180px) {
  .hero3 { grid-template-columns: 1.2fr 1fr; }
  .art { display: none; }
  .setgrid.row { grid-auto-columns: calc((100% - 48px) / 4); }
}
@media (max-width: 900px) {
  .hero3 { grid-template-columns: 1fr; padding: 28px 22px; }
  .hero3 h2 { font-size: 34px; }
  .modes, .steps { grid-template-columns: 1fr; }
  .setgrid.row { grid-auto-columns: 46%; }
  .rowarrow { display: none; }
  .examwrap { grid-template-columns: 1fr; }
  .qside { position: static; order: -1; padding: 14px 16px; }
}
@media (max-width: 740px) {
  .snav { display: none; }
  .sbar { padding: 10px 12px 4px; }
  .sbar-in { padding: 8px 10px 8px 14px; border-radius: 18px; }
  .smain { padding: 12px 16px 100px; }
  #pageHead h1 { font-size: 22px; }
  .pchip { display: none; }
  .hero3 { padding: 24px 18px; border-radius: 22px; }
  .hero3 h2 { font-size: 30px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .stc-body { grid-template-columns: 1fr; justify-items: center; }
  .st-list { width: 100%; }
  .sh-sub { display: none; }
  .setgrid.row { grid-auto-columns: 78%; }
  .mt-ico { width: 54px; height: 54px; font-size: 26px; }
  .subjrow { grid-template-columns: 1fr auto; }
  .subjrow .pbar { display: none; }
  .qcard { padding: 20px 16px; }
  body.student .qtext { font-size: 17px; }
  .exambar { top: 68px; }
}
@media (prefers-reduced-motion: reduce) { .mtile, .setcard, .exambar .bar, .ring2 .val { transition: none; } .ftile { animation: none; } }
.qside summary { gap: 10px; align-items: baseline; }
.qside summary > span:first-child { white-space: nowrap; }
.qside summary .label { text-align: right; }
.slogo-tag { font-style: normal; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--yellow); border-radius: 8px; padding: 2px 8px; margin-left: 2px; vertical-align: 3px; }
.slogo, .sright .btn { white-space: nowrap; }
@media (max-width: 740px) { .slogo { font-size: 17px; gap: 8px; } .slogo-mark { width: 34px; height: 34px; font-size: 16px; } .slogo-tag { font-size: 11px; padding: 1px 6px; } .sbar-in { gap: 10px; } .sright .btn.small { padding: 9px 14px; } }
@media (max-width: 350px) { .slogo-tag { display: none; } }
.adminbtn { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; font-size: 14px; font-weight: 700; color: #fff; background: var(--navy); border-radius: 14px; padding: 10px 16px; }
.adminbtn .ico { color: var(--yellow); }
.adminbtn:hover { background: #1D3178; }
@media (max-width: 740px) { .adminbtn { padding: 10px; border-radius: 12px; } .adminbtn span { display: none; } }

/* ---------- แจ้งปัญหา ---------- */
.qreport { margin-left: auto; border: 0; background: var(--sky); color: var(--royal-ink); font: inherit; font-size: 13px; font-weight: 700; border-radius: 99px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.qreport:hover { background: #DCE7FF; }
.rp-bg .modal { max-width: 440px; border-radius: 22px; padding: 22px 22px 20px; }
.rp { --red: var(--royal); --red-bg: var(--sky); }
.rp-head { display: flex; justify-content: space-between; align-items: center; }
.rp-head h2 { margin: 0; color: var(--navy); font-size: 18px; font-weight: 800; }
.rp-x { border: 0; background: none; font-size: 18px; color: #555; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; }
.rp-x:hover { background: #F2F2F2; }
.rp-sub { margin: 6px 0 4px; font-size: 13px; color: #6B6B6B; padding-bottom: 12px; border-bottom: 1px solid #EEE; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-label { display: block; font-size: 13px; font-weight: 700; color: #444; margin: 14px 0 8px; }
.rp-label span { font-weight: 500; color: #888; }
.rp-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rp-cats button { border: 1.5px solid #E5E5E5; background: #fff; border-radius: 12px; padding: 10px; font: inherit; font-weight: 700; color: #222; cursor: pointer; }
.rp-cats button.on { border-color: var(--red); background: var(--red-bg); color: var(--red); }
.rp-cats button:disabled { opacity: .4; cursor: not-allowed; }
.rp-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-kinds button { border: 1.5px solid #E5E5E5; background: #fff; border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; color: #333; cursor: pointer; }
.rp-kinds button:hover { border-color: #B9CBF5; }
.rp-kinds button.on { border-color: var(--red); background: var(--red-bg); color: var(--red); }
.rp-text { width: 100%; min-height: 72px; border: 1.5px solid #E5E5E5; background: #F6F6F6; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; }
.rp-text:focus { outline: none; border-color: var(--red); background: #fff; }
.rp-files { display: flex; gap: 10px; flex-wrap: wrap; }
.rp-add, .rp-thumb { width: 58px; height: 58px; border-radius: 12px; flex: none; }
.rp-add { border: 1.5px dashed #CFCFCF; display: grid; place-content: center; text-align: center; font-size: 11px; font-weight: 600; color: #555; cursor: pointer; line-height: 1.1; }
.rp-add b { font-size: 20px; line-height: 1; }
.rp-add:hover { border-color: var(--red); color: var(--red); }
.rp-thumb { position: relative; }
.rp-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid #E5E5E5; }
.rp-thumb button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #222; color: #fff; font-size: 10px; cursor: pointer; }
.rp-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
body.student .btn.rp-send { background: var(--royal); }
body.student .btn.rp-send:hover { background: var(--royal-ink); }

/* ---------- กรอกโค้ด Premium ---------- */
.redeem { margin-top: 14px; }
.redeem label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.rd-row { display: flex; gap: 8px; margin-top: 6px; }
.rd-row input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; font: 600 15px/1.2 ui-monospace, Menlo, monospace; letter-spacing: 1px; text-transform: uppercase; background: #fff; color: var(--ink); }
.rd-row input:focus { outline: none; border-color: var(--royal); }
.unlock .rd-row input, .vip .rd-row input { border-color: transparent; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 16px 0 6px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
