/* ==========================================================
   GAMBLING — ธีมหลัก "Dark Gaming Lounge"
   พื้นหลังดำสนิท + ประกายฝุ่นทองลอย + ทองใช้เป็น "จุดเน้น" ไม่ใช่สีหลัก
   สีแบรนด์ (คงเดิมตามที่กำหนด) : #e2c479 (ทองอ่อน)  •  #857347 (ทองเข้ม)
   ฟอนต์ : Chakra Petch (สายเกม/เทคโนโลยี รองรับทั้งไทย+อังกฤษในตัวเดียว) + Kanit (เนื้อหา)
   ========================================================== */

:root {
    --gold:        #e2c479;
    --gold-deep:   #857347;
    --gold-soft:   #f2e3bd;
    --gold-glow:   rgba(226, 196, 121, 0.24);

    --bg:          #030303;
    --bg-soft:     #0a0a0a;
    --surface:     #121212;
    --surface-2:   #181818;
    --surface-glass: rgba(16, 16, 16, 0.62);

    /* เส้นขอบปกติ — เทาจางๆ เป็นกลาง ไม่ใช่สีทอง (ทองเก็บไว้ใช้ตอนโฮเวอร์/ไฮไลท์เท่านั้น) */
    --line:        rgba(255, 255, 255, 0.09);
    --line-strong: rgba(226, 196, 121, 0.4);

    --text:        #f1f1ef;
    --muted:       #93938e;

    --success:     #55c57a;
    --danger:      #e05c5c;
    --warning:     #e8a33d;

    --radius:      12px;
    --nav-h:       76px;

    --font-display: 'Chakra Petch', 'Kanit', sans-serif;
    --font-body:    'Kanit', sans-serif;

    --ease:        cubic-bezier(0.22, 0.8, 0.24, 1);
    --shadow-lift: 0 22px 54px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--line-strong), 0 0 40px rgba(226, 196, 121, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--gold); color: #14110a; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

.container { width: min(1200px, 92%); margin: 0 auto; position: relative; z-index: 1; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }

/* ==========================================================
   ผู้เล่นเบาแรง — ปิดแอนิเมชันแทบทั้งหมดให้ผู้ใช้ที่ตั้งค่า reduce motion
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================
   ฉากเปลี่ยนหน้า
   ========================================================== */
#gb-transition {
    position: fixed; inset: 0; z-index: 4000;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
    background: var(--bg);
    opacity: 1; visibility: visible;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
#gb-transition.hidden { opacity: 0; visibility: hidden; }
.gb-transition-mark {
    font-family: var(--font-display); font-weight: 600; letter-spacing: 4px; font-size: 1.3rem;
    color: var(--gold); text-shadow: 0 0 24px var(--gold-glow);
}

/* ==========================================================
   NAVBAR
   ========================================================== */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    height: var(--nav-h);
    display: flex; align-items: center; gap: 30px;
    padding: 0 max(24px, 4vw);
    background: rgba(3, 3, 3, 0.78);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--line);
    transition: height 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
nav.scrolled {
    height: 62px;
    background: rgba(3, 3, 3, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo {
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: 2px;
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-glow);
}

.nav-links { display: flex; gap: 4px; list-style: none; margin-left: auto; }
.nav-item {
    position: relative; display: flex; align-items: center; gap: 8px;
    padding: 9px 15px; border-radius: 8px;
    color: var(--muted); font-size: 0.93rem; font-weight: 400;
    transition: color 0.2s var(--ease);
}
.nav-item::after {
    content: ''; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px;
    background: var(--gold);
    transform: scaleX(0); transform-origin: center;
    transition: transform 0.28s var(--ease);
}
.nav-item:hover { color: var(--text); }
.nav-item:hover::after { transform: scaleX(1); }
.nav-item.active { color: var(--gold); font-weight: 500; }
.nav-item.active::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.wallet-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 15px; border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--gold); font-size: 0.88rem; font-weight: 500;
    white-space: nowrap;
}

