/* ═══ หน้าบอทป้องกันกลุ่ม (/guard.php) — prefix gd- ══════════════════════════
   เรดาร์โฮโลแกรม · ห้องจำลองเล่นสถานการณ์ · สวิตช์ล็อกคุมบอทจริง · บันทึกเหตุการณ์ · เทอร์มินัลคำสั่ง
   ══════════════════════════════════════════════════════════════════════ */
.gd [hidden] { display: none !important; }
.gd { --gd-out: cubic-bezier(.22, 1, .36, 1); --gd-bad: #fb7185; --gd-warn: #fbbf24; overflow-x: clip; }
.gd-sec { padding-top: 52px; padding-bottom: 52px; }
.gd-note { color: var(--muted); font-size: .8rem; text-align: center; margin: 14px 0 0; }

/* hero */
.gd-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; padding-top: 52px; padding-bottom: 20px; }
.gd-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.18; margin: 0 0 14px; }
.gd-lead { color: var(--muted); font-size: 1.04rem; max-width: 580px; margin: 0 0 22px; }
.gd-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.gd-status { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 16px 10px 12px; border-radius: 16px; background: rgba(10, 24, 19, .7); border: 1px solid var(--border); }
.gd-status div { display: grid; } .gd-status small { color: var(--muted); font-size: .76rem; } .gd-status small b { color: #fff; font-weight: 600; }
.gd-beat { position: relative; width: 26px; height: 26px; flex: none; border-radius: 50%; background: #475569; }
.gd-beat.on { background: radial-gradient(circle, #b6f09c 0 35%, #21a040 36%); box-shadow: 0 0 14px rgba(102, 221, 79, .7); }
.gd-beat i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(182, 240, 156, .6); opacity: 0; }
.gd-beat.on i { animation: gd-ping 2s ease-out infinite; } .gd-beat.on i + i { animation-delay: 1s; }
@keyframes gd-ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }

.gd-radar { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; justify-self: center; border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 160, 64, .18), rgba(4, 11, 9, .2) 70%); box-shadow: inset 0 0 60px rgba(33, 160, 64, .25), 0 0 60px rgba(33, 160, 64, .15); overflow: hidden; }
.gd-radar-ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgba(182, 240, 156, .2); }
.gd-radar-ring.r1 { width: 100%; height: 100%; } .gd-radar-ring.r2 { width: 66%; height: 66%; } .gd-radar-ring.r3 { width: 33%; height: 33%; }
.gd-radar::before, .gd-radar::after { content: ""; position: absolute; background: rgba(182, 240, 156, .14); }
.gd-radar::before { left: 50%; top: 0; bottom: 0; width: 1px; } .gd-radar::after { top: 50%; left: 0; right: 0; height: 1px; }
.gd-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(102, 221, 79, .55), rgba(102, 221, 79, 0) 70deg, transparent 360deg); animation: gd-sweep 4s linear infinite; }
@keyframes gd-sweep { to { transform: rotate(360deg); } }
.gd-dot, .gd-threat { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; transform: rotate(var(--a)) translateY(calc(-1 * var(--r) * 4.2)) ; }
.gd-dot { background: #b6f09c; box-shadow: 0 0 10px #66dd4f; animation: gd-blip 4s linear infinite; animation-delay: var(--d); }
.gd-threat { width: 12px; height: 12px; margin: -6px; background: var(--gd-bad); box-shadow: 0 0 14px var(--gd-bad); animation: gd-threat 4s ease-in-out infinite; }
@keyframes gd-blip { 0%, 100% { opacity: .35; } 10% { opacity: 1; } }
@keyframes gd-threat { 0%, 55% { opacity: 1; transform: rotate(var(--a)) translateY(calc(-1 * var(--r) * 4.2)) scale(1); } 60% { transform: rotate(var(--a)) translateY(calc(-1 * var(--r) * 4.2)) scale(1.8); opacity: 1; } 75%, 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--r) * 4.2)) scale(.2); } }
.gd-core { position: absolute; inset: 0; margin: auto; width: 26%; height: 26%; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 2px;
  background: radial-gradient(circle at 35% 30%, #1f7a3d, #08251a); border: 2px solid rgba(182, 240, 156, .6); box-shadow: 0 0 30px rgba(102, 221, 79, .55); z-index: 2; }
.gd-core .ico { font-size: 1.9rem; color: #e6ffd9; } .gd-core b { font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; color: var(--accent); }

/* สถานการณ์ */
.gd-scenes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.gd-scenes button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--border); background: rgba(10, 24, 19, .6); color: var(--muted); font-size: .88rem; transition: .25s var(--gd-out); }
.gd-scenes button:hover { border-color: var(--border-hi); color: #fff; }
.gd-scenes button.on { color: #fff; border-color: var(--accent); background: linear-gradient(120deg, rgba(33, 160, 64, .35), rgba(33, 160, 64, .08)); box-shadow: 0 0 18px rgba(102, 221, 79, .3); }
.gd-scenes .gd-auto { border-style: dashed; }
.gd-scenes .gd-auto.on { color: #ffe08a; border-color: rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .08); box-shadow: none; }

.gd-sim { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.gd-room { padding: 0; position: relative; display: flex; flex-direction: column; min-height: 560px; transition: box-shadow .4s; }
.gd-room > * { position: relative; z-index: 1; }
.gd-room.is-raid { box-shadow: 0 0 0 2px var(--gd-bad), 0 0 40px rgba(251, 113, 133, .35); }
.gd-room-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: rgba(4, 11, 9, .55); }
.gd-room-av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: rgba(33, 160, 64, .2); }
.gd-room-top div { flex: 1; min-width: 0; display: grid; }
.gd-room-top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.gd-room-top b.bad { color: var(--gd-bad); }
.gd-room-top small { color: var(--muted); font-size: .76rem; }
.gd-mode { color: var(--accent); font-weight: 600; } .is-raid .gd-mode { color: var(--gd-bad); animation: gd-blink 1s steps(2) infinite; }
@keyframes gd-blink { 50% { opacity: .3; } }
.gd-ms { font-family: var(--mono); font-size: .8rem; color: #ffe08a; padding: 5px 10px; border-radius: 10px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .3); white-space: nowrap; }
.gd-ms.flash { animation: gd-flash .8s var(--gd-out); }
@keyframes gd-flash { 30% { background: rgba(182, 240, 156, .35); color: #fff; transform: scale(1.08); } }
.gd-chat { flex: 1; min-height: 320px; padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; background: linear-gradient(180deg, #8aa6c9, #7c98bb); }
.gd-line { display: flex; gap: 8px; animation: gd-in .35s var(--gd-out); }
@keyframes gd-in { from { opacity: 0; transform: translateY(8px); } }
.gd-sys { justify-content: center; }
.gd-sys span { font-size: .78rem; color: #10231a; background: rgba(255, 255, 255, .72); padding: 4px 12px; border-radius: 99px; text-align: center; }
.gd-sys b.bad { color: #be123c; } .gd-sys b.ok { color: #15803d; }
.gd-av { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: #fff; font-size: 1rem; }
.gd-line > div { display: grid; gap: 2px; max-width: 82%; }
.gd-line small { font-size: .7rem; color: rgba(255, 255, 255, .9); }
.gd-line p { margin: 0; padding: 8px 12px; border-radius: 4px 16px 16px 16px; background: #fff; color: #10231a; font-size: .86rem; line-height: 1.45; }
.gd-bot p { background: linear-gradient(135deg, #ecfdf3, #fff); box-shadow: 0 0 0 1px rgba(33, 160, 64, .35); }
.gd-members { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-top: 1px solid var(--border); background: rgba(4, 11, 9, .6); min-height: 74px; align-content: flex-start; }
.gd-mem { display: grid; justify-items: center; gap: 1px; width: 52px; transition: transform .4s var(--gd-out), opacity .4s; }
.gd-mem i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: rgba(255, 255, 255, .08); border: 1px solid var(--border); }
.gd-mem small { font-size: .58rem; color: var(--muted); max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-bot i, .gd-bot2 i { border-color: var(--accent); box-shadow: 0 0 10px rgba(102, 221, 79, .55); background: rgba(33, 160, 64, .25); }
.gd-bot2 i { opacity: .7; }
.gd-admin i { border-color: #fbbf24; }
.gd-troll i { border-color: var(--gd-bad); background: rgba(251, 113, 133, .2); box-shadow: 0 0 12px rgba(251, 113, 133, .6); animation: gd-shake .3s linear infinite; }
@keyframes gd-shake { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
.gd-mem.out { transform: translateY(-14px) scale(.5); opacity: 0; }
.gd-mem.pop { animation: gd-pop .6s var(--gd-out); }
@keyframes gd-pop { from { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.15); } }
.gd-toast { position: absolute; left: 14px; right: 14px; top: 64px; z-index: 5; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(7, 20, 15, .95); border: 1px solid rgba(42, 171, 238, .5); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); animation: gd-in .4s var(--gd-out); transition: opacity .5s, transform .5s; }
.gd-toast .ico { color: var(--tg); font-size: 1.4rem; } .gd-toast div { display: grid; } .gd-toast small { color: var(--muted); font-size: .76rem; }
.gd-toast.out { opacity: 0; transform: translateY(-8px); }

/* ฝั่งขวา */
.gd-side { display: grid; gap: 14px; }
.gd-card { padding: 16px; }
.gd-card > * { position: relative; z-index: 1; }
.gd-card h4 { margin: 0 0 12px; font-size: .95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gd-card h4 small { color: var(--muted); font-weight: 400; font-size: .74rem; margin-left: auto; }
.gd-penalty { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: .82rem; color: var(--muted); }
.gd-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); }
.gd-seg button { border: 0; background: none; color: var(--muted); padding: 5px 10px; border-radius: 8px; font-size: .78rem; }
.gd-seg button.on { background: var(--accent); color: #04140b; font-weight: 700; }
.gd-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-height: 150px; align-content: start; }
.gd-log li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: .8rem; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); border-left: 3px solid var(--accent); }
.gd-log li.new { animation: gd-in .4s var(--gd-out); }
.gd-log li.bad { border-left-color: var(--gd-bad); } .gd-log li.warn { border-left-color: var(--gd-warn); } .gd-log li.muted { border-left-color: #475569; opacity: .8; }
.gd-log time { font-family: var(--mono); font-size: .66rem; color: var(--dim); }
.gd-tally { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.gd-tally span { display: grid; justify-items: center; padding: 8px 4px; border-radius: 10px; background: rgba(33, 160, 64, .08); font-size: .68rem; color: var(--muted); text-align: center; }
.gd-tally b { font-family: var(--mono); font-size: 1.2rem; color: var(--accent); }
.gd-tally b.bump { animation: gd-bump .5s var(--gd-out); }
@keyframes gd-bump { 40% { transform: scale(1.4); color: #fff; } }

/* ความสามารถ */
.gd-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gd-feat { padding: 18px; transition: transform .3s var(--gd-out), border-color .3s; }
.gd-feat:hover { transform: translateY(-4px); border-color: var(--border-hi); }
.gd-feat > * { position: relative; z-index: 1; }
.gd-feat h3 { margin: 12px 0 6px; font-size: 1rem; } .gd-feat p { margin: 0; color: var(--muted); font-size: .86rem; }
.gd-fic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; font-size: 1.3rem; color: var(--accent); background: radial-gradient(circle at 30% 25%, rgba(182, 240, 156, .25), rgba(33, 160, 64, .12) 60%); border: 1px solid rgba(182, 240, 156, .25); }
.gd-feat:hover .gd-fic { box-shadow: 0 0 20px rgba(102, 221, 79, .5); }

/* คำสั่ง */
.gd-cmds { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.gd-cmds h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.gd-cmdlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.gd-cmdlist li { display: grid; gap: 1px; font-size: .8rem; color: var(--muted); }
.gd-cmdlist code { color: var(--accent); font-size: .86rem; }
.gd-term { padding: 0; }
.gd-term > * { position: relative; z-index: 1; }
.gd-term-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: .82rem; background: rgba(4, 11, 9, .6); }
.gd-term-top .dots { display: inline-flex; gap: 6px; } .gd-term-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: #fb7185; } .gd-term-top .dots i:nth-child(2) { background: #fbbf24; } .gd-term-top .dots i:nth-child(3) { background: #66dd4f; }
.gd-term-body { padding: 14px; min-height: 300px; display: grid; align-content: start; gap: 8px; font-size: .84rem; }
.gd-tl { display: grid; gap: 1px; animation: gd-in .35s var(--gd-out); }
.gd-tl b { font-size: .68rem; color: var(--muted); font-weight: 500; }
.gd-tl span { justify-self: start; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.gd-tl.me span { font-family: var(--mono); color: #ffe08a; background: rgba(251, 191, 36, .08); }
.gd-tl.me span::after { content: "▌"; margin-left: 2px; animation: gd-blink 1s steps(2) infinite; color: #ffe08a; }
.gd-tl.me:not(:nth-last-child(-n+2)) span::after { content: none; }
.gd-tl.bot span { background: rgba(33, 160, 64, .14); border: 1px solid rgba(182, 240, 156, .25); }

/* เช่า */
.gd-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; position: relative; }
.gd-flow::before { content: ""; position: absolute; top: 22px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent, rgba(102, 221, 79, .5), transparent); }
.gd-flow li { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 0 6px; }
.gd-flow b { font-size: .95rem; } .gd-flow small { color: var(--muted); font-size: .82rem; }

/* สถิติจริง + ตรงไปตรงมา */
.gd-real { padding: 18px; margin-bottom: 16px; }
.gd-real > * { position: relative; z-index: 1; }
.gd-real h4 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.gd-real-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gd-real-grid div { display: grid; justify-items: center; padding: 12px; border-radius: 12px; background: rgba(33, 160, 64, .08); }
.gd-real-grid b { font-family: var(--mono); font-size: 1.7rem; color: var(--accent); } .gd-real-grid span { font-size: .78rem; color: var(--muted); }
.gd-honest { max-width: 860px; margin: 0 auto; padding: 20px 24px; border-radius: 18px; border: 1px dashed var(--border-hi); background: rgba(33, 160, 64, .06); }
.gd-honest h3 { margin: 0 0 8px; } .gd-honest ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); font-size: .9rem; }

/* ═══ รุ่น 2 (2026-10-28) ═══ */
/* พื้นหลังเคลื่อนไหว: ออโรร่า 3 ดวงลอยช้า ๆ หลังทุกส่วน */
.gd { position: relative; }
.gd > section { position: relative; z-index: 1; }
.gd-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.gd-bg i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(80px); opacity: .18; animation: gd-drift 26s ease-in-out infinite alternate; }
.gd-bg i:nth-child(1) { left: -12vmax; top: 2%; background: #21a040; }
.gd-bg i:nth-child(2) { right: -14vmax; top: 30%; background: #0ea5e9; animation-duration: 32s; animation-delay: -8s; opacity: .1; }
.gd-bg i:nth-child(3) { left: 20%; top: 62%; background: #66dd4f; animation-duration: 38s; animation-delay: -16s; opacity: .1; }
@keyframes gd-drift { to { transform: translate(6vmax, -5vmax) scale(1.15); } }

/* แถบตัวเลขสด */
.gd-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding-bottom: 8px; }
.gd-kpi { padding: 14px 14px 12px; display: grid; gap: 2px; }
.gd-kpi > * { position: relative; z-index: 1; }
.gd-kpi b { font-family: var(--mono); font-size: 1.7rem; line-height: 1.1; background: linear-gradient(180deg, #fff, #b6f09c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gd-kpi span { font-size: .82rem; } .gd-kpi small { font-size: .7rem; color: var(--muted); }
.gd-kic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: rgba(33, 160, 64, .16); border: 1px solid rgba(182, 240, 156, .22); margin-bottom: 6px; animation: gd-float 4s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
@keyframes gd-float { 50% { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(102, 221, 79, .35); } }

/* ปุ่มสถานการณ์: ไอคอนเด้งเมื่อเลือก */
.gd-sic { display: inline-block; }
.gd-scenes button.on .gd-sic { animation: gd-pop .6s var(--gd-out); }

/* ประกาศปักหมุด */
.gd-pinbar { padding: 7px 14px; font-size: .78rem; color: #10231a; background: #fef9c3; border-bottom: 1px solid rgba(0, 0, 0, .08); transition: opacity .4s, transform .4s; }
.gd-pinbar.gone { opacity: 0; transform: translateY(-6px); height: 0; padding: 0 14px; overflow: hidden; }
.gd-pinbar.back { animation: gd-flash .9s var(--gd-out); }
.gd-stk { font-size: 1.6rem; }
.gd-line.gd-gone p { text-decoration: line-through; opacity: .45; }

/* ชิปล็อก 18 ตัว */
.gd-lgrp { margin: 10px 0 6px; font-size: .7rem; letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
.gd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: 99px; border: 1px solid var(--border); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: .74rem; transition: .25s var(--gd-out); }
.gd-chip i { width: 8px; height: 8px; border-radius: 50%; background: #475569; transition: .25s; }
.gd-chip:hover { border-color: var(--border-hi); color: #fff; }
.gd-chip.on { color: #fff; border-color: rgba(102, 221, 79, .55); background: rgba(33, 160, 64, .18); }
.gd-chip.on i { background: #66dd4f; box-shadow: 0 0 8px #66dd4f; }
.gd-chip.forced { border-color: rgba(251, 113, 133, .6); background: rgba(251, 113, 133, .14); }
.gd-chip.forced i { background: var(--gd-bad); box-shadow: 0 0 8px var(--gd-bad); animation: gd-blink 1s steps(2) infinite; }
.gd-addons { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .72rem; color: var(--muted); }
.gd-addons span { padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .05); color: var(--text); }

/* ระบบดูแลตัวเอง */
.gd-heal { display: grid; grid-template-columns: 240px minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: stretch; }
.gd-heal-ring { position: relative; display: grid; place-items: center; padding: 18px; }
.gd-heal-ring > * { position: relative; z-index: 1; }
.gd-heal-ring svg, .gd-gauge svg { width: 180px; height: 180px; transform: rotate(-90deg); }
.gd-heal-ring circle, .gd-gauge circle { fill: none; stroke-width: 9; }
.gd-heal-ring .bg, .gd-gauge .bg { stroke: rgba(255, 255, 255, .07); }
.gd-heal-ring .fg, .gd-gauge .fg { stroke: #66dd4f; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(102, 221, 79, .7)); transition: stroke-dashoffset 1.2s var(--gd-out), stroke .4s; }
.gd-heal-ring .fg { stroke-dasharray: 327; stroke-dashoffset: 327; }
.gd-heal-ring > div, .gd-gauge > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gd-heal-ring b { font-family: var(--mono); font-size: 2.4rem; color: #fff; text-shadow: 0 0 18px rgba(102, 221, 79, .6); }
.gd-heal-ring span { font-size: .76rem; color: var(--muted); }
.gd-heal-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; }
.gd-heal-steps::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(180deg, rgba(102, 221, 79, .7), rgba(14, 165, 233, .4)); }
.gd-heal-steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; }
.gd-heal-steps li > span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; background: #0b1f16; border: 1px solid var(--border-hi); box-shadow: 0 0 14px rgba(33, 160, 64, .3); animation: gd-float 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s); }
.gd-heal-steps div { display: grid; } .gd-heal-steps small { color: var(--muted); font-size: .78rem; }
.gd-h24 { padding: 16px; display: grid; align-content: start; gap: 10px; }
.gd-h24 > * { position: relative; z-index: 1; }
.gd-h24 h4 { margin: 0; font-size: .9rem; display: flex; gap: 8px; flex-wrap: wrap; } .gd-h24 h4 small { margin-left: auto; color: var(--muted); font-weight: 400; }
.gd-bars { height: 120px; display: flex; align-items: flex-end; gap: 3px; padding: 6px 0; border-bottom: 1px solid var(--border); background: repeating-linear-gradient(0deg, transparent 0 29px, rgba(255, 255, 255, .04) 29px 30px); }
.gd-bars i { flex: 1; height: calc(var(--h) * 100%); min-height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #b6f09c, #21a040); box-shadow: 0 0 10px rgba(102, 221, 79, .4); transition: height .8s var(--gd-out); }
.gd-bars.empty i { background: rgba(102, 221, 79, .18); box-shadow: none; animation: gd-wave 2.4s ease-in-out infinite; animation-delay: calc(var(--n, 0) * .1s); }
.gd-bars.empty i:nth-child(odd) { animation-delay: -.6s; } .gd-bars.empty i:nth-child(3n) { animation-delay: -1.2s; }
@keyframes gd-wave { 50% { height: 14px; } }
.gd-quiet { margin: 0; font-size: .8rem; color: var(--muted); }

/* คู่มือ */
.gd-man { padding: 0; }
.gd-man > * { position: relative; z-index: 1; }
.gd-man-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px; border-bottom: 1px solid var(--border); background: rgba(4, 11, 9, .5); }
.gd-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-tabs button { display: inline-flex; gap: 6px; align-items: center; padding: 8px 13px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--muted); font-size: .86rem; transition: .2s; }
.gd-tabs button b { font-family: var(--mono); font-size: .72rem; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.gd-tabs button.on { color: #fff; border-color: var(--border-hi); background: linear-gradient(120deg, rgba(33, 160, 64, .3), rgba(33, 160, 64, .06)); }
.gd-tabs button.on b { background: var(--accent); color: #04140b; }
.gd-search { display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-width: min(320px, 100%); border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); color: var(--muted); }
.gd-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font: inherit; font-size: .88rem; }
.gd-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(102, 221, 79, .15); }
.gd-jump { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px; scrollbar-width: none; }
.gd-jump:empty { display: none; }
.gd-jump a { flex: none; padding: 5px 11px; border-radius: 99px; font-size: .76rem; color: var(--muted); border: 1px solid var(--border); white-space: nowrap; transition: .2s; }
.gd-jump a:hover { color: #fff; border-color: var(--accent); }
.gd-pane { padding: 4px 14px 18px; }
.gd-mnote { margin: 8px 0 12px; font-size: .8rem; color: var(--muted); padding: 10px 12px; border-radius: 12px; background: rgba(33, 160, 64, .07); border: 1px dashed rgba(182, 240, 156, .2); }
.gd-mnote code, .gd-how code, .gd-limits code { color: var(--accent); }
.gd-mcat { margin-top: 18px; scroll-margin-top: 90px; }
.gd-mcat h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.gd-mcat h3 small { font-family: var(--mono); font-size: .72rem; color: var(--muted); padding: 1px 8px; border-radius: 99px; border: 1px solid var(--border); }
.gd-mcat > p { margin: 0 0 10px; color: var(--muted); font-size: .82rem; }
.gd-mic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(33, 160, 64, .14); border: 1px solid rgba(182, 240, 156, .22); animation: gd-float 4.4s ease-in-out infinite; }
.gd-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.gd-mc { display: grid; align-content: start; gap: 6px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border); transition: transform .25s var(--gd-out), border-color .25s, background .25s; }
.gd-mc:hover { transform: translateY(-2px); border-color: var(--border-hi); background: rgba(33, 160, 64, .07); }
.gd-mc header { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.gd-mc kbd { font-family: var(--mono); font-size: .86rem; padding: 3px 9px; border-radius: 8px; background: #06140e; color: #b6f09c; border: 1px solid rgba(182, 240, 156, .35); box-shadow: 0 2px 0 rgba(182, 240, 156, .25); }
.gd-mc kbd.alt { color: var(--muted); font-size: .74rem; border-color: var(--border); box-shadow: none; }
.gd-copy { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: none; color: var(--muted); font-size: .9rem; transition: .2s; }
.gd-copy:hover { color: #fff; border-color: var(--accent); } .gd-copy.ok { color: #04140b; background: var(--accent); }
.gd-mc > b { font-size: .9rem; } .gd-mc > p { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.gd-mc > code { font-size: .74rem; color: #ffe08a; background: rgba(251, 191, 36, .07); padding: 5px 8px; border-radius: 8px; justify-self: start; }
.gd-mc.web header b { font-size: .92rem; }
.gd-wic { font-size: 1.1rem; }
.gd-mc p.u, .gd-mc p.h { display: grid; gap: 1px; } .gd-mc p i { font-style: normal; font-size: .68rem; color: var(--accent); letter-spacing: .04em; }
.gd-how-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.gd-how-grid article { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border); }
.gd-how-grid article.gd-raid { border-color: rgba(251, 113, 133, .35); background: rgba(251, 113, 133, .05); }
.gd-how-grid h3 { margin: 0 0 8px; font-size: 1rem; }
.gd-how-grid ul, .gd-how-grid ol { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: .84rem; color: var(--muted); }
.gd-how-grid b { color: var(--text); }
.gd-how .dim, .gd-limits .dim { opacity: .3; }
.gd-tools { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin-top: 14px; }
.gd-hs, .gd-adv { padding: 16px; }
.gd-hs > *, .gd-adv > * { position: relative; z-index: 1; }
.gd-hs h3, .gd-adv h3 { margin: 0 0 4px; font-size: 1rem; } .gd-hs > p.muted, .gd-adv > p.muted { margin: 0 0 12px; font-size: .8rem; }
.gd-hs-in { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; }
.gd-gauge { position: relative; width: 180px; height: 180px; }
.gd-gauge b { font-family: var(--mono); font-size: 2.6rem; color: #fff; }
.gd-gauge span { font-size: .82rem; color: var(--accent); }
.gd-gauge[data-g="good"] .fg { stroke: #a3e635; } .gd-gauge[data-g="watch"] .fg { stroke: #fbbf24; filter: drop-shadow(0 0 8px rgba(251, 191, 36, .7)); } .gd-gauge[data-g="risk"] .fg { stroke: #fb7185; filter: drop-shadow(0 0 8px rgba(251, 113, 133, .7)); }
.gd-gauge[data-g="watch"] span { color: #fbbf24; } .gd-gauge[data-g="risk"] span { color: #fb7185; }
.gd-hs-f { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gd-hs-f label { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; font-size: .8rem; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .03); cursor: pointer; }
.gd-hs-f input, .gd-chk input { accent-color: #66dd4f; }
.gd-hs-f b { font-family: var(--mono); font-size: .78rem; } .gd-hs-f b.down { color: #fb7185; } .gd-hs-f b.up { color: #66dd4f; }
.gd-range { display: grid; gap: 8px; font-size: .86rem; margin-bottom: 10px; } .gd-range b { font-family: var(--mono); color: var(--accent); }
.gd-range input { width: 100%; accent-color: #66dd4f; }
.gd-chk { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); margin: 6px 0; }
.gd-adv-out { margin-top: 12px; display: grid; justify-items: center; gap: 6px; padding: 14px; border-radius: 14px; background: rgba(33, 160, 64, .08); }
.gd-adv-out p { margin: 0; font-size: .86rem; } .gd-adv-out p b { font-family: var(--mono); font-size: 1.4rem; color: var(--accent); }
.gd-bots { display: flex; gap: 8px; }
.gd-bots i { font-style: normal; font-size: 1.6rem; opacity: .15; filter: grayscale(1); transition: .35s var(--gd-out); transition-delay: calc(var(--i) * 60ms); }
.gd-bots i.on { opacity: 1; filter: none; transform: translateY(-3px); text-shadow: 0 0 14px rgba(102, 221, 79, .8); }
.gd-limits { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.gd-limits li { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border-left: 3px solid #fbbf24; font-size: .86rem; color: var(--muted); }
.gd-limits b { color: var(--text); }
.gd-empty { padding: 30px; text-align: center; color: var(--muted); margin: 0; }

@media (max-width: 1200px) { .gd-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gd-heal { grid-template-columns: 220px 1fr; } .gd-h24 { grid-column: 1 / -1; } }
@media (max-width: 1000px) {
  .gd-hero { grid-template-columns: 1fr; text-align: center; }
  .gd-lead { margin-left: auto; margin-right: auto; }
  .gd-cta { justify-content: center; }
  .gd-radar { max-width: 320px; }
  .gd-sim, .gd-cmds { grid-template-columns: 1fr; }
  .gd-feats, .gd-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gd-flow::before { display: none; }
  .gd-tools, .gd-heal { grid-template-columns: 1fr; }
  .gd-hs-in { grid-template-columns: 1fr; justify-items: center; }
  .gd-heal-ring { justify-self: stretch; }
}
@media (max-width: 560px) {
  .gd-feats, .gd-cmdlist { grid-template-columns: 1fr; }
  .gd-real-grid, .gd-tally { grid-template-columns: repeat(2, 1fr); }
  .gd-room { min-height: 520px; }
  .gd-scenes { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; scrollbar-width: none; }
  .gd-scenes button { flex: none; font-size: .8rem; padding: 7px 11px; }
  .gd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gd-kpi b { font-size: 1.4rem; }
  .gd-mgrid, .gd-how-grid { grid-template-columns: 1fr; }
  .gd-man-top { padding: 10px; } .gd-tabs button { padding: 7px 9px; font-size: .78rem; }
  .gd-pane { padding: 4px 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .gd *, .gd *::before, .gd *::after { animation: none !important; }
}
