/*
 * ระบบหน้าสมาชิก — ฝาก ถอน คืนยอดเสีย ประวัติ ข้อมูลส่วนตัว โปรโมชั่น แนะนำเพื่อน เปลี่ยนรหัส
 *
 * ของเดิมแต่ละหน้ามี CSS ของตัวเอง (deposit.css withdraw.css cashback.css …) ที่ยกมาจาก <style>
 * ในไฟล์ Blade คนละไฟล์ คนละคนเขียน — การ์ดสีดำ-ทองตายตัว (#1a1a25 / #d4af37) ทุกหน้า
 * พอแอดมินเลือกธีมเขียว ม่วง หรือแดง การ์ดดำขอบทองก็ยังลอยอยู่บนพื้นสีธีม ไม่เข้ากัน
 * ความกว้างหน้าไม่เท่ากัน (460–900px) ปุ่มยืนยันคนละสี (ทอง แดง เขียว) หัวข้อคนละแบบ
 *
 * ไฟล์นี้เป็นคำศัพท์ชุดเดียวที่ทุกหน้าสมาชิกใช้ร่วมกัน สีทุกค่ามาจากตัวแปรธีม (--color-*)
 * ที่ app.vue ประกาศจากค่าที่แอดมินเลือก จึงเข้ากับทุกธีมโดยไม่ต้องแก้ไฟล์นี้
 *
 * ลำดับชั้นพื้นผิว (จากลึกไปตื้น)
 *   พื้นหน้า          พื้นหลังธีม (body)
 *   .m-card           กระจกสีธีม ขอบขาวจาง — ข้อมูลทั่วไป
 *   .m-hero           การ์ดหลักของหน้า ขอบไล่สี accent + แสงนวล — ตัวเลขที่ลูกค้ามาดู
 *
 * ปุ่ม
 *   --primary  สี button ของธีม — การกระทำหลักทั่วไป (สร้าง QR, รับเงินคืน)
 *   --accent   สี accent (ทอง) — การกระทำเรื่องเงินออก/ยืนยัน (ยืนยันถอน) เหมือนปุ่มถอนบนหัวเว็บ
 *   --soft     accent จาง — การกระทำรอง (คัดลอก, ดึงเงินกลับ)
 *   --ghost    ขาวจาง — ปิด/ยกเลิก
 *
 * การเคลื่อนไหวมีไว้บอกสถานะเท่านั้น: เลื่อนแท็บ เลือกยอด คัดลอกสำเร็จ เวลาที่เหลือของ QR
 * ทั้งหมดปิดได้ด้วย prefers-reduced-motion
 */

:root {
    --m-ease: cubic-bezier(.22, 1, .36, 1);

    /*
     * ทอง — คงที่ทุกธีม ไม่ตามสี accent ที่แอดมินเลือก
     * ธีมคือบรรยากาศ (พื้นหลัง หัวเว็บ ปุ่มหลัก) ดำคือพื้นผิว (การ์ด แผง ช่องกรอก) ทองคือของมีค่า
     * (ยอดเงิน สิ่งที่เลือกอยู่ ปุ่มเรื่องเงิน) — ถ้าทั้งสามเป็นสีเดียวกันทุกหน้าจะกลืนกันหมด
     */
    --gold: #d4af37;
    --gold-light: #f3dc9a;
    --gold-dark: #9c7a2e;
    --gold-rgb: 212, 175, 55;

    --m-r-lg: 20px;
    --m-r-md: 14px;
    --m-r-sm: 10px;

    --m-line: rgba(255, 255, 255, .07);
    --m-line-strong: rgba(var(--gold-rgb), .28);

    --m-accent-rgb: var(--gold-rgb);
    --m-button-rgb: var(--color-button-rgb, 26, 126, 255);

    /* กระจกดำ — การ์ดเป็นดำเกือบทึบบนพื้นสีธีม ให้พื้นผิวตัดกับบรรยากาศ ไม่กลืนเป็นสีเดียว */
    --m-card-bg:
        linear-gradient(180deg, rgba(22, 23, 27, .94) 0%, rgba(10, 11, 13, .96) 100%);

    /* สีสถานะ — ไม่ผูกธีม เพราะ "สำเร็จ" ต้องเขียวเสมอแม้ธีมจะแดง */
    --m-ok: #86efac;
    --m-ok-bg: rgba(74, 222, 128, .14);
    --m-ok-line: rgba(74, 222, 128, .4);
    --m-bad: #fca5a5;
    --m-bad-bg: rgba(248, 113, 113, .14);
    --m-bad-line: rgba(248, 113, 113, .4);
    --m-wait: #fde68a;
    --m-wait-bg: rgba(251, 191, 36, .14);
    --m-wait-line: rgba(251, 191, 36, .4);
}

