/* ==========================================================================
   kodungitem — ธีมเกมมืดนีออน
   ทำงานคู่กับ Tailwind CSS (Play CDN) + AOS
   - Tailwind: reset (preflight) + utility class + design token
   - theme.css (ไฟล์นี้): component หลัก (.btn-neon .card-panel ฯลฯ) เขียนเป็น CSS ตรงๆ
     เพื่อให้พื้นหลังมืด + การ์ดขึ้นทันที ไม่ต้องรอ Tailwind คอมไพล์ (กัน FOUC)
   ========================================================================== */

:root {
    /* ── สี (ค่าเดียวกับ @theme ใน globals.css เดิม) ── */
    --night:  #0b0a14;   /* พื้นหลังหลัก */
    --panel:  #14121f;   /* การ์ด/surface */
    --panel2: #1c1930;   /* surface ชั้นสอง */
    --line:   #262239;   /* เส้นขอบ */
    --ink:    #f1effa;   /* ตัวอักษรหลัก */
    --muted:  #8e8aa8;   /* ตัวอักษรรอง */
    --neon:   #8b5cf6;   /* primary ม่วงนีออน */
    --neon2:  #7c3aed;
    --cyber:  #22d3ee;   /* accent ฟ้าไซเบอร์ */
    --price:  #5eead4;   /* สีราคา/เงิน */
    --ok:     #34d399;
    --warn:   #fbbf24;
    --bad:    #f87171;
    --rare:   #38bdf8;
    --epic:   #a78bfa;
    --legend: #f59e0b;

    --radius-ctl:  10px;
    --radius-card: 16px;

    --font-sans:    "Prompt", "Leelawadee UI", "Segoe UI", sans-serif;
    --font-display: "Kanit", "Prompt", "Leelawadee UI", sans-serif;
}

