/* v696: đồng bộ màu và hoa văn JX (như giao diện máy tính v689) sang điện thoại — chỉ đổi hình ảnh, bố cục giữ nguyên.
 * Phần nút / ô trong cửa sổ và hộp thoại dùng chung cho cả máy tính. */

/* ---------- dùng chung: nút, ô, cửa sổ ---------- */
#panel .btn,#modal .btn,#panel button.btn,#modal button.btn{background:linear-gradient(#2b3a33,#111a16)!important;border:1px solid #5d6f5c!important;border-radius:2px!important;color:#ffe9a8!important;box-shadow:inset 0 1px 0 #ffffff14,0 1px 2px #000a!important;text-shadow:0 1px 0 #000}
#panel .btn:hover,#modal .btn:hover{border-color:#9fe3c0!important;color:#fff3c4!important}
#panel .btn.danger,#modal .btn.danger,#panel .btn.red,#modal .btn.red{background:linear-gradient(#4a2420,#1e0d0b)!important;border-color:#7a4a3c!important}
#panel select,#modal select,#panel input[type=text],#panel input[type=number],#modal input[type=text],#modal input[type=number]{background:#050806!important;border:1px solid #3b4b39!important;border-radius:2px!important;color:#e8dcc8!important}
#panel .invgrid .it,#panel .eqslot,#panel .eq,#modal .eqslot{border-color:#3b4b39!important;border-radius:2px!important}

/* ---------- điện thoại ---------- */
body:not(.jxpc) #top{background:url(../ui/jx/band.png) 0 100%/auto 9px repeat-x,linear-gradient(#13201b,#070d0a)!important;border-bottom:0!important;padding-bottom:9px!important;box-shadow:0 2px 6px #000a!important}
body:not(.jxpc) #top .lvbox,body:not(.jxpc) #top .hero-level{background:linear-gradient(#2b3a33,#111a16)!important;border:1px solid #5d6f5c!important;border-radius:2px!important;color:#c9c19a!important}
body:not(.jxpc) #top .hero-level b,body:not(.jxpc) #top #heroName{color:#ffd94e!important}
body:not(.jxpc) #top .hero-mark img,body:not(.jxpc) #top .avatar,body:not(.jxpc) #top .portrait{border-color:#5d6f5c!important;border-radius:2px!important}
body:not(.jxpc) #top .top-power{background:#0008!important;border:1px solid #5d6f5c!important;border-radius:2px!important;color:#c9c19a!important}
body:not(.jxpc) #top .top-power b{color:#9fe36a!important}
body:not(.jxpc) #hud.status-frame{background:#050806cc!important;border:1px solid #3b4b39!important;border-radius:2px!important}
body:not(.jxpc) #hud .bar{border-radius:0!important;background:#141414!important;box-shadow:0 0 0 1px #4b5a49!important;border:1px solid #000!important}
body:not(.jxpc) #hud .bar i{border-radius:0!important}
body:not(.jxpc) #hud .bar.hp i{background:url(../ui/jx/b_life.png) 0 0/100% 100% no-repeat!important}
body:not(.jxpc) #hud .bar.mp i{background:url(../ui/jx/b_mana.png) 0 0/100% 100% no-repeat!important}
body:not(.jxpc) #hud .bar.xp i{background:linear-gradient(#ffd836,#c8a028 45%,#7c6319)!important}
body:not(.jxpc) #hud .bar-label{background:#0d1410!important;color:#c9c19a!important;border-color:#3b4b39!important;border-radius:0!important}
body:not(.jxpc) #giftBtn,body:not(.jxpc) #compactBtn,body:not(.jxpc) #bridgeAuthPill,body:not(.jxpc) #autoSettingsBtn,body:not(.jxpc) #ctrlBtn{background:linear-gradient(#2b3a33,#111a16)!important;border:1px solid #5d6f5c!important;color:#ffe9a8!important;box-shadow:inset 0 1px 0 #ffffff14,0 1px 3px #000a!important}

