/* Planaria navigation: a compact header, readable menus and a mobile dock. */
#pl-navbar-wrapper { position:sticky; top:0; z-index:1030; padding-top:12px; }
#pl-navbar-wrapper .nv-bar { position:relative; display:flex; align-items:center; gap:14px; min-height:72px; padding:10px 12px 10px 16px; border:1px solid rgba(255,255,255,.11); border-radius:22px; background:linear-gradient(120deg,#111a2a,#0c1220 65%); box-shadow:0 12px 34px #02061145; transition:box-shadow .2s,background .2s; }
#pl-navbar-wrapper.is-scrolled .nv-bar { background:#0c1321; box-shadow:0 12px 32px #02061180; }
#pl-navbar-wrapper .nv-logo { display:flex; align-items:center; gap:10px; min-width:0; flex-shrink:0; text-decoration:none; }
#pl-navbar-wrapper .nv-logo img { width:38px; height:38px; object-fit:contain; flex:none; border-radius:11px; }
.nv-brand-copy { display:flex; flex-direction:column; min-width:0; gap:3px; }
.nv-brand-copy strong { color:#f8fafc!important; font-size:.9rem; font-weight:750; max-width:135px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; line-height:1.25; letter-spacing:-.02em; }
.nv-brand-copy small { color:var(--ui-muted)!important; font-size:.63rem; line-height:1.3; max-width:135px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#pl-navbar-wrapper .nv-links { display:flex; align-items:center; gap:3px; min-width:0; margin:0; padding:0; list-style:none; }
#pl-navbar-wrapper .nv-link { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:42px; padding:9px 11px; border:0; border-radius:12px; background:transparent; color:#b6c2d5!important; text-decoration:none; font:inherit; font-size:.81rem; font-weight:550; white-space:nowrap; transition:background .18s,color .18s; }
#pl-navbar-wrapper .nv-link > i { font-size:.8rem; color:inherit!important; }
#pl-navbar-wrapper .nv-link:hover,#pl-navbar-wrapper .nv-link[aria-expanded=true] { background:#ffffff0a; color:#fff!important; }
#pl-navbar-wrapper .nv-link.active { background:var(--ui-accent-soft); color:var(--ui-accent)!important; }
#pl-navbar-wrapper .nv-link.dropdown-toggle::after { margin-left:2px; vertical-align:middle; border-width:4px 4px 0; transition:transform .18s; }
#pl-navbar-wrapper .nv-link[aria-expanded=true]::after { transform:rotate(180deg); }
#pl-navbar-wrapper .dropdown-menu { min-width:290px; margin-top:9px!important; padding:7px; border:1px solid var(--ui-line-strong); border-radius:18px; background:#101827; box-shadow:0 20px 55px #0008; }
.nv-item { display:flex; align-items:center; gap:10px; min-height:48px; padding:9px 10px; border-radius:12px; color:#d6dfed!important; text-decoration:none; font-size:.85rem; transition:background .16s; }
.nv-item > i:first-child { display:inline-flex; align-items:center; justify-content:center; flex:none; width:34px; height:34px; border-radius:10px; background:#ffffff06; color:#96a7c0!important; font-size:.9rem; }
.nv-item > span { min-width:0; flex:1; color:inherit!important; }
.nv-item:hover,.nv-item.active { background:#ffffff08; color:#fff!important; }
.nv-item.active > i:first-child { background:var(--ui-accent-soft); color:var(--ui-accent)!important; }
.nv-item.active > span { color:var(--ui-accent)!important; }
.nv-item .nv-desc { display:block; margin-top:3px; color:var(--ui-dim)!important; font-size:.7rem; line-height:1.45; }
.nv-item.danger,.nv-item.danger > span,.nv-item.danger > i:first-child { color:#fca5a5!important; }
.nv-tag { flex:none; padding:3px 6px; border-radius:7px; background:var(--ui-accent-soft); color:var(--ui-accent)!important; font-size:.59rem; font-style:normal; font-weight:700; }
.nv-ext { font-size:.65rem; opacity:.5; }
.nv-section { margin:10px 10px 5px; font-size:.68rem; font-weight:700; color:var(--ui-dim)!important; }
#pl-navbar-wrapper .nv-right { display:flex; align-items:center; gap:7px; margin-left:auto; flex:none; }
.nv-svg { display:block; width:21px; height:21px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
#pl-navbar-wrapper .nv-search,#pl-navbar-wrapper .nv-icon-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:42px; padding:0 12px; border:1px solid var(--ui-line-strong); border-radius:12px; background:#ffffff05; color:#b6c2d5; font:inherit; font-size:.8rem; text-decoration:none; }
#pl-navbar-wrapper .nv-icon-btn { width:42px; padding:0; flex:none; color:#e2e8f0; }
#pl-navbar-wrapper .nv-search:hover,#pl-navbar-wrapper .nv-icon-btn:hover { background:#ffffff0b; border-color:var(--ui-accent-line); }
#pl-navbar-wrapper .nv-search kbd { margin-left:8px; padding:1px 5px; border:1px solid #ffffff14; border-radius:5px; background:transparent; color:#7f91ab; font-size:.65rem; box-shadow:none; }
#pl-navbar-wrapper .nv-topup { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0 13px; border-radius:12px; font-size:.8rem; }
#pl-navbar-wrapper .nv-user { display:flex; align-items:center; gap:9px; min-height:42px; padding:4px 10px 4px 4px; border:1px solid var(--ui-line-strong); border-radius:13px; background:#ffffff05; color:#fff!important; text-decoration:none; }
#pl-navbar-wrapper .nv-user img { width:32px; height:32px; border-radius:9px; object-fit:cover; }
#pl-navbar-wrapper .nv-user .meta { display:grid; gap:2px; line-height:1.2; }
#pl-navbar-wrapper .nv-user .meta b { max-width:90px; color:#fff!important; font-size:.73rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#pl-navbar-wrapper .nv-user .meta span { color:var(--ui-accent)!important; font-size:.7rem; font-variant-numeric:tabular-nums; }
.nv-user-head { padding:10px; margin-bottom:5px; border-bottom:1px solid var(--ui-line); }
.nv-user-head div { display:flex; justify-content:space-between; gap:12px; margin-bottom:5px; font-size:.75rem; }
.nv-user-head .acc { color:var(--ui-accent)!important; }
#pl-navbar-wrapper .nv-balance { display:inline-flex; align-items:center; justify-content:center; gap:6px; height:42px; max-width:130px; padding:0 11px; border:1px solid var(--ui-accent-line); border-radius:12px; background:var(--ui-accent-soft); color:var(--ui-accent)!important; font-size:.78rem; font-weight:750; font-variant-numeric:tabular-nums; text-decoration:none; }
#pl-navbar-wrapper .nv-balance span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:inherit!important; }
#pl-navbar-wrapper .nv-balance .nv-svg { width:17px; height:17px; }
.nv-mobile-login { display:none; }
.pl-breadcrumb-wrap { padding:12px 0 0; }
.pl-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0; padding:0; list-style:none; font-size:.74rem; line-height:1.5; color:var(--ui-dim); }
.pl-breadcrumb li { display:inline-flex; align-items:center; gap:6px; }
.pl-breadcrumb li:not(:last-child)::after { content:'›'; color:#64748b; }
.pl-breadcrumb a { color:var(--ui-muted)!important; text-decoration:none; }
.pl-breadcrumb [aria-current=page] { color:#e2e8f0!important; }

/* Drawer is a single scroll surface; groups keep the full catalog easy to scan. */
#mobileMenu.nv-drawer { width:min(410px,92vw); background:#0e1625; color:#e2e8f0; border:1px solid #ffffff16; border-radius:26px 0 0 26px; }
#mobileMenu .offcanvas-header { padding:20px 20px 12px; gap:12px; }
#mobileMenu .nv-drawer-heading { flex:1; min-width:0; }
#mobileMenu .nv-drawer-mascot { width:clamp(56px, 20vw, 80px); height:auto; aspect-ratio:1; object-fit:contain; flex:none; }
#mobileMenu .nv-drawer-mascot[hidden] { display:none; }
#mobileMenu .nv-drawer-title-icon { display:grid; place-items:center; flex:0 0 44px; aspect-ratio:1; border-radius:14px; color:#f6efff; background:linear-gradient(145deg,#59428e,#303859); border:1px solid #b89aff55; }
#mobileMenu .nv-drawer-title-icon .nv-svg { width:22px; height:22px; fill:currentColor; stroke:none; }
#mobileMenu .nv-drawer-heading small { display:block; color:var(--ui-accent)!important; font-size:.62rem; font-weight:700; letter-spacing:.12em; }
#mobileMenu .nv-drawer-heading h2 { margin:4px 0 0; color:#fff!important; font-size:1.2rem; font-weight:750; }
#mobileMenu .nv-drawer-close { display:grid; place-items:center; flex:none; width:44px; height:44px; padding:0; border:1px solid var(--ui-line-strong); border-radius:50%; background:#ffffff05; color:#e2e8f0; }
#mobileMenu .offcanvas-body { padding:8px 18px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior:contain; }
#mobileMenu .nv-account { padding:16px; margin-bottom:16px; border:1px solid var(--ui-accent-line); border-radius:18px; background:linear-gradient(135deg,var(--ui-accent-soft),#ffffff03); }
#mobileMenu .nv-account .who { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
#mobileMenu .nv-account img { width:42px; height:42px; object-fit:cover; border-radius:12px; }
#mobileMenu .nv-account .who > div { min-width:0; }
#mobileMenu .nv-account b { display:block; max-width:230px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#f8fafc!important; font-size:.9rem; }
#mobileMenu .nv-account small { color:var(--ui-muted)!important; font-size:.72rem; }
#mobileMenu .nv-account .bal { color:var(--ui-accent)!important; font-size:1.4rem; font-weight:800; font-variant-numeric:tabular-nums; }
#mobileMenu .nv-search-m { display:flex; align-items:center; gap:10px; width:100%; min-height:48px; padding:10px 13px; border:1px solid var(--ui-line-strong); border-radius:14px; background:#ffffff04; color:#a4b3c9; text-align:left; font:inherit; font-size:.8rem; }
#mobileMenu .nv-search-m span { color:#e4eafb!important; }
#mobileMenu .nv-search-m .nv-svg { margin-inline-start:auto; width:16px; height:16px; transform:rotate(-90deg); }
#mobileMenu :is(button,a,summary):focus-visible { outline:2px solid #bca8ff; outline-offset:-2px; }
.nv-drawer-signin { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:12px; }
.nv-drawer-signin .ui-btn { min-height:44px; padding-inline:6px; }
.nv-drawer-main { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:14px; margin-bottom:18px; }
.nv-drawer-main .nv-item { flex-direction:column; align-items:flex-start; gap:8px; padding:13px; border:1px solid var(--ui-line); border-radius:15px; background:#ffffff03; font-size:.78rem; }
.nv-drawer-main .nv-item > i:first-child { width:30px; height:30px; background:transparent; color:var(--ui-accent)!important; }
#mobileMenu .nv-drawer-services .nv-section, #mobileMenu .nv-drawer-account .nv-section { margin:16px 2px 8px; color:#e7e3fa!important; font-size:.86rem; }
#mobileMenu .nv-service-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
#mobileMenu .nv-service-grid .nv-item { display:grid; grid-template-columns:28px minmax(0,1fr); align-items:start; align-content:start; min-height:74px; gap:4px 7px; padding:8px; border:1px solid var(--ui-line-strong); background:#182238; overflow-wrap:anywhere; }
#mobileMenu .nv-service-grid .nv-item > i:first-child { width:28px; height:28px; color:#c7b6ff!important; }
#mobileMenu .nv-service-grid .nv-tag { grid-column:2; justify-self:start; }
#mobileMenu .nv-service-grid .nv-drawer-feature { grid-column:1 / -1; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; align-content:center; min-height:60px; padding:10px; border-color:#a587f77a; background:#342950; }
#mobileMenu .nv-service-grid .nv-drawer-feature .nv-tag { grid-column:3; }
#mobileMenu .nv-service-grid .nv-item.active { border-color:var(--ui-accent-line); }
.nv-menu-group { margin:8px 0; border:1px solid var(--ui-line); border-radius:15px; overflow:hidden; }
.nv-menu-group summary { display:flex; align-items:center; gap:10px; min-height:50px; padding:12px 13px; list-style:none; cursor:pointer; color:#dce5f3; font-size:.85rem; font-weight:600; }
.nv-menu-group summary::-webkit-details-marker { display:none; }
.nv-menu-group summary > i { color:var(--ui-accent)!important; width:22px; text-align:center; }
.nv-menu-group summary .nv-svg { margin-left:auto; width:16px; height:16px; color:#91a2bd; transition:transform .18s; }
.nv-menu-group[open] summary .nv-svg { transform:rotate(180deg); }
.nv-menu-group[open] summary { border-bottom:1px solid var(--ui-line); }
.nv-menu-group .nv-item { margin:3px 4px; }
.nv-menu-group .nv-desc { font-size:.68rem; }

/* Search keeps the established IDs used by searchproduct.js. */
#search_menu_popup .modal-content { background:#0e1625; color:#e2e8f0; border:1px solid var(--ui-line-strong); border-radius:22px; }
#search_menu_popup .sr-head { padding:18px; border-bottom:1px solid var(--ui-line); }
#search_menu_popup .sr-input { display:flex; align-items:center; flex:1; gap:10px; min-width:0; }
#search_menu_popup .sr-input > i { color:var(--ui-accent)!important; }
#search_menu_popup .sr-input input { flex:1; min-width:0; width:100%; border:0; background:transparent; color:#fff; font-size:.9rem; box-shadow:none; }
#search_menu_popup .modal-body { max-height:65dvh; overflow:auto; padding:10px; }
#search_menu_popup .sr-item { display:flex; align-items:center; gap:12px; min-height:64px; padding:10px; border-radius:13px; text-decoration:none; }
#search_menu_popup .sr-item:hover { background:#ffffff06; }
#search_menu_popup .sr-item img { height:48px; width:auto; min-width:40px; max-width:85px; object-fit:contain; border-radius:9px; }
#search_menu_popup .sr-item .sr-ico { display:grid; place-items:center; flex:none; width:42px; height:42px; background:var(--ui-accent-soft); color:var(--ui-accent); border-radius:11px; }
#search_menu_popup .sr-item .sr-text { min-width:0; flex:1; }
#search_menu_popup .sr-item b { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:#fff!important; font-size:.86rem; }
#search_menu_popup .sr-item small { color:var(--ui-muted)!important; font-size:.72rem; }
#search_menu_popup .sr-item .sr-price { flex:none; color:var(--ui-accent)!important; font-weight:750; font-size:.85rem; }
#search_menu_popup .sr-empty { padding:40px 16px; text-align:center; color:#94a3b8; }
#search_menu_popup .sr-empty i { font-size:2rem; color:var(--ui-accent); margin-bottom:12px; }
.nv-tabbar { display:none; }
.nv-app-picker { height:auto!important; max-height:min(420px,85dvh); border:1px solid #ffffff2b; border-bottom:0; border-radius:24px 24px 0 0; background:#101827; color:#f8fafc; }
.nv-app-picker .offcanvas-header { padding:18px 20px 10px; }
.nv-app-picker h2 { margin:0; color:#fff!important; font-size:1.05rem; font-weight:750; }
.nv-app-picker .nv-drawer-close { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--ui-line-strong); border-radius:12px; background:#ffffff08; color:#e2e8f0; }
.nv-app-picker .offcanvas-body { padding:4px 16px calc(20px + env(safe-area-inset-bottom)); }
.nv-app-picker-link { display:flex; align-items:center; gap:12px; min-height:72px; margin:7px 0; padding:12px; border:1px solid var(--ui-line-strong); border-radius:16px; background:#ffffff06; color:#fff!important; text-decoration:none; }
.nv-app-picker-link.active { border-color:var(--ui-accent-line); background:var(--ui-accent-soft); }
.nv-app-picker-link > span:nth-child(2) { flex:1; min-width:0; }
.nv-app-picker-link strong,.nv-app-picker-link small { display:block; color:#fff!important; }
.nv-app-picker-link strong { font-size:.94rem; }
.nv-app-picker-link small { margin-top:2px; color:var(--ui-muted)!important; font-size:.75rem; }
.nv-app-picker-icon { display:grid; place-items:center; width:42px; height:42px; flex:none; border-radius:12px; background:var(--ui-accent-soft); color:var(--ui-accent); }
.nv-app-picker-arrow { color:var(--ui-muted)!important; font-size:1.4rem; }
:is(#pl-navbar-wrapper,#mobileMenu,.nv-tabbar) :is(a,button,summary):focus-visible { outline:2px solid var(--ui-accent); outline-offset:3px; }
@media (max-width:1399.98px) and (min-width:1200px) {
    #pl-navbar-wrapper .nv-links .nv-link { padding-inline:9px; font-size:.76rem; }
    #pl-navbar-wrapper .nv-logo .nv-brand-copy { max-width:110px; }
    #pl-navbar-wrapper .nv-search kbd { display:none; }
}
@media (max-width:767.98px) {
    #pl-navbar-wrapper { padding-top:calc(8px + env(safe-area-inset-top)); }
    #pl-navbar-wrapper .nv-bar { min-height:62px; padding:8px 9px; gap:8px; border-radius:18px; background:#0d1524; }
    #pl-navbar-wrapper .nv-logo { flex:1; min-width:0; gap:8px; }
    #pl-navbar-wrapper .nv-logo img { width:34px; height:34px; border-radius:10px; }
    #pl-navbar-wrapper .nv-brand-copy strong { max-width:100%; font-size:.79rem; }
    #pl-navbar-wrapper .nv-brand-copy small { max-width:100%; font-size:.6rem; }
    #pl-navbar-wrapper .nv-right { gap:5px; }
    #pl-navbar-wrapper .nv-icon-btn { width:38px; height:40px; border-radius:11px; }
    #pl-navbar-wrapper .nv-icon-btn .nv-svg { width:19px; height:19px; }
    #pl-navbar-wrapper .nv-balance { height:40px; max-width:105px; padding:0 8px; gap:5px; font-size:.73rem; border-radius:11px; }
    #pl-navbar-wrapper .nv-right > .nv-topup { display:none!important; }
    #pl-navbar-wrapper .nv-mobile-login { display:inline-flex; align-items:center; justify-content:center; gap:5px; height:40px; padding:0 9px; border:1px solid var(--ui-accent-line); border-radius:11px; background:var(--ui-accent-soft); color:var(--ui-accent)!important; text-decoration:none; font-size:.7rem; font-weight:650; white-space:nowrap; }
    #pl-navbar-wrapper .nv-mobile-login .nv-svg { width:17px; height:17px; }
    .pl-breadcrumb-wrap { padding-top:10px; }
    .nv-tabbar { position:fixed; z-index:1030; left:max(12px,env(safe-area-inset-left)); right:max(12px,env(safe-area-inset-right)); bottom:calc(12px + env(safe-area-inset-bottom)); display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); height:68px; padding:6px; box-sizing:border-box; border:1px solid #ffffff1b; border-radius:23px; background:#101a2b; box-shadow:0 10px 35px #02061166; }
    .nv-tab { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-width:0; padding:4px 2px; border:0; border-radius:17px; background:transparent; text-decoration:none; color:#8fa1be!important; font:inherit; font-size:.61rem; font-weight:550; line-height:1.25; }
    .nv-tab .nv-svg { width:21px; height:21px; stroke-width:1.8; }
    .nv-tab span { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:inherit!important; }
    .nv-tab.active,.nv-tab[aria-expanded=true] { background:var(--ui-accent-soft); color:var(--ui-accent)!important; font-weight:750; }
    .nv-tab:active { background:#ffffff0b; }
    .nv-tab-more { gap:3px; color:#cfdbfc!important; }
    .nv-tab-more .nv-more-icon { display:grid; place-items:center; width:36px; height:26px; border:1px solid #9aabff47; border-radius:10px; background:#27325d; }
    .nv-tab-more .nv-svg { width:20px; height:20px; fill:currentColor; stroke:none; }
    .nv-tab-more[aria-expanded=true] .nv-more-icon { border-color:var(--ui-accent-line); background:var(--ui-accent-soft); }

    #mobileMenu.nv-drawer {
        inset:auto 0 0;
        width:100%;
        max-width:none;
        max-height:88vh;
        max-height:88dvh;
        border-radius:24px 24px 0 0;
        border-bottom:0;
        background:radial-gradient(ellipse at 86% 0%,#2f2854,transparent 56%),#10182a;
        box-shadow:0 -16px 50px #02061180;
        transform:translateY(100%);
    }
    #mobileMenu.nv-drawer.show,
    #mobileMenu.nv-drawer.showing { transform:none; }
    #mobileMenu.nv-drawer.hiding { transform:translateY(100%); }
    #mobileMenu .offcanvas-header { position:relative; padding:21px 16px 12px; border-bottom:1px solid var(--ui-line); }
    #mobileMenu .offcanvas-header::before { content:""; position:absolute; top:7px; left:50%; transform:translateX(-50%); width:36px; height:3px; border-radius:999px; background:#9c94b4; }
    #mobileMenu .offcanvas-body { padding:12px 16px calc(16px + env(safe-area-inset-bottom)); }
    #mobileMenu .nv-drawer-heading h2 { font-size:1.1rem; }
    #mobileMenu .nv-account { margin-bottom:12px; padding:12px; }
    #mobileMenu .nv-account .who { margin-bottom:8px; }
    #mobileMenu .nv-section { margin:14px 2px 6px; }
    #mobileMenu .nv-drawer-main { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0 0 12px; }
    #mobileMenu .nv-drawer-main .nv-item { flex-direction:row; align-items:center; min-height:54px; padding:7px 9px; gap:7px; background:#ffffff08; }
    #mobileMenu .nv-drawer-main .nv-item > i:first-child { flex:none; border-radius:9px; background:#202943; }
    #mobileMenu .nv-drawer-feature > i:first-child { color:#e3d3ff!important; background:#504075; }
    #mobileMenu .nv-menu-group { background:#121b2d; border-color:#ffffff19; }
    #search_menu_popup .modal-content { border-radius:0; border:0; }
    #search_menu_popup .modal-body { max-height:none; }
}
@media(max-width:359.98px) {
    #pl-navbar-wrapper .nv-brand-copy small { display:none; }
    #pl-navbar-wrapper .nv-logo img { width:29px; height:29px; }
    #pl-navbar-wrapper .nv-brand-copy strong { font-size:.72rem; }
    #pl-navbar-wrapper .nv-balance { max-width:87px; font-size:.68rem; padding-inline:6px; }
    #pl-navbar-wrapper .nv-mobile-login { padding-inline:7px; font-size:.65rem; }
    .nv-tab { font-size:.58rem; }
}
@media(prefers-reduced-motion:reduce) { #pl-navbar-wrapper .nv-bar,.nv-link,.nv-item,.nv-menu-group summary .nv-svg { transition:none; } }

/* กระดิ่งแจ้งเตือนสมาชิก */
#pl-navbar-wrapper .nv-bell { position:relative; }
#pl-navbar-wrapper .nv-bell .nv-bell-count { position:absolute; top:-6px; right:-6px; min-width:19px; height:19px; padding:0 5px; border-radius:10px; background:#ef4444; color:#fff; font-size:.66rem; font-weight:800; line-height:19px; text-align:center; box-shadow:0 0 0 2px #0b1220; }

/* modal แจ้งเตือนสมาชิก */
#nvNotifyModal .modal-dialog { max-width:460px; }
#nvNotifyModal .modal-content { background:#0e1625; color:#e2e8f0; border:1px solid var(--ui-line-strong); border-radius:22px; overflow:hidden; }
#nvNotifyModal .nn-head { display:flex; align-items:center; justify-content:space-between; padding:16px 18px 10px; }
#nvNotifyModal .nn-head h2 { margin:0; font-size:1.05rem; font-weight:800; color:#fff !important; }
#nvNotifyModal .nn-head h2 i { color:var(--ui-accent); margin-right:6px; }
#nvNotifyModal .nn-tabs { display:flex; gap:6px; padding:0 18px 10px; border-bottom:1px solid var(--ui-line); }
#nvNotifyModal .nn-tabs button { padding:6px 12px; border:1px solid var(--ui-line-strong); border-radius:999px; background:transparent; color:#b6c2d5; font-size:.78rem; font-weight:700; }
#nvNotifyModal .nn-tabs button.active { background:var(--ui-accent-soft); border-color:var(--ui-accent-line); color:var(--ui-accent); }
#nvNotifyModal .modal-body { max-height:62dvh; padding:6px 12px 12px; }
#nvNotifyModal .nn-item { display:flex; gap:11px; padding:11px 8px; border-bottom:1px solid var(--ui-line); border-radius:10px; color:#fff; text-decoration:none; }
#nvNotifyModal a.nn-item:hover { background:#ffffff08; }
#nvNotifyModal .nn-ic { display:grid; place-items:center; flex:none; width:38px; height:38px; border-radius:12px; border:1px solid; font-size:.95rem; }
#nvNotifyModal .t-ok .nn-ic { color:#34d399; background:rgba(52,211,153,.12); border-color:rgba(52,211,153,.35); }
#nvNotifyModal .t-warn .nn-ic { color:#fbbf24; background:rgba(251,191,36,.12); border-color:rgba(251,191,36,.35); }
#nvNotifyModal .t-info .nn-ic { color:#60a5fa; background:rgba(96,165,250,.12); border-color:rgba(96,165,250,.35); }
#nvNotifyModal .t-accent .nn-ic { color:var(--ui-accent); background:var(--ui-accent-soft); border-color:var(--ui-accent-line); }
#nvNotifyModal .nn-tx { min-width:0; }
#nvNotifyModal .nn-tx b { display:block; font-size:.86rem; color:#fff; }
#nvNotifyModal .is-new .nn-tx b::after { content:'ใหม่'; margin-left:6px; padding:1px 6px; border-radius:6px; font-size:.62rem; background:var(--ui-accent-soft); color:var(--ui-accent); vertical-align:middle; }
#nvNotifyModal .nn-tx p { margin:2px 0 0; font-size:.77rem; line-height:1.5; color:var(--ui-muted) !important; word-break:break-word; }
#nvNotifyModal .nn-tx small, #nvNotifyModal .nn-login small { color:var(--ui-muted); font-size:.7rem; }
#nvNotifyModal .nn-login { padding:10px 8px; border-bottom:1px solid var(--ui-line); font-size:.78rem; color:var(--ui-muted); }
#nvNotifyModal .nn-login b { color:#fff; font-family:ui-monospace,monospace; }
#nvNotifyModal .nn-tag { margin-left:6px; padding:1px 6px; border-radius:6px; font-size:.64rem; background:rgba(251,146,60,.16); color:#fdba74; }
#nvNotifyModal .nn-note { margin:10px 8px 0; font-size:.74rem; color:var(--ui-muted); }
#nvNotifyModal .nn-empty { padding:34px 10px; text-align:center; color:var(--ui-muted); font-size:.85rem; }
#nvNotifyModal .nn-empty i { font-size:1.6rem; margin-bottom:8px; opacity:.6; }
@media (max-width:575.98px) { #nvNotifyModal .modal-content { border-radius:0; border:0; } #nvNotifyModal .modal-body { max-height:none; } }

/* modal อันดับเติมเงิน */
#pl-navbar-wrapper .nv-rank i { color:#fbbf24; }
#nvRankModal .modal-dialog { max-width:460px; }
#nvRankModal .modal-content { background:#0e1625; color:#e2e8f0; border:1px solid var(--ui-line-strong); border-radius:22px; overflow:hidden; }
#nvRankModal .nr-head { display:flex; align-items:center; justify-content:space-between; padding:16px 18px 10px; }
#nvRankModal .nr-head h2 { margin:0; font-size:1.05rem; font-weight:800; color:#fff !important; }
#nvRankModal .nr-head h2 i { color:#fbbf24; margin-right:6px; }
#nvRankModal .nr-tabs { display:flex; gap:6px; padding:0 18px 10px; border-bottom:1px solid var(--ui-line); }
#nvRankModal .nr-tabs button { padding:6px 12px; border:1px solid var(--ui-line-strong); border-radius:999px; background:transparent; color:#b6c2d5; font-size:.78rem; font-weight:700; }
#nvRankModal .nr-tabs button.active { background:var(--ui-accent-soft); border-color:var(--ui-accent-line); color:var(--ui-accent); }
#nvRankModal .modal-body { padding:10px 12px; max-height:min(62vh,560px); }
#nvRankModal .nr-label { margin:2px 6px 8px; font-size:.72rem; color:var(--ui-muted); }
#nvRankModal .nr-row { display:flex; align-items:center; gap:10px; padding:9px 8px; border-radius:12px; }
#nvRankModal .nr-row + .nr-row { margin-top:2px; }
#nvRankModal .nr-row.top { background:#ffffff06; }
#nvRankModal .nr-row.is-me { outline:2px solid var(--ui-accent-line); outline-offset:-2px; }
#nvRankModal .nr-no { width:26px; flex:none; text-align:center; font-weight:800; font-size:.85rem; color:var(--ui-muted); }
#nvRankModal .nr-av { display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:50%; font-weight:800; font-size:.85rem; color:#fff; background:#ffffff10; border:1px solid var(--ui-line-strong); }
#nvRankModal .nr-av { position:relative; overflow:hidden; }
#nvRankModal .nr-av img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
#nvRankModal .top .nr-av img { inset:2px; width:calc(100% - 4px); height:calc(100% - 4px); border-radius:50%; }
#nvRankModal .gold .nr-av { background:linear-gradient(135deg,#fde68a,#f59e0b); color:#1a1206; border:0; }
#nvRankModal .silver .nr-av { background:linear-gradient(135deg,#f1f5f9,#94a3b8); color:#1a1206; border:0; }
#nvRankModal .bronze .nr-av { background:linear-gradient(135deg,#fed7aa,#c2410c); color:#1a1206; border:0; }
#nvRankModal .gold .nr-no { color:#fbbf24; } #nvRankModal .silver .nr-no { color:#cbd5e1; } #nvRankModal .bronze .nr-no { color:#fb923c; }
#nvRankModal .nr-nm { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff; font-size:.88rem; font-weight:600; }
#nvRankModal .nr-nm em { margin-left:6px; padding:1px 6px; border-radius:6px; font-style:normal; font-size:.62rem; background:var(--ui-accent-soft); color:var(--ui-accent); vertical-align:middle; }
#nvRankModal .nr-amt { flex:none; font-size:.86rem; color:#fff; font-variant-numeric:tabular-nums; }
#nvRankModal .top .nr-amt { color:var(--ui-accent); }
#nvRankModal .nr-foot { display:flex; align-items:center; gap:12px; padding:12px 18px 16px; border-top:1px solid var(--ui-line); font-size:.82rem; color:var(--ui-muted); }
#nvRankModal .nr-foot:empty { display:none; }
#nvRankModal .nr-foot span { flex:1; min-width:0; }
#nvRankModal .nr-foot b { color:#fff; }
#nvRankModal .nr-foot small { display:block; font-size:.74rem; }
#nvRankModal .nr-foot .ui-btn { flex:none; padding:8px 16px; font-size:.82rem; }
#nvRankModal .nr-empty { padding:34px 10px; text-align:center; color:var(--ui-muted); font-size:.85rem; }
#nvRankModal .nr-empty i { font-size:1.6rem; margin-bottom:8px; opacity:.6; }
@media (max-width:575.98px) { #nvRankModal .modal-content { border-radius:0; border:0; } #nvRankModal .modal-body { max-height:none; } }
#nvRankModal .pl-podium { margin:0 2px 0; }
#nvRankModal .nr-rest { margin-top:0; padding-top:8px; border-top:1px solid rgba(251,191,36,.25); background:linear-gradient(180deg,rgba(255,255,255,.03),transparent 40px); border-radius:0 0 12px 12px; }

/* แท่นอันดับ 1-3 (ใช้ทั้ง modal อันดับเติมเงินและกล่องบนหน้าแรก) */
.pl-podium { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; gap:clamp(6px,1.6vw,14px); padding:18px 4px 0; position:relative; }
.pl-podium::before { content:''; position:absolute; left:50%; top:0; width:70%; height:70%; transform:translateX(-50%); background:radial-gradient(closest-side,rgba(251,191,36,.16),transparent); pointer-events:none; }
.pp-col { position:relative; display:flex; flex-direction:column; align-items:center; min-width:0; text-align:center; }
.pp-col.r1 { grid-column:2; grid-row:1; } .pp-col.r2 { grid-column:1; grid-row:1; } .pp-col.r3 { grid-column:3; grid-row:1; }
.pp-av { --pp-size:clamp(54px,15vw,66px); --pp-ring:linear-gradient(135deg,#f8fafc,#94a3b8,#e2e8f0,#64748b); --pp-glow:rgba(203,213,225,.35);
    position:relative; width:var(--pp-size); height:var(--pp-size); border-radius:50%; padding:3px; background:var(--pp-ring); box-shadow:0 0 0 3px rgba(255,255,255,.04),0 0 22px var(--pp-glow); }
.pp-av > span { position:relative; display:grid; place-items:center; width:100%; height:100%; border-radius:50%; overflow:hidden; background:#162033; color:#fff; font-weight:800; font-size:calc(var(--pp-size) * .36); line-height:1; }
.pp-av img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.r1 .pp-av { --pp-size:clamp(70px,20vw,86px); --pp-ring:conic-gradient(from 0deg,#fde68a,#f59e0b,#fff7d6,#d97706,#fde68a); --pp-glow:rgba(251,191,36,.55); animation:ppGlow 2.6s ease-in-out infinite; }
.r3 .pp-av { --pp-ring:linear-gradient(135deg,#fed7aa,#c2410c,#fdba74,#9a3412); --pp-glow:rgba(234,88,12,.4); }
.pp-crown { position:absolute; top:-22px; left:50%; transform:translateX(-50%) rotate(-8deg); font-size:1.35rem; color:#fbbf24; filter:drop-shadow(0 2px 6px rgba(251,191,36,.6)); animation:ppFloat 2.6s ease-in-out infinite; z-index:2; }
.pp-badge { position:absolute; bottom:-6px; left:50%; transform:translateX(-50%); min-width:22px; height:22px; padding:0 6px; border-radius:11px; display:grid; place-items:center; font-size:.72rem; font-weight:900; color:#1a1206; background:var(--pp-ring); border:2px solid #0e1625; z-index:2; }
.pp-nm { display:block; max-width:100%; margin-top:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff; font-size:.84rem; font-weight:700; }
.pp-nm em { display:block; font-style:normal; font-size:.6rem; color:var(--ui-accent); }
.pp-amt { display:block; margin-top:1px; font-size:.82rem; font-weight:800; color:#cbd5e1; font-variant-numeric:tabular-nums; }
.r1 .pp-amt { color:#fbbf24; font-size:.92rem; } .r3 .pp-amt { color:#fdba74; }
.pp-step { position:relative; overflow:hidden; width:100%; margin-top:10px; border-radius:14px 14px 4px 4px; display:grid; place-items:center; font-size:clamp(1.5rem,6vw,2rem); font-weight:900; color:rgba(255,255,255,.9); text-shadow:0 2px 10px rgba(0,0,0,.35);
    height:64px; background:linear-gradient(180deg,rgba(203,213,225,.32),rgba(148,163,184,.08)); border:1px solid rgba(203,213,225,.3); border-bottom:0; }
.r1 .pp-step { height:92px; background:linear-gradient(180deg,rgba(251,191,36,.45),rgba(245,158,11,.08)); border-color:rgba(251,191,36,.5); color:#fff7d6; }
.r3 .pp-step { height:48px; background:linear-gradient(180deg,rgba(234,88,12,.38),rgba(194,65,12,.06)); border-color:rgba(234,88,12,.4); }
.pp-step::after { content:''; position:absolute; top:0; bottom:0; left:-60%; width:40%; background:linear-gradient(100deg,transparent,rgba(255,255,255,.28),transparent); transform:skewX(-18deg); animation:ppShine 3.8s ease-in-out infinite; }
.r2 .pp-step::after { animation-delay:.5s; } .r3 .pp-step::after { animation-delay:1s; }
.pp-col.is-me .pp-nm { color:var(--ui-accent); }
.pp-col.is-empty .pp-av { opacity:.25; } .pp-col.is-empty .pp-nm, .pp-col.is-empty .pp-amt { color:var(--ui-dim,rgba(255,255,255,.4)); }
@keyframes ppShine { 0%,55% { left:-60%; } 100% { left:130%; } }
@keyframes ppGlow { 0%,100% { box-shadow:0 0 0 3px rgba(255,255,255,.04),0 0 18px var(--pp-glow); } 50% { box-shadow:0 0 0 3px rgba(255,255,255,.06),0 0 34px var(--pp-glow); } }
@keyframes ppFloat { 0%,100% { transform:translateX(-50%) translateY(0) rotate(-8deg); } 50% { transform:translateX(-50%) translateY(-4px) rotate(-8deg); } }
@media (prefers-reduced-motion:reduce) { .r1 .pp-av, .pp-crown, .pp-step::after { animation:none; } }
@media(max-width:399.98px) { #pl-navbar-wrapper .nv-rank { display:none; } }

/* ปุ่มติดตามสินค้า + แท็บสินค้าที่ติดตาม */
.pl-watch-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:38px; padding:7px 12px; border-radius:12px; border:1px solid rgba(251,191,36,.45); background:rgba(251,191,36,.1); color:#fcd34d; font-size:.82rem; font-weight:700; cursor:pointer; transition:background .15s, border-color .15s; }
.pl-watch-btn:hover { background:rgba(251,191,36,.18); border-color:rgba(251,191,36,.7); color:#fde68a; }
.pl-watch-btn.is-watching { border-color:rgba(52,211,153,.5); background:rgba(52,211,153,.12); color:#6ee7b7; }
.pl-watch-btn.ui-btn-block, .pl-watch-btn.w-100 { width:100%; }
.pl-watch-btn.pl-watch-icon { width:38px; min-width:38px; padding:0; flex:none; }
.pl-watch-toast { position:fixed; top:16px; right:16px; z-index:20000; padding:10px 14px; border-radius:12px; background:#0e1625; border:1px solid var(--ui-line-strong); color:#fff; font-size:.85rem; }
#nvNotifyModal .nn-watch { align-items:center; }
#nvNotifyModal .nn-thumb { width:38px; height:38px; flex:none; border-radius:10px; object-fit:cover; background:#ffffff10; }
#nvNotifyModal .nn-watch .nn-tx { flex:1; }
#nvNotifyModal .nn-watch a { color:#fff; text-decoration:none; }
#nvNotifyModal .nn-unwatch { flex:none; padding:5px 10px; border-radius:9px; border:1px solid var(--ui-line-strong); background:transparent; color:#fca5a5; font-size:.72rem; font-weight:700; }
#nvNotifyModal .nn-unwatch:disabled { opacity:.5; }
#nvNotifyModal .nn-tabs { flex-wrap:wrap; }

/* แถบเมนูจอ ≥1200px: ปุ่มค้นหาเหลือแต่ไอคอน และจอ 1200-1399px ซ่อนไอคอนหน้าชื่อเมนู กันเมนูล้นทับช่องขวา */
@media (min-width:1200px) {
    #pl-navbar-wrapper .nv-search { width:42px; padding:0; gap:0; justify-content:center; }
    #pl-navbar-wrapper .nv-search .nv-search-label,#pl-navbar-wrapper .nv-search kbd { display:none; }
}
@media (min-width:1200px) and (max-width:1399.98px) {
    #pl-navbar-wrapper .nv-bar { gap:10px; }
    #pl-navbar-wrapper .nv-links .nv-link > i { display:none; }
    #pl-navbar-wrapper .nv-links .nv-link { padding-inline:8px; }
    #pl-navbar-wrapper .nv-right { gap:6px; }
}
/* มือถือ: ปุ่มค้นหาบนแถบมีในเมนูล่างอยู่แล้ว ซ่อนไว้ */
@media (max-width:575.98px) {
    #pl-navbar-wrapper .nv-right > .nv-icon-btn[data-bs-target="#search_menu_popup"] { display:none; }
}
@media (max-width:379.98px) {
    #pl-navbar-wrapper .nv-brand-copy { display:none; }
    #pl-navbar-wrapper .nv-balance { max-width:92px; }
}
