/* SUPERVIP2541 member ui2 (desktop2) — mobile first กว้าง 440px ; สี/โทนเดียวกับ supervip2541.app/?ui=2 (asset/css2/theme.css) */
:root {
    --sv-w: 440px;
    --sv-navy: #0A1530;
    --sv-mid: #0F2350;
    --sv-royal: #1E4FD8;
    --sv-gold: #F5C542;
    --sv-gold2: #D99A1E;
    --sv-gold-grad: linear-gradient(180deg, #FFE28A 0%, #F5C542 45%, #D99A1E 100%);
    --sv-glass: rgba(255, 255, 255, .06);
    --sv-line: rgba(245, 197, 66, .55);
    --sv-line-soft: rgba(120, 160, 255, .25);
    --sv-text: #fff;
    --sv-muted: #b9c4e6;
    --sv-r: 16px;
}

/* กรอบมือถือ 440px: ดูบน desktop จะเห็นแบบมือถือ */
html { background: #050b1c; }
body.sv-ui2 {
    width: 100%; max-width: var(--sv-w); min-width: 0; min-height: 100vh !important; margin: 0 auto; /* important: มี CSS ภายนอกตั้ง min-height ทับ */
    background: var(--sv-navy) !important; color: var(--sv-text);
    font-family: 'Kanit', 'Noto Sans Thai', sans-serif;
    box-shadow: 0 0 60px rgba(0, 0, 0, .6);
    overflow-x: hidden; overflow-x: clip;
}
body.sv-ui2 h1, body.sv-ui2 h2, body.sv-ui2 h3, body.sv-ui2 h4, body.sv-ui2 h5,
body.sv-ui2 input, body.sv-ui2 select, body.sv-ui2 textarea, body.sv-ui2 button { font-family: inherit; }

/* แถบที่ position: fixed ของธีมเดิม — ให้อยู่ในกรอบ 440px */
body.sv-ui2 .main-header,
body.sv-ui2 #fix-mobile-menu { left: 0; right: 0; width: auto; max-width: var(--sv-w); margin-left: auto; margin-right: auto; }
body.sv-ui2 #fix-mobile-menu.d-sm-none { display: block !important; } /* เดิมซ่อนเมื่อจอ ≥576px */
body.sv-ui2 .content-wrapper, body.sv-ui2 .main-footer { margin-left: 0 !important; }
/* ปุ่ม LIVECHAT (fixed right:16px) — ให้อยู่ในกรอบ 440px */
body.sv-ui2 .chat-btn { right: max(16px, calc(50vw - var(--sv-w) / 2 + 16px)) !important; }

/* ==================== หน้าเข้าสู่ระบบ / สมัครสมาชิก (login.php, register.php : body.sv-au ไม่โหลด adminlte) ====================
   โครงแบบ member.superlsm99.link/login ; หัวการ์ด/ฟอร์ม ชุดเดียวกับ .sv-sheet-login ของ supervip2541.app/?ui=2 */
body.sv-au { display: flex; flex-direction: column; font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
.sv-au *, .sv-au *::before, .sv-au *::after { box-sizing: border-box; }
.sv-au a { color: inherit; text-decoration: none; }
.sv-au button { font-family: inherit; cursor: pointer; }
.sv-au .ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sv-au-main { flex: 1; }

/* header: โลโก้ + ปุ่มติดต่อเรา (แบบ .sv-header เว็บหลัก) */
.sv-au-hd {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px;
    background: linear-gradient(180deg, rgba(10, 21, 48, .96), rgba(10, 21, 48, .78));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.sv-au-hd::before { /* เส้นแสงใต้ header: น้ำเงิน-ขาว-ทอง */
    content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 10px; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(30, 79, 216, 0) 0%, rgba(30, 79, 216, .7) 20%, #9CC2FF 40%, #FFFFFF 50%, #F5C542 62%, rgba(217, 154, 30, .7) 80%, rgba(217, 154, 30, 0) 100%) center / 100% 2px no-repeat,
        radial-gradient(50% 50% at 50% 50%, rgba(140, 180, 255, .45), rgba(30, 79, 216, 0)) center / 100% 100% no-repeat;
}
.sv-au-logo { display: block; line-height: 0; }
.sv-au-logo img { height: 52px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.sv-au-hbtn {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; margin: 0; border-radius: 50%; cursor: pointer;
    color: var(--sv-gold); border: 1px solid rgba(245, 197, 66, .5);
    background: linear-gradient(180deg, #1A3778, #0A1636);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .2);
}

/* banner + การ์ดฟอร์ม (การ์ดซ้อนขอบล่าง banner) */
.sv-au-banner { line-height: 0; }
.sv-au-banner img { display: block; width: 100%; height: auto; aspect-ratio: 960 / 500; object-fit: cover; object-position: 50% 50%; }
.sv-au-card { position: relative; z-index: 1; margin-top: -22px; }
.sv-au-card-top { margin-top: 0; }

/* หัวการ์ด: น้ำเงินเข้ม + แสงทองนวลด้านบน, ตัวอักษรกลาง, เส้นทองบาง */
.sv-lg-hd {
    position: relative; overflow: hidden;
    padding: 22px 20px 34px; color: #fff; text-align: center;
    background:
        radial-gradient(90% 120% at 50% -30%, rgba(245, 197, 66, .2), rgba(245, 197, 66, 0) 60%),
        linear-gradient(180deg, #132A5E 0%, #0C1B42 100%);
    border-radius: 20px 20px 0 0;
}
.sv-lg-hd::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, rgba(245, 197, 66, 0), rgba(255, 226, 138, .85) 50%, rgba(245, 197, 66, 0));
}
.sv-lg-hd > * { position: relative; z-index: 1; }
.sv-lg-eyebrow {
    display: flex; align-items: center; justify-content: center;
    margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .32em; color: rgba(255, 255, 255, .7);
}
.sv-lg-eyebrow::before, .sv-lg-eyebrow::after { content: ''; width: 34px; height: 1px; }
.sv-lg-eyebrow::before { margin-right: 12px; background: linear-gradient(90deg, rgba(245, 197, 66, 0), rgba(245, 197, 66, .8)); }
.sv-lg-eyebrow::after { margin-left: 8px; background: linear-gradient(270deg, rgba(245, 197, 66, 0), rgba(245, 197, 66, .8)); }
.sv-lg-eyebrow b { color: var(--sv-gold); font-weight: 500; }
.sv-lg-ttl {
    margin: 8px 0 0; font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: .01em;
    background: linear-gradient(180deg, #FFF4CC 0%, #F5C542 55%, #D99A1E 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sv-lg-sub { margin: 4px 0 0; font-size: 13px; font-weight: 300; color: var(--sv-muted); }

/* ฟอร์ม */
.sv-lg-form {
    position: relative; z-index: 1;
    display: grid; gap: 12px;
    margin: -16px 0 0; padding: 22px 16px 20px;
    background: linear-gradient(180deg, #0F2350 0%, var(--sv-navy) 100%);
    border-radius: 18px 18px 0 0;
}
.sv-fl {
    position: relative; display: flex; align-items: center; height: 58px;
    border: 1.5px solid rgba(245, 197, 66, .25); border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.sv-fl > .ic { position: absolute; left: 14px; color: var(--sv-muted); transition: color .15s; }
.sv-fl input {
    width: 100%; height: 100%; margin: 0;
    padding: 20px 14px 4px 46px;
    border: 0; outline: 0; border-radius: 14px; background: none; box-shadow: none;
    font: inherit; font-size: 16px; color: #fff;
}
.sv-fl.has-eye input { padding-right: 52px; }
.sv-fl input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #13295c inset; -webkit-text-fill-color: #fff; }
.sv-fl label {
    position: absolute; left: 46px; top: 50%; margin: 0;
    transform: translateY(-50%);
    font-size: 16px; font-weight: 400; color: var(--sv-muted);
    pointer-events: none;
    transition: top .15s, font-size .15s, color .15s;
}
.sv-fl input:focus + label,
.sv-fl input:not(:placeholder-shown) + label,
.sv-fl input:-webkit-autofill + label { top: 15px; font-size: 12px; font-weight: 500; color: var(--sv-gold); }
.sv-fl:focus-within { border-color: var(--sv-gold); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px rgba(245, 197, 66, .14); }
.sv-fl:focus-within > .ic { color: var(--sv-gold); }
.sv-fl.is-invalid { border-color: #ff5a5f; box-shadow: 0 0 0 4px rgba(255, 90, 95, .16); }
.sv-fl-eye {
    position: absolute; right: 6px;
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none;
    color: var(--sv-muted);
}
.sv-fl-eye .ic-hide, .sv-fl-eye[aria-pressed="true"] .ic-show { display: none; }
.sv-fl-eye[aria-pressed="true"] .ic-hide { display: block; }
.sv-fl-ok { position: absolute; right: 16px; color: #3ddc84; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.sv-fl.is-match .sv-fl-ok { opacity: 1; transform: none; }
/* ช่องกรอกพื้นขาวเฉพาะฟอร์มเข้าสู่ระบบ / สมัครสมาชิก (.sv-lg-form ใน login.php, register.php) — ตัวอักษร/ไอคอน/label สีเข้มให้อ่านออกบนพื้นขาว (ชุดเดียวกับ www) */
.sv-lg-form .sv-fl { background: #fff; border-color: #d6dbe6; }
.sv-lg-form .sv-fl:focus-within { background: #fff; border-color: var(--sv-gold); box-shadow: 0 0 0 4px rgba(245, 197, 66, .28); }
.sv-lg-form .sv-fl.is-invalid { border-color: #e5484d; }
.sv-lg-form .sv-fl > .ic, .sv-lg-form .sv-fl-eye { color: #7a8499; }
.sv-lg-form .sv-fl:focus-within > .ic { color: #a8730a; }
.sv-lg-form .sv-fl input { color: #0A1630; caret-color: #0A1630; }
.sv-lg-form .sv-fl input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: #0A1630; }
.sv-lg-form .sv-fl label { color: #6b7488; }
.sv-lg-form .sv-fl input:focus + label,
.sv-lg-form .sv-fl input:not(:placeholder-shown) + label,
.sv-lg-form .sv-fl input:-webkit-autofill + label { color: #a8730a; }
.sv-lg-form .sv-fl-ok { color: #16a34a; }
.sv-lg-err {
    display: none; align-items: flex-start; gap: 8px;
    padding: 10px 12px; border-radius: 12px;
    background: rgba(255, 90, 95, .12); border: 1px solid rgba(255, 90, 95, .35); color: #ffb1b4;
    font-size: 14px; line-height: 1.45;
}
.sv-lg-err.is-show { display: flex; }
.sv-lg-err .ic { width: 20px; height: 20px; }

/* ปุ่ม: ทองมุมโค้งเล็ก แสงจาก top center / น้ำเงินกรมท่าขอบทอง (แบบเว็บหลัก) */
.sv-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 52px; margin: 0; padding: 0 16px;
    border-radius: 12px; border: 1px solid #F2D58A;
    font-size: 18px; font-weight: 600; letter-spacing: .2px;
    transition: transform .15s, filter .15s;
}
.sv-btn:active { transform: scale(.97); }
.sv-btn-gold {
    color: #1A1306 !important;
    background:
        radial-gradient(ellipse 55% 90% at 50% 0%, rgba(255, 251, 225, .95) 0%, rgba(255, 241, 185, .55) 45%, rgba(255, 230, 150, 0) 100%),
        linear-gradient(180deg, #F4CF6C 0%, #ECBE5A 45%, #D59B33 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 4px rgba(140, 90, 10, .35);
}
.sv-btn-ghost {
    border-color: rgba(245, 197, 66, .6);
    color: #F7DE8E !important;
    background:
        radial-gradient(ellipse 55% 90% at 50% 0%, rgba(120, 160, 240, .42) 0%, rgba(70, 110, 210, .18) 45%, rgba(40, 80, 180, 0) 100%),
        linear-gradient(180deg, #1A3778 0%, #11265A 50%, #0A1636 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 4px rgba(0, 0, 0, .4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.sv-lg-submit { height: 54px; margin-top: 2px; }
.sv-lg-alt { height: 50px; font-size: 17px; font-weight: 500; }
.sv-lg-alt .ic { width: 20px; height: 20px; }
.sv-lg-spin {
    display: none; width: 20px; height: 20px;
    border: 2.5px solid rgba(26, 19, 6, .3); border-top-color: #1A1306; border-radius: 50%;
    animation: sv-spin .7s linear infinite;
}
.sv-lg-form.is-loading .sv-lg-spin { display: inline-block; }
.sv-lg-form.is-loading .sv-lg-submit { pointer-events: none; filter: saturate(.8); }
.sv-lg-form.is-shake { animation: sv-shake .4s; }
.sv-lg-link {
    justify-self: center; display: inline-flex; align-items: center; gap: 4px;
    margin: 0; padding: 4px 8px; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 14px; color: var(--sv-muted);
}
.sv-lg-link b { font-weight: 500; color: var(--sv-gold); }
.sv-lg-link .ic { width: 18px; height: 18px; }
.sv-lg-or { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--sv-muted); }
.sv-lg-or::before, .sv-lg-or::after { content: ''; flex: 1; height: 1px; background: rgba(245, 197, 66, .25); }

/* สมัคร: ขั้นตอน + ยืนยันอายุ + ธนาคาร */
.sv-rg-steps { display: flex; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.sv-rg-steps li { position: relative; flex: 1; padding-top: 8px; font-size: 12px; font-weight: 300; color: rgba(255, 255, 255, .55); }
.sv-rg-steps li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .16); transition: background .2s; }
.sv-rg-steps li.is-on { color: var(--sv-gold); font-weight: 400; }
.sv-rg-steps li.is-on::before { background: linear-gradient(90deg, #D99A1E, #FFE28A 50%, #D99A1E); box-shadow: 0 0 6px rgba(245, 197, 66, .45); }
#sv-register .sv-rg-panel { display: none; gap: 12px; }
#sv-register[data-step="1"] [data-panel="1"],
#sv-register[data-step="age"] [data-panel="age"],
#sv-register[data-step="2"] [data-panel="2"] { display: grid; }
#sv-register [data-show] { display: none; }
#sv-register[data-step="1"] [data-show~="1"],
#sv-register[data-step="2"] [data-show~="2"] { display: flex; }
.sv-rg-note { margin: -2px 0 0; font-size: 13px; font-weight: 300; color: var(--sv-muted); }
.sv-rg-age { justify-items: center; text-align: center; padding: 4px 0; }
.sv-rg-age-badge {
    display: flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%;
    border: 3px solid var(--sv-gold); box-shadow: 0 0 14px rgba(245, 197, 66, .35);
    font-size: 20px; font-weight: 700; font-style: italic; color: var(--sv-gold);
}
.sv-rg-age-ttl { margin: 0; font-size: 18px; font-weight: 600; color: #fff; }
.sv-rg-age-txt { margin: -6px 0 0; font-size: 14px; color: var(--sv-muted); }
.sv-rg-label { margin: 0; font-size: 14px; font-weight: 500; color: #fff; }
.sv-rg-banks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 200px; overflow-y: auto; padding: 2px; }
.sv-rg-bank {
    position: relative; margin: 0;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 2px;
    border: 1.5px solid rgba(255, 255, 255, .12); border-radius: 12px; background: rgba(255, 255, 255, .04);
    text-align: center; cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.sv-rg-bank input { position: absolute; opacity: 0; pointer-events: none; }
.sv-rg-bank-logo { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; }
.sv-rg-bank-logo img { width: 24px; height: 24px; object-fit: contain; }
.sv-rg-bank-name { font-size: 11px; line-height: 1.25; color: #E6EBF7; overflow-wrap: anywhere; }
.sv-rg-bank:focus-within { border-color: rgba(245, 197, 66, .6); }
.sv-rg-bank.is-on { border-color: var(--sv-gold); background: rgba(245, 197, 66, .1); box-shadow: 0 0 0 3px rgba(245, 197, 66, .15); }
.sv-rg-banks.is-invalid { border-radius: 12px; box-shadow: 0 0 0 2px rgba(255, 90, 95, .6); }
@keyframes sv-spin { to { transform: rotate(360deg); } }
@keyframes sv-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) {
    .sv-lg-form.is-shake { animation: none; }
}

/* footer: 18+ + copyright (แบบเว็บหลัก) */
.sv-footer {
    padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
    text-align: center;
    background: linear-gradient(180deg, #0F2350, #0B1A3C);
    border-top: 1px solid rgba(245, 197, 66, .35);
    font-size: 13px; color: var(--sv-muted);
}
.sv-ft-age { display: flex; align-items: center; justify-content: center; gap: 8px; }
.sv-ft-18 {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 30px; height: 30px; border: 2px solid var(--sv-gold); border-radius: 50%;
    font-size: 11px; font-weight: 600; color: var(--sv-gold);
}
.sv-copy { margin-top: 6px; font-size: 12px; color: rgba(185, 196, 230, .75); }

/* ติดต่อเรา (sheet แบบ checkbox ของเว็บหลัก) — เหนือปุ่ม LIVECHAT (.chat-btn z 9999) */
.sv-contact-toggle { position: fixed; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.sv-contact-backdrop {
    position: fixed; inset: 0; z-index: 10000; margin: 0;
    background: rgba(0, 0, 0, .55);
    opacity: 0; visibility: hidden; transition: .2s;
}
.sv-contact-sheet {
    position: fixed; z-index: 10001;
    left: 50%; bottom: 0;
    width: 100%; max-width: var(--sv-w);
    transform: translate(-50%, 105%);
    transition: transform .25s ease;
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: linear-gradient(180deg, #13295c, var(--sv-navy));
    border-top: 1px solid var(--sv-line);
    display: flex; flex-direction: column; gap: 10px;
}
.sv-contact-toggle:checked ~ .sv-contact-backdrop { opacity: 1; visibility: visible; }
.sv-contact-toggle:checked ~ .sv-contact-sheet { transform: translate(-50%, 0); }
.sv-contact-close {
    position: absolute; top: 12px; right: 12px; margin: 0; cursor: pointer;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(245, 197, 66, .45);
}
.sv-contact-title { font-size: 18px; font-weight: 600; color: #fff; text-align: center; }
.sv-contact-title span { display: block; font-size: 13px; font-weight: 400; color: var(--sv-muted); }
.sv-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sv-contact-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    height: 50px; border-radius: 14px; font-size: 16px; font-weight: 500; color: #fff !important;
}
.sv-contact-btn i { font-size: 22px; }
.sv-contact-btn.is-line { background: #06C755; }
.sv-contact-btn.is-tg { background: #229ED9; }

/* ==================== หน้าสมาชิก (_sv-shell.php : body.sv-au.sv-mb, template มี <!--sv-ui2-->) ====================
   ข้อมูลตาม member.superlsm99.link ; ส่วนประกอบชุดเดียวกับ supervip2541.app/?ui=2 (hero, ผลหวย, โปรโมชั่น, กิจกรรมพิเศษ, เมนูล่าง, sheet โปร) */
body.sv-mb { --sv-bnav-h: 70px; padding-bottom: calc(var(--sv-bnav-h) + env(safe-area-inset-bottom)); }
body.sv-mb .chat-btn { bottom: calc(var(--sv-bnav-h) + 14px + env(safe-area-inset-bottom)) !important; } /* LIVECHAT อยู่เหนือเมนูล่าง */
body.is-locked { overflow: hidden; }
.sv-mb-main { padding: 0 14px; }

/* header: โลโก้ | แจ้งเตือน · ยอดเงิน+ฝาก · เมนูผู้ใช้ */
.sv-mb-hd { padding: 8px 12px; gap: 8px; }
.sv-mb-hd .sv-au-logo img { height: 46px; }
.sv-hd-r { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sv-hd-btn {
    position: relative; display: flex; align-items: center; justify-content: center; flex: none;
    width: 38px; height: 38px; padding: 0; border-radius: 50%;
    color: var(--sv-gold); border: 1px solid rgba(245, 197, 66, .5);
    background: linear-gradient(180deg, #1A3778, #0A1636);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.sv-hd-btn .ic { width: 20px; height: 20px; }
.sv-hd-dot {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 9px; background: #ff4d55; color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
.sv-hd-wl {
    display: flex; align-items: center; gap: 6px; min-width: 0; height: 38px; padding: 0 4px 0 12px;
    border-radius: 999px; border: 1px solid rgba(245, 197, 66, .5);
    background: linear-gradient(180deg, rgba(10, 22, 54, .9), rgba(4, 12, 32, .9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.sv-hd-wl-v { font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-hd-wl-v em { margin-right: 2px; font-style: normal; color: var(--sv-gold); }
.sv-hd-wl-plus {
    display: flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
    color: #1A1306; background: linear-gradient(180deg, #F4CF6C 0%, #D59B33 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.sv-hd-wl-plus .ic { width: 16px; height: 16px; stroke-width: 2.6; }

/* dropdown */
.sv-dd-wrap { position: relative; }
.sv-dd {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 270px;
    border-radius: 16px; border: 1px solid rgba(245, 197, 66, .35);
    background: linear-gradient(180deg, #13295c 0%, #0A1630 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s;
}
.sv-dd.is-open { opacity: 1; visibility: visible; transform: none; }
.sv-dd-ttl { padding: 12px 14px 8px; font-size: 15px; font-weight: 600; color: #fff; }
.sv-dd-news { max-height: 300px; overflow-y: auto; padding: 0 6px 6px; }
.sv-dd-news a { display: block; padding: 8px 10px; border-radius: 10px; }
.sv-dd-news a + a { border-top: 1px solid rgba(255, 255, 255, .06); }
.sv-dd-news b { display: block; font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--sv-muted); }
.sv-dd-news .is-unread b { font-weight: 500; color: #fff; }
.sv-dd-news .is-unread b::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 6px 2px 0; border-radius: 50%; background: var(--sv-gold); }
.sv-dd-news small { font-size: 12px; color: rgba(185, 196, 230, .7); }
.sv-dd-top { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid rgba(245, 197, 66, .18); }
.sv-dd-av {
    display: flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 50%;
    color: var(--sv-gold); border: 1px solid rgba(245, 197, 66, .5); background: radial-gradient(circle at 50% 30%, #0A3C8E, #041D4A);
}
.sv-dd-top b { display: block; font-size: 16px; font-weight: 600; color: #fff; line-height: 1.3; word-break: break-all; }
.sv-dd-top small { font-size: 12px; color: var(--sv-muted); }
.sv-dd-bal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px 10px; }
.sv-dd-bal > div {
    display: flex; align-items: center; gap: 8px; box-sizing: border-box; height: 48px; padding: 0 10px;
    border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(245, 197, 66, .2);
}
.sv-dd-bal img { width: 24px; height: 24px; flex: none; object-fit: contain; }
.sv-dd-bal span { min-width: 0; line-height: 1.2; }
.sv-dd-bal small { display: block; font-size: 12px; color: var(--sv-muted); }
.sv-dd-bal b { display: block; font-size: 15px; font-weight: 600; color: var(--sv-gold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-dd-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 12px; border-bottom: 1px solid rgba(245, 197, 66, .18); margin-bottom: 6px; }
.sv-dd-act .sv-btn { height: 40px; padding: 0 6px; gap: 4px; font-size: 15px; }
.sv-dd-act .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.sv-dd-menu { padding: 0 6px 8px; }
.sv-dd-menu a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; font-size: 15px; color: #E6EBF7; }
.sv-dd-menu a:hover { background: rgba(255, 255, 255, .05); }
.sv-dd-menu .ic { width: 20px; height: 20px; color: var(--sv-gold); }
.sv-dd-menu .is-out, .sv-dd-menu .is-out .ic { color: #ff8a8f; }

.sv-alert {
    display: flex; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px;
    background: rgba(245, 197, 66, .1); border: 1px solid rgba(245, 197, 66, .4); color: #FFE7A8; font-size: 14px;
}

/* hero สไลด์ scroll-snap เต็มกว้าง 960:500 */
.sv-sl { position: relative; }
.sv-sl-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sv-sl-track::-webkit-scrollbar { display: none; }
.sv-sl-item { flex: 0 0 100%; scroll-snap-align: start; line-height: 0; }
.sv-sl-item img { display: block; width: 100%; height: auto; aspect-ratio: 960 / 500; object-fit: cover; }
.sv-sl-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.sv-sl-dots i { width: 18px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .35); transition: width .3s; }
.sv-sl-dots i.is-on { width: 34px; background: var(--sv-gold); }
.sv-mb-hero { margin: 0 -14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }

/* แจ้งข่าวที่ยังไม่อ่าน */
.sv-nw { display: grid; gap: 8px; margin-top: 12px; }
.sv-nw-card {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
    background: rgba(30, 79, 216, .18); border: 1px solid rgba(120, 160, 255, .35);
}
.sv-nw-card .ic { color: var(--sv-gold); }
.sv-nw-card b { display: block; font-size: 14px; font-weight: 500; line-height: 1.4; color: #fff; }
.sv-nw-card small { font-size: 12px; color: var(--sv-muted); }

/* ยอดเงิน (แบบ #wallet-blc ของ superlsm99) */
.sv-wl {
    position: relative; margin-top: 14px; padding: 14px; overflow: hidden;
    border-radius: 16px; border: 1px solid #D9A94A;
    background:
        radial-gradient(75% 60% at 100% 0%, rgba(18, 110, 240, .5), rgba(18, 110, 240, 0) 100%),
        linear-gradient(180deg, #06204A 0%, #041633 60%, #03112A 100%);
    box-shadow: 0 0 8px rgba(245, 197, 66, .28), 0 6px 16px rgba(0, 0, 0, .45), inset 0 0 10px rgba(245, 197, 66, .12);
}
.sv-wl-top { display: flex; align-items: center; gap: 12px; }
.sv-wl-ic {
    display: flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 14px;
    color: #1A1306; background: linear-gradient(180deg, #F4CF6C 0%, #D59B33 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.sv-wl-ic .ic { width: 24px; height: 24px; }
.sv-wl-t { flex: 1; min-width: 0; }
.sv-wl-t small { display: block; font-size: 13px; color: var(--sv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-wl-t b {
    display: block; font-size: 30px; font-weight: 700; line-height: 1.15; white-space: nowrap;
    background: var(--sv-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sv-wl-t em { margin-right: 4px; font-size: .7em; font-style: normal; }
.sv-wl-ref {
    display: flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; padding: 0;
    border-radius: 50%; border: 1px solid rgba(245, 197, 66, .45); background: rgba(255, 255, 255, .05); color: var(--sv-gold);
}
.sv-wl-ref .ic { width: 20px; height: 20px; }
.sv-wl-ref.is-spin .ic { animation: sv-spin .7s linear infinite; }
.sv-wl-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.sv-wl-chip {
    display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 8px; height: 46px;
    border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(245, 197, 66, .25);
}
.sv-wl-chip img { width: 28px; height: 28px; flex: none; object-fit: contain; }
.sv-wl-chip span { min-width: 0; line-height: 1.2; }
.sv-wl-chip small { display: block; font-size: 11px; color: var(--sv-muted); }
.sv-wl-chip b { display: block; font-size: 15px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.sv-wl-btn { height: 46px; font-size: 16px; gap: 4px; padding: 0 6px; }
.sv-wl-btn .ic { width: 18px; height: 18px; stroke-width: 2.4; }
/* ปุ่มเข้าเล่น / หวย X120 (แบบ .qk ของ superlsm99) — เหลือปุ่มเดียว = เต็มแถว */
.sv-qk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.sv-qk-item {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 68px; padding: 0 8px;
    border-radius: 14px; border: 1px solid #FFE7A3;
    font-size: 19px; font-weight: 700; color: #1A1306 !important; white-space: nowrap;
    background:
        radial-gradient(ellipse 55% 90% at 50% 0%, rgba(255, 251, 225, .95) 0%, rgba(255, 241, 185, .55) 45%, rgba(255, 230, 150, 0) 100%),
        linear-gradient(180deg, #F4CF6C 0%, #ECBE5A 45%, #D59B33 100%);
    box-shadow: 0 0 12px rgba(245, 197, 66, .45), 0 4px 12px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 4px rgba(140, 90, 10, .35);
    transition: transform .15s;
}
.sv-qk-item:active { transform: scale(.97); }
.sv-qk-item:only-child { grid-column: 1 / -1; }
.sv-qk-item img { width: 52px; height: 52px; flex: none; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(80, 50, 0, .45)); }

/* หัวข้อ section (แบบเว็บหลัก) */
.sv-sec { margin-top: 22px; }
.sv-sh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sv-sh h2 { position: relative; margin: 0; padding-left: 14px; font-size: 21px; font-weight: 600; line-height: 1.3; color: #fff; }
.sv-sh h2::before { content: ''; position: absolute; left: 0; top: 15%; bottom: 15%; width: 5px; border-radius: 4px; background: var(--sv-gold-grad); }

/* หวย #sv-lotto (แบบ #u2-lotto ของ superlsm99 สีธีม supervip2541) — 3 คอลัมน์ การ์ดสี่เหลี่ยมจัตุรัส ; ใบแรก หวยรัฐบาลไทย 2x2 */
.sv-sh-all { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; color: var(--sv-gold); }
.sv-sh-all .ic { width: 16px; height: 16px; }
.sv-lb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sv-lb-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-width: 0; aspect-ratio: 1 / 1; overflow: hidden; padding: 6px 2px;
    border-radius: 12px; border: 1px solid rgba(217, 169, 74, .65); color: #fff; text-align: center;
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(18, 110, 240, .45), rgba(18, 110, 240, 0) 100%),
        linear-gradient(180deg, #082656 0%, #051a3d 60%, #03112A 100%);
    box-shadow: 0 0 6px rgba(245, 197, 66, .2), 0 4px 10px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: transform .1s, border-color .15s;
}
a.sv-lb-card:hover { border-color: var(--sv-gold); }
a.sv-lb-card:active { transform: scale(.97); }
.sv-lb-card > * { flex-shrink: 0; }
.sv-lb-head { display: contents; }
.sv-lb-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(245, 197, 66, .35); }
.sv-lb-icon img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.sv-lb-name { display: block; max-width: 100%; font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-lb-date { margin-top: -2px; font-size: 10px; color: var(--sv-muted); }
.sv-lb-result { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 100%; padding: 0 3px; }
.sv-lb-result > span { display: flex; flex-direction: column; padding: 1px 2px; border-radius: 6px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(232, 196, 110, .25); }
.sv-lb-result small { font-size: 9px; font-weight: 500; line-height: 1.3; color: var(--sv-muted); }
.sv-lb-result b, .sv-lb-first b {
    font-weight: 700; font-variant-numeric: tabular-nums;
    background: var(--sv-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sv-lb-result b { font-size: 14px; line-height: 1.2; letter-spacing: .04em; }
.sv-lb-result.is-wait b { background: none; color: rgba(185, 196, 230, .55); }
.sv-lb-wide { grid-column: 1 / -1; }
.sv-lb-wide b { word-spacing: .35em; }
.sv-lb-first { display: none; }
.sv-lb-count { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 0 4px; line-height: 1.25; }
.sv-lb-count small { font-size: 10px; font-weight: 500; }
.sv-lb-count b { font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sv-lb-count.is-open { color: #ff7a88; }
.sv-lb-count.is-soon { color: #4ade80; }
.sv-lb-cards [hidden] { display: none !important; }
/* ใบใหญ่ หวยรัฐบาลไทย — กรอบทอง แสงน้ำเงิน+ทอง รางวัลที่ 1 ตัวใหญ่ */
.sv-lb-card:first-child {
    grid-column: span 2; grid-row: span 2; gap: 5px; padding: 8px 4px;
    border-color: #D9A94A;
    background:
        radial-gradient(90% 65% at 100% 100%, rgba(245, 197, 66, .22) 0%, rgba(245, 197, 66, 0) 70%),
        radial-gradient(75% 55% at 0% 0%, rgba(18, 110, 240, .55), rgba(18, 110, 240, 0) 100%),
        linear-gradient(180deg, #06204A 0%, #041633 60%, #03112A 100%);
    box-shadow: 0 0 10px rgba(245, 197, 66, .32), 0 6px 16px rgba(0, 0, 0, .45), inset 0 0 10px rgba(245, 197, 66, .12);
}
.sv-lb-card:first-child .sv-lb-head { display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; }
.sv-lb-card:first-child .sv-lb-icon { width: 44px; height: 44px; background: none; box-shadow: none; }
.sv-lb-card:first-child .sv-lb-icon img { width: 44px; height: 44px; border-radius: 0; object-fit: contain; box-shadow: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); }
.sv-lb-card:first-child .sv-lb-name { font-size: 16px; font-weight: 700; }
.sv-lb-card:first-child .sv-lb-date { margin-top: -4px; }
.sv-lb-card:first-child .sv-lb-first { display: flex; flex-direction: column; width: calc(100% - 16px); padding: 4px 6px; border-radius: 12px; }
.sv-lb-card:first-child .sv-lb-first,
.sv-lb-card:first-child .sv-lb-result > span {
    background: linear-gradient(180deg, rgba(18, 36, 72, .75), rgba(4, 12, 30, .85));
    border: 1px solid rgba(232, 196, 110, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.sv-lb-first small { font-size: 11px; font-weight: 500; color: #fff; }
.sv-lb-first b { font-size: 24px; line-height: 1.15; letter-spacing: .08em; }
.sv-lb-card:first-child .sv-lb-result { width: calc(100% - 16px); padding: 0; gap: 6px; }
.sv-lb-card:first-child .sv-lb-result small { color: #fff; }
.sv-lb-card:first-child .sv-lb-result b { font-size: 20px; }
.sv-lb-card:first-child .sv-lb-count b { font-size: 20px; }

/* หน้า x120 (/?action=x120 = desktop2/x120.php) — UX แบบ superlsm99 (.lottery-schedule) สีธีม supervip2541 ; หัวหน้า .sv-xh ออกแบบใหม่ */
.sv-xh {
    position: relative; display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px 12px 8px; overflow: hidden;
    border-radius: 16px; border: 1px solid #D9A94A;
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(245, 197, 66, .22), rgba(245, 197, 66, 0) 70%),
        radial-gradient(75% 60% at 0% 100%, rgba(18, 110, 240, .5), rgba(18, 110, 240, 0) 100%),
        linear-gradient(180deg, #06204A 0%, #041633 60%, #03112A 100%);
    box-shadow: 0 0 8px rgba(245, 197, 66, .28), 0 6px 16px rgba(0, 0, 0, .45), inset 0 0 10px rgba(245, 197, 66, .12);
}
.sv-xh-back { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; color: var(--sv-gold); background: rgba(255, 255, 255, .06); border: 1px solid rgba(245, 197, 66, .35); }
.sv-xh-back .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.sv-xh-ic { flex: none; width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.sv-xh-t { min-width: 0; }
.sv-xh h1 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; color: #fff; }
.sv-xh h1 em { font-style: normal; background: var(--sv-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sv-xh p { margin: 2px 0 0; font-size: 13px; line-height: 1.35; color: var(--sv-muted); }
.sv-x120 .sv-sec { margin-top: 18px; }
.sv-ls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sv-ls-card {
    display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 10px;
    border-radius: 12px; border: 1px solid rgba(217, 169, 74, .6); color: #fff;
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(18, 110, 240, .4), rgba(18, 110, 240, 0) 100%),
        linear-gradient(180deg, #082656 0%, #051a3d 60%, #03112A 100%);
    box-shadow: 0 0 6px rgba(245, 197, 66, .18), 0 4px 10px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.sv-ls-card:hover { transform: translateY(-2px); border-color: var(--sv-gold); box-shadow: 0 0 12px rgba(245, 197, 66, .35), 0 6px 14px rgba(0, 0, 0, .45); }
.sv-ls-card.is-loading { opacity: .6; pointer-events: none; }
.sv-ls-top { display: flex; align-items: flex-start; gap: 10px; }
.sv-ls-flag { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 1px rgba(245, 197, 66, .45), 0 2px 6px rgba(0, 0, 0, .4); }
.sv-ls-flag img { width: 100%; height: 100%; object-fit: cover; }
.sv-ls-flag.is-logo { overflow: visible; background: none; box-shadow: none; }
.sv-ls-flag.is-logo img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
.sv-ls-info { flex: 1; min-width: 0; }
.sv-ls-info b { display: block; margin-bottom: 4px; font-size: 13.5px; font-weight: 600; line-height: 1.35; word-break: break-word; }
.sv-ls-info small {
    display: inline-block; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
    font-size: 11.5px; font-weight: 500; line-height: 1.3; color: var(--sv-muted);
    background: rgba(0, 0, 0, .3); border: 1px solid rgba(232, 196, 110, .3);
}
.sv-ls-cd {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; margin-top: auto; padding: 8px 10px; border-radius: 999px;
    color: #ff8a95; background: rgba(229, 56, 79, .14); border: 1px solid rgba(255, 110, 125, .4);
}
.sv-ls-cd.is-allow { color: #5ee08f; background: rgba(34, 197, 94, .13); border-color: rgba(94, 224, 143, .45); }
.sv-ls-cd .ic { width: 15px; height: 15px; stroke-width: 2.2; }
.sv-ls-cd span { font-size: 14px; font-weight: 700; letter-spacing: .05em; line-height: 1; font-variant-numeric: tabular-nums; }
.sv-x120-load { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(2, 8, 22, .7); }
.sv-x120-load[hidden] { display: none; }
.sv-x120-load-box {
    display: flex; flex-direction: column; align-items: center; min-width: 240px; padding: 26px 30px; border-radius: 18px; text-align: center;
    border: 1px solid #D9A94A; background: linear-gradient(180deg, #13295c 0%, #0A1630 100%); box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
}
.sv-x120-spin { width: 42px; height: 42px; margin-bottom: 12px; border-radius: 50%; border: 4px solid rgba(245, 197, 66, .2); border-top-color: var(--sv-gold); animation: sv-spin .8s linear infinite; }
.sv-x120-load-box b { font-size: 17px; font-weight: 600; line-height: 1.4; color: #fff; }
.sv-x120-load-box small { margin-top: 4px; font-size: 14px; color: var(--sv-muted); }

/* หน้าฝาก (/deposit = desktop2/deposite-gateway.php) — UX แบบ superlsm99 (.u2-dep) สีธีม supervip2541 ; แก้แค่หน้าตา JS เดิมไม่แตะ
   หน้านี้ไม่โหลด bootstrap css → ใส่ base ที่ต้องใช้ (btn / form-control / card / table / modal bootstrap 4) ไว้ที่นี่ */
.sv-dep { padding: 14px 0 4px; color: #fff; }
.sv-dep > .container { padding: 0; }
.sv-dep .text-center { text-align: center; }
.sv-dep .text-danger { color: #ff7a85 !important; }
.sv-dep .text-success { color: #4ade80 !important; }
.sv-dep .text-dark, .sv-dep .text-white { color: inherit !important; }
.sv-dep .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px;
    border-radius: 12px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; cursor: pointer;
}
.sv-dep .btn:disabled, .sv-dep .btn[disabled] { opacity: .55; cursor: not-allowed; }
.sv-dep .btn-success, .sv-dep .btn-warning { color: #1A1306; border-color: #FFE7A3; background: linear-gradient(180deg, #F4CF6C 0%, #ECBE5A 45%, #D59B33 100%); font-weight: 600; }
.sv-dep .btn-secondary { color: #fff; border-color: rgba(245, 197, 66, .45); background: rgba(255, 255, 255, .06); }
.sv-dep .form-control {
    display: block; width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
    border: 1px solid var(--sv-line-soft); background: rgba(255, 255, 255, .05); color: #fff; font: inherit; font-size: 16px; outline: 0;
}
.sv-dep .form-control:focus { border-color: var(--sv-gold); box-shadow: 0 0 0 3px rgba(245, 197, 66, .15); }
.sv-dep select.form-control option { color: #111; }
.sv-dep-wl { margin: 0 0 14px; }
/* หัว: ไอคอน + ชื่อ + ขั้นตอน 1-2-3 */
.sv-dep-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.sv-dep-hic {
    display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px;
    color: #1A1306; background: linear-gradient(180deg, #F4CF6C 0%, #D59B33 100%);
    box-shadow: 0 4px 14px rgba(245, 197, 66, .3), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.sv-dep-hic .ic { width: 24px; height: 24px; stroke-width: 2.2; }
/* หน้ากิจกรรมเพชร: ไอคอนรูปชุดเดียวกับ .sv-pk-ic หน้าแรก */
.sv-dep-hic-img {
    flex-basis: 52px; width: 52px; height: 52px; background: radial-gradient(circle at 50% 30%, #0A3C8E 0%, #072D6E 45%, #041D4A 100%);
    border: 1px solid rgba(245, 197, 66, .45); box-shadow: inset 0 0 12px rgba(245, 197, 66, .15);
}
.sv-dep-hic-img img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.sv-dep-head .ttl { margin: 0; color: #fff; font-size: 21px; font-weight: 600; line-height: 1.2; }
.sv-dep-steps { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 5px 0 0; padding: 0; list-style: none; }
.sv-dep-steps li {
    display: flex; align-items: center; gap: 5px; padding: 2px 10px 2px 3px; border-radius: 999px;
    border: 1px solid var(--sv-line-soft); background: rgba(255, 255, 255, .04); color: var(--sv-muted); font-size: 12.5px; line-height: 1.5;
}
.sv-dep-steps li b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--sv-muted); font-size: 11px; font-weight: 600; }
.sv-dep-steps li.on { border-color: var(--sv-line); color: var(--sv-gold); }
.sv-dep-steps li.on b { background: var(--sv-gold-grad); color: #1A1306; }
.sv-dep-steps li.done b { background: #16a05a; color: #fff; }
/* แท็บ: ปุ่มแคปซูล / มีแท็บเดียวก็ซ่อนแถบ */
.sv-dep #deposite .tab-box .tab { display: flex; gap: 6px; margin: 0 0 10px; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--sv-line-soft); }
.sv-dep #deposite .tab-box .tab li {
    flex: 1; width: auto; margin: 0; padding: 9px 6px; border-radius: 10px;
    background: transparent; color: var(--sv-muted); font-size: 15px; text-align: center; transition: background .15s;
}
.sv-dep #deposite .tab-box .tab li.select { background: var(--sv-gold-grad); color: #1A1306; font-weight: 600; }
.sv-dep #deposite .tab-box .tab:has(li:only-child) { display: none; }
.sv-dep #deposite .tab-box .cont-wrap { padding: 0; border-radius: 0; background: none; box-shadow: none; color: #fff; }
.sv-dep #deposite .tab-box .cont-wrap .inner { padding: 0; background: none; }
/* การ์ด (วิธีฝาก / กรอกยอด / บัญชี / โอนเงิน / ฟอร์มแจ้งฝาก) — กรมท่ากรอบทอง */
.sv-dep #deposite .sv-dep-how, .sv-dep #deposite .deposite-amount, .sv-dep #deposite .deposite-bank,
.sv-dep #deposite .p2pay-transfer-card, .sv-dep #deposite .card {
    border-radius: 14px; border: 1px solid rgba(245, 197, 66, .35); color: #fff;
    background: radial-gradient(90% 60% at 100% 0%, rgba(30, 79, 216, .25), rgba(30, 79, 216, 0) 100%), linear-gradient(180deg, #0F2350 0%, #0A1836 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
/* วิธีการฝากเงิน: เลขข้อในวงกลมทอง */
.sv-dep #deposite .sv-dep-how { margin: 0; padding: 14px 14px 12px; font-size: 14px; }
.sv-dep #deposite .sv-dep-how > strong { display: block; margin-bottom: 10px; text-align: center; color: var(--sv-gold); font-size: 16px; font-weight: 600; }
.sv-dep #deposite .sv-dep-how ol { margin: 0; padding: 0; list-style: none; counter-reset: svs; }
.sv-dep #deposite .sv-dep-how li { position: relative; margin: 0 0 8px; padding-left: 32px; counter-increment: svs; line-height: 1.5; color: #fff; font-size: 14px; list-style: none; }
.sv-dep #deposite .sv-dep-how li::before {
    content: counter(svs); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center; background: var(--sv-gold-grad); color: #1A1306; font-size: 12px; font-weight: 600;
}
.sv-dep #deposite .sv-dep-how li em { display: block; font-style: normal; font-size: 12.5px; color: #ff8a94; }
.sv-dep #deposite .sv-dep-how > p { margin: 4px 0 0; padding-top: 10px; border-top: 1px dashed rgba(245, 197, 66, .3); text-align: center; color: var(--sv-gold); font-weight: 500; }
/* กรอกยอด + ปุ่มยอดด่วน */
.sv-dep #deposite .deposite-amount { margin-top: 12px !important; padding: 14px; }
.sv-dep #deposite .deposite-amount .txt-label { color: #fff; text-shadow: none; font-weight: 600; font-size: 16px; }
.sv-dep #deposite .deposite-amount .txt-label i { color: var(--sv-gold); }
.sv-dep #deposite .deposite-amount .text-success { color: var(--sv-gold) !important; }
.sv-dep #deposite .sv-dep-amt .input-num {
    position: relative; display: flex; align-items: center; height: 58px; margin-top: 12px;
    border-radius: 14px; border: 2px solid var(--sv-line-soft); background: rgba(0, 0, 0, .25); transition: border-color .15s, box-shadow .15s;
}
.sv-dep #deposite .sv-dep-amt .input-num:focus-within { border-color: var(--sv-gold); box-shadow: 0 0 0 3px rgba(245, 197, 66, .15); }
.sv-dep #deposite .sv-dep-amt .input-num .cur { flex: none; padding: 0 4px 0 16px; color: var(--sv-gold); font-size: 24px; font-weight: 600; }
.sv-dep #deposite .sv-dep-amt .input-num .form-control {
    height: 100%; min-width: 0; padding: 0 14px 0 4px; border: 0; background: transparent; box-shadow: none;
    color: #fff; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.sv-dep #deposite .sv-dep-amt .input-num .form-control::placeholder { color: rgba(185, 196, 230, .45); }
.sv-dep-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.sv-dep-quick button {
    height: 40px; border-radius: 10px; border: 1.5px solid var(--sv-line-soft); background: rgba(255, 255, 255, .04);
    color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s;
}
.sv-dep-quick button:hover { border-color: var(--sv-line); }
.sv-dep-quick button.on { border-color: var(--sv-gold); background: rgba(245, 197, 66, .14); color: var(--sv-gold); font-weight: 600; }
.sv-dep #deposite .sv-dep-amt .txt-hint { margin-top: 8px; color: var(--sv-muted); font-size: 13px; text-align: center; }
.sv-dep #deposite .sv-dep-ok {
    display: flex; width: 100%; height: 50px; margin-top: 12px; border-radius: 14px; font-size: 18px; font-weight: 600;
    box-shadow: 0 0 12px rgba(245, 197, 66, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.sv-dep #deposite .sv-dep-ok:disabled { background: rgba(255, 255, 255, .08); border-color: transparent; color: rgba(185, 196, 230, .6); box-shadow: none; opacity: 1; }
/* ปุ่ม LINE (ลิงก์จาก sheet ติดต่อเรา) */
.sv-dep-line {
    display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 16px;
    border: 1px solid rgba(6, 199, 85, .45); text-decoration: none;
    background: radial-gradient(120% 120% at 0% 0%, rgba(6, 199, 85, .2), transparent 60%), linear-gradient(180deg, #0F2350 0%, #0A1836 100%);
}
.sv-dep-line[hidden] { display: none; }
.sv-dep-lic { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: #06C755; color: #fff; font-size: 30px; box-shadow: 0 4px 12px rgba(6, 199, 85, .3); }
.sv-dep-line .tx { flex: 1; min-width: 0; line-height: 1.25; }
.sv-dep-line .tx small { display: block; color: var(--sv-muted); font-size: 12.5px; }
.sv-dep-line .tx b { display: block; color: #fff; font-size: 18px; font-weight: 600; white-space: nowrap; }
.sv-dep-line .tx em { font-style: normal; color: #2fdc7a; }
.sv-dep-line .go { display: flex; align-items: center; gap: 3px; flex: none; padding: 8px 10px 8px 12px; border-radius: 999px; background: #06C755; color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.sv-dep-line .go .ic { width: 15px; height: 15px; stroke-width: 2.6; }
/* gateway อื่น (ไม่ใช่ P2Pay): กล่องบัญชี + QR */
.sv-dep #deposite .deposite-bank { padding: 14px; }
.sv-dep #deposite .deposite-bank .bank-detail { flex: 1; color: #fff; text-shadow: none; }
.sv-dep #deposite .deposite-bank #copy_number_id { color: var(--sv-gold) !important; font-size: 20px !important; }
.sv-dep #deposite .deposite-bank .bank-copy { color: var(--sv-gold); }
.sv-dep #deposite .deposit-qrcode { margin-top: 12px; }
.sv-dep #deposite .deposit-qrcode img { border-radius: 14px; }
/* โอนฝากสลิป (มีบัญชีธนาคาร) */
.sv-dep #deposite .card { margin-bottom: 12px; overflow: hidden; }
.sv-dep #deposite .card-header { padding: 11px 14px; border-bottom: 1px solid rgba(245, 197, 66, .25); background: none; }
.sv-dep #deposite .card-title { margin: 0; color: var(--sv-gold); font-size: 16px; font-weight: 600; }
.sv-dep #deposite .card-body { padding: 14px; }
.sv-dep #deposite .card-footer { padding: 0 14px 14px; }
.sv-dep #deposite .card-footer .btn { width: 100%; height: 46px; }
.sv-dep #deposite .form-group { margin-bottom: 12px; }
.sv-dep #deposite .form-group label { display: block; margin-bottom: 6px; color: var(--sv-muted); font-size: 14px; font-weight: 400; }
.sv-dep #deposite .deposite_slip { border: 2px dashed var(--sv-line) !important; border-radius: 14px; background: rgba(245, 197, 66, .06) !important; color: var(--sv-gold); }
.sv-dep #deposite .account-style01 .bank-logo img { border-radius: 12px; }
.sv-dep #deposite .account-style01 .subj { color: var(--sv-muted); font-size: 13px; }
.sv-dep #deposite .account-style01 #bank_number { color: var(--sv-gold) !important; }
.sv-dep #deposite .table { width: 100%; margin: 0; border-collapse: collapse; color: #fff; }
.sv-dep #deposite .table th, .sv-dep #deposite .table td { padding: 8px 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 14px; text-align: left; vertical-align: top; }
.sv-dep #deposite .table th { color: var(--sv-muted); font-weight: 400; white-space: nowrap; }
/* ขั้นที่ 2: การ์ดโอนเงิน (P2Pay) */
.sv-dep #deposite .p2pay-transfer-card { margin-top: 0; }
.sv-dep #deposite .p2pay-transfer-card__header { padding: 11px 14px; font-size: 15px; font-weight: 600; color: #fff; background: none; border-bottom: 1px solid rgba(245, 197, 66, .25); }
.sv-dep #deposite .p2pay-transfer-card__header i { color: var(--sv-gold); }
.sv-dep #deposite .p2pay-transfer-card__body { padding: 12px 14px 14px; }
.sv-dep #deposite .p2pay-transfer-hero { margin-bottom: 12px; padding: 0 0 12px; background: none; border: 0; border-bottom: 1px dashed rgba(245, 197, 66, .3); }
.sv-dep #deposite .p2pay-transfer-hero__num { background: var(--sv-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-shadow: none; }
.sv-dep #deposite .p2pay-transfer-hero__unit { color: #fff; }
.sv-dep #deposite .p2pay-transfer-hero__thai { color: var(--sv-muted); }
.sv-dep #deposite .p2pay-transfer-qr__frame { border: 2px solid var(--sv-line); border-radius: 14px; background: #fff; box-shadow: none; }
.sv-dep #deposite .p2pay-transfer-qr__hint { color: var(--sv-muted); }
.sv-dep #deposite .p2pay-transfer-qr__hint i { color: var(--sv-gold); }
.sv-dep #deposite .p2pay-transfer-bank { margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--sv-line-soft); background: rgba(0, 0, 0, .25); }
.sv-dep #deposite .p2pay-transfer-bank__header { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sv-dep #deposite .p2pay-transfer-bank__logo { width: 40px; height: 40px; padding: 6px; border-radius: 50%; }
.sv-dep #deposite .p2pay-transfer-bank__name { color: #fff; font-weight: 600; }
.sv-dep #deposite .p2pay-transfer-bank__field + .p2pay-transfer-bank__field { margin-top: 10px; }
.sv-dep #deposite .p2pay-transfer-bank__label { margin-bottom: 2px; color: var(--sv-muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.sv-dep #deposite .p2pay-transfer-bank__number { color: var(--sv-gold); font-size: 22px; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.sv-dep #deposite .p2pay-transfer-bank__value { color: #fff; font-weight: 600; }
.sv-dep #deposite .p2pay-transfer-bank__copy { padding: 7px 14px; border: 0; border-radius: 10px; background: var(--sv-gold-grad); color: #1A1306; font-size: 14px; font-weight: 600; }
.sv-dep #deposite .p2pay-transfer-notice-bar { color: #ffe3a0; background: rgba(245, 197, 66, .1); border: 1px solid rgba(245, 197, 66, .45); border-radius: 10px; }
.sv-dep #deposite .p2pay-transfer-notice-bar i, .sv-dep #deposite .p2pay-transfer-notice-bar strong { color: var(--sv-gold); background: none; padding: 0; }
.sv-dep #deposite .p2pay-transfer-card .p2pay-remark-alert { margin: 10px 0 0; }
.sv-dep #deposite .p2pay-transfer-card .p2pay-slip-wrap { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
.sv-dep #deposite .p2pay-slip-wrap .txt-label { color: #fff !important; font-size: 14px; font-weight: 600; }
.sv-dep #deposite .p2pay-slip-wrap .txt-label i { color: var(--sv-gold); }
.sv-dep #deposite .p2pay-slip-wrap .p2pay_slip_pick {
    display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 10px;
    border: 2px dashed var(--sv-line); border-radius: 14px; background: rgba(245, 197, 66, .06); color: var(--sv-gold);
}
.sv-dep #deposite .p2pay-slip-wrap .p2pay_slip_pick i.fa-2x { font-size: 22px; }
.sv-dep #deposite .p2pay-slip-wrap .p2pay_slip_pick div { margin-top: 0 !important; }
.sv-dep #deposite .p2pay-slip-wrap .btn-warning { width: 100%; height: 44px; font-size: 16px; }
/* นับถอยหลัง (เฉพาะขั้นโอน P2Pay) — FlipDown เดิมซ่อน */
.sv-timer { display: none; }
.sv-dep-s2 .sv-timer {
    display: block; margin: 0 0 12px; padding: 9px 14px 10px; border-radius: 14px; text-align: center;
    border: 1px solid var(--sv-line); background: radial-gradient(75% 60% at 100% 0%, rgba(18, 110, 240, .5), rgba(18, 110, 240, 0) 100%), linear-gradient(180deg, #06204A 0%, #03112A 100%);
}
.sv-dep-s2 .sv-timer .t { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 600; }
.sv-dep-s2 .sv-timer .t .ic { width: 18px; height: 18px; color: var(--sv-gold); }
.sv-dep-s2 .sv-timer .v { display: flex; align-items: flex-start; justify-content: center; gap: 5px; margin: 6px 0 8px; }
.sv-dep-s2 .sv-timer .g > span { display: flex; gap: 4px; }
.sv-dep-s2 .sv-timer .g b {
    position: relative; display: grid; place-items: center; width: 40px; height: 54px; border-radius: 8px;
    background: linear-gradient(180deg, #FFF3C4 50%, #F5D36B 50%); color: #1A1306;
    font-size: 38px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}
.sv-dep-s2 .sv-timer .g b::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(26, 19, 6, .2); }
.sv-dep-s2 .sv-timer .c { display: flex; align-items: center; height: 54px; color: var(--sv-gold); font-size: 30px; font-weight: 700; }
.sv-dep-s2 .sv-timer .bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.sv-dep-s2 .sv-timer .bar span { display: block; width: 99%; height: 100%; background: var(--sv-gold-grad); }
.sv-dep-s2 #deposite #flipdown-p2pay { display: none !important; }
/* ขั้นโอน: ปุ่มสถานะ */
.sv-dep-s2 #deposite .cont-wrap > .cont-item .deposite-amount > .txt-label,
.sv-dep-s2 #deposite .cont-wrap > .cont-item .deposite-amount > .text-success { display: none !important; }
.sv-dep #deposite .p2pay-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; width: 100%; margin: 12px 0 0 !important; }
.sv-dep #deposite .p2pay-actions .btn {
    width: 100% !important; min-width: 0 !important; height: auto !important; margin: 0 !important; padding: 11px 8px !important;
    border-radius: 12px !important; font-size: 14px !important; line-height: 1.3 !important; box-shadow: none !important;
}
.sv-dep #deposite .p2pay-actions .p2pay-btn-primary { grid-column: 1 / -1; border: 1px solid #FFE7A3; background: linear-gradient(180deg, #F4CF6C 0%, #ECBE5A 45%, #D59B33 100%); color: #1A1306; font-size: 16px !important; font-weight: 600; }
.sv-dep #deposite .p2pay-actions .p2pay-btn-change-amount { border: 1px solid var(--sv-line); background: rgba(255, 255, 255, .06); color: var(--sv-gold); text-shadow: none; }
.sv-dep #deposite .p2pay-actions .p2pay-btn-secondary { border-color: transparent; background: rgba(255, 255, 255, .08); color: var(--sv-muted); }
/* modal (bootstrap 4 JS) — ไม่โหลด bootstrap css ; เหนือเมนูล่าง/LIVECHAT */
body.sv-mb.modal-open { overflow: hidden; }
body.sv-mb .modal { position: fixed; top: 0; left: 0; z-index: 10050 !important; display: none; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; outline: 0; }
body.sv-mb .modal-dialog { position: relative; width: auto; max-width: 420px; margin: 24px auto; padding: 0 14px; pointer-events: none; }
body.sv-mb .modal.fade .modal-dialog { transform: translateY(-40px); transition: transform .25s ease-out; }
body.sv-mb .modal.show .modal-dialog { transform: none; }
body.sv-mb .modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 48px); }
body.sv-mb .modal-content { position: relative; display: flex; flex-direction: column; width: 100%; pointer-events: auto; }
body.sv-mb .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
body.sv-mb .modal-title { margin: 0; font-size: 18px; }
body.sv-mb .modal-body { padding: 16px; }
body.sv-mb .modal-footer { display: flex; justify-content: center; gap: 8px; padding: 12px 16px; }
body.sv-mb .modal-backdrop { position: fixed; top: 0; left: 0; z-index: 10040 !important; width: 100vw; height: 100vh; background: #000; }
body.sv-mb .fade { transition: opacity .15s linear; }
body.sv-mb .fade:not(.show) { opacity: 0; }
body.sv-mb .modal-backdrop.show { opacity: .7; }
/* การ์ด popup ยืนยันยอด / ยกเลิก / เปลี่ยนยอด — สไตล์เดิมในไฟล์ผูก id จึงต้องใช้ id */
.sv-dep #paymentAmountConfirmModal .modal-content.p2pay-modal-card,
.sv-dep #p2payCancelConfirmModal .modal-content.p2pay-modal-card,
.sv-dep #p2payEditAmountConfirmModal .modal-content.p2pay-modal-card {
    overflow: hidden; max-width: 420px; margin: 0 auto; border-radius: 18px; border: 1px solid var(--sv-line); color: #fff;
    background: radial-gradient(75% 60% at 100% 0%, rgba(18, 110, 240, .45), rgba(18, 110, 240, 0) 100%), linear-gradient(180deg, #0F2350 0%, #06142F 100%) !important;
    box-shadow: 0 0 14px rgba(245, 197, 66, .25), 0 20px 50px rgba(0, 0, 0, .6);
}
.sv-dep #paymentAmountConfirmModal .modal-header,
.sv-dep #p2payCancelConfirmModal .modal-header,
.sv-dep #p2payEditAmountConfirmModal .modal-header { background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(245, 197, 66, .25); }
.sv-dep #paymentAmountConfirmModal .modal-title,
.sv-dep #p2payCancelConfirmModal .modal-title,
.sv-dep #p2payEditAmountConfirmModal .modal-title { color: var(--sv-gold); font-weight: 600; }
.sv-dep #paymentAmountConfirmModal .modal-body,
.sv-dep #p2payCancelConfirmModal .modal-body,
.sv-dep #p2payEditAmountConfirmModal .modal-body { color: #fff; }
.sv-dep #paymentAmountConfirmModal .modal-footer,
.sv-dep #p2payCancelConfirmModal .modal-footer,
.sv-dep #p2payEditAmountConfirmModal .modal-footer { border-top: 1px solid rgba(245, 197, 66, .2); background: rgba(0, 0, 0, .15); }
.sv-dep #paymentAmountConfirmModal .modal-footer .btn,
.sv-dep #p2payCancelConfirmModal .modal-footer .btn,
.sv-dep #p2payEditAmountConfirmModal .modal-footer .btn { min-width: 110px; height: 44px; border-radius: 12px; font-weight: 600; }
.sv-dep #paymentAmountConfirmModal .btn-success,
.sv-dep #p2payCancelConfirmModal .btn-success,
.sv-dep #p2payEditAmountConfirmModal .btn-success,
.sv-dep #paymentAmountConfirmModal .btn-warning,
.sv-dep #p2payCancelConfirmModal .btn-warning,
.sv-dep #p2payEditAmountConfirmModal .btn-warning { color: #1A1306; border-color: #FFE7A3; background: linear-gradient(180deg, #F4CF6C 0%, #ECBE5A 45%, #D59B33 100%); }
.sv-dep #paymentAmountConfirmModal .btn-secondary,
.sv-dep #p2payCancelConfirmModal .btn-secondary,
.sv-dep #p2payEditAmountConfirmModal .btn-secondary { color: #fff; border-color: rgba(245, 197, 66, .45); background: rgba(255, 255, 255, .06); }
.sv-dep #paymentAmountConfirmModal .payment-amount-confirm-highlight { color: var(--sv-gold); background: rgba(245, 197, 66, .1); border-color: rgba(245, 197, 66, .75); }
.sv-dep #paymentAmountConfirmModal .deposit-result-amount { color: var(--sv-gold); }
.sv-dep #paymentAmountConfirmModal .deposit-confirm-amount-thai { color: var(--sv-muted); }

/* หน้าถอน (/withdraw = desktop2/withdraw.php) — UX แบบ superlsm99 (.u2-wd) สีธีม supervip2541 ; หัว/กล่องยอดเงิน/ปุ่มยอดด่วน ใช้ชุดหน้าฝาก ; JS เดิมไม่แตะ */
.sv-wd { padding: 14px 0 4px; color: #fff; }
.sv-dep-head .sub { margin: 3px 0 0; color: var(--sv-muted); font-size: 13px; line-height: 1.4; }
.sv-wd-card {
    margin-bottom: 12px; padding: 14px; border-radius: 14px; border: 1px solid rgba(245, 197, 66, .35); color: #fff;
    background: radial-gradient(90% 60% at 100% 0%, rgba(30, 79, 216, .25), rgba(30, 79, 216, 0) 100%), linear-gradient(180deg, #0F2350 0%, #0A1836 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.sv-wd-ttl { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--sv-gold); font-size: 16px; font-weight: 600; line-height: 1.4; }
.sv-wd-acc, .sv-wd-last { padding: 12px; border-radius: 12px; border: 1px solid var(--sv-line-soft); background: rgba(0, 0, 0, .25); }
.sv-wd-acc { display: flex; align-items: center; gap: 12px; }
.sv-wd-acc .logo img { display: block; width: 48px; height: 48px; padding: 6px; border-radius: 50%; object-fit: contain; }
.sv-wd-acc .det { min-width: 0; line-height: 1.4; }
.sv-wd-acc .bank { color: var(--sv-muted); font-size: 13.5px; }
.sv-wd-acc .num { color: var(--sv-gold); font-size: 21px; font-weight: 600; letter-spacing: .03em; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sv-wd-acc .name { color: #fff; font-size: 14px; font-weight: 500; }
.sv-wd-acc .name i { color: var(--sv-gold); margin-right: 2px; }
.sv-wd-last { display: flex; flex-direction: column; gap: 10px; }
.sv-wd-last .amt { color: #fff; line-height: 1.3; }
.sv-wd-last .amt small { display: block; color: var(--sv-muted); font-size: 12.5px; }
.sv-wd-last .amt b { color: var(--sv-gold); font-size: 26px; font-weight: 600; margin-right: 4px; font-variant-numeric: tabular-nums; }
.sv-wd-last .meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.sv-wd-last .time { color: var(--sv-muted); font-size: 13px; }
.sv-wd-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--sv-line-soft); background: rgba(255, 255, 255, .05); color: var(--sv-muted); font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.sv-wd-badge.pending { background: rgba(245, 197, 66, .12); border-color: rgba(245, 197, 66, .55); color: var(--sv-gold); }
.sv-wd-badge.ok { background: rgba(22, 160, 90, .15); border-color: rgba(74, 222, 128, .5); color: #4ade80; }
.sv-wd-badge.cancel { background: rgba(229, 56, 79, .15); border-color: rgba(255, 122, 133, .5); color: #ff7a85; }
.sv-wd-field { margin-bottom: 14px; }
.sv-wd-field > label { display: block; margin: 0 0 6px; color: var(--sv-muted); font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.sv-wd-inp, .sv-wd-amt { display: flex; align-items: center; border-radius: 12px; border: 2px solid var(--sv-line-soft); background: rgba(0, 0, 0, .25); transition: border-color .15s, box-shadow .15s; }
.sv-wd-inp > i { flex: none; width: 42px; text-align: center; font-size: 16px; color: var(--sv-gold); }
.sv-wd-inp .form-control, .sv-wd-amt .form-control {
    flex: 1; min-width: 0; height: 46px; padding: 0 14px 0 0; border: 0; border-radius: 0; outline: 0;
    background: transparent; box-shadow: none; color: #fff; font: inherit; font-size: 16px; line-height: normal;
}
.sv-wd-inp .form-control[readonly] { color: var(--sv-muted); }
.sv-wd-amt { height: 58px; }
.sv-wd-amt .cur { flex: none; padding: 0 4px 0 16px; color: var(--sv-gold); font-size: 24px; font-weight: 600; }
.sv-wd-amt .form-control { height: 100%; padding-left: 4px; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sv-wd-amt .form-control::placeholder { color: rgba(185, 196, 230, .45); }
.sv-wd-amt:focus-within { border-color: var(--sv-gold); box-shadow: 0 0 0 3px rgba(245, 197, 66, .15); }
.sv-wd-minmax { margin-top: 8px; color: var(--sv-muted); font-size: 13px; }
.sv-wd-minmax b { color: var(--sv-gold); }
.sv-wd .sv-dep-quick button:disabled { opacity: .4; cursor: not-allowed; }
.sv-wd-tip { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(245, 197, 66, .1); border: 1px solid rgba(245, 197, 66, .45); color: #ffe3a0; font-size: 13px; line-height: 1.5; }
.sv-wd-tip i { color: var(--sv-gold); margin-right: 4px; }
.sv-wd-btn {
    display: block; width: 100%; height: 50px; margin-top: 4px; border-radius: 14px; border: 1px solid #FFE7A3; cursor: pointer;
    background: linear-gradient(180deg, #F4CF6C 0%, #ECBE5A 45%, #D59B33 100%); color: #1A1306; font: inherit; font-size: 18px; font-weight: 600;
    box-shadow: 0 0 12px rgba(245, 197, 66, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.sv-wd-btn:hover { filter: brightness(1.05); }
.sv-wd-alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.sv-wd-alert > i { margin-top: 3px; }
.sv-wd-alert.err { background: rgba(229, 56, 79, .15); border: 1px solid rgba(255, 122, 133, .5); color: #ffb3ba; }
.sv-wd-alert.err > i { color: #ff7a85; }
.sv-wd-alert.ok { background: rgba(22, 160, 90, .15); border: 1px solid rgba(74, 222, 128, .5); color: #a7f3c4; }
.sv-wd-alert.ok > i { color: #4ade80; }
body.sv-mb .jq-toast-wrap { z-index: 10060 !important; }

/* หน้าสมาชิกอื่น (บันทึกการเงิน / โปรไฟล์ / เปลี่ยนรหัสผ่าน) — UX แบบ superlsm99 (.u2-lc / .u2-ac / .u2-pw) สีธีม supervip2541 ; หัวใช้ .sv-dep-head ชุดหน้าฝาก */
.sv-pg { padding: 14px 0 4px; color: #fff; }
.sv-pg .sv-dep-head > div { flex: 1; min-width: 0; }
.sv-pg-card {
    display: block; margin: 0 0 12px; padding: 14px; border-radius: 14px; border: 1px solid rgba(245, 197, 66, .35); color: #fff;
    background: radial-gradient(90% 60% at 100% 0%, rgba(30, 79, 216, .25), rgba(30, 79, 216, 0) 100%), linear-gradient(180deg, #0F2350 0%, #0A1836 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
/* บันทึกการเงิน (/logs-credit = desktop2/logs/credit.php) */
.sv-lc-ref { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 1px solid var(--sv-line); background: rgba(255, 255, 255, .06); color: var(--sv-gold); cursor: pointer; }
.sv-lc-ref .ic { width: 20px; height: 20px; stroke-width: 2.2; transition: transform .2s; }
.sv-lc-ref:active .ic { transform: rotate(-90deg); }
.sv-lc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 12px; padding: 5px; border-radius: 14px; border: 1px solid var(--sv-line-soft); background: rgba(255, 255, 255, .05); }
.sv-lc-tabs button { height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--sv-muted); font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.sv-lc-tabs button.on { background: var(--sv-gold-grad); color: #1A1306; font-weight: 600; }
.sv-lc-list { display: grid; gap: 8px; }
.sv-lc-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--sv-line-soft);
    background: linear-gradient(180deg, #0F2350 0%, #0A1836 100%);
}
.sv-lc-ic { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; }
.sv-lc-ic .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.sv-lc-row.is-dep .sv-lc-ic { background: rgba(22, 160, 90, .18); color: #4ade80; }
.sv-lc-row.is-wd .sv-lc-ic { background: rgba(245, 197, 66, .15); color: var(--sv-gold); }
.sv-lc-tx { flex: 1; min-width: 0; line-height: 1.35; }
.sv-lc-tx b { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.sv-lc-tx small { display: block; color: var(--sv-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sv-lc-amt { flex: none; text-align: right; font-size: 17px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv-lc-amt small { display: block; color: var(--sv-muted); font-size: 11.5px; font-weight: 400; }
.sv-lc-row.is-dep .sv-lc-amt { color: #4ade80; }
.sv-lc-row.is-wd .sv-lc-amt { color: var(--sv-gold); }
.sv-lc-skel { display: grid; gap: 8px; }
.sv-lc-skel i { display: block; height: 68px; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 255, 255, .04) 25%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .04) 75%) 0 0 / 200% 100%; animation: sv-lc-sk 1.2s linear infinite; }
@keyframes sv-lc-sk { to { background-position: -200% 0; } }
.sv-lc-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 16px 18px; border-radius: 14px; border: 1px dashed var(--sv-line); background: rgba(255, 255, 255, .03); text-align: center; }
.sv-lc-empty > .ic { width: 44px; height: 44px; padding: 10px; box-sizing: content-box; border-radius: 50%; background: rgba(245, 197, 66, .12); color: var(--sv-gold); }
.sv-lc-empty b { color: #fff; font-size: 15px; font-weight: 600; }
/* โปรไฟล์ (/account = desktop2/account.php) */
.sv-ac-user { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed rgba(245, 197, 66, .3); }
.sv-ac-user .av, .sv-pw-user .av { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--sv-gold-grad); color: #1A1306; }
.sv-ac-user .av .ic, .sv-pw-user .av .ic { width: 24px; height: 24px; stroke-width: 2.2; }
.sv-ac-user .tx { flex: 1; min-width: 0; line-height: 1.3; }
.sv-ac-user small, .sv-pw-user small { display: block; color: var(--sv-muted); font-size: 12.5px; line-height: 1.3; }
.sv-ac-user b, .sv-pw-user b { display: block; color: #fff; font-size: 18px; font-weight: 600; letter-spacing: .03em; line-height: 1.3; overflow-wrap: anywhere; }
.sv-ac-copy {
    display: inline-flex; align-items: center; gap: 4px; flex: none; height: 34px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--sv-line); background: rgba(245, 197, 66, .1); color: var(--sv-gold); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.sv-ac-copy .ic { width: 15px; height: 15px; stroke-width: 2.2; }
.sv-ac-copy.is-done { border-color: rgba(74, 222, 128, .6); background: rgba(22, 160, 90, .18); color: #4ade80; }
.sv-ac-rows { margin: 0; }
.sv-ac-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0 0; }
.sv-ac-rows > div + div { margin-top: 11px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sv-ac-rows dt { flex: none; color: var(--sv-muted); font-size: 14px; font-weight: 400; }
.sv-ac-rows dd { margin: 0; min-width: 0; color: #fff; font-size: 15px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.sv-ac-rows dd.num { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.sv-ac-sec { margin: 4px 2px 8px; color: var(--sv-gold); font-size: 15px; font-weight: 600; }
.sv-ac-bank { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--sv-line-soft); background: rgba(0, 0, 0, .25); }
.sv-ac-bank .logo img { display: block; width: 48px; height: 48px; padding: 6px; border-radius: 50%; object-fit: contain; }
.sv-ac-bank .det { flex: 1; min-width: 0; line-height: 1.4; }
.sv-ac-bank .bank { color: var(--sv-muted); font-size: 13px; }
.sv-ac-bank .num { color: var(--sv-gold); font-size: 20px; font-weight: 600; letter-spacing: .03em; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sv-ac-bank .name { color: #fff; font-size: 14px; font-weight: 500; }
.sv-ac-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: var(--sv-muted); font-size: 13px; line-height: 1.5; }
.sv-ac-note .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--sv-gold); }
.sv-ac-note label { margin: 0; color: var(--sv-gold); font-weight: 600; text-decoration: underline; cursor: pointer; }
.sv-ac-links { display: grid; overflow: hidden; border-radius: 14px; border: 1px solid rgba(245, 197, 66, .35); background: linear-gradient(180deg, #0F2350 0%, #0A1836 100%); }
.sv-ac-links a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; }
.sv-ac-links a + a { border-top: 1px solid rgba(255, 255, 255, .08); }
.sv-ac-links .i { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(245, 197, 66, .12); color: var(--sv-gold); }
.sv-ac-links .i .ic { width: 19px; height: 19px; }
.sv-ac-links .go { width: 18px; height: 18px; margin-left: auto; color: var(--sv-muted); }
.sv-ac-links a.out { color: #ff7a85; }
.sv-ac-links a.out .i { background: rgba(229, 56, 79, .15); color: #ff7a85; }
/* เปลี่ยนรหัสผ่าน (/password = desktop2/password.php) */
.sv-pw-user { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px; border-radius: 12px; border: 1px solid var(--sv-line-soft); background: rgba(0, 0, 0, .25); }
.sv-pw-alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.sv-pw-alert .ic { width: 20px; height: 20px; margin-top: 1px; }
.sv-pw-alert b { display: block; font-weight: 600; }
.sv-pw-alert.err { background: rgba(229, 56, 79, .15); border: 1px solid rgba(255, 122, 133, .5); color: #ffb3ba; }
.sv-pw-alert.ok { background: rgba(22, 160, 90, .15); border: 1px solid rgba(74, 222, 128, .5); color: #a7f3c4; }
.sv-pw-field { margin-bottom: 14px; }
.sv-pw-field > label { display: block; margin: 0 0 6px; color: var(--sv-muted); font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.sv-pw-inp { display: flex; align-items: center; border-radius: 12px; border: 2px solid var(--sv-line-soft); background: rgba(0, 0, 0, .25); transition: border-color .15s, box-shadow .15s; }
.sv-pw-inp:focus-within { border-color: var(--sv-gold); box-shadow: 0 0 0 3px rgba(245, 197, 66, .15); }
.sv-pw-inp .lk { width: 42px; height: 20px; color: var(--sv-gold); }
.sv-pw-inp .form-control {
    flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; border-radius: 0; outline: 0;
    background: transparent; box-shadow: none; color: #fff; font: inherit; font-size: 16px; line-height: normal;
}
.sv-pw-inp .form-control::placeholder { color: rgba(185, 196, 230, .45); }
.sv-pw-inp .form-control:disabled { opacity: .6; }
.sv-pw-inp .eye { display: grid; place-items: center; flex: none; width: 46px; height: 48px; padding: 0; border: 0; background: none; color: var(--sv-muted); cursor: pointer; }
.sv-pw-inp .eye .ic { width: 21px; height: 21px; }
.sv-pw-inp .eye.on { color: var(--sv-gold); }
.sv-pw-inp .eye.on .eye-sl { display: none; }
.sv-pw-chk { display: grid; gap: 6px; margin: 2px 0 16px; padding: 10px 12px; list-style: none; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.sv-pw-chk li { display: flex; align-items: center; gap: 8px; color: var(--sv-muted); font-size: 13.5px; line-height: 1.4; }
.sv-pw-chk li .ic { width: 18px; height: 18px; color: rgba(185, 196, 230, .45); }
.sv-pw-chk li.ok, .sv-pw-chk li.ok .ic { color: #4ade80; }
.sv-pw-chk li.bad, .sv-pw-chk li.bad .ic { color: #ff7a85; }
.sv-pw-btn {
    display: block; width: 100%; height: 50px; border-radius: 14px; border: 1px solid #FFE7A3; cursor: pointer;
    background: linear-gradient(180deg, #F4CF6C 0%, #ECBE5A 45%, #D59B33 100%); color: #1A1306; font: inherit; font-size: 18px; font-weight: 600;
    box-shadow: 0 0 12px rgba(245, 197, 66, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.sv-pw-btn:disabled { background: rgba(255, 255, 255, .08); border-color: transparent; color: rgba(185, 196, 230, .6); box-shadow: none; cursor: not-allowed; }
/* ร้านแลกเพชร (/point-exchange = desktop2/point/exchange.php) — UX แบบ superlsm99 (.u2-pt / .u2-ex) */
.sv-ex-bal {
    display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(245, 197, 66, .55); color: #fff;
    background: radial-gradient(80% 90% at 100% 0%, rgba(56, 189, 248, .25), rgba(56, 189, 248, 0) 100%), linear-gradient(135deg, #16307A 0%, #0F2350 60%, #0A1836 100%);
    box-shadow: 0 0 14px rgba(245, 197, 66, .2), 0 8px 20px rgba(0, 0, 0, .35);
}
.sv-ex-bal > img { flex: none; width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.sv-ex-bal > div { flex: 1; min-width: 0; line-height: 1.2; }
.sv-ex-bal small { display: block; color: var(--sv-muted); font-size: 12.5px; }
.sv-ex-bal b { color: var(--sv-gold); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sv-ex-bal .lim { flex: none; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--sv-line); background: rgba(245, 197, 66, .1); color: var(--sv-gold); font-size: 12.5px; white-space: nowrap; }
.sv-ex-desc { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--sv-line-soft); background: rgba(255, 255, 255, .04); color: #fff; font-size: 14px; line-height: 1.6; }
.sv-ex-desc p { margin: 0 0 6px; }
.sv-ex-desc p:last-child { margin-bottom: 0; }
.sv-ex-desc img { max-width: 100%; height: auto; border-radius: 10px; }
.sv-ex .sv-lc-empty { margin-bottom: 12px; }
.sv-ex-skel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sv-ex-skel i { height: 190px; }
.sv-ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sv-ex-item {
    display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; padding: 8px 8px 10px; text-align: center;
    border: 1px solid rgba(245, 197, 66, .35); border-radius: 14px; color: #fff; font: inherit; cursor: pointer;
    background: linear-gradient(180deg, #0F2350 0%, #0A1836 100%); box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.sv-ex-item:hover { transform: translateY(-2px); border-color: var(--sv-gold); box-shadow: 0 0 14px rgba(245, 197, 66, .3); }
.sv-ex-item .img { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: radial-gradient(circle at 50% 55%, rgba(245, 197, 66, .18) 0, rgba(0, 0, 0, .25) 70%); }
.sv-ex-item .img > img { width: 100%; height: 100%; object-fit: contain; }
.sv-ex-item .nm { color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3; }
.sv-ex-item .get { color: var(--sv-muted); font-size: 13px; line-height: 1.3; }
.sv-ex-item .get b { color: var(--sv-gold); font-size: 16px; font-weight: 600; }
.sv-ex-item .cost {
    display: flex; align-items: center; justify-content: center; gap: 5px; height: 36px; border-radius: 999px; border: 1px solid #FFE7A3;
    background: linear-gradient(180deg, #F4CF6C 0%, #ECBE5A 45%, #D59B33 100%); color: #1A1306; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums;
    box-shadow: 0 0 10px rgba(245, 197, 66, .25);
}
.sv-ex-item .cost img, .sv-ex-mrow img { width: 18px; height: 18px; object-fit: contain; }
.sv-ex-item.low .cost { border-color: transparent; background: rgba(255, 255, 255, .08); color: var(--sv-muted); box-shadow: none; }
.sv-ex-modal .modal-content {
    gap: 10px; padding: 18px; border-radius: 20px; border: 1px solid var(--sv-line); color: #fff;
    background: radial-gradient(75% 60% at 100% 0%, rgba(18, 110, 240, .45), rgba(18, 110, 240, 0) 100%), linear-gradient(180deg, #0F2350 0%, #06142F 100%);
    box-shadow: 0 0 14px rgba(245, 197, 66, .25), 0 20px 50px rgba(0, 0, 0, .6);
}
.sv-ex-mimg { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: radial-gradient(circle at 50% 55%, rgba(245, 197, 66, .2) 0, rgba(0, 0, 0, .3) 70%); }
.sv-ex-mimg img { width: 80%; height: 100%; object-fit: contain; }
.sv-ex-mttl { text-align: center; font-size: 18px; font-weight: 600; }
.sv-ex-mttl b { color: var(--sv-gold); font-size: 22px; }
.sv-ex-mrow { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); font-size: 14px; }
.sv-ex-mrow span { color: var(--sv-muted); }
.sv-ex-mrow b { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sv-ex-warn { padding: 8px 12px; border-radius: 10px; background: rgba(229, 56, 79, .15); border: 1px solid rgba(255, 122, 133, .5); color: #ffb3ba; font-size: 13.5px; text-align: center; }
.sv-ex-mbtns { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 4px; }
.sv-ex-btn, .sv-ex-btn2 { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border-radius: 14px; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.sv-ex-btn { border: 1px solid #FFE7A3; background: linear-gradient(180deg, #F4CF6C 0%, #ECBE5A 45%, #D59B33 100%); color: #1A1306; box-shadow: 0 0 12px rgba(245, 197, 66, .35), inset 0 1px 0 rgba(255, 255, 255, .7); }
.sv-ex-btn:hover:not(:disabled) { filter: brightness(1.05); }
.sv-ex-btn:disabled { border-color: transparent; background: rgba(255, 255, 255, .08); color: rgba(185, 196, 230, .6); box-shadow: none; cursor: not-allowed; }
.sv-ex-btn2 { border: 1px solid rgba(245, 197, 66, .45); background: rgba(255, 255, 255, .06); color: #fff; }
.sv-ex-load { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0 4px; color: var(--sv-muted); font-size: 14px; }
.sv-ex-load i { width: 34px; height: 34px; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--sv-gold); border-radius: 50%; animation: sv-ex-spin .8s linear infinite; }
@keyframes sv-ex-spin { to { transform: rotate(360deg); } }
body.sv-mb .swal2-container { z-index: 10070 !important; }
/* ทายสกอร์ (/point-score = desktop2/point/score.php) — UX แบบ superlsm99 (.u2-sc) ; ยอดเพชร/คำอธิบาย/ปุ่ม ใช้ชุดร้านแลกเพชร */
.sv-sc .sv-lc-skel { margin-bottom: 12px; }
.sv-sc .sv-sc-sk { height: 250px; }
.sv-sc-match {
    margin: 0 0 12px; padding: 12px 14px 14px; border-radius: 16px; border: 1px solid rgba(245, 197, 66, .35); color: #fff;
    background: radial-gradient(90% 60% at 100% 0%, rgba(30, 79, 216, .25), rgba(30, 79, 216, 0) 100%), linear-gradient(180deg, #0F2350 0%, #0A1836 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.sv-sc-match .sc-hd { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.sv-sc-match .time { display: inline-flex; align-items: center; gap: 5px; color: var(--sv-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.sv-sc-match .time .ic { width: 15px; height: 15px; color: var(--sv-gold); }
.sv-sc-match .rw { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; color: var(--sv-muted); font-size: 12.5px; }
.sv-sc-match .rw b { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(245, 197, 66, .45); background: rgba(245, 197, 66, .12); color: var(--sv-gold); font-size: 13px; font-weight: 600; }
.sv-sc-match .rw img, .sv-sc .pill img { width: 18px; height: 18px; object-fit: contain; }
.sv-sc-match .teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 8px; margin: 0 0 14px; }
.sv-sc-match .tm { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.sv-sc-match .logo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--sv-line-soft); background: rgba(255, 255, 255, .92); }
.sv-sc-match .logo img { width: 40px; height: 40px; object-fit: contain; }
.sv-sc-match .tm b { min-height: 2.6em; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.sv-sc-match .tm input {
    width: 72px; height: 54px; padding: 0; border-radius: 14px; border: 2px solid var(--sv-line-soft); background: rgba(0, 0, 0, .3);
    color: var(--sv-gold); font: inherit; font-size: 26px; font-weight: 600; text-align: center; outline: 0; transition: border-color .15s, box-shadow .15s;
    -moz-appearance: textfield; appearance: textfield;
}
.sv-sc-match .tm input::-webkit-outer-spin-button, .sv-sc-match .tm input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sv-sc-match .tm input:focus { border-color: var(--sv-gold); box-shadow: 0 0 0 3px rgba(245, 197, 66, .15); }
.sv-sc-match .tm input::placeholder { color: rgba(185, 196, 230, .45); }
.sv-sc-match .tm input:disabled { opacity: 1; color: #fff; }
.sv-sc-match .vs { align-self: center; margin-top: 28px; color: var(--sv-gold); font-size: 15px; font-weight: 700; opacity: .8; }
.sv-sc .sv-ex-btn { gap: 8px; }
.sv-sc .pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: rgba(26, 19, 6, .14); font-size: 15px; }
.sv-sc-sent { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; border-radius: 14px; background: rgba(22, 160, 90, .15); border: 1px solid rgba(74, 222, 128, .5); color: #4ade80; font-size: 15px; font-weight: 600; }
.sv-sc-sent .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.sv-sc-sec { margin-top: 18px; }
.sv-sc-his { margin: 0 0 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--sv-line-soft); background: linear-gradient(180deg, #0F2350 0%, #0A1836 100%); }
.sv-sc-his .sc-hd { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; color: var(--sv-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sv-sc-his .sv-wd-badge { padding: 2px 10px; font-size: 12.5px; }
.sv-sc-his .tb { display: grid; grid-template-columns: minmax(0, 1fr) 48px 56px; align-items: center; gap: 6px; font-size: 14px; }
.sv-sc-his .th { color: var(--sv-muted); font-size: 12px; text-align: center; }
.sv-sc-his .nm { display: flex; align-items: center; gap: 6px; min-width: 0; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-sc-his .nm img { flex: none; width: 24px; height: 24px; padding: 2px; border-radius: 50%; background: rgba(255, 255, 255, .92); object-fit: contain; }
.sv-sc-his .tb b { color: var(--sv-gold); font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
/* กงล้อ (/point-wheel = desktop2/point/wheel.php) — UX แบบ superlsm99 (.u2-wh) ; เกม Phaser เดิม */
.sv-wh .sv-dep-head .sub img { width: 16px; height: 16px; vertical-align: -3px; }
.sv-wh .sv-dep-head .sub b { color: var(--sv-gold); }
.sv-wh-stage {
    overflow: hidden; margin: 0 0 12px; border-radius: 18px; border: 1px solid rgba(245, 197, 66, .45);
    background: radial-gradient(circle at 50% 40%, #1E4FD8 0, #0F2350 50%, #06142F 100%); box-shadow: 0 0 16px rgba(245, 197, 66, .2), 0 10px 24px rgba(0, 0, 0, .4);
}
.sv-wh-stage #play { padding: 0; }
.sv-wh-stage canvas { display: block; }
.sv-wh-rule { padding: 0; }
.sv-wh-rule summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; cursor: pointer; color: var(--sv-gold); font-weight: 600; list-style: none; }
.sv-wh-rule summary::-webkit-details-marker { display: none; }
.sv-wh-rule summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--sv-gold); border-bottom: 2px solid var(--sv-gold); transform: rotate(45deg); transition: transform .2s; }
.sv-wh-rule[open] summary::after { transform: rotate(-135deg); }
.sv-wh-rule > div { padding: 0 14px 12px; color: var(--sv-muted); }
.sv-wh-log { display: grid; gap: 8px; }
.sv-wh-log .it { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--sv-line-soft); background: linear-gradient(180deg, #0F2350 0%, #0A1836 100%); }
.sv-wh-log .tx { flex: 1; min-width: 0; line-height: 1.35; }
.sv-wh-log .tx b { display: block; color: #fff; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.sv-wh-log .tx small { color: var(--sv-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.sv-wh-log .vals { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sv-wh-log .vals span { display: inline-flex; align-items: center; gap: 3px; }
.sv-wh-log .vals img { width: 18px; height: 18px; object-fit: contain; }
.sv-wh-log .vals .cost { color: #ff7a85; }
.sv-wh-log .vals .gain { color: #4ade80; }
.sv-wh-more { height: 42px; font-size: 15px; }
/* กล่องสุ่ม (/point-mystery = desktop2/point/mystery.php) — UX แบบ superlsm99 (.u2-mb) ; ใช้ชุดร้านแลกเพชร + ประวัติแบบกงล้อ ; กล่อง 3D/แอนิเมชันจาก /logo/other/css/mystery.css */
.sv-my-item .img { aspect-ratio: auto; height: 150px; overflow: visible; }
.sv-my-item .cube-box, .sv-my-mcube .cube-box { animation: none; cursor: inherit; }
.sv-my-item .cube-box { transform: scale(.78); }
.sv-my-item .hexagon, .sv-my-mcube .hexagon { display: none; }
.sv-my-mcube { display: grid; place-items: center; height: 180px; border-radius: 14px; background: radial-gradient(circle at 50% 55%, rgba(245, 197, 66, .22) 0, rgba(0, 0, 0, .3) 70%); }
.sv-my-rw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 300px; margin: 0 auto; padding: 0; list-style: none; }
.sv-my-rw li { overflow: hidden; padding: 4px; border-radius: 10px; border: 1px solid rgba(245, 197, 66, .35); background: rgba(0, 0, 0, .25); }
.sv-my-rw img { display: block; width: 100%; max-width: 90px; height: auto; aspect-ratio: 1; margin: 0 auto; object-fit: contain; } /* รูปรางวัล 90x90 ไม่ขยายเกินขนาดจริง */
body.sv-mb .mystery { background: rgba(6, 14, 36, .75); color: #fff; }
/* อ่านข่าว (/news-{id} = desktop2/news.php) — UX แบบ superlsm99 (.u2-nw) */
.sv-nwp-back { display: inline-flex; align-items: center; gap: 4px; height: 34px; margin: 0 0 12px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--sv-line); background: rgba(255, 255, 255, .05); color: #fff !important; font-size: 14px; }
.sv-nwp-back .ic { width: 18px; height: 18px; color: var(--sv-gold); }
.sv-nwp-card {
    margin: 0 0 14px; padding: 16px 14px; border-radius: 16px; border: 1px solid rgba(245, 197, 66, .35); color: #fff;
    background: radial-gradient(90% 50% at 100% 0%, rgba(30, 79, 216, .25), rgba(30, 79, 216, 0) 100%), linear-gradient(180deg, #0F2350 0%, #0A1836 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.sv-nwp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sv-nwp-meta .tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(245, 197, 66, .45); background: rgba(245, 197, 66, .12); color: var(--sv-gold); font-size: 12.5px; font-weight: 500; }
.sv-nwp-meta .time { display: inline-flex; align-items: center; gap: 4px; color: var(--sv-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sv-nwp-meta .ic { width: 14px; height: 14px; }
.sv-nwp-ttl { margin: 10px 0 12px; color: var(--sv-gold); font-size: 19px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.sv-nwp-body { padding-top: 12px; border-top: 1px solid var(--sv-line-soft); color: #fff; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.sv-nwp-body * { font-family: inherit !important; max-width: 100%; }
.sv-nwp-body p { margin: 0 0 8px; }
.sv-nwp-body h1, .sv-nwp-body h2, .sv-nwp-body h3, .sv-nwp-body h4 { margin: 0 0 8px; color: #fff; font-size: 16px !important; font-weight: 500; line-height: 1.6; }
.sv-nwp-body ul, .sv-nwp-body ol { margin: 0 0 8px; padding-left: 20px; }
.sv-nwp-body ul { list-style: disc; }
.sv-nwp-body ol { list-style: decimal; }
.sv-nwp-body strong, .sv-nwp-body b { font-weight: 600; color: var(--sv-gold); }
.sv-nwp-body a { color: var(--sv-gold); text-decoration: underline; }
.sv-nwp-body img { height: auto !important; border-radius: 12px; }
.sv-nwp-body table { width: 100% !important; border-collapse: collapse; }
.sv-nwp-load { display: grid; gap: 10px; }
.sv-nwp-load i { display: block; height: 16px; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, .04) 25%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .04) 75%) 0 0 / 200% 100%; animation: sv-lc-sk 1.2s linear infinite; }
.sv-nwp-load i:first-child { width: 40%; }
.sv-nwp-load i:last-child { height: 160px; border-radius: 12px; }
.sv-nwp-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; text-align: center; }
.sv-nwp-empty .ic-wrap { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(245, 197, 66, .12); color: var(--sv-gold); }
.sv-nwp-empty .ic { width: 26px; height: 26px; }
.sv-nwp-empty b { font-size: 16px; font-weight: 600; }
.sv-nwp-empty p { margin: 0; color: var(--sv-muted); font-size: 14px; }

/* โปรโมชั่น (ชุดเดียวกับเว็บหลัก) */
.sv-promos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sv-promo {
    display: flex; flex-direction: column; min-width: 0; overflow: hidden;
    border-radius: 14px; border: 1px solid #d9a94a4a;
    background: linear-gradient(180deg, #0F2A64 0%, #081A42 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35), 0 0 10px rgba(245, 197, 66, .12);
}
.sv-promo img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 556; object-fit: cover; border-bottom: 1px solid rgba(245, 197, 66, .35); }
.sv-promo-body { padding: 10px 12px 12px; }
.sv-promo h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--sv-gold); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sv-promo p { margin: 0; font-size: 13px; font-weight: 300; line-height: 1.5; color: var(--sv-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* กิจกรรมพิเศษ (ชุดเดียวกับเว็บหลัก) */
.sv-pk-list { display: grid; gap: 10px; }
.sv-pk-card {
    position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; overflow: hidden;
    padding: 12px 34px 12px 14px; border-radius: 14px; border: 1px solid #d9a94a4a;
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(245, 197, 66, .08), rgba(245, 197, 66, 0) 70%),
        linear-gradient(180deg, #08122B 0%, #040A1B 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 226, 138, .08);
}
.sv-pk-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--sv-gold-grad); }
.sv-pk-ic {
    display: flex; align-items: center; justify-content: center; flex: 0 0 72px; height: 72px; border-radius: 14px;
    background: radial-gradient(circle at 50% 30%, #0A3C8E 0%, #072D6E 45%, #041D4A 100%);
    border: 1px solid rgba(245, 197, 66, .45); box-shadow: inset 0 0 12px rgba(245, 197, 66, .15);
}
.sv-pk-ic img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.sv-pk-tx { display: flex; flex-direction: column; min-width: 0; }
.sv-pk-en { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; color: var(--sv-gold); }
.sv-pk-th { font-size: 17px; font-weight: 600; line-height: 1.3; color: #fff; }
.sv-pk-desc { margin-top: 2px; font-size: 13px; font-weight: 300; line-height: 1.4; color: var(--sv-muted); }
.sv-pk-go { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 18px !important; height: 18px !important; color: var(--sv-gold); }

/* footer เว้นระยะจากเนื้อหา */
.sv-mb .sv-footer { margin-top: 24px; }

/* เมนูล่าง (แบบเว็บหลัก .sv-bnav) : หน้าแรก · ฝาก · เข้าเล่น (ทอง) · ถอน · ติดต่อเรา */
.sv-bnav {
    position: fixed; z-index: 60; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 100%; max-width: var(--sv-w);
    height: calc(var(--sv-bnav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: linear-gradient(180deg, #11265A 0%, #081536 100%);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .45);
}
.sv-bnav::before {
    content: ''; position: absolute; left: 0; right: 0; top: -5px; height: 10px; z-index: 1; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(30, 79, 216, 0) 0%, rgba(30, 79, 216, .7) 20%, #9CC2FF 40%, #FFFFFF 50%, #F5C542 62%, rgba(217, 154, 30, .7) 80%, rgba(217, 154, 30, 0) 100%) center / 100% 2px no-repeat,
        radial-gradient(50% 50% at 50% 50%, rgba(140, 180, 255, .45), rgba(30, 79, 216, 0)) center / 100% 100% no-repeat;
}
.sv-bnav-item {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    margin: 0; cursor: pointer; white-space: nowrap;
    font-size: 12.5px; font-weight: 400; line-height: 1.2; color: #E6EBF7 !important;
}
.sv-bnav-item .ic { width: 22px; height: 22px; }
.sv-bnav-on { color: var(--sv-gold) !important; background: radial-gradient(80% 90% at 50% 0%, rgba(245, 197, 66, .30), rgba(245, 197, 66, 0) 70%); }
.sv-bnav-play {
    display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
    color: #1A1306; background: linear-gradient(180deg, #F4CF6C 0%, #D59B33 100%);
    box-shadow: 0 0 10px rgba(245, 197, 66, .5), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.sv-bnav-play .ic { width: 16px; height: 16px; margin-left: 2px; fill: currentColor; }

/* sheet (โปรโมชั่น / popup ประกาศ) แบบเว็บหลัก — เหนือ LIVECHAT (.chat-btn 9999) */
.sv-sheet { position: fixed; inset: 0; z-index: 10002; visibility: hidden; }
.sv-sheet.is-open { visibility: visible; }
.sv-sheet-bg { position: absolute; inset: 0; background: rgba(2, 8, 24, .65); opacity: 0; transition: opacity .2s; }
.sv-sheet.is-open .sv-sheet-bg { opacity: 1; }
.sv-sheet-box {
    position: absolute; bottom: 0; left: 50%;
    width: 100%; max-width: var(--sv-w); max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
    padding: 0 16px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #0C1A3D 0%, #060E24 100%);
    border-top: 1px solid #d9a94a4a; border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .55);
    transform: translate(-50%, 100%); transition: transform .36s cubic-bezier(.22, 1, .36, 1);
}
.sv-sheet.is-open .sv-sheet-box { transform: translate(-50%, 0); }
.sv-sheet-box.is-dragging { transition: none; }
.sv-sheet-promo .sv-sheet-box { padding-bottom: 0; }
.sv-pm-hd { position: sticky; top: 0; z-index: 2; height: 34px; margin: 0 -16px; background: #0C1A3D; touch-action: none; }
.sv-pm-hd::before {
    content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, rgba(245, 197, 66, 0), rgba(255, 226, 138, .85) 50%, rgba(245, 197, 66, 0));
}
.sv-pm-grip { position: absolute; left: 50%; top: 10px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(245, 197, 66, .35); }
.sv-pm-x {
    position: absolute; right: 10px; top: 8px; display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; padding: 0; border-radius: 50%;
    border: 1px solid rgba(245, 197, 66, .4); background: rgba(255, 255, 255, .04); color: var(--sv-gold);
}
.sv-pm-x .ic { width: 16px; height: 16px; }
.sv-pm-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 556; object-fit: cover; margin-top: 10px; border-radius: 12px; border: 1px solid #d9a94a4a; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.sv-pm-ttl { margin: 14px 0 10px; font-size: 19px; font-weight: 500; line-height: 1.35; color: var(--sv-gold); }
.sv-pm-detail { padding-top: 10px; border-top: 1px solid rgba(245, 197, 66, .2); font-size: 14px; font-weight: 300; line-height: 1.7; color: var(--sv-muted); overflow-wrap: anywhere; }
.sv-pm-detail * { font-family: inherit !important; color: inherit !important; background: transparent !important; max-width: 100%; } /* เนื้อหาจาก editor หลังบ้านมีสี/ฟอนต์ inline */
.sv-pm-detail h1, .sv-pm-detail h2, .sv-pm-detail h3, .sv-pm-detail h4 { margin: 0 0 6px; font-size: 15px; font-weight: 500; line-height: 1.4; color: #fff !important; }
.sv-pm-detail p { margin: 0 0 6px; }
.sv-pm-detail ul, .sv-pm-detail ol { margin: 0 0 8px; padding-left: 20px; }
.sv-pm-detail strong, .sv-pm-detail b { font-weight: 500; color: #fff !important; }
.sv-pm-detail a { color: var(--sv-gold) !important; text-decoration: underline; }
.sv-pm-detail img { height: auto; border-radius: 8px; }
.sv-pm-cta { position: sticky; bottom: 0; z-index: 2; margin: 14px -16px 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(6, 14, 36, 0) 0%, #060E24 28%); }
.sv-pm-cta .sv-btn { height: 50px; font-size: 17px; }
.sv-pp-ttl {
    margin: 4px 0 12px; text-align: center; font-size: 22px; font-weight: 500;
    background: linear-gradient(180deg, #FFF4CC 0%, #F5C542 55%, #D99A1E 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sv-pp-img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid #d9a94a4a; }
.sv-pp-ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.sv-pp-chk { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--sv-muted); cursor: pointer; }
.sv-pp-chk input { width: 18px; height: 18px; accent-color: var(--sv-gold); }
.sv-pp-close { width: auto; height: 42px; padding: 0 24px; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .sv-sheet-box, .sv-sheet-bg, .sv-dd { transition: none; } }
@media (max-width: 380px) {
    .sv-mb-hd .sv-au-logo img { height: 40px; }
    .sv-hd-wl-v { font-size: 14px; }
    .sv-lb-card { gap: 2px; padding: 4px 2px; }
    .sv-lb-icon { width: 26px; height: 26px; }
    .sv-lb-icon img { width: 18px; height: 18px; }
    .sv-lb-name { font-size: 11px; }
    .sv-lb-result b { font-size: 13px; }
    .sv-lb-card:first-child { gap: 3px; }
    .sv-lb-card:first-child .sv-lb-icon, .sv-lb-card:first-child .sv-lb-icon img { width: 36px; height: 36px; }
    .sv-lb-first b { font-size: 21px; }
    .sv-lb-card:first-child .sv-lb-result b { font-size: 17px; }
    .sv-wl-btn { font-size: 15px; }
}

/* ---------- แถบติดตั้งแอป (PWA) บนสุดเหนือ header — _sv-pwa.php #sv-pwa (ชุดเดียวกับ www) ---------- */
.sv-pwa {
    position: relative; z-index: 51;
    display: flex; align-items: center; gap: 10px; min-height: 48px;
    padding: 6px 8px 6px 12px;
    background: linear-gradient(90deg, #13295c 0%, #0A1630 100%);
    border-bottom: 1px solid rgba(245, 197, 66, .22);
    color: #fff; line-height: 1.3;
}
.sv-pwa[hidden] { display: none; }
.sv-pwa > img { flex: none; width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(245, 197, 66, .45); }
.sv-pwa-tx { flex: 1; min-width: 0; display: grid; }
.sv-pwa-tx b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-pwa-tx small { font-size: 12px; font-weight: 300; color: var(--sv-muted); }
.sv-pwa.is-help .sv-pwa-tx small { color: #FFE28A; }
.sv-pwa-tx small svg { width: 14px; height: 14px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sv-pwa-btn {
    flex: none; height: 32px; padding: 0 14px; border: 0; border-radius: 16px;
    background: linear-gradient(180deg, #FFE28A 0%, #F5C542 45%, #D99A1E 100%); color: #1a1200;
    font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.sv-pwa-x { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--sv-muted); cursor: pointer; }
.sv-pwa-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