.btn-login {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 18px; border-radius: 8px;
    background: var(--gold);
    color: #14110a; font-weight: 600; font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(226, 196, 121, 0.2);
    transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), background 0.24s var(--ease);
}
.btn-login:hover { transform: translateY(-2px); background: var(--gold-soft); box-shadow: 0 10px 26px rgba(226, 196, 121, 0.3); }

/* เมนูโปรไฟล์ */
.profile { position: relative; display: flex; align-items: center; gap: 12px; }
.profile-btn {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 6px 14px 6px 6px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface);
    transition: border-color 0.2s var(--ease);
}
.profile-btn:hover { border-color: var(--line-strong); }
.profile-btn img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.profile-btn span { font-size: 0.9rem; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dropdown {
    position: absolute; top: calc(100% + 12px); right: 0; min-width: 210px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 12px; padding: 8px; overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s var(--ease);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.7);
}
.profile:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 14px; border-radius: 8px;
    font-size: 0.9rem; color: var(--muted); transition: 0.16s;
}
.dropdown a:hover { background: rgba(226, 196, 121, 0.08); color: var(--gold); }
.dropdown a i { width: 16px; text-align: center; }
.dropdown-divider { height: 1px; background: var(--line); margin: 6px 10px; }

.menu-toggle { display: none; font-size: 1.3rem; color: var(--gold); cursor: pointer; }

/* ตัวสลับภาษา */
.lang-switch { position: relative; }
.lang-btn {
    display: flex; align-items: center; gap: 6px; cursor: pointer;
    padding: 8px 12px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--surface);
    color: var(--muted); font-family: var(--font-body); font-size: 0.85rem;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-btn:hover { border-color: var(--line-strong); color: var(--text); }
.lang-menu {
    position: absolute; top: calc(100% + 12px); right: 0; min-width: 150px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 10px; padding: 6px; overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s var(--ease);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.7);
}
.lang-switch:hover .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
    display: flex; align-items: center; gap: 9px; width: 100%;
    padding: 9px 12px; border: none; border-radius: 8px; background: none;
    color: var(--muted); font-family: var(--font-body); font-size: 0.88rem; text-align: left; cursor: pointer;
    transition: 0.16s;
}
.lang-menu button:hover { background: rgba(226, 196, 121, 0.08); color: var(--gold); }
.lang-menu button.active { color: var(--gold); font-weight: 600; }

/* ==========================================================
   ปุ่ม — มุมเหลี่ยมกว่าเดิม (ไม่ใช่ทรงแคปซูล) ให้ความรู้สึกแบบแอปเกม
   ========================================================== */
.btn {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 26px; border: none; border-radius: 8px;
    font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.3px;
    cursor: pointer; transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn-primary {
    background: var(--gold);
    color: #14110a;
    box-shadow: 0 6px 20px rgba(226, 196, 121, 0.2);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--gold-soft);
    box-shadow: 0 14px 34px rgba(226, 196, 121, 0.32);
}

.btn-ghost {
    background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
.btn-ghost:hover { border-color: var(--line-strong); color: var(--gold); box-shadow: 0 0 20px rgba(226, 196, 121, 0.1); }

.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-block { width: 100%; }

/* Ripple — เพิ่มด้วย JS เวลากดปุ่ม */
.btn .ripple {
    position: absolute; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(226, 196, 121, 0.12) 60%, transparent 72%);
    transform: scale(0); opacity: 0.9;
}
@media (prefers-reduced-motion: no-preference) {
    .btn .ripple { animation: rippleAnim 0.6s ease-out forwards; }
}
@keyframes rippleAnim { to { transform: scale(2.6); opacity: 0; } }

/* ==========================================================
   HERO — ดำสนิท มีแค่ฝุ่นทองลอย (particles) เป็นประกาย ไม่มีสีอาบพื้นหลัง
   ========================================================== */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 88vh; padding: calc(var(--nav-h) + 50px) 0 60px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
}

