/* ================= Base & Modern Styles ================= */
* { box-sizing: border-box; font-family: 'Thasadith', sans-serif !important; }
:root {
    --bg: #f8fafc; --fg: #0f172a; --card: rgba(255, 255, 255, 0.85);
    --pr: #4f46e5; --pr-hover: #4338ca; --mut: #64748b;
    --bd: rgba(226, 232, 240, 0.8); --ok: #10b981; --no: #ef4444;
}
@media(prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0f172a; --fg: #f1f5f9; --card: rgba(30, 41, 59, 0.85); 
        --mut: #94a3b8; --bd: rgba(51, 65, 85, 0.8); --pr: #6366f1; --pr-hover: #818cf8;
    }
}
:root[data-theme="dark"] {
    --bg: #0f172a; --fg: #f1f5f9; --card: rgba(30, 41, 59, 0.85);
    --mut: #94a3b8; --bd: rgba(51, 65, 85, 0.8); --pr: #6366f1; --pr-hover: #818cf8;
}
html, body { margin: 0; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-size: 18px; line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, b, strong { font-weight: 700 !important; }

/* Animated Gradient Background */
.bl { position: fixed; width: 50vmax; height: 50vmax; border-radius: 50%; filter: blur(80px); opacity: 0.25; z-index: -1; pointer-events: none; will-change: transform; animation: dr 20s ease-in-out infinite alternate; }
.b1 { background: #4f46e5; left: -10vmax; top: -10vmax; }
.b2 { background: #ec4899; right: -15vmax; bottom: -10vmax; animation-delay: -5s; }
.b3 { background: #0ea5e9; width: 40vmax; height: 40vmax; left: 30%; top: 20%; opacity: 0.15; animation-delay: -10s; }
@keyframes dr { to { transform: translate(10vmax, 8vmax) scale(1.1); } }

/* Layout & Navbar */
.w { max-width: 1000px; margin: auto; padding: 24px 16px; min-height: 80vh; }
nav { position: sticky; top: 0; z-index: 50; display: flex; gap: 10px; align-items: center; padding: 12px 24px; background: var(--card); backdrop-filter: blur(16px); border-bottom: 1px solid var(--bd); box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
nav b { font-size: 26px; font-weight: 700; cursor: pointer; background: linear-gradient(90deg, #4f46e5, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; margin-right: auto; }
nav em { font-style: normal; font-weight: 700; background: var(--bg); padding: 6px 14px; border-radius: 99px; border: 1px solid var(--bd); cursor: pointer; transition: 0.2s; }
nav em:hover { border-color: var(--pr); transform: scale(1.05); }

/* Buttons */
button, .btn { font-size: 18px; font-weight: 700; border: 1px solid var(--bd); background: var(--card); color: var(--fg); padding: 8px 16px; border-radius: 12px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
button:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.06); }
button:active { transform: scale(0.96); }
button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.p-btn { background: linear-gradient(135deg, #4f46e5, #ec4899); color: #fff; border: none; font-weight: 700; }
.p-btn:hover:not(:disabled) { background: linear-gradient(135deg, #4338ca, #db2777); box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25); }
.lang-btn { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--bd); background: var(--card); font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; margin-left: 4px; }

/* Glassmorphism Cards */
.c { background: var(--card); border: 1px solid var(--bd); border-radius: 20px; padding: 24px; margin: 12px 0; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.c:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); border-color: rgba(79, 70, 229, 0.3); }

/* Grid & Flex */
.g { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.subj-flex { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 900px; margin: 0 auto; }
.subj-flex > .c { flex: 1 1 250px; max-width: 280px; margin: 0; text-align: left; }

/* Form Elements */
input, select { padding: 10px 14px; border: 1px solid var(--bd); border-radius: 10px; background: var(--bg); color: var(--fg); transition: all 0.2s; width: 100%; font-size: 18px; }
input:focus, select:focus { outline: none; border-color: var(--pr); box-shadow: 0 0 0 4px rgba(79,70,229,0.15); }

/* Scroll Animation */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Landing Page */
.hero { text-align: center; padding: 60px 16px 40px; position: relative; }
.hero h1 { font-size: clamp(40px, 8vw, 70px); margin: 0 0 16px 0; line-height: 1.2; background: linear-gradient(90deg, #4f46e5, #ec4899, #f59e0b, #4f46e5); background-size: 300%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sh 8s linear infinite; }
@keyframes sh { to { background-position: 300%; } }
.hero p.lead { font-size: 24px; color: var(--mut); max-width: 600px; margin: 0 auto 32px; font-weight: 400; }
.hero-btns { display: flex; gap: 16px; justify-content: center; margin-bottom: 30px; }
.fl { position: absolute; font-size: 40px; opacity: 0.8; animation: fl 6s ease-in-out infinite; pointer-events: none; }
@keyframes fl { 50% { transform: translateY(-20px) rotate(10deg) scale(1.1); } }

/* Features */
.features { text-align: center; padding: 60px 0; }
.features h2 { font-size: 36px; margin-bottom: 40px; }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.ft-card { background: var(--card); padding: 30px 20px; border-radius: 24px; border: 1px solid var(--bd); transition: 0.3s; }
.ft-card:hover { transform: translateY(-8px); border-color: var(--pr); box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1); }
.ft-icon { font-size: 48px; margin-bottom: 16px; display: inline-block; }

/* Marquee */
.mq { overflow: hidden; margin: 20px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mt { display: flex; width: max-content; animation: mq 30s linear infinite; gap: 16px; }
.mt.rv { animation-direction: reverse; animation-duration: 35s; }
@keyframes mq { to { transform: translateX(calc(-50% - 8px)); } }
.ch { padding: 10px 24px; border-radius: 99px; background: var(--card); border: 1px solid var(--bd); white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }

/* Auth UX/UI */
.auth-wrapper { display: flex; justify-content: center; padding: 40px 0; }
.auth-container { background-color: var(--card); border-radius: 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05); width: 100%; max-width: 420px; padding: 40px 32px; border: 1px solid var(--bd); backdrop-filter: blur(16px); }
.auth-container h2 { font-size: 32px; text-align: center; margin-bottom: 8px; }
.auth-container .subtitle { font-size: 18px; color: var(--mut); text-align: center; margin-bottom: 30px; }
.auth-container label { display: block; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.social-login { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.btn-social { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 14px; background: var(--bg); border: 1px solid var(--bd); color: var(--fg); border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s; width: 100%; }
.btn-social:hover { background: var(--card); border-color: var(--pr); box-shadow: 0 4px 10px rgba(0,0,0,0.05); transform: translateY(-2px); }
.hidden { display: none !important; }

/* Questions & Progress */
.o { display: block; width: 100%; text-align: left; margin: 8px 0; padding: 12px 16px; border-radius: 12px; font-weight: 400;}
.o:hover { transform: translateX(5px); border-color: var(--pr); }
.o.on { background: linear-gradient(135deg, var(--pr), #8b5cf6); color: #fff; border-color: transparent; font-weight: 700; }
.pb { position: sticky; top: 70px; z-index: 10; height: 10px; background: var(--bd); border-radius: 99px; overflow: hidden; margin: 16px 0 24px; }
.pb i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4f46e5, #ec4899, #f59e0b); transition: width 0.6s cubic-bezier(0.2,0.8,0.2,1); border-radius: 99px; }

/* Footer */
footer { text-align: center; padding: 40px 16px; margin-top: 40px; border-top: 1px solid var(--bd); color: var(--mut); font-size: 16px; }

/* ===== Popup (แทนหน้าต่างของระบบปฏิบัติการ) ===== */
.ui-ov { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,23,42,.55); backdrop-filter: blur(4px); animation: uifade .2s; }
.ui-box { background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: 24px; padding: 28px 24px 20px; max-width: 420px; width: 100%; box-shadow: 0 30px 60px rgba(0,0,0,.25); text-align: center; animation: uipop .25s cubic-bezier(.2,.9,.3,1.2); }
.ui-ic { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.ui-msg { font-size: 20px; white-space: pre-line; margin-bottom: 22px; word-break: break-word; }
.ui-btns { display: flex; gap: 10px; }
.ui-btns button { flex: 1; padding: 12px; font-size: 18px; }

/* ===== Announcement Banner Modal ===== */
.bn-ov { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,23,42,.65); backdrop-filter: blur(6px); animation: uifade .3s; }
.bn-card { background: var(--card); border: 1px solid var(--bd); border-radius: 24px; width: 100%; max-width: 500px; padding: 24px; position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.3); animation: uipop .3s cubic-bezier(.2,.9,.3,1.2); text-align: center; }
.bn-close { position: absolute; top: 16px; right: 16px; background: var(--bg); border: 1px solid var(--bd); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: 0.2s; }
.bn-close:hover { background: var(--no); color: #fff; border-color: transparent; }
.bn-img { width: 100%; max-height: 380px; object-fit: contain; border-radius: 12px; margin-bottom: 20px; border: 1px solid var(--bd); background: #000; }
.bn-actions { display: flex; flex-direction: column; gap: 10px; }
.q-img { max-width: 100%; max-height: 250px; border-radius: 8px; margin-top: 8px; display: block; border: 1px solid var(--bd); }

/* ===== Image Viewer (Lightbox) ===== */
.iv-ov { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); animation: uifade 0.2s ease-out; cursor: zoom-out; }
.iv-img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); animation: uipop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2); cursor: default; }
.iv-close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.2); color: #fff; border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 24px; cursor: pointer; transition: 0.2s; display:flex; align-items:center; justify-content:center; }
.iv-close:hover { background: rgba(255,255,255,0.4); transform: scale(1.1); }
.clickable-img { cursor: zoom-in; transition: transform 0.2s; pointer-events: auto !important; }
.clickable-img:hover { transform: scale(1.02); }

/* ===== PDPA ===== */
.pdpa-box { max-height: 190px; overflow-y: auto; border: 1px solid var(--bd); border-radius: 12px; padding: 12px 14px; background: var(--bg); font-size: 15px; line-height: 1.55; margin-bottom: 12px; text-align: left; }
.pdpa-box h4 { margin: 0 0 6px; font-size: 17px; }
.pdpa-box ol { margin: 0; padding-left: 20px; }
.pdpa-box li { margin-bottom: 6px; }
.pdpa-chk { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 16px; line-height: 1.5; margin-bottom: 18px; text-align: left; }
.pdpa-chk input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: #4f46e5; }

/* ===== Landing page (ใหม่) ===== */
.lp-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 56px 0 40px; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 99px; background: rgba(79,70,229,.10); color: var(--pr); font-weight: 700; font-size: 16px; border: 1px solid rgba(79,70,229,.25); margin-bottom: 18px; }
.lp-title { font-size: clamp(38px, 6vw, 62px); line-height: 1.15; margin: 0 0 16px; }
.lp-title span { background: linear-gradient(90deg, #4f46e5, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: 22px; color: var(--mut); margin: 0 0 28px; max-width: 560px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.lp-cta button { font-size: 21px; padding: 14px 32px; border-radius: 99px; }
.lp-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.lp-stat b { display: block; font-size: 34px; line-height: 1.1; }
.lp-stat span { color: var(--mut); font-size: 16px; }
.lp-mock { position: relative; background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--bd); border-radius: 28px; padding: 22px; box-shadow: 0 30px 60px rgba(79,70,229,.15); }
.lp-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.lp-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--bd); display: block; }
.lp-mock .bar { height: 8px; border-radius: 99px; background: var(--bd); overflow: hidden; margin-bottom: 8px; }
.lp-mock .bar i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, #4f46e5, #ec4899, #f59e0b); border-radius: 99px; }
.lp-mock .cap { color: var(--mut); font-size: 15px; margin-bottom: 14px; }
.lp-mock .q { font-size: 21px; font-weight: 700; margin-bottom: 14px; }
.lp-opt { display: block; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--bd); margin-bottom: 8px; background: var(--bg); font-size: 18px; }
.lp-opt.on { background: linear-gradient(135deg, var(--pr), #8b5cf6); color: #fff; border-color: transparent; font-weight: 700; }
.lp-float { position: absolute; padding: 8px 16px; border-radius: 99px; background: var(--card); border: 1px solid var(--bd); font-weight: 700; font-size: 16px; box-shadow: 0 12px 28px rgba(0,0,0,.12); backdrop-filter: blur(10px); animation: fl 6s ease-in-out infinite; }
.lp-float.f1 { right: -10px; top: -16px; color: var(--ok); }
.lp-float.f2 { left: -10px; bottom: -16px; animation-delay: -3s; }
.lp-sec { padding: 52px 0 12px; }
.lp-h2 { font-size: clamp(28px, 4vw, 38px); text-align: center; margin: 0 0 10px; }
.lp-sub { text-align: center; color: var(--mut); max-width: 660px; margin: 0 auto 32px; font-size: 20px; }
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; counter-reset: st; }
.lp-step { position: relative; background: var(--card); border: 1px solid var(--bd); border-radius: 22px; padding: 28px 22px 22px; }
.lp-step::before { counter-increment: st; content: counter(st); position: absolute; top: -18px; left: 20px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; color: #fff; background: linear-gradient(135deg, #4f46e5, #ec4899); box-shadow: 0 8px 18px rgba(79,70,229,.3); }
.lp-step h3 { margin: 6px 0 6px; font-size: 22px; }
.lp-step p { margin: 0; color: var(--mut); font-size: 17px; }
.lp-feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.lp-feat > div { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--bd); border-radius: 20px; padding: 20px; transition: .3s; }
.lp-feat > div:hover { transform: translateY(-4px); border-color: var(--pr); box-shadow: 0 16px 32px rgba(79,70,229,.10); }
.lp-feat .ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: rgba(79,70,229,.10); }
.lp-feat h3 { margin: 0 0 2px; font-size: 20px; }
.lp-feat p { margin: 0; color: var(--mut); font-size: 16px; }
.lp-subj { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 900px; margin: 0 auto; }
.lp-subj .c { margin: 0; cursor: pointer; flex: 0 1 calc((100% - 32px) / 3); min-width: 230px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 26px 18px; }
.lp-subj .ti { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 34px; background: linear-gradient(135deg, rgba(79,70,229,.15), rgba(236,72,153,.15)); }
.lp-final { margin: 56px 0 8px; text-align: center; padding: 48px 24px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed 55%, #ec4899); box-shadow: 0 30px 60px rgba(79,70,229,.25); }
.lp-final h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; }
.lp-final p { margin: 0 0 22px; font-size: 20px; opacity: .92; }
.lp-final button { background: #fff; color: #4f46e5; border: none; font-size: 22px; padding: 14px 40px; border-radius: 99px; }
@media (max-width: 860px) {
    .lp-hero { grid-template-columns: 1fr; text-align: center; padding-top: 32px; }
    .lp-lead { margin-left: auto; margin-right: auto; }
    .lp-cta, .lp-stats { justify-content: center; }
    .lp-mock { text-align: left; max-width: 460px; margin: 0 auto; }
    .lp-float.f1 { right: 4px; } .lp-float.f2 { left: 4px; }
}

/* ===== Slide viewer (รูปภาพ) ===== */
.sl-box { position: relative; width: 100%; min-height: 240px; background: #fff; border-radius: 12px; border: 1px solid var(--bd); overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.sl-img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; background: #fff; }
.sl-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 8px; }
.sl-btn { min-width: 120px; min-height: 52px; padding: 10px 18px; font-size: 20px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sl-err { padding: 40px 16px; text-align: center; color: var(--mut); }
#sl_range { padding: 0; accent-color: #4f46e5; }

@keyframes uifade { from { opacity: 0; } }
@keyframes uipop { from { opacity: 0; transform: scale(.9); } }

/* ===== Footer ===== */
.ft-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--bd); font-size: 15px; text-align: left; }
.ft-row a { color: var(--mut); text-decoration: none; }
.ft-row a:hover { color: var(--pr); text-decoration: underline; }

/* ===== Loading Animation ===== */
@keyframes loading-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }
.loading-bar-bg { width: 100%; height: 8px; background: var(--bd); border-radius: 99px; overflow: hidden; position: relative; max-width: 300px; margin: 0 auto; }
.loading-bar-slider { position: absolute; top: 0; left: 0; height: 100%; width: 50%; background: linear-gradient(90deg, transparent, var(--pr), transparent); animation: loading-slide 1.5s infinite linear; }
/* ===== ประสิทธิภาพ: มือถือ/แท็บเล็ตและผู้ที่ปิดแอนิเมชัน ไม่ต้องเคลื่อนไหวพื้นหลัง ===== */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
    .bl { animation: none; filter: blur(60px); }
    .mt { animation: none; }
}

/* ===== สถิติการเรียน ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat-tile { background: var(--bg); border: 1px solid var(--bd); border-radius: 16px; padding: 14px 10px; text-align: center; }
.stat-tile b { display: block; font-size: 30px; line-height: 1.2; }
.stat-tile span { color: var(--mut); font-size: 15px; }
.stat-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 17px; }
.stat-row > span { flex: 0 0 150px; }
.stat-row > b { flex: 0 0 48px; text-align: right; }
.stat-bar { flex: 1; height: 10px; border-radius: 99px; background: var(--bd); overflow: hidden; }
.stat-bar i { display: block; height: 100%; border-radius: 99px; }
@media (max-width: 480px) { .stat-row > span { flex-basis: 110px; } }

/* ===== สถิติ: ซ้าย 75% / แผนผังแมงมุมขวา 25% ===== */
.stats-split { display: grid; grid-template-columns: 3fr 1fr; gap: 24px; align-items: start; }
.stats-radar { background: var(--bg); border: 1px solid var(--bd); border-radius: 18px; padding: 12px 8px; }
.radar { display: block; width: 100%; height: auto; max-width: 260px; margin: 0 auto; }
.rd-ring { fill: none; stroke: var(--bd); stroke-width: 1; }
.rd-axis { stroke: var(--bd); stroke-width: 1; }
.rd-area { fill: rgba(79,70,229,.28); stroke: #4f46e5; stroke-width: 2; stroke-linejoin: round; }
.rd-dot { fill: #ec4899; }
.rd-lab { font-size: 17px; }
.rd-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; font-size: 14px; color: var(--mut); margin-top: 6px; }
@media (max-width: 760px) { .stats-split { grid-template-columns: 1fr; } .stats-radar { max-width: 320px; margin: 0 auto; width: 100%; } }
.lv-box { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--bd); }
.lv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 18px; }
.lv-top span { color: var(--mut); font-size: 15px; }
.lv-sub { color: var(--mut); font-size: 14px; margin-top: 6px; }
.bdgs { display: flex; flex-wrap: wrap; gap: 8px; }
.bdg { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--pr); background: rgba(79,70,229,.08); font-size: 15px; font-weight: 700; }
.bdg.off { opacity: .4; filter: grayscale(1); border-color: var(--bd); background: var(--bg); font-weight: 400; }

/* ===== วงโคจรจุดเด่น ===== */
.orb { position: relative; width: 100%; max-width: 720px; height: 470px; margin: 0 auto; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 28px; }
.orb-ring { position: absolute; border: 1px dashed var(--bd); border-radius: 50%; }
.orb-core { position: absolute; z-index: 10; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #4f46e5, #ec4899, #f59e0b); display: flex; align-items: center; justify-content: center; animation: orbPulse 2.4s ease-in-out infinite; }
.orb-core::before, .orb-core::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(79,70,229,.35); animation: orbPing 2.4s cubic-bezier(0,0,.2,1) infinite; }
.orb-core::before { width: 84px; height: 84px; }
.orb-core::after { width: 104px; height: 104px; animation-delay: .8s; }
.orb-core span { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.88); }
.orb-node, .orb-node:hover, .orb-node:active { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; padding: 0; border: none; border-radius: 50%; background: none; box-shadow: none; cursor: pointer; transition: transform .7s cubic-bezier(.4,0,.2,1), opacity .7s; }
.orb-dot { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 24px; border-radius: 50%; background: var(--card); border: 2px solid var(--bd); box-shadow: 0 6px 16px rgba(0,0,0,.08); transition: all .3s; }
.orb-node:hover .orb-dot { border-color: var(--pr); }
.orb-node.on .orb-dot { background: linear-gradient(135deg, #4f46e5, #ec4899); border-color: transparent; transform: scale(1.3); box-shadow: 0 10px 24px rgba(79,70,229,.4); }
.orb-node.rel .orb-dot { border-color: var(--pr); animation: orbPulse 1.6s ease-in-out infinite; }
.orb-lab { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 14px; font-weight: 700; color: var(--fg); background: var(--card); border: 1px solid var(--bd); padding: 1px 10px; border-radius: 99px; }
.orb-card { max-width: 600px; margin: 14px auto 0; min-height: 110px; background: var(--card); border: 1px solid var(--bd); border-radius: 20px; padding: 18px 20px; text-align: left; }
@keyframes orbPulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
@keyframes orbPing { 75%, 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 600px) {
    .orb { height: 400px; }
    .orb-lab { display: none; }
    .orb-node.on .orb-lab { display: block; top: 62px; }
}
@media (prefers-reduced-motion: reduce) { .orb-core, .orb-core::before, .orb-core::after, .orb-node.rel .orb-dot { animation: none; } }