/* ── พื้นฐาน ─────────────────────────────────────────────────────────── */
.tg-body {
    background: var(--night);
    color: var(--ink);
    font-family: var(--font-sans);
    font-weight: 300;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.tg-main {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    flex: 1;
    padding: 1rem 1rem 6rem;
}
.tg-main-admin { max-width: 76rem; }

@media (min-width: 768px) {
    .tg-main { padding-bottom: 2.5rem; }
}

.tg-footer {
    border-top: 1px solid var(--line);
    padding: 1.5rem 0;
    text-align: center;
    font-size: .875rem;
    color: var(--muted);
}

/* จุดโฟกัสต้องมองเห็นชัดเสมอ (ผู้ใช้คีย์บอร์ด) */
:focus-visible {
    outline: 2px solid var(--cyber);
    outline-offset: 2px;
    border-radius: 6px;
}

/* แถบเลื่อนเข้าธีม */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #3d3760; }

/* ── ตัวช่วยจัดวาง ───────────────────────────────────────────────────── */
.stack     { display: flex; flex-direction: column; gap: 1rem; }
.stack-sm  { display: flex; flex-direction: column; gap: .75rem; }
.stack-lg  { display: flex; flex-direction: column; gap: 1.5rem; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.btn-row   { display: flex; gap: .625rem; }
.narrow    { max-width: 32rem; margin-inline: auto; }
.narrow-xs { max-width: 28rem; margin-inline: auto; }
.narrow-sm { max-width: 32rem; margin-inline: auto; }
.narrow-md { max-width: 44rem; margin-inline: auto; }
.narrow-lg { max-width: 58rem; margin-inline: auto; }
.pad   { padding: 1.25rem; }
.pad-x { padding-inline: 1.25rem; }
.pad-t { padding-top: 1.25rem; }
.min-w-0 { min-width: 0; }
.break-all { word-break: break-all; }
/* แบ่ง 2 คอลัมน์ตั้งแต่ 768px — ที่ 992px จอโน้ตบุ๊กเล็กยังเหลือที่ว่างข้างๆ เยอะเกินไป */
.two-col { display: grid; gap: 1rem; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── ตัวอักษร ────────────────────────────────────────────────────────── */
.page-title    { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin: 0; }
.detail-title  { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin: 0; }
.section-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin: 0 0 .5rem;
                 display: flex; align-items: center; gap: .5rem; }
.section-sub   { font-family: var(--font-display); font-size: .875rem; font-weight: 600; color: var(--muted);
                 margin: 0 0 .5rem; }
.page-sub  { font-size: .875rem; color: var(--muted); margin: 0; }
.small     { font-size: .875rem; }
.tiny      { font-size: .75rem; }
.mono      { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.underline { text-decoration: underline; }
.strike    { text-decoration: line-through; }

.txt-muted  { color: var(--muted); }
.txt-ink    { color: var(--ink); }
.txt-ok     { color: var(--ok); }
.txt-bad    { color: var(--bad); }
.txt-warn   { color: var(--warn); }
.txt-cyber  { color: var(--cyber); }
.txt-price  { color: var(--price); }
.txt-epic   { color: var(--epic); }
.txt-rare   { color: var(--rare); }
.txt-legend { color: var(--legend); }

.link-epic  { color: var(--epic); text-decoration: underline; }
.link-cyber { color: var(--cyber); text-decoration: underline; }
.link-hover { color: inherit; text-decoration: none; }
.link-hover:hover { color: var(--epic); }

.truncate-sm { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.truncate-md { max-width: 13rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── ปุ่ม ─────────────────────────────────────────────────────────────── */
.btn-neon, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border-radius: var(--radius-ctl);
    padding: .625rem 1.25rem;
    font-family: var(--font-display); font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: filter .15s, box-shadow .15s, border-color .15s, color .15s;
}
.btn-neon {
    background: linear-gradient(to right, var(--neon2), var(--neon));
    color: #fff; border: none;
}
.btn-neon:hover { filter: brightness(1.1); box-shadow: 0 0 24px rgba(139,92,246,.4); color: #fff; }
.btn-neon:disabled { opacity: .5; box-shadow: none; cursor: not-allowed; }

.btn-ghost {
    border: 1px solid var(--line); background: var(--panel);
    color: var(--ink); font-weight: 500;
}
.btn-ghost:hover { border-color: rgba(139,92,246,.6); color: #fff; }
.btn-ghost:disabled { opacity: .5; cursor: not-allowed; }
.btn-on-hero { background: rgba(255,255,255,.1); color: #fff; }
.btn-danger-ghost { border-color: rgba(248,113,113,.4); color: var(--bad); }
.btn-danger-ghost:hover { border-color: var(--bad); color: var(--bad); }

.btn-sm { padding: .375rem 1rem; font-size: .875rem; }
.btn-lg { padding: .75rem 1.25rem; font-size: 1rem; }

.btn-pay {
    border-radius: 999px; padding: .25rem .75rem; font-size: .75rem; font-weight: 600;
    background: linear-gradient(to right, var(--neon2), var(--neon));
    color: #fff; text-decoration: none; position: relative; z-index: 2;
}
.btn-pay:hover { filter: brightness(1.1); color: #fff; }

/* ปุ่มไอคอน "ลบ" ในรายการ — เรียบกลมกลืน แดงเฉพาะตอนชี้/โฟกัส
   ปิดใช้งาน (จาง) เมื่อลบไม่ได้ เช่น เกมที่ยังมีสินค้าผูกอยู่ */
.btn-icon-danger {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 1.75rem; height: 1.75rem;
    border-radius: 8px; border: 1px solid transparent; background: none;
    color: var(--muted); cursor: pointer;
    transition: color .15s, background-color .15s, border-color .15s;
}
.btn-icon-danger:hover { color: var(--bad); border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.1); }
.btn-icon-danger:disabled { opacity: .3; cursor: not-allowed; }
.btn-icon-danger:disabled:hover { color: var(--muted); border-color: transparent; background: none; }
@media (max-width: 767px) { .btn-icon-danger { width: 2.5rem; height: 2.5rem; } }

/* กลุ่มปุ่ม/ลิงก์ท้ายแถวตาราง (แก้ไข · ลบ) — เรียงชิดกันไม่ให้ตกบรรทัด */
.row-actions { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }

/* ── ช่องกรอก ────────────────────────────────────────────────────────── */
.input-dark {
    width: 100%;
    border-radius: var(--radius-ctl);
    border: 1px solid var(--line);
    background: var(--panel2);
    color: var(--ink);
    padding: .625rem .875rem;
    font-family: var(--font-sans);
    font-size: .95rem;
}
.input-dark::placeholder { color: rgba(142,138,168,.7); }
.input-dark:focus { border-color: var(--neon); outline: none; }
.input-dark option { background: var(--panel2); color: var(--ink); }

.input-lg     { font-size: 1.05rem; }
.input-num    { width: 7rem; }
.input-search { width: 16rem; }
.input-date   { width: auto; color-scheme: dark; }
.input-auto   { width: auto; }
/* ความกว้างช่องกรอกในฟอร์มแถวเดียว — ตั้งชื่อขึ้นต้น iw- (input width) ห้ามใช้ w-
   เพราะ w-4/w-6/w-7/w-9 ไปชนกับ utility ของ Tailwind ที่มีค่าคนละขนาด
   (w-9 ของ Tailwind = 2.25rem ไม่ใช่ 9rem) และ Tailwind ตั้ง important:true ไว้
   จึงชนะเสมอ ทำให้ช่องกรอกเล็กผิดขนาดจนใช้งานไม่ได้ */
.iw-4 { width: 4rem; } .iw-6 { width: 6rem; } .iw-7 { width: 7rem; } .iw-9 { width: 9rem; }

.field { display: flex; flex-direction: column; gap: .375rem; font-size: .875rem; }
.field-label { font-weight: 500; }
.field-hint  { font-size: .75rem; color: var(--muted); }
.field-inline { flex-direction: column; }
.field-narrow { max-width: 16rem; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius-ctl); padding: .75rem; }
.fieldset legend { float: none; width: auto; font-size: .875rem; padding-inline: .375rem; }

.check-row { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--muted); }
.check-row input { accent-color: var(--neon); width: 1rem; height: 1rem; }

/* ช่องกรอกที่มีปุ่มลัดต่อท้าย (เช่น "ดึงเลขท้ายบัญชี") */
.field-with-btn { display: flex; gap: .5rem; align-items: stretch; flex-wrap: wrap; }
.field-with-btn > .btn-ghost { flex: none; white-space: nowrap; }

/* ── ตัวเลือกช่องทางรับเงิน (หลังร้าน) ────────────────────────────────
   radio จริงซ่อนไว้ แต่ยัง tab เข้าถึงได้ — สถานะเลือกอ่านจาก :checked
   จึงถูกต้องเสมอแม้ JS ไม่ทำงาน */
.pay-switch { display: grid; gap: .625rem; border: 0; padding: 0; margin: 0; }
@media (min-width: 640px) { .pay-switch { grid-template-columns: 1fr 1fr; } }

.pay-opt { display: block; cursor: pointer; }
.pay-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.pay-opt-body {
    display: flex; align-items: flex-start; gap: .75rem; height: 100%;
    border-radius: var(--radius-ctl); border: 1px solid var(--line);
    background: var(--panel2); padding: .875rem;
    transition: border-color .15s, background-color .15s;
}
.pay-opt:hover .pay-opt-body { border-color: rgba(139,92,246,.5); }
.pay-opt input:checked ~ .pay-opt-body { border-color: var(--neon); background: rgba(139,92,246,.14); }
.pay-opt input:focus-visible ~ .pay-opt-body { outline: 2px solid var(--cyber); outline-offset: 2px; }

.pay-opt-icon {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 2.25rem; height: 2.25rem; border-radius: 8px;
    background: rgba(255,255,255,.06); color: var(--muted);
}
.pay-opt input:checked ~ .pay-opt-body .pay-opt-icon { background: rgba(139,92,246,.22); color: var(--epic); }

.pay-opt-text { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.pay-opt-text b     { font-size: .9375rem; font-weight: 600; }
.pay-opt-text small { font-size: .75rem; line-height: 1.5; color: var(--muted); }

/* เครื่องหมายถูกยืนยันสิ่งที่เลือก — ไม่พึ่งสีอย่างเดียว */
.pay-opt-tick { flex: none; color: var(--neon); opacity: 0; transition: opacity .15s; }
.pay-opt input:checked ~ .pay-opt-body .pay-opt-tick { opacity: 1; }

/* กล่องรายละเอียดของแต่ละช่องทาง — JS ซ่อนอันที่ไม่ได้เลือก
   ไม่มี JS = โชว์ทั้งคู่ ยังกรอกและบันทึกได้ครบ */
.pay-pane { display: flex; flex-direction: column; gap: .75rem; }
.pay-pane[hidden] { display: none; }
.pay-pane-grid { display: flex; gap: .75rem; align-items: flex-end; }

.bank-swatch {
    flex: none; width: 2.5rem; height: 2.5rem; border-radius: 8px;
    background: var(--bank); border: 1px solid rgba(255,255,255,.15);
}

/* ตัวอย่าง QR จากเลขที่บันทึกไว้ — สแกนเช็คได้ว่าปลายทางเป็นชื่อเราจริง */
.qr-preview { display: flex; flex-direction: column; align-items: center; gap: .25rem; margin: 0; flex: none; }
.qr-preview img { width: 5rem; height: 5rem; border-radius: 6px; background: #fff; }
.qr-preview figcaption { font-size: .625rem; color: var(--muted); }

/* ── การ์ด / กล่อง ───────────────────────────────────────────────────── */
.card-panel {
    border-radius: var(--radius-card);
    border: 1px solid var(--line);
    background: var(--panel);
}
.empty-box {
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
    padding: 2.5rem 1.25rem; text-align: center;
}
.empty-note { padding: 1.5rem; text-align: center; font-size: .875rem; color: var(--muted); margin: 0; }
.empty-emoji { font-size: 2.25rem; }
.empty-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 3.5rem; height: 3.5rem; border-radius: 999px;
    background: var(--panel2); color: var(--muted);
}

.note-muted { border: 1px solid var(--line); background: var(--panel2);
              border-radius: var(--radius-ctl); padding: .5rem .75rem; color: var(--muted); margin: 0; }
.note-cyber { border: 1px solid rgba(34,211,238,.4); background: rgba(34,211,238,.1);
              border-radius: var(--radius-ctl); padding: .625rem .75rem; font-size: .875rem; margin: 0; }
.note-bad   { border: 1px solid rgba(248,113,113,.4); background: rgba(248,113,113,.1);
              border-radius: var(--radius-ctl); padding: .5rem .75rem; font-size: .875rem; margin: 0; }
.note-warn  { border: 1px solid rgba(251,191,36,.4); background: rgba(251,191,36,.1);
              border-radius: var(--radius-ctl); padding: .625rem .75rem; font-size: .875rem; margin: 0; }

/* ── ชิป ─────────────────────────────────────────────────────────────── */
.chip {
    display: inline-flex; align-items: center; gap: .25rem;
    border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
    padding: .375rem .875rem; font-size: .875rem; color: var(--muted);
    text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s;
}
.chip:hover { border-color: rgba(139,92,246,.5); color: var(--ink); }
.chip-on { border-color: var(--neon); background: rgba(139,92,246,.15); color: #e9d5ff; font-weight: 500; }
.chip-xs { padding: .25rem .625rem; font-size: .75rem; }
.chip-count { margin-left: .25rem; opacity: .7; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-row-tight { gap: .375rem; }

/* ── แถบเมนูบน ───────────────────────────────────────────────────────── */
.tg-nav {
    position: sticky; top: 0; z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(11,10,20,.85); backdrop-filter: blur(8px);
}
.tg-nav-inner {
    max-width: 64rem; margin: 0 auto; padding: .75rem 1rem;
    display: flex; align-items: center; gap: 1rem;
}
.tg-brand { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700;
            letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.tg-brand-accent {
    background: linear-gradient(to right, var(--neon), var(--cyber));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tg-nav-links { align-items: center; gap: .25rem; font-size: .875rem; }
.tg-nav-link { border-radius: 8px; padding: .375rem .75rem; color: var(--muted); text-decoration: none; }
.tg-nav-link:hover { color: var(--ink); }
.tg-nav-admin { color: var(--warn); }
.tg-nav-admin:hover { filter: brightness(1.1); color: var(--warn); }
.tg-nav-right { margin-left: auto; display: flex; align-items: center; gap: .625rem; }
.tg-user-pill {
    display: inline-flex; align-items: center; gap: .375rem;
    border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
    padding: .375rem .875rem; font-size: .875rem; color: var(--ink); text-decoration: none;
}
.tg-logout {
    border-radius: 8px; border: 1px solid var(--line); background: none;
    padding: .25rem .625rem; font-size: .75rem; color: var(--muted); cursor: pointer;
}
.tg-logout:hover { border-color: rgba(248,113,113,.5); color: var(--bad); }

/* บนจอสัมผัส ขยายพื้นที่กดของปุ่มเล็กในแถบบนให้นิ้วกดง่ายขึ้น
   (ขยายเฉพาะพื้นที่รับสัมผัส หน้าตายังเท่าเดิม) */
@media (max-width: 767px) {
    .tg-logout, .tg-user-pill {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }
}

/* ── เมนูล่าง (มือถือ) ───────────────────────────────────────────────── */
.tg-bottomnav {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    border-top: 1px solid var(--line);
    background: rgba(16,14,28,.95); backdrop-filter: blur(8px);
}
.tg-bottomnav-inner {
    max-width: 28rem; margin: 0 auto;
    display: flex; align-items: flex-end; justify-content: space-around;
    padding: .375rem .5rem .5rem;
}
.tg-tab {
    display: flex; flex-direction: column; align-items: center; gap: .25rem;
    width: 3.5rem; padding: .25rem 0; font-size: .625rem;
    color: var(--muted); text-decoration: none;
}
.tg-tab.is-active { color: var(--epic); }
.tg-tab-fab { position: relative; top: -1rem; gap: .125rem; }
.tg-fab-circle {
    display: flex; align-items: center; justify-content: center;
    width: 3rem; height: 3rem; border-radius: 999px;
    background: linear-gradient(to bottom right, var(--neon), var(--cyber));
    color: #fff; box-shadow: 0 6px 20px rgba(139,92,246,.55);
}
.tg-fab-label { font-size: .625rem; font-weight: 500; color: var(--epic); }

/* ── ไอคอน ───────────────────────────────────────────────────────────── */
.icon     { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-sm  { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-lg  { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
.icon-xl  { width: 3rem; height: 3rem; flex-shrink: 0; }
.icon-xxl { width: 7rem; height: 7rem; flex-shrink: 0; }

.game-icon { border-radius: 22%; object-fit: cover; box-shadow: 0 2px 10px rgba(0,0,0,.4); flex-shrink: 0; }
.game-icon-emoji { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }

/* ── ฮีโร่ ───────────────────────────────────────────────────────────── */
.hero {
    position: relative; overflow: hidden;
    border-radius: var(--radius-card);
    background: linear-gradient(to bottom right, #4c1d95, #2e1065, #0e7490);
    padding: 1.5rem;
}
@media (min-width: 768px) { .hero { padding: 2.5rem; } }
.hero-topup { background: linear-gradient(to bottom right, #3b1d78, #241056, #0e3a4d); }
.hero-glow {
    pointer-events: none; position: absolute; right: -4rem; top: -5rem;
    width: 14rem; height: 14rem; border-radius: 999px;
    background: rgba(34,211,238,.2); filter: blur(48px);
}
.hero-title {
    position: relative; font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin: 0;
}
@media (min-width: 768px) { .hero-title { font-size: 2.25rem; } }
.hero-title-sm { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: .75rem 0 0; }
.hero-accent {
    background: linear-gradient(to right, #c4b5fd, #67e8f9);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { position: relative; margin: .5rem 0 0; max-width: 30rem; font-size: .875rem; color: #ddd6fe; }
.hero-actions { position: relative; margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.pill {
    display: inline-block; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.1);
    padding: .25rem .75rem; font-size: .75rem; font-weight: 500; color: #c4b5fd;
}

/* ── ตารางเกม ────────────────────────────────────────────────────────── */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (min-width: 640px) { .game-grid { grid-template-columns: repeat(6, 1fr); } }
.game-tile {
    display: flex; flex-direction: column; align-items: center; gap: .625rem;
    border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--panel);
    padding: 1rem .5rem; text-align: center; text-decoration: none; color: var(--ink);
    transition: transform .15s, border-color .15s, box-shadow .15s;
    min-width: 0;   /* ให้หดตามคอลัมน์ได้ ไม่ดันตารางจนล้นจอ */
}
.game-tile:hover {
    transform: translateY(-2px); border-color: rgba(139,92,246,.6);
    box-shadow: 0 0 16px rgba(139,92,246,.3); color: var(--ink);
}
.game-tile-name { font-size: .75rem; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }

/* ── กันล้นแนวนอนทั้งระบบ ──────────────────────────────────────────────
   ลูกของ grid/flex ทุกตัวมี min-width:auto มาโดยปริยาย ทำให้หดต่ำกว่า
   ความกว้างเนื้อหาไม่ได้ พอเจอข้อความไทยยาวๆ ที่ไม่มีช่องว่างให้ตัดบรรทัด
   มันจะดันคอนเทนเนอร์จนหน้าเว็บเลื่อนซ้าย-ขวาได้บนมือถือ */
.stat-grid-3 > *, .stat-grid-4 > *, .stat-grid-6 > *,
.item-grid > *, .game-grid > *, .feature-grid > *,
.two-col > *, .form-grid > * { min-width: 0; }

.stat-value, .stat-label, .rank-name, .offer-text,
.field-label, .field-hint { overflow-wrap: anywhere; }

/* ── การ์ดสินค้า ─────────────────────────────────────────────────────── */
.item-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 640px) { .item-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .item-grid { grid-template-columns: repeat(4, 1fr); } }

.item-card {
    display: flex; flex-direction: column; gap: .5rem;
    border-radius: var(--radius-card); border: 1px solid var(--line);
    background: var(--panel); padding: .75rem;
    text-decoration: none; color: var(--ink);
    transition: transform .15s, box-shadow .15s;
    /* ⭐ grid item มี min-width:auto โดยปริยาย = หดต่ำกว่าความกว้างเนื้อหาไม่ได้
       ชื่อสินค้าภาษาไทยไม่มีช่องว่างให้ตัดบรรทัด การ์ดเลยดันตารางจนล้นจอมือถือ */
    min-width: 0;
}
.item-card:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(139,92,246,.25); color: var(--ink); }
.brd-line   { border-color: var(--line); }
.brd-rare   { border-color: rgba(56,189,248,.5); }
.brd-epic   { border-color: rgba(167,139,250,.5); }
.brd-legend { border-color: rgba(245,158,11,.6); box-shadow: 0 0 18px rgba(245,158,11,.15); }

.item-art {
    position: relative; display: flex; align-items: center; justify-content: center;
    aspect-ratio: 2/1; border-radius: 12px;
    background: linear-gradient(to bottom right, var(--panel2), #171b2e);
    transition: transform .15s;
}
.item-card:hover .item-art { transform: scale(1.03); }
.item-art-emoji { font-size: 2.25rem; line-height: 1; }

.badge-any {
    position: absolute; right: .375rem; top: .375rem;
    border-radius: 999px; background: linear-gradient(to right, var(--neon2), #0891b2);
    padding: .125rem .5rem; font-size: .625rem; font-weight: 700; letter-spacing: .02em; color: #fff;
}
.badge-off {
    position: absolute; left: .375rem; top: .375rem;
    border-radius: 999px; background: var(--bad);
    padding: .125rem .5rem; font-size: .625rem; font-weight: 700; color: #fff;
}
.badge-off-lg {
    border-radius: 999px; background: var(--bad);
    padding: .25rem .625rem; font-size: .75rem; font-weight: 700; color: #fff;
}
.badge-save {
    border-radius: 999px; background: rgba(248,113,113,.15);
    padding: .125rem .375rem; font-size: .625rem; font-weight: 500; color: var(--bad);
}

.item-body   { min-height: 2.5rem; }
.item-rarity { font-size: .625rem; font-weight: 700; letter-spacing: .1em; }
.rar-rare { color: var(--rare); } .rar-epic { color: var(--epic); } .rar-legend { color: var(--legend); }
.item-rarity-lg { font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.item-name {
    font-size: .875rem; font-weight: 500; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    /* ภาษาไทยเขียนติดกันไม่มีช่องว่าง — ถ้าไม่บอกให้ตัดได้ทุกจุด บรรทัดจะยาวทะลุการ์ด */
    overflow-wrap: anywhere;
}
.item-meta { margin-top: .125rem; font-size: .75rem; color: var(--muted); }
.item-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .25rem; }
.item-price { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--price); font-variant-numeric: tabular-nums; }
.item-price-rate { font-size: .875rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-price-old { font-size: .75rem; color: var(--muted); text-decoration: line-through; }
.item-cta {
    flex-shrink: 0; border-radius: 999px;
    background: linear-gradient(to right, var(--neon2), var(--neon));
    padding: .25rem .875rem; font-size: .75rem; font-weight: 600; color: #fff;
}

/* ── หน้ารายละเอียดสินค้า ────────────────────────────────────────────── */
.item-detail-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .item-detail-grid { grid-template-columns: 1fr 1fr; } }
.item-detail { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; }
.item-hero {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 2/1; border-radius: 12px;
    background: linear-gradient(to bottom right, var(--panel2), #171b2e);
}
.item-hero-emoji { font-size: 4.5rem; line-height: 1; }
.item-desc { font-size: .875rem; line-height: 1.7; color: rgba(241,239,250,.9); margin: 0; }
.delivery-strip {
    display: flex; align-items: center; gap: .5rem;
    border-radius: 12px; border: 1px solid var(--line); background: var(--panel2);
    padding: .75rem 1rem; font-size: .875rem;
}
.price-lg { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; color: var(--price); font-variant-numeric: tabular-nums; }
.price-md { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--price); font-variant-numeric: tabular-nums; }
.price-old { font-family: var(--font-display); font-size: 1.125rem; color: var(--muted); text-decoration: line-through; }
.price-row { display: flex; align-items: center; gap: .75rem; }

.buybox { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; }
.buybox-auth { display: flex; gap: .5rem; }
.preview-box {
    border-radius: var(--radius-ctl); border: 1px solid rgba(34,211,238,.3);
    background: rgba(34,211,238,.05); padding: .625rem .875rem; font-size: .875rem;
}
.save-box {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    border-radius: var(--radius-ctl); border: 1px solid rgba(248,113,113,.3);
    background: rgba(248,113,113,.05); padding: .625rem 1rem;
}

/* ── ตัวกรอง ─────────────────────────────────────────────────────────── */
.filter-box { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.filter-label { margin-right: .25rem; font-size: .875rem; font-weight: 500; color: var(--muted); }
.filter-sort { margin-left: auto; display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--muted); }

.crumb { font-size: .875rem; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.crumb-now { color: var(--ink); }
.game-head { display: flex; align-items: center; gap: .875rem; }

/* ── ป้ายสถานะ ───────────────────────────────────────────────────────── */
.badge-status {
    display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid;
    padding: .125rem .625rem; font-size: .75rem; font-weight: 500; white-space: nowrap;
}
.badge-ok    { border-color: rgba(52,211,153,.4);  background: rgba(52,211,153,.1);  color: var(--ok); }
.badge-warn  { border-color: rgba(251,191,36,.4);  background: rgba(251,191,36,.1);  color: var(--warn); }
.badge-bad   { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.1); color: var(--bad); }
.badge-cyber { border-color: rgba(34,211,238,.4);  background: rgba(34,211,238,.1);  color: var(--cyber); }
.badge-mute  { border-color: var(--line); background: var(--panel2); color: var(--muted); }

.mini-badge { border-radius: 999px; border: 1px solid; padding: .0625rem .5rem; font-size: .625rem; margin-left: .375rem; }
.mb-warn { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.1); color: var(--warn); }
.mb-bad  { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.1); color: var(--bad); }

/* ── รายการซื้อล่าสุด ────────────────────────────────────────────────── */
.ticker { overflow: hidden; }
.ticker-head {
    border-bottom: 1px solid var(--line); padding: .625rem 1rem;
    font-family: var(--font-display); font-size: .875rem; font-weight: 600; color: var(--muted); margin: 0;
}
.ticker-list { list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.ticker-row { display: flex; align-items: center; gap: .75rem; padding: .625rem 1rem; border-top: 1px solid rgba(38,34,57,.6); }
.ticker-row:first-child { border-top: none; }
.ticker-text { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-price { font-weight: 600; color: var(--price); font-variant-numeric: tabular-nums; }
.ticker-time { width: 6rem; text-align: right; font-size: .75rem; color: var(--muted); }

/* ── สถิติ ───────────────────────────────────────────────────────────── */
.stat-grid-3, .stat-grid-4, .stat-grid-6 { display: grid; gap: .75rem; }
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat-grid-4 { grid-template-columns: repeat(2, 1fr); }
.stat-grid-6 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
    .stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
    .stat-grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) { .stat-grid-6 { grid-template-columns: repeat(6, 1fr); } }

.stat-tile { padding: 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); }
.card-panel.stat-tile { background: var(--panel); }
.stat-label { font-size: .75rem; color: var(--muted); }
.stat-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-link { text-decoration: none; color: inherit; transition: border-color .15s; }
.stat-link:hover { border-color: rgba(139,92,246,.5); color: inherit; }

/* ── กราฟแท่ง ────────────────────────────────────────────────────────── */
.bar-chart { display: flex; height: 10rem; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.bar-col { display: flex; flex: 1; flex-direction: column; align-items: center; gap: .375rem; height: 100%; justify-content: flex-end; }
.bar-num { font-size: .625rem; color: var(--muted); font-variant-numeric: tabular-nums; min-height: .75rem; }
.bar { width: 100%; border-radius: 4px 4px 0 0; overflow: hidden; }
.bar-solid { background: linear-gradient(to top, var(--neon2), var(--cyber)); }
.bar-stack { display: flex; flex-direction: column-reverse; }
.seg { display: block; width: 100%; }
.seg-ok { background: var(--ok); } .seg-warn { background: var(--warn); } .seg-bad { background: var(--bad); }
.bar-label { font-size: .625rem; color: var(--muted); }

.legend { display: flex; gap: .75rem; font-size: .75rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .25rem; }
.sw { width: .625rem; height: .625rem; border-radius: 2px; display: inline-block; }
.sw-ok { background: var(--ok); } .sw-warn { background: var(--warn); } .sw-bad { background: var(--bad); }

/* ── รายการอันดับ ────────────────────────────────────────────────────── */
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.rank-row { display: flex; align-items: center; gap: .625rem; font-size: .875rem; }
.rank-no { width: 1rem; text-align: right; font-family: var(--font-display); font-weight: 700; color: var(--muted); }
.rank-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-amount { width: 5rem; text-align: right; font-weight: 600; color: var(--price); font-variant-numeric: tabular-nums; }
.rank-count { width: 3.5rem; text-align: right; }
.progress-track { flex: 1; height: .375rem; border-radius: 999px; background: var(--panel2); overflow: hidden; }
.progress-fill { display: block; height: 100%; background: linear-gradient(to right, var(--neon2), var(--cyber)); }
.progress-bad { background: rgba(248,113,113,.7); }

/* ── ตาราง ───────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.tg-table { width: 100%; min-width: 40rem; font-size: .875rem; border-collapse: collapse; }
.tg-table thead th {
    border-bottom: 1px solid var(--line); text-align: left; padding: .625rem 1rem;
    font-size: .75rem; text-transform: uppercase; color: var(--muted); font-weight: 500; white-space: nowrap;
}
.tg-table tbody td { border-top: 1px solid rgba(38,34,57,.6); padding: .625rem 1rem; vertical-align: middle; }
.row-off { opacity: .5; }
.sub-line { display: block; font-size: .625rem; font-weight: 400; color: var(--muted); }

.toggle-pill {
    border-radius: 999px; border: 1px solid; padding: .125rem .625rem;
    font-size: .75rem; cursor: pointer; background: none;
}
.toggle-pill.on  { border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.1); color: var(--ok); }
.toggle-pill.off { border-color: var(--line); background: var(--panel2); color: var(--muted); }

/* ── รายการคำสั่งซื้อ ────────────────────────────────────────────────── */
.order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .625rem; }
.order-row {
    position: relative; overflow: hidden;
    border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--panel);
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.order-row:hover { transform: translateY(-2px); border-color: rgba(139,92,246,.5); box-shadow: 0 0 18px rgba(139,92,246,.18); }
.order-stripe { position: absolute; left: 0; top: 0; height: 100%; width: 4px; }
.stripe-warn { background: var(--warn); } .stripe-ok { background: var(--ok); }
.stripe-cyber { background: var(--cyber); } .stripe-line { background: var(--line); }
.order-hit { position: absolute; inset: 0; z-index: 1; }
.order-inner { display: flex; align-items: center; gap: .75rem; padding: .875rem 1rem .875rem 1.25rem; }
.order-main { min-width: 0; flex: 1; }
.order-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 500; }
.order-meta { margin-top: .125rem; display: flex; flex-wrap: wrap; align-items: center; gap: .125rem .5rem; font-size: .75rem; color: var(--muted); }
.order-right { display: flex; flex-shrink: 0; flex-direction: column; align-items: flex-end; gap: .25rem; }
.order-price { font-weight: 600; color: var(--price); font-variant-numeric: tabular-nums; }

/* ── รายละเอียดคำสั่งซื้อ ────────────────────────────────────────────── */
.detail-head { display: flex; align-items: center; gap: .75rem; }
.detail-emoji { font-size: 1.75rem; line-height: 1; }
.detail-list {
    display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem;
    border-radius: 12px; border: 1px solid var(--line); background: var(--panel2);
    padding: 1rem; font-size: .875rem; margin: 0;
}
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; text-align: right; }
.kv-list { display: grid; grid-template-columns: auto 1fr; gap: .375rem 1rem; font-size: .875rem; margin: 0; }
.kv-list dt { color: var(--muted); }
.kv-list dd { margin: 0; }

.code-box {
    overflow-x: auto; border-radius: 8px; border: 1px solid rgba(52,211,153,.4);
    background: #0d1f18; padding: .75rem;
    font-family: ui-monospace, monospace; font-size: .875rem; color: var(--price);
    white-space: pre-wrap; word-break: break-all; margin: 0 0 .5rem;
}
.slip-mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.slip-mini { display: flex; align-items: center; gap: .75rem; }

/* ── หน้าชำระเงิน ────────────────────────────────────────────────────── */
.pay-head { display: flex; align-items: flex-start; gap: .75rem; }
.countdown { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--warn); font-size: .875rem; }
.countdown.is-urgent { color: var(--bad); }
.qr-panel { display: flex; flex-direction: column; align-items: center; gap: .5rem; border-radius: 12px; background: #fff; padding: 1rem; }
/* ใหญ่ขึ้นหน่อยเพื่อให้กล้องมือถือจับโมดูลได้ชัด — QR จ่ายเงินสแกนพลาดไม่ได้
   (ไม่ใส่ image-rendering: pixelated เพราะรูปถูกย่อลงมาแสดง nearest-neighbor
    จะกินโมดูลบางแถวหายไปทั้งแถว) */
.qr-img { width: 15rem; height: 15rem; max-width: 100%; }
.qr-note { text-align: center; font-size: .75rem; font-weight: 500; color: #1c1a28; }
.qr-warn { padding: 1.5rem 0; text-align: center; font-size: .875rem; color: #1c1a28; margin: 0; }
.qr-amount { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #0e7490; font-variant-numeric: tabular-nums; }

/* ทางสำรองเมื่อสแกนไม่ติด — อยู่บนพื้นขาวของ .qr-panel จึงใช้ตัวอักษรสีเข้ม */
.qr-manual { display: flex; flex-direction: column; align-items: center; gap: .25rem; margin-top: .25rem; }
.qr-manual > span { font-size: .6875rem; color: #55506b; }
.qr-copy {
    display: inline-flex; align-items: center; gap: .375rem;
    border-radius: 8px; border: 1px solid rgba(28,26,40,.18); background: rgba(28,26,40,.04);
    padding: .25rem .625rem; font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums;
    font-size: .9375rem; font-weight: 700; color: #1c1a28; cursor: pointer; transition: border-color .15s, background .15s;
}
.qr-copy:hover { border-color: rgba(28,26,40,.4); background: rgba(28,26,40,.08); }
.qr-copy:active { transform: translateY(1px); }

/* ── หน้าขอบคุณ ──────────────────────────────────────────────────────── */
.thanks-head { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.thanks-medal {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 6rem; height: 6rem; border-radius: 999px;
    background: linear-gradient(to bottom right, rgba(52,211,153,.25), rgba(34,211,238,.15));
}
.thanks-glow { position: absolute; inset: 0; border-radius: 999px; background: rgba(52,211,153,.2); filter: blur(32px); }
.thanks-item { display: flex; align-items: center; gap: .75rem; }
.amount-row {
    display: flex; align-items: center; justify-content: space-between;
    border-radius: 12px; border: 1px solid var(--line); background: var(--panel2);
    padding: .625rem 1rem; font-size: .875rem;
}

/* ── อัพสลิป ─────────────────────────────────────────────────────────── */
.dropzone {
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
    cursor: pointer; border-radius: var(--radius-card);
    border: 2px dashed #4c4670; background: #110f1d;
    padding: 1.5rem; text-align: center; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--neon); background: rgba(139,92,246,.05); }
.dropzone.has-file { border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.05); }
.dropzone.has-file .js-drop-title { color: var(--ok); }
.dropzone-icon {
    display: flex; align-items: center; justify-content: center;
    width: 3.5rem; height: 3.5rem; border-radius: 999px;
    background: linear-gradient(to bottom right, rgba(139,92,246,.25), rgba(34,211,238,.15));
    color: var(--epic);
}
.dropzone-preview { width: 6rem; height: 6rem; border-radius: 12px; border: 1px solid var(--line); object-fit: cover; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.dropzone-sub { margin-top: .125rem; display: block; font-size: .75rem; color: var(--muted); }
.slip-uploader { display: flex; flex-direction: column; gap: .75rem; }

.verify-steps { display: flex; flex-direction: column; gap: .625rem; padding: 1rem; }
.verify-row { display: flex; align-items: center; gap: .75rem; font-size: .875rem; }
.verify-mark {
    display: flex; align-items: center; justify-content: center;
    width: 1.5rem; height: 1.5rem; border-radius: 999px; border: 1px solid var(--line);
    font-size: .75rem; font-weight: 700; color: var(--muted); flex-shrink: 0;
}
.verify-row.is-done .verify-mark { border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.15); color: var(--ok); }
.verify-row.is-now .verify-mark  { border-color: var(--neon); background: rgba(139,92,246,.15); color: var(--epic); animation: pulse 1.2s ease-in-out infinite; }
.verify-label { color: var(--muted); }
.verify-row.is-done .verify-label, .verify-row.is-now .verify-label { color: var(--ink); }
.verify-now { margin-left: auto; font-size: .75rem; color: var(--muted); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

.pending-slip { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; border-color: rgba(251,191,36,.4); }
.pending-head { display: flex; align-items: center; justify-content: space-between; font-size: .875rem; }

/* ── รายการข้อเสนอ ───────────────────────────────────────────────────── */
.offer-picker { display: flex; flex-direction: column; gap: .75rem; }
.offer-list { display: flex; flex-direction: column; gap: .5rem; }
.offer {
    display: flex; align-items: center; gap: .75rem; width: 100%;
    border-radius: var(--radius-ctl); border: 1px solid var(--line); background: none;
    padding: .75rem; text-align: left; font-size: .875rem; color: var(--ink);
    cursor: pointer; transition: border-color .15s, background .15s;
}
.offer:hover { border-color: rgba(139,92,246,.5); }
.offer.is-picked { border-color: var(--neon); background: rgba(139,92,246,.1); }
.offer-text { flex: 1; min-width: 0; }
.offer-sub { display: block; font-size: .75rem; color: var(--muted); }
.offer-price { font-weight: 600; color: var(--price); font-variant-numeric: tabular-nums; }
.offer-fields {
    display: flex; flex-direction: column; gap: .5rem;
    border-radius: var(--radius-ctl); border: 1px solid var(--line); background: var(--panel2); padding: .75rem;
}

/* ── ผลตรวจรายชั้น ───────────────────────────────────────────────────── */
.slip-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .375rem; }
.slip-check-row { display: flex; align-items: center; gap: .625rem; font-size: .875rem; }
.chk-mark {
    display: flex; align-items: center; justify-content: center;
    width: 1.5rem; height: 1.5rem; border-radius: 999px; border: 1px solid;
    font-size: .75rem; font-weight: 700; flex-shrink: 0;
}
.chk-label { min-width: 0; flex: 1; }
.chk-no { font-size: .75rem; color: var(--muted); }
.chk-text { flex-shrink: 0; font-size: .75rem; font-weight: 500; }
.chk-pass  { border-color: rgba(52,211,153,.5);  background: rgba(52,211,153,.15);  color: var(--ok); }
.chk-fail  { border-color: rgba(248,113,113,.5); background: rgba(248,113,113,.15); color: var(--bad); }
.chk-error { border-color: rgba(251,191,36,.5);  background: rgba(251,191,36,.15);  color: var(--warn); }
.chk-skip, .chk-none { border-color: var(--line); background: var(--panel2); color: var(--muted); }
span.chk-pass, span.chk-fail, span.chk-error, span.chk-skip, span.chk-none { border: none; background: none; }

/* ── หลังร้าน ────────────────────────────────────────────────────────── */
.admin-head { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .75rem; }
.admin-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--warn); margin: 0; }
.admin-who { font-size: .75rem; color: var(--muted); }
.admin-nav { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1rem; }
.admin-nav .chip { flex-shrink: 0; }

.admin-order { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; }
.ao-head { display: flex; align-items: flex-start; gap: .75rem; }
.ao-slips { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.ao-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; }
.ao-form { display: flex; flex: 1; min-width: 16rem; align-items: flex-end; gap: .5rem; }
.gd-chip { margin-left: .375rem; border-radius: 4px; background: var(--panel2); padding: .125rem .375rem; color: var(--cyber); }
.slip-chip { border-radius: 999px; border: 1px solid; padding: .0625rem .5rem; font-size: .6875rem; text-decoration: none; }
.slip-chip.txt-ok   { border-color: rgba(52,211,153,.4);  background: rgba(52,211,153,.1); }
.slip-chip.txt-bad  { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.1); }
.slip-chip.txt-warn { border-color: rgba(251,191,36,.4);  background: rgba(251,191,36,.1); }

.queue-card { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; border-color: rgba(251,191,36,.4); }
.queue-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; }

.search-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.export-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; padding: 1rem; }
.form-card { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem; }
.form-grid { display: grid; gap: .75rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } .span-2 { grid-column: span 2; } }
@media (min-width: 992px) { .form-grid { grid-template-columns: repeat(3, 1fr); } .span-3 { grid-column: span 3; } }
.form-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; }
.simple-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .375rem; font-size: .875rem; }
.simple-list li { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.simple-list li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-emoji { display: inline-flex; width: 20px; justify-content: center; }

/* รายการยาวๆ (เกม 30 ตัว) ให้เลื่อนในกล่องตัวเอง ไม่ดันหน้ายาวเป็นหางว่าว */
.scroll-list { max-height: 22rem; overflow-y: auto; padding-right: .25rem; }
.add-form {
    border-bottom: 1px solid var(--line);
    padding-bottom: .75rem;
    margin-bottom: .25rem;
}
.code-list { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; font-size: .75rem; }
.code-list li { display: flex; align-items: center; gap: .5rem; }

.slip-detail-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .slip-detail-grid { grid-template-columns: 280px 1fr; } }
.slip-img { width: 100%; border-radius: 8px; border: 1px solid var(--line); background: #fff; object-fit: contain; }
.label-cap { padding-inline: .25rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; color: var(--muted); margin: 0; }

.verdict { border-radius: var(--radius-card); border: 1px solid; padding: .75rem 1rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.vd-ok    { border-color: rgba(52,211,153,.5);  background: rgba(52,211,153,.1);  color: var(--ok); }
.vd-cyber { border-color: rgba(34,211,238,.5);  background: rgba(34,211,238,.1);  color: var(--cyber); }
.vd-bad   { border-color: rgba(248,113,113,.5); background: rgba(248,113,113,.1); color: var(--bad); }
.vd-warn  { border-color: rgba(251,191,36,.5);  background: rgba(251,191,36,.1);  color: var(--warn); }
.vd-mute  { border-color: var(--line); background: var(--panel2); color: var(--muted); }

.raw-summary { cursor: pointer; font-weight: 500; color: var(--muted); }
.raw-json {
    margin-top: .5rem; overflow-x: auto; border-radius: 8px; border: 1px solid var(--line);
    background: #0d0b18; padding: .75rem; font-family: ui-monospace, monospace; font-size: .75rem; color: var(--muted);
}
.var-chip { border-radius: 4px; background: var(--panel2); padding: .125rem .375rem; font-family: ui-monospace, monospace; color: var(--cyber); }
.status-strip { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); }

/* ฟอร์ม Auto Transaction — มือถือเรียงลงล่าง จอกว้างวางเป็นตาราง ไม่ให้เหลือที่ว่างข้างขวา */
.autotx-grid { display: grid; gap: .75rem; grid-template-columns: 1fr; }
.autotx-grid > * { min-width: 0; }
@media (min-width: 640px) { .autotx-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .autotx-grid { grid-template-columns: repeat(4, 1fr); } }
/* 4 คอลัมน์ทำให้คอลัมน์แคบ label บางอัน ("จำนวนต่อวัน (สูงสุด 1,000)") ตก 2 บรรทัด
   → ดันช่องกรอกให้เหลื่อมกัน แก้โดยจองความสูง label ให้เท่ากันพอ 2 บรรทัด
   เฉพาะตอน 4 คอลัมน์ ช่องกรอกทุกช่องจะเริ่มที่ระดับเดียวกัน */
@media (min-width: 992px) {
    .autotx-grid .field-label { min-height: 3em; }
}
.mt-1 { margin-top: .25rem; }

/* ── สวิตช์เปิด/ปิด ──────────────────────────────────────────────────── */
.toggle-box {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    border-radius: var(--radius-ctl); border: 1px solid rgba(34,211,238,.3);
    background: rgba(34,211,238,.05); padding: .75rem;
}
.switch { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-off, .switch-on { font-size: .6875rem; font-weight: 500; }
.switch-off { color: var(--muted); }
.switch-on  { color: var(--ok); display: none; }
.switch input:checked ~ .switch-off { display: none; }
.switch input:checked ~ .switch-on  { display: inline; }
.switch-track {
    position: relative; width: 2.25rem; height: 1.25rem; border-radius: 999px;
    background: var(--line); transition: background .15s;
}
.switch-track::after {
    content: ''; position: absolute; left: .125rem; top: .125rem;
    width: 1rem; height: 1rem; border-radius: 999px; background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s;
}
.switch input:checked ~ .switch-track { background: var(--ok); }
.switch input:checked ~ .switch-track::after { transform: translateX(1rem); }

/* ── หน้าเข้าสู่ระบบ ─────────────────────────────────────────────────── */
.auth-wrap { max-width: 24rem; margin-inline: auto; display: flex; flex-direction: column; gap: 1rem; padding-top: 1.5rem; }
.auth-title { text-align: center; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: 0; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.auth-foot { text-align: center; font-size: .875rem; color: var(--muted); margin: 0; }

/* ── โปรไฟล์ ─────────────────────────────────────────────────────────── */
.profile-head { display: flex; align-items: center; gap: .75rem; }
.avatar {
    display: flex; align-items: center; justify-content: center;
    width: 3.5rem; height: 3.5rem; border-radius: 999px;
    background: linear-gradient(to bottom right, rgba(139,92,246,.25), rgba(34,211,238,.15));
    font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--epic);
}
.profile-name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }

/* ── ช่วยเหลือ ───────────────────────────────────────────────────────── */
.step-list { list-style: none; margin: 0; padding: 0; }
.step-row { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; font-size: .875rem; border-top: 1px solid rgba(38,34,57,.6); }
.step-row:first-child { border-top: none; }
.step-num {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 1.75rem; height: 1.75rem; border-radius: 999px;
    background: linear-gradient(to bottom right, var(--neon), var(--cyber));
    font-family: var(--font-display); font-size: .75rem; font-weight: 700; color: #fff;
}
.faq { padding: 1rem; }
.faq-q { cursor: pointer; list-style: none; font-size: .875rem; font-weight: 500; }
.faq-q::-webkit-details-marker { display: none; }
.faq-arrow { display: inline-block; margin-right: .5rem; transition: transform .15s; }
.faq[open] .faq-arrow { transform: rotate(90deg); }
.faq-a { margin: .5rem 0 0; padding-left: 1.25rem; font-size: .875rem; line-height: 1.7; color: var(--muted); }
.contact-card { display: flex; align-items: center; gap: .75rem; padding: 1rem; font-size: .875rem; }

/* ── ขั้นตอน 3 ช่อง (หน้า topup) ─────────────────────────────────────── */
.step-strip { position: relative; margin-top: 1.25rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.step-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: .375rem; text-align: center; }
.step-line { position: absolute; left: 50%; top: 1.25rem; height: 1px; width: 100%; background: rgba(255,255,255,.15); }
.step-circle {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff;
}
.step-label { font-size: .75rem; font-weight: 600; color: #fff; }
.step-sub { font-size: .625rem; color: #c4b5fd; }
.step-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.25rem; height: 1.25rem; border-radius: 999px;
    background: rgba(139,92,246,.2); font-size: .6875rem; font-weight: 700; color: var(--epic);
}

/* ── การ์ดบัญชีรับเงิน (พร้อมเพย์ / ธนาคาร) ──────────────────────────
   สองช่องทางใช้โครงลูกชุดเดียวกัน (.pp-*) ต่างกันแค่พื้นหลังกับแถบสีแบรนด์
   เพื่อให้ลูกค้าที่เคยเห็นแบบหนึ่งอ่านอีกแบบได้ทันทีโดยไม่ต้องเรียนรู้ใหม่ */
.pay-card, .promptpay-card {
    position: relative; overflow: hidden;
    border-radius: var(--radius-card); border: 1px solid var(--line);
    background: linear-gradient(to bottom right, #14233f, #0e2e33); padding: 1.25rem;
}

/* ยังตั้งค่าไม่ครบ — ไม่ต้องอวดสี ให้ข้อความเตือนเด่นแทน */
.pay-card-unset { background: var(--panel); }

/* แถบสีแบรนด์ธนาคารพาดบนสุด — อ่านออกทุกสี ต่างจากการเอาสีไปเป็นพื้นข้อความ
   ซึ่งแบงก์สีอ่อน (กรุงศรี #fec43b) กับสีเข้ม (ยูโอบี #0b3979) จะคอนทราสต์พังคนละทาง */
.bank-card { background: linear-gradient(to bottom right, #1a1830, #0e1a2b); }
.bank-card::before {
    content: ''; position: absolute; inset: 0 0 auto; height: 3px;
    background: var(--bank); z-index: 1;
}
@supports (background: color-mix(in srgb, red 20%, blue)) {
    .bank-card {
        background: linear-gradient(to bottom right, color-mix(in srgb, var(--bank) 20%, #14121f), #0e1a2b);
        border-color: color-mix(in srgb, var(--bank) 35%, var(--line));
    }
}
.bank-card .pp-label { color: #fff; text-transform: none; letter-spacing: 0; }
.bank-dot {
    width: .6rem; height: .6rem; border-radius: 999px; flex: none;
    background: var(--bank); box-shadow: 0 0 0 1px rgba(255,255,255,.45);
}

/* ยอดที่ต้องโอน — ตัวเลขสำคัญที่สุดบนการ์ด โอนคลาดไปบาทเดียวระบบก็จับคู่ไม่ได้
   จึงต้องเด่นเท่า .qr-amount ของฝั่งพร้อมเพย์ ไม่ใช่แถวข้อมูลธรรมดา */
/* ⚠️ ต้องเจาะจงกว่า .pp-account b (สีขาว) ที่ประกาศทีหลังในไฟล์นี้ */
.bank-card .bank-amount b {
    font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
    color: var(--price); font-variant-numeric: tabular-nums;
}

/* กดคัดลอกยอดได้ — ปุ่มที่กลมกลืนไปกับข้อความ แต่พื้นที่กดยังถึง 44px บนมือถือ */
.copy-inline {
    display: inline-flex; align-items: center; gap: .375rem;
    border: 0; background: none; padding: .375rem 0; margin: -.375rem 0; min-height: 2.75rem;
    color: inherit; cursor: pointer; font-family: inherit; font-size: inherit;
}
.copy-inline:hover { opacity: .8; }
.pp-watermark { pointer-events: none; position: absolute; right: -1.5rem; top: -1.5rem; color: rgba(255,255,255,.05); }
.pp-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.pp-label { display: flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: var(--cyber); }
.pp-step { border-radius: 999px; background: rgba(255,255,255,.1); padding: .0625rem .625rem; font-size: .625rem; color: rgba(255,255,255,.7); }
.pp-value { position: relative; margin-top: .75rem; }
.pp-account { position: relative; margin-top: .75rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); padding-top: .75rem; font-size: .875rem; }
.pp-account span { color: rgba(255,255,255,.6); }
.pp-account b { color: #fff; }
.pp-note { position: relative; margin: .5rem 0 0; font-size: .75rem; color: rgba(255,255,255,.5); }
.copy-value {
    display: inline-flex; align-items: center; gap: .5rem;
    border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.1);
    padding: .375rem .75rem; font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums;
    font-size: 1.125rem; font-weight: 700; color: #fff; cursor: pointer; transition: border-color .15s;
}
.copy-value:hover { border-color: rgba(255,255,255,.3); }

.feature-grid { display: grid; gap: .75rem; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; }
.feature-icon {
    display: flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem; border-radius: 8px;
    background: linear-gradient(to bottom right, rgba(139,92,246,.2), rgba(34,211,238,.1)); color: var(--epic);
}

/* ── flash / แจ้งเตือน ───────────────────────────────────────────────── */
.flash-stack { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.flash { border-radius: var(--radius-ctl); border: 1px solid; padding: .625rem .875rem; font-size: .875rem; margin: 0; }
.flash-ok   { border-color: rgba(52,211,153,.4);  background: rgba(52,211,153,.1);  color: var(--ok); }
.flash-bad  { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.1); color: var(--bad); }
.flash-warn { border-color: rgba(251,191,36,.4);  background: rgba(251,191,36,.1);  color: var(--warn); }
.flash-info { border-color: rgba(34,211,238,.4);  background: rgba(34,211,238,.1);  color: var(--cyber); }

/* ── หน้า error ──────────────────────────────────────────────────────── */
.error-card { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 3rem 1.5rem; text-align: center; max-width: 30rem; margin-inline: auto; }
.error-emoji { font-size: 3rem; }
.error-code { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; margin: 0; color: var(--muted); }
.error-msg { color: var(--ink); margin: 0; }
.error-actions { display: flex; gap: .5rem; margin-top: .5rem; }

/* ── แอนิเมชัน ───────────────────────────────────────────────────────── */
@keyframes tg-pop {
    0%   { transform: scale(.5); opacity: 0; }
    60%  { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes tg-rise {
    from { transform: translateY(8px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.animate-pop  { animation: tg-pop .55s cubic-bezier(.2,.8,.2,1) both; }
.animate-rise { animation: tg-rise .5s ease-out .15s both; }

/* เคารพการตั้งค่าลดการเคลื่อนไหวของผู้ใช้ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ── ทับสไตล์ SweetAlert2 / DataTables ให้เข้าธีม ────────────────────── */
.swal2-popup { background: var(--panel) !important; color: var(--ink) !important; border: 1px solid var(--line); border-radius: var(--radius-card) !important; font-family: var(--font-sans) !important; }
.swal2-title { color: var(--ink) !important; font-family: var(--font-display) !important; }
.swal2-html-container { color: var(--muted) !important; }
.swal2-confirm { background: linear-gradient(to right, var(--neon2), var(--neon)) !important; border-radius: var(--radius-ctl) !important; }
.swal2-cancel  { background: var(--panel2) !important; border: 1px solid var(--line) !important; border-radius: var(--radius-ctl) !important; }

.dataTables_wrapper { color: var(--muted); padding: 0 1rem 1rem; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: var(--panel2); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: .25rem .5rem;
}
.dataTables_wrapper .paginate_button { color: var(--muted) !important; }
.dataTables_wrapper .paginate_button.current { background: var(--neon) !important; color: #fff !important; border-radius: 6px; }

/* DataTables 2.x (ธีม -dt) — ชื่อคลาสใหม่ ทำให้เข้าธีมมืด */
.dt-container { color: var(--muted); padding: 0 1rem 1rem; }
.dt-container .dt-search input,
.dt-container .dt-length select {
    background: var(--panel2); border: 1px solid var(--line); color: var(--ink);
    border-radius: 8px; padding: .3rem .55rem; margin-inline: .35rem;
}
.dt-container .dt-paging .dt-paging-button {
    color: var(--muted) !important; border-radius: 6px; padding: .3rem .7rem;
}
.dt-container .dt-paging .dt-paging-button.current,
.dt-container .dt-paging .dt-paging-button:hover {
    background: var(--neon) !important; color: #fff !important; border-color: transparent !important;
}
.dt-container .dt-info { color: var(--muted); font-size: .8rem; }
table.dataTable > tbody > tr { background: transparent; }
table.dataTable > tbody > tr:hover { background: rgba(139,92,246,.06); }
table.dataTable td, table.dataTable th { border-color: rgba(38,34,57,.6) !important; }

/* ==========================================================================
   ✨ POLISH — ปรับให้ลื่นและพรีเมียมขึ้น (คู่กับ AOS)
   ========================================================================== */

/* เลื่อนไปยัง #games ฯลฯ แบบนุ่มนวล */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Tailwind preflight ตั้ง img เป็น block — คืนค่าให้ไอคอนเกมที่วางแนวข้อความ */
img.game-icon { display: inline-block; }

/* ปุ่มหลัก: เพิ่มประกายวิ่งผ่านตอน hover + กดแล้วยุบเล็กน้อย ให้รู้สึกตอบสนอง */
.btn-neon { position: relative; overflow: hidden; }
.btn-neon::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .6s ease;
}
.btn-neon:hover::after { transform: translateX(120%); }
.btn-neon:active, .btn-ghost:active { transform: translateY(1px) scale(.99); }

/* การ์ดสินค้า/เกม: เงาลึกขึ้นนิดตอน hover ให้ดูลอย */
.item-card, .game-tile { will-change: transform; }

/* ฮีโร่: ให้แสงเรืองขยับช้าๆ ดูมีชีวิต (ปิดเมื่อผู้ใช้ลดการเคลื่อนไหว) */
@keyframes tg-float {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-14px, 12px); }
}
.hero-glow { animation: tg-float 9s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hero-glow { animation: none; } }

/* ลิงก์และชิปเปลี่ยนสีนุ่มขึ้น */
a, .chip, .tg-nav-link, .tg-tab { transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }

/* AOS: กันเนื้อหากระโดดแนวนอนระหว่างเล่น fade-up (element เลื่อนขึ้นจากล่าง) */
[data-aos] { will-change: opacity, transform; }

/* ==========================================================================
   ✨ POLISH v2 — เพิ่มมิติ ความตอบสนอง และการเข้าถึง (คงสไตล์เดิม)
   ========================================================================== */

/* — พื้นที่กดบนจอสัมผัส ≥44px (เกณฑ์ WCAG / มือถือ) — */
@media (max-width: 767px) {
    .btn-neon, .btn-ghost, .input-dark { min-height: 44px; }
    .btn-sm { min-height: 40px; }
    .chip, .toggle-pill { min-height: 38px; display: inline-flex; align-items: center; }
}

/* — ช่องกรอกโฟกัส: วงเรืองม่วงนุ่ม บอกตำแหน่งชัดขึ้น (เดิมเปลี่ยนแค่สีขอบ) — */
.input-dark { transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.input-dark:focus { box-shadow: 0 0 0 3px rgba(139,92,246,.22); }

/* — การ์ดพาเนล: ไฮไลต์ขอบบนจาง + เงานุ่ม ให้ดูมีมิติลอยจากพื้นมืด — */
.card-panel { box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 12px 30px -24px rgba(0,0,0,.9); }

/* — ลิงก์เมนูบน (เดสก์ท็อป): hover มีพื้นจาง เห็นชัด/กดง่ายขึ้น — */
.tg-nav-link:hover { background: rgba(139,92,246,.12); }

/* — Active press: คลิกแล้วยุบเล็กน้อยทั่วถึง ให้รู้สึกจับต้องได้ — */
.chip:active, .game-tile:active, .item-card:active, .order-row:active,
.offer:active, .tg-user-pill:active, .copy-value:active, .stat-link:active {
    transform: translateY(1px) scale(.995);
}