#gb-particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ==========================================================
   แผงมอนิเตอร์สถานะเซิร์ฟเวอร์ (หน้าแรก)
   แบ่งเป็นช่องๆ แบบหน้าปัดเครื่องวัด — มีแถบความจุผู้เล่นและแท่งสัญญาณปิง
   ========================================================== */
.srv-monitor {
    display: inline-flex; align-items: stretch; flex-wrap: wrap;
    margin-bottom: 26px; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 60%),
        var(--surface);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    opacity: 0;
    position: relative;
}
/* เส้นทองบางๆ พาดด้านบน ให้ดูเป็นแผงเครื่องมือ */
.srv-monitor::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}
@media (prefers-reduced-motion: no-preference) {
    .srv-monitor { animation: heroFadeUp 0.7s var(--ease) 0.1s forwards; }
}

.srv-cell {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 5px; padding: 13px 20px; min-width: 118px;
    border-left: 1px solid var(--line);
}
.srv-cell:first-child { border-left: none; }

.srv-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-display); font-size: 0.64rem; font-weight: 600;
    letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted);
    white-space: nowrap;
}
.srv-label i { color: var(--gold-deep); font-size: 0.9em; }

.srv-val {
    display: inline-flex; align-items: baseline;
    font-family: var(--font-display); font-size: 1.18rem; font-weight: 700;
    line-height: 1; letter-spacing: -0.3px; color: var(--gold);
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.srv-val em { font-style: normal; font-size: 0.72em; font-weight: 500; color: var(--muted); margin-left: 3px; }
.srv-val-text { font-size: 0.95rem; font-weight: 600; color: var(--text); }

/* ช่องซ้ายสุด — ไฟสถานะ + รหัสสถานะเซิร์ฟเวอร์ (เขียนเป็นอังกฤษทุกภาษา เหมือนหน่วย ms) */
.srv-state {
    font-family: var(--font-display); font-size: 1rem; font-weight: 700;
    line-height: 1; letter-spacing: 1.2px; color: var(--success); white-space: nowrap;
}

.srv-dot {
    position: relative; width: 8px; height: 8px; border-radius: 50%; flex: none;
    background: var(--success); box-shadow: 0 0 10px var(--success);
}
/* วงแหวนกระเพื่อมรอบไฟสถานะ */
.srv-dot::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    border: 1px solid var(--success); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
    .srv-dot::after { animation: srvPing 2s var(--ease) infinite; }
}
@keyframes srvPing {
    0%   { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* สถานะออฟไลน์ — ไฟแดง ดับวงแหวน */
.srv-monitor.is-offline .srv-dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.srv-monitor.is-offline .srv-dot::after { animation: none; opacity: 0; }
.srv-monitor.is-offline .srv-state { color: var(--danger); }

/* แถบความจุผู้เล่น */
.srv-track {
    width: 100%; height: 3px; border-radius: 2px; overflow: hidden;
    background: rgba(255, 255, 255, 0.08); margin-top: 2px;
}
.srv-track i {
    display: block; height: 100%; border-radius: 2px; width: 0;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold));
    transition: width 0.6s var(--ease);
}

/* แท่งสัญญาณปิง — ไล่ความสูงเหมือนสัญญาณมือถือ วางต่อท้ายตัวเลข
   (วางไว้ "ด้านหลัง" เพื่อให้ตัวเลขทุกช่องเริ่มตรงแนวเดียวกัน ไม่โดนแท่งดันเยื้อง) */
.srv-sig {
    display: inline-flex; align-items: flex-end; gap: 2px;
    height: 11px; margin-left: 9px; align-self: center;
}
.srv-sig i {
    width: 3px; border-radius: 1px; background: rgba(255, 255, 255, 0.14);
    transition: background 0.3s var(--ease);
}
.srv-sig i:nth-child(1) { height: 35%; }
.srv-sig i:nth-child(2) { height: 57%; }
.srv-sig i:nth-child(3) { height: 79%; }
.srv-sig i:nth-child(4) { height: 100%; }
.srv-sig.q4 i:nth-child(-n+4) { background: var(--success); }
.srv-sig.q3 i:nth-child(-n+3) { background: var(--gold); }
.srv-sig.q2 i:nth-child(-n+2) { background: var(--warning); }
.srv-sig.q1 i:nth-child(-n+1) { background: var(--danger); }