/* ── หน้า ─────────────────────────────────────────────────────── */

.m-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 22px 14px 36px;
    animation: m-in .28s var(--m-ease) both;
}

@keyframes m-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.m-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 0 2px 16px;
}

.m-head h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
}

.m-head p {
    margin: 4px 0 0;
    font-size: var(--text-sm);
    color: var(--ink-soft);
}

.m-section {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 2px 10px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ink-soft);
}

.m-section a {
    font-weight: 500;
    color: var(--gold-light);
    text-decoration: none;
}

.m-section a:hover { text-decoration: underline; }

.m-stack > * + * { margin-top: 14px; }

/* ── พื้นผิว ──────────────────────────────────────────────────── */

.m-card {
    position: relative;
    padding: 18px;
    border-radius: var(--m-r-lg);
    background: var(--m-card-bg);
    border: 1px solid var(--m-line);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 10px 30px rgba(0, 0, 0, .22);
}

.m-card + .m-card { margin-top: 14px; }

.m-card h3 {
    margin: 0 0 12px;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--ink);
}

/* การ์ดหลัก — ขอบไล่สี accent 1px ทำด้วย padding ของชั้นนอก */
.m-hero {
    position: relative;
    padding: 1px;
    border-radius: var(--m-r-lg);
    background: linear-gradient(135deg,
        rgba(var(--m-accent-rgb), .75) 0%,
        rgba(var(--m-accent-rgb), .18) 35%,
        rgba(var(--m-accent-rgb), .18) 65%,
        rgba(var(--m-accent-rgb), .75) 100%);
    box-shadow:
        0 0 48px rgba(var(--m-accent-rgb), .12),
        0 18px 44px rgba(0, 0, 0, .35);
}

.m-hero__body {
    position: relative;
    padding: 22px 18px;
    border-radius: calc(var(--m-r-lg) - 1px);
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(var(--m-accent-rgb), .16), transparent 60%),
        var(--m-card-bg);
    text-align: center;
}

.m-hero + .m-card,
.m-card + .m-hero,
.m-hero + .m-alert,
.m-card + .m-alert { margin-top: 14px; }

/* ── ตัวเลขเงิน ───────────────────────────────────────────────── */

.m-money {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: -.01em;
}

.m-money--xl {
    font-size: 2.625rem;
    line-height: 1.05;
    color: var(--gold-light);
}

.m-money--xl small {
    margin-left: 6px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--ink-soft);
}

/* เลขบัญชี — ตัวเลขกว้างเท่ากัน เว้นช่องไฟให้อ่านทีละหลัก */
.m-acct {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--gold-light);
}

/* ── ปุ่ม ─────────────────────────────────────────────────────── */

.m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--m-r-md);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform .18s var(--m-ease),
        box-shadow .18s var(--m-ease),
        background-color .18s,
        border-color .18s,
        opacity .18s;
}

.m-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.m-btn i   { font-size: 1em; }

.m-btn--block { width: 100%; }

.m-btn--sm {
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--m-r-sm);
    font-size: var(--text-sm);
}

.m-btn--sm svg { width: 16px; height: 16px; }