/* thanh chức năng dưới */
body:not(.jxpc) #tabs{background:url(../ui/jx/band_v.png) 0 0/auto 9px repeat-x,linear-gradient(#0f1a16,#050806)!important;border-top:0!important;padding-top:9px!important;box-shadow:0 -2px 6px #000a!important}
body:not(.jxpc) #tabs button{color:#c9c19a!important;background:none!important;border:1px solid transparent!important;border-radius:2px!important}
body:not(.jxpc) #tabs button.on{color:#ffd94e!important;background:linear-gradient(#2b3a33,#111a16)!important;border-color:#9a8a55!important;box-shadow:inset 0 0 6px #ffd94e33!important}

/* nút tròn: viền bạc xanh như khung JX */
body:not(.jxpc) #pad .pbtn{border:2px solid #7d9a8c!important;box-shadow:0 0 0 1px #0a120e,inset 0 0 0 1px #0a120e,0 2px 4px #000c!important;background-color:#08100c!important}
body:not(.jxpc) #pad .pbtn.cur,body:not(.jxpc) #pad .pbtn.on{border-color:#ffd94e!important}

/* khung nhiệm vụ, chat */
body:not(.jxpc) #q627trk{background:linear-gradient(90deg,#000b,#0007)!important;border:1px solid #3b4b39!important;border-radius:2px!important}
body:not(.jxpc) #worldChat .wc-panel{background:linear-gradient(#0d110ff0,#0d110ff0),url(../ui/jx/flor.png)!important;border:2px solid transparent!important;border-image:url(../ui/jx/frame.png) 12 13 12 13 stretch!important;border-radius:0!important}
body:not(.jxpc) #worldChat .wc-toggle{border:2px solid #7d9a8c!important;background:#08100c!important}

/* cửa sổ (khung trượt dưới) và hộp thoại */
body:not(.jxpc) #panel{background:linear-gradient(#0d110fe6,#0d110fe6),url(../ui/jx/flor.png) #1b1d19!important;border-top:0!important}
body:not(.jxpc) #panel::before{content:"";position:sticky;top:0;display:block;height:9px;margin-bottom:-9px;background:url(../ui/jx/band_v.png) 0 0/auto 9px repeat-x;z-index:5;pointer-events:none}
body:not(.jxpc) #panel .mainui-panel-header{background:url(../ui/jx/title.png) center 3px/180px 25px no-repeat,linear-gradient(#070d0a,#13201b)!important;color:#ffd94e!important;border:0!important}
body:not(.jxpc) #modal .mbox{background:linear-gradient(#0d110fe6,#0d110fe6),url(../ui/jx/flor.png) #1b1d19!important;border:3px solid transparent!important;border-image:url(../ui/jx/frame.png) 12 13 12 13 stretch!important;border-radius:0!important}
/* v699: số cấp nổi bật — nền đỏ sẫm viền vàng, số vàng sáng viền đen (máy tính và điện thoại) */
#top .hero-level #topLevel{display:inline-block;min-width:22px;padding:0 4px!important;border:1px solid #d8b45a!important;border-radius:2px!important;background:linear-gradient(#7a2414,#3a0c06)!important;color:#fff27a!important;font-weight:700!important;text-align:center;text-shadow:0 0 2px #000,0 0 2px #000,0 1px 0 #000!important;box-shadow:0 0 4px #ffcf5a55,inset 0 1px 0 #ffffff22!important;line-height:14px!important}
body.jxpc #top .hero-level #topLevel{font-size:12px!important}
/* v715: phone inventory icons at their natural size (never stretched), like the PC layout, so they stay sharp */
body:not(.jxpc) .invgrid .it img,body:not(.jxpc) #panel .it>img{position:absolute!important;inset:0 0 10px 0!important;margin:auto!important;width:auto!important;height:auto!important;max-width:calc(100% - 8px)!important;max-height:calc(100% - 16px)!important;object-fit:contain;image-rendering:auto}