@media (max-width: 620px) {
    .srv-monitor { width: 100%; }
    .srv-cell { flex: 1 1 50%; min-width: 0; }
    .srv-cell:nth-child(odd) { border-left: none; }
    .srv-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 700; line-height: 1.05;
    letter-spacing: 2px; margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 10%, var(--gold) 55%, var(--gold-deep) 95%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px rgba(226, 196, 121, 0.2);
    opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px);
}
@media (prefers-reduced-motion: no-preference) {
    .hero h1 { animation: heroReveal 1s var(--ease) 0.2s forwards; }
}
.hero h1::after {
    content: ''; display: block; width: 90px; height: 3px; margin: 20px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero p {
    color: var(--muted); font-size: 1.05rem; font-weight: 300; max-width: 560px; margin: 22px auto 30px;
    letter-spacing: 0.3px;
    opacity: 0; transform: translateY(16px);
}
@media (prefers-reduced-motion: no-preference) {
    .hero p { animation: heroFadeUp 0.7s var(--ease) 0.38s forwards; }
}

.hero-actions {
    display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
    opacity: 0; transform: translateY(16px);
}
@media (prefers-reduced-motion: no-preference) {
    .hero-actions { animation: heroFadeUp 0.7s var(--ease) 0.52s forwards; }
}

@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes heroReveal { to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }

/* แถบสถิติใต้ hero — พื้นดำล้วน ไม่มีขอบทอง เน้นแค่ตัวเลข */
.stat-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px; margin: 44px auto 0; width: min(880px, 100%);
    opacity: 0; transform: translateY(16px);
}
@media (prefers-reduced-motion: no-preference) {
    .stat-row { animation: heroFadeUp 0.7s var(--ease) 0.66s forwards; }
}
.stat-box {
    padding: 20px 16px; border-radius: var(--radius); text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.stat-box:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.stat-box .num { font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; color: var(--gold); line-height: 1.2; }
.stat-box .label { font-size: 0.82rem; color: var(--muted); font-weight: 300; margin-top: 4px; }

/* ==========================================================
   หัวข้อ section
   ========================================================== */
.section { position: relative; padding: 76px 0; }
.section-head { margin-bottom: 40px; text-align: center; }
.section-head .eyebrow {
    color: var(--gold-deep); font-size: 0.8rem; letter-spacing: 4px; text-transform: uppercase;
    font-family: var(--font-display); font-weight: 600;
}
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; letter-spacing: 0.3px; margin-top: 6px;
}
.section-head h2 .accent { color: var(--gold); }
.section-head p { color: var(--muted); font-weight: 300; margin-top: 8px; }

/* ==========================================================
   การ์ด — พื้นดำ ขอบเทาจางๆ ปกติ แล้วค่อยเรืองทองตอนโฮเวอร์
   ========================================================== */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
    will-change: transform;
}
.card:hover { transform: translateY(-7px); border-color: var(--line-strong); box-shadow: var(--shadow-lift); }

.card.featured { border-color: rgba(226, 196, 121, 0.5); box-shadow: 0 0 0 1px rgba(226, 196, 121, 0.12), 0 16px 40px rgba(226, 196, 121, 0.08); }

.card-media {
    aspect-ratio: 16 / 9; background: var(--surface-2);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-deep); font-size: 2.4rem; position: relative; overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-body h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.5; }