.m-btn--primary {
    background: linear-gradient(160deg, var(--color-button, #1a7eff), var(--color-button-hover, #0040d0));
    box-shadow: 0 6px 18px rgba(var(--m-button-rgb), .35);
}

.m-btn--accent {
    background: linear-gradient(160deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
    color: color-mix(in srgb, var(--color-primary, #01143d) 65%, #000);
    box-shadow: 0 6px 18px rgba(var(--m-accent-rgb), .3);
}

.m-btn--soft {
    background: rgba(var(--m-accent-rgb), .14);
    border-color: rgba(var(--m-accent-rgb), .4);
    color: var(--gold-light);
}

.m-btn--ghost {
    background: rgba(255, 255, 255, .06);
    border-color: var(--m-line-strong);
    color: var(--ink);
}

.m-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.m-btn--primary:hover:not(:disabled) { box-shadow: 0 10px 24px rgba(var(--m-button-rgb), .45); }
.m-btn--accent:hover:not(:disabled)  { box-shadow: 0 10px 24px rgba(var(--m-accent-rgb), .4); }
.m-btn--soft:hover:not(:disabled)    { background: rgba(var(--m-accent-rgb), .22); }
.m-btn--ghost:hover:not(:disabled)   { background: rgba(255, 255, 255, .1); }

.m-btn:active:not(:disabled) {
    transform: translateY(0) scale(.985);
}

.m-btn:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

.m-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

/* คัดลอกสำเร็จ — ปุ่มเปลี่ยนเป็นเขียวพร้อมเด้งเบา ๆ ให้รู้ว่ากดติดแล้ว */
.m-btn.is-done {
    background: var(--m-ok-bg);
    border-color: var(--m-ok-line);
    color: var(--m-ok);
    animation: m-pop .3s var(--m-ease);
}

@keyframes m-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.m-spin {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: m-spin .7s linear infinite;
}

@keyframes m-spin { to { transform: rotate(360deg); } }

/* ── ช่องกรอก ─────────────────────────────────────────────────── */

.m-label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink-soft);
}

.m-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 16px;
    border-radius: var(--m-r-md);
    background: rgba(0, 0, 0, .28);
    border: 1px solid var(--m-line-strong);
    transition: border-color .18s, box-shadow .18s, background-color .18s;
}

.m-field:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(var(--m-accent-rgb), .18);
    background: rgba(0, 0, 0, .34);
}

.m-field input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.m-field input::placeholder {
    color: var(--ink-muted);
    font-weight: 400;
    font-size: 1rem;
}

.m-field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.m-field input[type="number"]::-webkit-outer-spin-button,
.m-field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.m-field__prefix {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-light);
}

.m-field__icon {
    width: 20px;
    height: 20px;
    color: var(--ink-muted);
    flex-shrink: 0;
}

.m-field--lg { min-height: 64px; }
.m-field--lg input { font-size: 1.75rem; }
.m-field--lg input::placeholder { font-size: 1.125rem; }
.m-field--lg .m-field__prefix { font-size: 1.5rem; }

.m-field__clear {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: var(--ink-soft);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color .15s, color .15s;
}

.m-field__clear:hover { background: var(--m-bad-bg); color: var(--m-bad); }
.m-field__clear svg { width: 14px; height: 14px; }

.m-hint {
    display: block;
    margin-top: 6px;
    font-size: var(--text-xs);
    color: var(--ink-muted);
}

.m-hint--error { color: var(--m-bad); }

/* ── ยอดสำเร็จรูป (chips) ───────────────────────────────────── */

.m-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.m-chips--4 { grid-template-columns: repeat(4, 1fr); }

.m-chip {
    min-height: 46px;
    padding: 0 8px;
    border-radius: var(--m-r-md);
    border: 1px solid var(--m-line-strong);
    background: rgba(0, 0, 0, .38);
    color: var(--ink);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    user-select: none;
    transition:
        background-color .15s,
        border-color .15s,
        color .15s,
        transform .15s var(--m-ease),
        box-shadow .15s;
}

.m-chip:hover {
    border-color: rgba(var(--m-accent-rgb), .5);
    background: rgba(255, 255, 255, .08);
}

.m-chip:active { transform: scale(.96); }

.m-chip[aria-pressed="true"] {
    background: rgba(var(--m-accent-rgb), .16);
    border-color: var(--gold);
    box-shadow: inset 0 0 0 1px var(--gold);
    color: var(--gold-light);
}

.m-chip--accent {
    grid-column: 1 / -1;
    border-color: rgba(var(--m-accent-rgb), .45);
    background: rgba(var(--m-accent-rgb), .1);
    color: var(--gold-light);
}

/* ── แท็บแบบสวิตช์ — ตัวเลื่อนวิ่งตามแท็บที่เลือก ───────────────── */

.m-tabs {
    --n: 2;
    --i: 0;
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: 4px;
    border-radius: 16px;
    background: rgba(0, 0, 0, .55);
    border: 1px solid var(--m-line);
    margin-bottom: 16px;
}

