/* ============================================================
   SYNERGIX UI — Dark Theme (ระบบเมนูและหน้าเว็บโทนดำ)
   ใช้ร่วมกันทุกหน้า: index / shop / categories / product /
   topup / history
   ============================================================ */

:root {
    --bg: #07070c;
    --panel: #0d0d15;
    --card: #12121c;
    --card2: #191926;
    --line: rgba(255, 255, 255, 0.07);
    --line2: rgba(255, 255, 255, 0.13);
    --text: #f2f1fa;
    --muted: #9d9cb3;
    --acc: #8b5cf6;
    --acc2: #a855f7;
    --accSoft: rgba(139, 92, 246, 0.14);
    --grn: #34d399;
    --grnSoft: rgba(52, 211, 153, 0.12);
    --red: #f87171;
    --amb: #fbbf24;
    --blu: #60a5fa;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Prompt', 'Leelawadee UI', 'Segoe UI', sans-serif;
    min-height: 100vh;
}

::selection { background: rgba(139, 92, 246, 0.4); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a10; }
::-webkit-scrollbar-thumb { background: #26263a; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #34344e; }

.text-grad {
    background: linear-gradient(120deg, #c4b5fd 0%, #a855f7 55%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Announcement bar ---------- */
.announce-bar {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 7px 16px; font-size: 12.5px;
    background: linear-gradient(90deg, #4c1d95, #7c3aed 50%, #4c1d95);
    color: #ede9fe;
}
.announce-bar i { color: #fbbf24; }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(9, 9, 15, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: 84rem; margin: 0 auto; padding: 0 1rem;
    height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
    width: 38px; height: 38px; border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.45), 0 4px 14px rgba(0,0,0,.5);
}
.brand-text { line-height: 1.1; }
.brand-text b { display: block; font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.brand-text small {
    display: block; font-size: 8.5px; letter-spacing: 2px;
    color: var(--muted); text-transform: uppercase; font-weight: 500;
}

.nav-menu { display: none; align-items: center; gap: 2px; }
@media (min-width: 1024px) { .nav-menu { display: flex; } }

.nav-link {
    position: relative; padding: 9px 13px; border-radius: 12px;
    font-size: 13.5px; color: var(--muted); white-space: nowrap;
    transition: .18s;
}
.nav-link:hover { color: var(--text); background: var(--card2); }
.nav-link.active { color: #c4b5fd; background: var(--accSoft); }
.nav-link.active::after {
    content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
    height: 3px; border-radius: 4px;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.pill-outline {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--line2); border-radius: 999px;
    padding: 8px 14px; font-size: 12.5px; color: var(--muted);
    white-space: nowrap; transition: .18s;
}
.pill-outline:hover { color: var(--text); background: var(--card2); }

.icon-pill {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line2); color: var(--muted); font-size: 15px;
    transition: .18s;
}
.icon-pill:hover { color: #c4b5fd; border-color: rgba(139,92,246,.5); background: var(--accSoft); }

.balance-chip {
    display: none; align-items: center; gap: 8px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 999px; padding: 7px 14px;
}
@media (min-width: 640px) { .balance-chip { display: inline-flex; } }
.balance-chip i { color: var(--acc2); font-size: 13px; }
.balance-chip .bal-name { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.balance-chip .bal-val { font-size: 13px; font-weight: 700; line-height: 1.2; }

.avatar-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #2b2344, #1a1730);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; border: 1px solid rgba(139, 92, 246, 0.45);
    transition: .18s;
}
.avatar-btn:hover { box-shadow: 0 0 0 3px rgba(139, 92, 246, .28); }
.avatar-btn img { width: 30px; height: 30px; border-radius: 50%; }

.hamburger {
    display: inline-flex; width: 38px; height: 38px;
    align-items: center; justify-content: center; border-radius: 12px;
    border: 1px solid var(--line2); color: var(--muted); font-size: 16px;
    cursor: pointer; background: transparent;
}
@media (min-width: 1024px) { .hamburger { display: none; } }

/* ---------- User dropdown ---------- */
.user-dropdown {
    position: fixed; right: 10px; top: 76px; z-index: 70;
    width: 340px; max-width: calc(100vw - 20px);
    background: #0e0e17; border: 1px solid var(--line2);
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .65), 0 0 0 1px rgba(139, 92, 246, .08);
    opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none;
    transition: .18s ease;
}
.user-dropdown.open { opacity: 1; transform: none; pointer-events: auto; }

.dd-head { display: flex; align-items: center; gap: 12px; padding: 16px; }
.dd-avatar {
    width: 60px; height: 60px; border-radius: 18px; flex: none;
    background: linear-gradient(135deg, rgba(124, 58, 237, .5), rgba(88, 28, 235, .35));
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .35);
}
.dd-avatar img { width: 46px; height: 46px; border-radius: 14px; }
.dd-name { font-size: 16.5px; font-weight: 600; }
.dd-tag {
    display: inline-block; margin-top: 4px; font-size: 10px; letter-spacing: 1.5px;
    padding: 3px 10px; border-radius: 999px;
    color: #c4b5fd; background: var(--accSoft); border: 1px solid rgba(139,92,246,.3);
}

.dd-wallet {
    margin: 0 12px 12px; display: flex; align-items: center; gap: 10px;
    background: linear-gradient(120deg, rgba(124, 58, 237, .18), rgba(168, 85, 247, .08));
    border: 1px solid rgba(139, 92, 246, .3); border-radius: 16px; padding: 12px 14px;
}
.dd-wallet .wi {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    background: rgba(139, 92, 246, .22); color: #c4b5fd;
    display: flex; align-items: center; justify-content: center;
}
.dd-wallet .wl { font-size: 11.5px; color: var(--muted); }
.dd-wallet .wv { font-size: 17px; font-weight: 700; }
.dd-wallet .btn { margin-left: auto; }

.dd-item {
    display: flex; align-items: center; gap: 12px;
    margin: 2px 8px; padding: 10px 10px; border-radius: 14px;
    transition: .15s; color: var(--text);
}
.dd-item:hover { background: var(--card2); }
.dd-item .ii {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    background: var(--card2); color: var(--muted);
    display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.dd-item:hover .ii { background: var(--accSoft); color: #c4b5fd; }
.dd-item .it { line-height: 1.25; min-width: 0; }
.dd-item .it b { display: block; font-size: 14px; font-weight: 500; }
.dd-item .it small { display: block; font-size: 11px; color: var(--muted); }
.dd-item .chev { margin-left: auto; color: #4c4c68; font-size: 12px; }

.dd-foot { border-top: 1px solid var(--line); padding: 10px; }
.dd-logout {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 11px; border-radius: 14px; font-size: 13.5px;
    color: #fca5a5; background: rgba(248, 113, 113, .08);
    border: 1px solid rgba(248, 113, 113, .2); transition: .15s; cursor: pointer;
}
.dd-logout:hover { background: rgba(248, 113, 113, .16); }

/* ---------- Mobile drawer ---------- */
.mobile-drawer {
    position: fixed; inset: 0; z-index: 80; display: none;
}
.mobile-drawer.open { display: block; }
.md-back { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.md-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: 300px; max-width: 86vw;
    background: #0c0c14; border-left: 1px solid var(--line2);
    padding: 18px; overflow-y: auto;
}
.md-panel .x {
    width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line2);
    color: var(--muted); margin-left: auto; cursor: pointer;
}
.md-links { display: block; margin-top: 14px; }
.md-links .nav-link { display: flex; width: 100%; padding: 13px 12px; font-size: 15px; border-radius: 14px; }
.md-auth { margin-top: 18px; display: grid; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; border-radius: 14px; cursor: pointer;
    transition: transform .16s, box-shadow .16s, background .16s;
    border: none; line-height: 1; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 8px 22px rgba(124, 58, 237, .35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(124, 58, 237, .48); }
.btn-outline {
    color: var(--text); border: 1px solid var(--line2); background: transparent;
}
.btn-outline:hover { background: var(--card2); }
.btn-ghost { color: var(--muted); background: var(--card); }
.btn-ghost:hover { color: var(--text); background: var(--card2); }
.btn-sm { font-size: 12px; padding: 9px 14px; border-radius: 11px; }
.btn-md { font-size: 13.5px; padding: 12px 20px; }
.btn-lg { font-size: 15px; padding: 15px 28px; border-radius: 16px; }
.btn-block { width: 100%; }

/* ---------- Chips / badges ---------- */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px;
    font-size: 11px; font-weight: 500; border: 1px solid transparent;
}
.chip-green  { color: #6ee7b7; background: var(--grnSoft); border-color: rgba(52,211,153,.25); }
.chip-blue   { color: #93c5fd; background: rgba(96,165,250,.12); border-color: rgba(96,165,250,.25); }
.chip-amber  { color: #fcd34d; background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.25); }
.chip-purple { color: #c4b5fd; background: var(--accSoft); border-color: rgba(139,92,246,.35); }
.chip-gray   { color: var(--muted); background: var(--card2); border-color: var(--line); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip .live-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
    70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- Cards ---------- */
.stat-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 18px; padding: 16px;
    transition: .18s;
}
.stat-card:hover { border-color: rgba(139, 92, 246, .4); transform: translateY(-2px); }
.stat-icon {
    width: 44px; height: 44px; border-radius: 13px; flex: none;
    background: var(--accSoft); color: #c4b5fd; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
}
.stat-card .sl { font-size: 11px; color: var(--muted); }
.stat-card .sv { font-size: 19px; font-weight: 700; line-height: 1.15; }

.qa-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 18px; padding: 15px 16px; color: var(--text);
    transition: .18s;
}
.qa-card:hover { border-color: rgba(139, 92, 246, .5); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124,58,237,.15); }
.qa-card .qi {
    width: 44px; height: 44px; border-radius: 13px; flex: none;
    background: var(--accSoft); color: #c4b5fd; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
}
.qa-card b { display: block; font-size: 14.5px; font-weight: 600; }
.qa-card small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Product card ---------- */
.pcard {
    display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 20px; overflow: hidden;
    transition: .2s ease;
}
.pcard:hover {
    border-color: rgba(139, 92, 246, .45);
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(88, 28, 135, .25);
}
.pcard-media {
    position: relative; height: 132px;
    background:
        radial-gradient(120px 90px at 85% 15%, rgba(168, 85, 247, .28), transparent 70%),
        radial-gradient(140px 110px at 12% 88%, rgba(124, 58, 237, .22), transparent 70%),
        linear-gradient(160deg, #15151f, #0c0c13);
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--line);
}
.pcard-media .pi {
    width: 62px; height: 62px; border-radius: 18px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(139, 92, 246, .35);
    color: #c4b5fd; font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 26px rgba(0,0,0,.4);
}
.pcard-media .badge-abs { position: absolute; top: 10px; right: 10px; }
.pcard-media .soldout-abs {
    position: absolute; inset: 0; display: none;
    align-items: center; justify-content: center; flex-direction: column; gap: 6px;
    background: rgba(7, 7, 12, .82); color: var(--muted);
    font-size: 12.5px; backdrop-filter: blur(2px);
}
.pcard.soldout .soldout-abs { display: flex; }
.pcard-body { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-tag { font-size: 10px; letter-spacing: 1.2px; color: var(--acc2); font-weight: 600; }
.pcard-name { font-size: 16px; font-weight: 600; line-height: 1.3; }
.pcard-desc {
    font-size: 12px; color: var(--muted); line-height: 1.55; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-priceline {
    display: flex; align-items: baseline; gap: 8px; padding-top: 8px;
    border-top: 1px dashed rgba(255,255,255,.09); margin-top: 4px;
}
.pcard-priceline .pl { font-size: 10.5px; color: var(--muted); }
.pcard-priceline .pv { font-size: 19px; font-weight: 700; color: #c4b5fd; }
.pcard-priceline .pu { font-size: 10.5px; color: var(--muted); }
.pcard-priceline .stock { margin-left: auto; font-size: 10.5px; color: var(--muted); }
.pcard-actions { padding: 0 16px 14px; }
.pcard-sold {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    font-size: 10.5px; color: #808099; margin-top: 8px;
}

/* ---------- Category banner ---------- */
.bann {
    display: block; border-radius: 24px; overflow: hidden;
    border: 1px solid var(--line); background: var(--card);
    transition: .2s ease; color: var(--text);
}
.bann:hover { border-color: rgba(139, 92, 246, .5); transform: translateY(-4px); box-shadow: 0 20px 46px rgba(88,28,135,.28); }
.bann-media {
    position: relative; height: 172px; padding: 22px;
    display: flex; align-items: center; justify-content: space-between;
    background:
        radial-gradient(200px 140px at 90% 100%, rgba(168, 85, 247, .3), transparent 70%),
        repeating-linear-gradient(60deg, rgba(255, 255, 255, .025) 0 14px, transparent 14px 34px),
        linear-gradient(135deg, #15102a, #0b0b13 70%);
    overflow: hidden;
}
.bann-media::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(340px 200px at 8% 0%, rgba(124, 58, 237, .32), transparent 70%);
}
.bann-title { position: relative; z-index: 1; }
.bann-title .bt-big {
    font-size: clamp(30px, 5.5vw, 44px); font-weight: 800; line-height: .95;
    color: #d8ccff; text-shadow: 0 6px 34px rgba(124, 58, 237, .55);
    letter-spacing: .5px;
}
.bann-title .bt-small {
    font-size: clamp(14px, 2.4vw, 20px); font-weight: 600; color: #a78bfa; letter-spacing: 2px;
}
.bann-icon {
    position: relative; z-index: 1;
    width: 78px; height: 78px; border-radius: 20px;
    background: linear-gradient(150deg, rgba(168, 85, 247, .4), rgba(88, 28, 135, .2));
    border: 1px solid rgba(196, 181, 253, .4); color: #e9e2ff; font-size: 30px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 34px rgba(0,0,0,.5);
}
.bann-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
}
.bann-foot b { font-size: 15.5px; font-weight: 700; letter-spacing: .4px; }
.bann-foot small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.bann-foot .bc { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.bann:hover .bann-foot .bc { color: #c4b5fd; }

/* ---------- Section header ---------- */
.sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sec-ico {
    width: 30px; height: 30px; border-radius: 10px; flex: none;
    background: var(--accSoft); color: #c4b5fd; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}
.sec-head h2 { font-size: 18.5px; font-weight: 700; }
.sec-head .sec-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.sec-link { margin-left: auto; font-size: 12.5px; color: var(--acc2); }
.sec-link:hover { color: #d8ccff; }

/* ---------- Hero ---------- */
.hero-card {
    border: 1px solid var(--line); border-radius: 28px;
    background:
        radial-gradient(420px 260px at 88% 8%, rgba(124, 58, 237, .25), transparent 65%),
        radial-gradient(380px 280px at 0% 100%, rgba(88, 28, 135, .22), transparent 65%),
        linear-gradient(160deg, #10101a, #0b0b12);
    padding: 40px 28px;
}
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-art::before {
    content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, .4), rgba(139, 92, 246, .12) 60%, transparent 75%);
    filter: blur(38px);
}
.hero-art::after {
    content: ""; position: absolute; inset: 6%;
    border-radius: 50%; border: 1.5px dashed rgba(196, 181, 253, .3);
    animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-art img {
    position: relative; width: min(100%, 330px); aspect-ratio: 1;
    border-radius: 50%; object-fit: cover;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, .5), 0 26px 70px rgba(76, 29, 149, .55);
}
.hero-bullet { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: #6ee7b7; }
.hero-note { font-size: 11.5px; color: var(--muted); letter-spacing: .3px; }

/* ---------- Ticker ---------- */
.ticker-wrap {
    display: flex; align-items: center; gap: 12px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 18px; padding: 10px 14px;
}
.ticker-track { display: flex; gap: 8px; overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-inner { display: flex; gap: 8px; animation: marquee 32s linear infinite; }
.ticker-wrap:hover .ticker-inner { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk-item {
    display: flex; align-items: center; gap: 9px; flex: none;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 14px; padding: 8px 12px;
}
.tk-item .ticon {
    width: 32px; height: 32px; border-radius: 10px; flex: none;
    background: var(--accSoft); color: #c4b5fd; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
}
.tk-item b { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tk-item small { display: block; font-size: 9.5px; color: #71718c; white-space: nowrap; }

/* ---------- Forms ---------- */
.inputwrap { position: relative; }
.inputwrap .il {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #6b6b88; font-size: 13px;
}
.input {
    width: 100%; background: var(--panel); border: 1px solid var(--line2);
    border-radius: 14px; padding: 13px 14px 13px 40px;
    color: var(--text); font-size: 13.5px; font-family: inherit;
    outline: none; transition: .18s;
}
.input::placeholder { color: #5d5d78; }
.input:focus { border-color: rgba(139, 92, 246, .7); box-shadow: 0 0 0 3px rgba(139, 92, 246, .22); }
select.input { appearance: none; padding-right: 34px; cursor: pointer; }
.selectwrap { display: flex; align-items: center; gap: 8px; }
.selectwrap i { color: var(--muted); font-size: 13px; }

/* ---------- Tabs ---------- */
.tabbar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.itab {
    padding: 12px 18px; font-size: 14px; font-weight: 500; color: var(--muted);
    border-bottom: 2px solid transparent; cursor: pointer; background: none; border-radius: 0;
    transition: .18s;
}
.itab:hover { color: var(--text); }
.itab.active { color: var(--text); border-bottom-color: #a855f7; }

/* ---------- Payments page ---------- */
.pay-headcard {
    display: flex; align-items: center; gap: 14px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 22px; padding: 18px;
}
.pay-logo {
    width: 56px; height: 56px; border-radius: 16px; flex: none; font-size: 26px;
    background: linear-gradient(140deg, #e11d48, #7f1d1d); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(225, 29, 72, .3);
}
.pay-h b { font-size: 18px; font-weight: 700; display: block; }
.pay-h small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.pay-bal { margin-left: auto; text-align: right; }
.pay-bal .pl2 { font-size: 10.5px; color: var(--muted); }
.pay-bal .pv2 { font-size: 19px; font-weight: 700; }

.notice-strip {
    display: flex; gap: 10px; align-items: flex-start;
    background: var(--accSoft); border: 1px solid rgba(139, 92, 246, .3);
    border-radius: 16px; padding: 13px 14px; font-size: 12.5px;
    color: #d8ccff; line-height: 1.6;
}
.notice-strip i { margin-top: 2px; color: #c4b5fd; }

.step-card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: 18px; padding: 16px; text-align: center;
}
.step-num {
    width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff; font-weight: 700; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(124, 58, 237, .4);
}
.step-card b { display: block; font-size: 13.5px; }
.step-card small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }

.fineprint { font-size: 11px; color: #6f6f8a; line-height: 1.7; }
.linklike { color: var(--acc2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Product detail ---------- */
.pd-media {
    position: relative; border-radius: 26px; aspect-ratio: 1; overflow: hidden;
    border: 1px solid var(--line);
    background:
        radial-gradient(280px 200px at 80% 14%, rgba(168, 85, 247, .3), transparent 70%),
        radial-gradient(300px 240px at 8% 90%, rgba(124, 58, 237, .26), transparent 70%),
        linear-gradient(160deg, #14141f, #0b0b13);
    display: flex; align-items: center; justify-content: center;
}
.pd-media .big-i {
    width: 128px; height: 128px; border-radius: 32px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(139, 92, 246, .4);
    color: #c4b5fd; font-size: 46px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.pd-media .badge-abs { position: absolute; top: 14px; right: 14px; }
.pd-price { font-size: 34px; font-weight: 800; color: #c4b5fd; line-height: 1; }
.pd-feats li {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 12px;
    background: var(--panel); border: 1px solid var(--line);
    font-size: 12.5px; color: #cfcfe4;
}
.pd-feats li i { color: #34d399; font-size: 12px; }

/* ---------- Empty state ---------- */
.empty-card {
    border: 1px dashed var(--line2); border-radius: 22px;
    background: var(--panel); text-align: center; padding: 56px 20px;
}
.empty-ico {
    width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 22px;
    background: var(--accSoft); color: #9f92d8; font-size: 28px;
    display: flex; align-items: center; justify-content: center;
}
.empty-card b { display: block; font-size: 17px; }
.empty-card p { font-size: 12.5px; color: var(--muted); margin: 6px 0 18px; }

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--line); background: var(--panel);
    margin-top: 56px;
}
.footer-grid {
    max-width: 84rem; margin: 0 auto; padding: 44px 16px 30px;
    display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; letter-spacing: .3px; }
.footer a, .footer .flink {
    display: block; font-size: 12.5px; color: var(--muted);
    padding: 4px 0; text-decoration: none; cursor: pointer; background: none; border: none; text-align: left;
}
.footer a:hover, .footer .flink:hover { color: #c4b5fd; }
.footer-bottom {
    max-width: 84rem; margin: 0 auto; padding: 16px; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
    font-size: 11px; color: #6f6f8a;
}
.fbadge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; color: #6ee7b7; background: var(--grnSoft);
    border: 1px solid rgba(52, 211, 153, .25); border-radius: 999px; padding: 4px 11px;
}

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 90; display: none;
    align-items: center; justify-content: center; padding: 16px;
    background: rgba(4, 4, 8, .74); backdrop-filter: blur(5px);
}
.modal-overlay.open { display: flex; }
.modal {
    width: 400px; max-width: 100%;
    background: #0f0f19; border: 1px solid var(--line2);
    border-radius: 26px; padding: 26px 24px 20px;
    box-shadow: 0 30px 90px rgba(0,0,0,.7), 0 0 0 1px rgba(139,92,246,.1);
    animation: pop .22s ease;
}
@keyframes pop { from { transform: translateY(10px) scale(.97); opacity: 0; } }
.modal-x { position: absolute; }
.modal .itabwrap { margin-bottom: 18px; }
.mfield { margin-bottom: 12px; }
.mfield label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.modal-note { font-size: 10.5px; color: #5f5f7c; text-align: center; margin-top: 14px; line-height: 1.7; }

/* ---------- Toast ---------- */
#toastBox {
    position: fixed; right: 16px; bottom: 16px; z-index: 120;
    display: flex; flex-direction: column; gap: 10px; max-width: min(360px, 92vw);
}
.toast {
    display: flex; align-items: flex-start; gap: 10px;
    background: #101019; border: 1px solid var(--line2);
    border-radius: 16px; padding: 13px 15px; font-size: 12.5px; line-height: 1.55;
    box-shadow: 0 18px 50px rgba(0,0,0,.6);
    animation: toastin .25s ease;
}
.toast .ti { font-size: 15px; margin-top: 1px; }
.toast.ok .ti { color: var(--grn); }
.toast.warn .ti { color: var(--amb); }
.toast.info .ti { color: var(--acc2); }
.toast.err .ti { color: var(--red); }
@keyframes toastin { from { transform: translateY(14px); opacity: 0; } }

/* ---------- Misc ---------- */
.backlink {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--muted); transition: .15s;
}
.backlink:hover { color: var(--text); }
.cat-filterchip { margin-bottom: -6px; }
.filterchips { display: flex; gap: 8px; flex-wrap: wrap; }
.filterchip {
    padding: 9px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
    color: var(--muted); background: var(--card); border: 1px solid var(--line);
    cursor: pointer; transition: .16s;
}
.filterchip:hover { color: var(--text); border-color: var(--line2); }
.filterchip.on {
    color: #fff; background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: transparent; box-shadow: 0 6px 18px rgba(124, 58, 237, .35);
}

.hairline { border-top: 1px solid var(--line); }

.warranty-row {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; color: #6ee7b7; background: var(--grnSoft);
    border: 1px solid rgba(52,211,153,.25); border-radius: 999px; padding: 4px 11px;
}

/* ============================================================
   MONEY PAGE — channel tabs (ซองอังเปา / พร้อมเพย์) + QR + ตรวจสลิป
   ============================================================ */
.pay-tabs { display: flex; gap: 10px; margin-top: 14px; }
.pay-tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 10px; border-radius: 16px; cursor: pointer; transition: .18s;
    background: var(--card); border: 1px solid var(--line);
    color: var(--muted); font-weight: 600; font-size: 13.5px;
    font-family: inherit;
}
.pay-tab i { font-size: 15px; }
.pay-tab:hover { color: var(--text); border-color: var(--line2); }
.pay-tab.on {
    color: #fff; background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: transparent; box-shadow: 0 8px 26px rgba(124, 58, 237, .38);
}
.acc-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--panel); border: 1px solid var(--line2);
    border-radius: 16px; padding: 13px 15px;
}
.qrbox {
    width: 240px; height: 240px; padding: 14px; margin: 0 auto;
    background: #ffffff; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 14px 34px rgba(0,0,0,.45);
}
.qrbox svg, .qrbox canvas { width: 100%; height: 100%; display: block; }
.dropzoneu {
    border: 1px dashed var(--line2); border-radius: 18px;
    background: var(--panel); padding: 26px 16px; cursor: pointer;
    text-align: center; transition: .18s; display: block;
}
.dropzoneu:hover, .dropzoneu.drag {
    border-color: var(--acc); background: var(--accSoft);
}
.vres { border-radius: 18px; padding: 16px; border: 1px solid transparent; }
.vres.ok { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .3); color: #6ee7b7; }
.vres.bad { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .3); color: #fca5a5; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.vcell { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 13px; }
.vlabel { font-size: 10.5px; color: var(--muted); letter-spacing: .02em; }
.vval { font-size: 13.5px; font-weight: 600; margin-top: 3px; color: var(--text); }
@media (max-width: 560px) {
    .pay-tabs { flex-direction: column; }
    .acc-row { flex-direction: column; align-items: flex-start; }
    .vgrid { grid-template-columns: 1fr; }
}

/* ============================================================
   Real assets — รูปสินค้าจริง / โลโก้ TrueMoney Wallet จริง /
   แถวประวัติการซื้อจริง
   ============================================================ */
.pcard-media img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.pd-media img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
}
/* โลโก้ TrueMoney (ตัวจริง) — ใส่บนแผ่นขาวให้อ่านชัดบนธีมดำ */
.tm-ico {
    height: 15px; width: auto; background: #ffffff;
    border-radius: 7px; padding: 2px 5px; box-sizing: content-box;
    display: inline-block; flex: none;
}
.balance-chip .tm-ico { box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.qa-card .qi.qi-img img {
    height: 19px; width: auto; background: #ffffff;
    border-radius: 8px; padding: 4px 7px; box-sizing: content-box;
}
.pay-logo img {
    height: 24px; width: auto; background: #ffffff;
    border-radius: 10px; padding: 7px 9px; box-sizing: content-box;
}
.pay-logo.pay-logo-img {
    width: 56px; height: 56px; padding: 0;
    background: #ffffff; border-radius: 16px;
    box-shadow: 0 8px 22px rgba(255, 255, 255, .12), 0 8px 22px rgba(0, 0, 0, .35);
    display: flex; align-items: center; justify-content: center;
}
.pay-logo.pay-logo-img img { height: 20px; padding: 0; background: none; }
.dd-wallet .wi img { box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
/* แถวประวัติการซื้อ (ข้อมูลจริงของบัญชีผู้ใช้) */
.ohist {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 16px; padding: 14px 16px; transition: .18s;
}
.ohist:hover { border-color: rgba(139, 92, 246, .4); }
.oh-main { display: flex; align-items: center; gap: 11px; }
.oh-ico {
    width: 38px; height: 38px; border-radius: 12px; flex: none;
    background: var(--accSoft); color: #c4b5fd; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
}
.oh-main b { font-size: 13.5px; font-weight: 600; }
.oh-main small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.oh-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.oh-key {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px; color: #6ee7b7;
    background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .25);
    padding: 4px 9px; border-radius: 8px;
}
.oh-price { font-weight: 700; font-size: 14px; }
@media (max-width: 560px) {
    .ohist { flex-direction: column; align-items: flex-start; }
}