.card-body p { color: var(--muted); font-size: 0.89rem; font-weight: 300; }
.card-foot {
    margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

/* ป้ายกำกับ — ค่าเริ่มต้นเป็นสีเทากลาง มีแค่ตัวหนังสือทอง (ไม่ล้อมกรอบทองทุกอัน) */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 500; letter-spacing: 0.3px;
    border: 1px solid var(--line); background: var(--surface-2); color: var(--gold);
}
.badge.pin     { border-color: rgba(226, 196, 121, 0.5); background: rgba(226, 196, 121, 0.12); }
.badge.success { border-color: rgba(85, 197, 122, 0.4); background: rgba(85, 197, 122, 0.12); color: var(--success); }
.badge.warn    { border-color: rgba(232, 163, 61, 0.4); background: rgba(232, 163, 61, 0.12); color: var(--warning); }
.badge.danger  { border-color: rgba(224, 92, 92, 0.4);  background: rgba(224, 92, 92, 0.12);  color: var(--danger); }

.badge-float { position: absolute; top: 12px; left: 12px; backdrop-filter: blur(6px); }

/* ราคา */
.price { display: flex; align-items: baseline; gap: 8px; }
.price .now { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--gold); line-height: 1; }
.price .unit { font-size: 0.8rem; color: var(--muted); font-weight: 300; }
.price .was { font-size: 0.88rem; color: var(--muted); text-decoration: line-through; opacity: 0.6; }

/* ==========================================================
   ตัวกรอง / แท็บ
   ========================================================== */
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.filter {
    padding: 8px 18px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line); background: var(--surface);
    color: var(--muted); font-family: var(--font-display); font-size: 0.86rem; font-weight: 500;
    transition: 0.2s var(--ease);
}
.filter:hover { color: var(--gold); border-color: var(--line-strong); }
.filter.active { background: var(--gold); border-color: var(--gold); color: #14110a; box-shadow: 0 4px 16px rgba(226, 196, 121, 0.22); }

/* ==========================================================
   กล่องเนื้อหา / ตาราง
   ========================================================== */
.panel {
    background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.panel-title {
    display: flex; align-items: center; gap: 11px;
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 18px;
    padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.panel-title i { color: var(--gold); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th {
    text-align: left; padding: 12px 14px;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px;
    color: var(--gold-deep); text-transform: uppercase; font-family: var(--font-display);
    border-bottom: 1px solid var(--line);
}
td { padding: 14px; border-bottom: 1px solid var(--line); font-size: 0.9rem; font-weight: 300; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.2s var(--ease); }
tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); font-weight: 300; }
.empty i { font-size: 2.2rem; color: var(--gold-deep); display: block; margin-bottom: 14px; opacity: 0.6; }

/* ==========================================================
   บทความข่าว
   ========================================================== */
.article { max-width: 800px; margin: 0 auto; }
.article-head { text-align: center; margin-bottom: 32px; }
.article-head h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 4.2vw, 2.5rem); font-weight: 700; line-height: 1.4; margin: 14px 0; }
.article-meta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; font-weight: 300; }
.article-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 30px; }
.article-body { font-size: 1.02rem; font-weight: 300; color: #d4d4d0; }
.article-body h2, .article-body h3 { font-family: var(--font-display); color: var(--gold); font-weight: 600; margin: 28px 0 14px; }
.article-body ul, .article-body ol { margin: 14px 0 14px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body img { border-radius: 10px; margin: 20px 0; }
.article-body a { color: var(--gold); text-decoration: underline; }

/* ==========================================================
   คำรับรอง (Testimonials)
   ========================================================== */
.quote-card { padding: 28px 24px; position: relative; }
.quote-card i.fa-quote-left { color: var(--gold-deep); font-size: 1.5rem; opacity: 0.55; margin-bottom: 12px; display: block; }
.quote-text { font-size: 1rem; color: #d4d4d0; line-height: 1.75; margin-bottom: 20px; font-weight: 300; }
.quote-who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold); color: #14110a; font-size: 0.95rem;
}
.quote-name { font-size: 0.9rem; font-weight: 600; font-family: var(--font-display); }
.quote-role { font-size: 0.78rem; color: var(--muted); font-weight: 300; }

/* ==========================================================
   FAQ Accordion
   ========================================================== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    border-radius: 10px; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line);
    transition: border-color 0.2s var(--ease);
}
.faq-item.open { border-color: var(--line-strong); }
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 22px; background: none; border: none; cursor: pointer;
    color: var(--text); font-family: var(--font-display); font-size: 0.96rem; font-weight: 500; text-align: left;
}
.faq-q i { color: var(--gold); transition: transform 0.3s var(--ease); flex: none; }
.faq-item.open .faq-q i { transform: rotate(135deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 0.9rem; font-weight: 300; line-height: 1.75; }

/* ==========================================================
   POPUP แจ้งเตือน
   ========================================================== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 3500;
    background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; padding: 24px;
    opacity: 0; visibility: hidden; transition: opacity 0.24s var(--ease), visibility 0.24s var(--ease);
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.modal {
    width: min(420px, 100%); padding: 34px 30px; text-align: center;
    background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    transform: scale(0.94); transition: transform 0.24s var(--ease);
}
.modal-overlay.show .modal { transform: scale(1); }

.modal-icon { font-size: 2.8rem; margin-bottom: 16px; }
.modal-icon.success { color: var(--success); }
.modal-icon.error   { color: var(--danger); }
.modal-icon.warning { color: var(--warning); }
.modal-icon.info    { color: var(--gold); }

.modal h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.modal p { color: var(--muted); font-size: 0.92rem; font-weight: 300; margin-bottom: 26px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }

/* ตัวเลือกให้ดาว (รีวิวหลังได้รับของ) */
.star-picker { display: flex; gap: 8px; justify-content: center; font-size: 1.9rem; margin: 4px 0 18px; }
.star-picker i { color: var(--gold); cursor: pointer; transition: transform 0.15s var(--ease); }
.star-picker i:hover, .star-picker i:hover ~ i { transform: scale(1.12); }
.review-stars-display { color: var(--gold); font-size: 0.9rem; letter-spacing: 1px; }

/* ==========================================================
   FOOTER
   ========================================================== */
footer { position: relative; border-top: 1px solid var(--line); background: var(--bg-soft); padding: 50px 0 28px; margin-top: 56px; }
.footer-top { text-align: center; margin-bottom: 30px; }
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: 3px; color: var(--gold); }
.footer-top p { color: var(--muted); font-size: 0.88rem; font-weight: 300; margin-top: 8px; }
.footer-social { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); color: var(--muted); transition: 0.24s var(--ease);
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid var(--line); padding-top: 22px; text-align: center;
    color: var(--muted); font-size: 0.82rem; font-weight: 300;
}