.m-tabs__glider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc((100% - 8px) / var(--n));
    border-radius: 12px;
    /* ตัวเลื่อนเป็นทอง ตัวอักษรบนทองเป็นดำ — แท็บที่เลือกเด่นออกจากแถบดำทุกธีม */
    background: linear-gradient(160deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
    box-shadow: 0 4px 14px rgba(var(--gold-rgb), .35);
    transform: translateX(calc(var(--i) * 100%));
    transition: transform .3s var(--m-ease);
    pointer-events: none;
}

.m-tab {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 46px;
    padding: 8px 4px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--ink-soft);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s;
}

.m-tab:hover { color: var(--ink); }

.m-tab.is-active {
    color: #15120a;
    font-weight: 600;
}

.m-tab svg { width: 22px; height: 22px; }

.m-tabs--dense .m-tab { font-size: var(--text-xs); padding: 6px 2px; }

.m-pane { animation: m-pane .22s var(--m-ease) both; }

@keyframes m-pane {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

/* ── แถวรายการ ────────────────────────────────────────────────── */

.m-rows { display: flex; flex-direction: column; }

.m-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid var(--m-line);
}

.m-row:first-child { border-top: 0; padding-top: 0; }
.m-row:last-child  { padding-bottom: 0; }

.m-row__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: var(--ink-soft);
    flex-shrink: 0;
}

.m-row__icon svg { width: 20px; height: 20px; }
.m-row__icon img { width: 100%; height: 100%; object-fit: contain; }

.m-row__icon--in   { background: var(--m-ok-bg);   color: var(--m-ok); }
.m-row__icon--out  { background: var(--m-bad-bg);  color: var(--m-bad); }
.m-row__icon--wait { background: var(--m-wait-bg); color: var(--m-wait); }

.m-row__main { flex: 1; min-width: 0; }

.m-row__title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--ink);
}

.m-row__sub {
    margin-top: 2px;
    font-size: var(--text-xs);
    color: var(--ink-muted);
    overflow-wrap: anywhere;
}

.m-row__end { text-align: right; flex-shrink: 0; }

.m-row__amt {
    font-size: 1.0625rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.m-row__meta {
    margin-top: 3px;
    font-size: var(--text-xs);
    color: var(--ink-muted);
}

.m-pos { color: var(--m-ok); }
.m-neg { color: var(--m-bad); }

/* ── ป้ายสถานะ ────────────────────────────────────────────────── */

.m-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.m-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.m-badge--ok   { background: var(--m-ok-bg);   color: var(--m-ok); }
.m-badge--wait { background: var(--m-wait-bg); color: var(--m-wait); }
.m-badge--bad  { background: var(--m-bad-bg);  color: var(--m-bad); }
.m-badge--muted { background: rgba(255, 255, 255, .08); color: var(--ink-soft); }

/* ── กล่องแจ้ง ────────────────────────────────────────────────── */

.m-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: var(--m-r-md);
    border: 1px solid;
    font-size: var(--text-sm);
    line-height: 1.5;
    animation: m-pane .22s var(--m-ease) both;
}

.m-alert > svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.m-alert > div { flex: 1; min-width: 0; }
.m-alert strong { display: block; color: var(--ink); }
.m-alert p { margin: 0; }

.m-alert--ok    { background: var(--m-ok-bg);   border-color: var(--m-ok-line);   color: var(--m-ok); }
.m-alert--error { background: var(--m-bad-bg);  border-color: var(--m-bad-line);  color: var(--m-bad); }
.m-alert--warn  { background: var(--m-wait-bg); border-color: var(--m-wait-line); color: var(--m-wait); }
.m-alert--info  { background: rgba(255, 255, 255, .05); border-color: var(--m-line-strong); color: var(--ink-soft); }

/* ── รายการอธิบาย / ขั้นตอน ──────────────────────────────────── */

.m-list {
    margin: 0;
    padding-left: 18px;
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--ink-soft);
}

.m-list li + li { margin-top: 5px; }
.m-list li::marker { color: var(--gold); }
.m-list strong { color: var(--ink); font-weight: 600; }

/* ขั้นตอนมีลำดับจริง (ทำ 1 แล้วค่อย 2) จึงใช้ตัวเลข */
.m-steps {
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.m-steps li {
    position: relative;
    padding-left: 40px;
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--ink-soft);
    counter-increment: step;
}