/* ==========================================================
   ตัวโหลด
   ========================================================== */
.loader { display: flex; justify-content: center; padding: 60px; }
.spinner {
    width: 36px; height: 36px; border-radius: 50%;
    border: 3px solid rgba(226, 196, 121, 0.14); border-top-color: var(--gold);
}
@media (prefers-reduced-motion: no-preference) {
    .spinner { animation: spin 0.8s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
    background: linear-gradient(100deg, var(--surface) 20%, rgba(255, 255, 255, 0.05) 50%, var(--surface) 80%);
    background-size: 200% 100%; border-radius: var(--radius);
    min-height: 230px;
}
@media (prefers-reduced-motion: no-preference) {
    .skeleton { animation: shimmer 1.6s infinite; }
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* เอฟเฟกต์เลื่อนขึ้นตอนสกรอลล์ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.show { opacity: 1; transform: none; }

/* ==========================================================
   จอมือถือ
   ========================================================== */
@media (max-width: 900px) {
    nav { gap: 14px; padding: 0 18px; }
    .menu-toggle { display: block; order: 3; }
    .nav-links {
        position: fixed; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; gap: 2px; padding: 14px;
        background: rgba(3, 3, 3, 0.97); border-bottom: 1px solid var(--line);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-right { margin-left: auto; }
    .profile-btn span, .wallet-badge span.label { display: none; }
    .lang-btn span#lang-code-current { display: none; }
    .lang-btn { padding: 8px 10px; }
    .section { padding: 54px 0; }
    .stat-row { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
}