.m-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -1px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(var(--m-accent-rgb), .45);
    background: rgba(var(--m-accent-rgb), .14);
    color: var(--gold-light);
    font-size: var(--text-xs);
    font-weight: 700;
}

.m-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 12.5px;
    top: 27px;
    bottom: -14px;
    width: 1px;
    background: var(--m-line);
}

/* ── คู่ค่า (ป้าย : ค่า) ──────────────────────────────────────── */

.m-kv {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0;
    padding: 10px 0;
    border-top: 1px solid var(--m-line);
    font-size: var(--text-sm);
}

.m-kv:first-child { border-top: 0; padding-top: 0; }
.m-kv:last-child  { padding-bottom: 0; }
.m-kv dt { color: var(--ink-soft); }
.m-kv dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* ── หน้าว่าง ─────────────────────────────────────────────────── */

.m-empty {
    padding: 34px 16px;
    text-align: center;
    color: var(--ink-soft);
}

.m-empty svg {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    color: var(--ink-muted);
}

.m-empty strong {
    display: block;
    font-weight: 600;
    color: var(--ink);
}

.m-empty p {
    margin: 4px 0 0;
    font-size: var(--text-sm);
    color: var(--ink-muted);
}

.m-empty a {
    color: var(--gold-light);
    font-weight: 600;
    text-decoration: none;
}

/* ── แถบเวลาที่เหลือ ──────────────────────────────────────────── */

.m-progress {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
}

.m-progress__bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 1s linear, background-color .3s;
}

.m-progress--warn .m-progress__bar { background: var(--m-bad); }

/* ── โครงรอโหลด ───────────────────────────────────────────────── */

.m-skel {
    display: inline-block;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .06) 25%, rgba(255, 255, 255, .14) 50%, rgba(255, 255, 255, .06) 75%);
    background-size: 200% 100%;
    animation: m-shimmer 1.2s linear infinite;
}

@keyframes m-shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* ── รายละเอียดพับได้ (native <details>) ─────────────────────── */

.m-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--ink);
}

.m-details summary::-webkit-details-marker { display: none; }

.m-details summary::after {
    content: '';
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--ink-muted);
    border-bottom: 2px solid var(--ink-muted);
    transform: rotate(45deg);
    transition: transform .2s var(--m-ease);
    flex-shrink: 0;
    margin-right: 4px;
}

.m-details[open] summary::after { transform: rotate(-135deg); }
.m-details[open] summary { margin-bottom: 12px; }

/* ── มือถือ ───────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .m-page { padding: 18px 12px 32px; }
    .m-card { padding: 16px; }
    .m-hero__body { padding: 20px 14px; }
    .m-money--xl { font-size: 2.25rem; }
    .m-chips--4 { grid-template-columns: repeat(3, 1fr); }
}

/* ── ปิดการเคลื่อนไหวเมื่อผู้ใช้ตั้งไว้ ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .m-page,
    .m-page *,
    .m-page *::before,
    .m-page *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* ── ประกาศป๊อปอัป — เด้งครั้งแรกของวันหลังล็อกอิน (components/AnnouncementPopup.vue) ── */

.ann {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(4px);
    animation: ann-fade .2s var(--m-ease);
}

.ann__box {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--m-r-lg);
    background: var(--m-card-bg);
    border: 1px solid var(--m-line-strong);
    box-shadow: 0 0 60px rgba(var(--gold-rgb), .18), 0 24px 60px rgba(0, 0, 0, .55);
    animation: ann-pop .28s var(--m-ease);
}

.ann__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.ann__media {
    display: block;
    min-height: 0;
    overflow: auto;
    background: #000;
    text-decoration: none;
}

.ann__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70dvh;
    object-fit: contain;
}

.ann__foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 16px;
    border-top: 1px solid var(--m-line);
}

.ann__title {
    margin: 0;
    text-align: center;
    font-weight: 600;
    color: var(--gold-light);
}

.ann__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--ink-muted);
    font-size: var(--text-sm);
    font-variant-numeric: tabular-nums;
}

.ann__arrow {
    width: 34px;
    height: 34px;
    border: 1px solid var(--m-line-strong);
    border-radius: 50%;
    background: rgba(var(--gold-rgb), .1);
    color: var(--gold-light);
    cursor: pointer;
}

@keyframes ann-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ann-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .ann, .ann__box { animation-duration: .001ms; }
}
