:root{--pri:#ff7d00;--pri-dk:#e66a00;--bg:#121212;--card:#1e1410;--muted:#9e9e9e;--green:#4caf50;--red:#f44336;--violet:#9c27b0;--blue:#40adff;--brown:#2a1a0e;--gold:#c4943a}
*{box-sizing:border-box;margin:0;padding:0}
body{background:#000;color:#fff;font-family:'Segoe UI',Roboto,sans-serif;display:flex;justify-content:center}
.mw{width:100%;max-width:420px;background:var(--bg);min-height:100vh;position:relative;overflow-x:hidden;padding-bottom:50px}
.header-wrapper{display:none!important}
/* Nav */
.tnav{display:flex;align-items:center;gap:10px;padding:12px 15px;background:#1a1008;border-bottom:1px solid #33241d}
.tnav .back{color:#fff;font-size:22px;text-decoration:none}
.tnav .logo{height:30px}
.tnav .depbtn{margin-left:auto;background:rgba(255,125,0,.2);color:var(--pri);border:1px solid var(--pri);padding:6px 16px;border-radius:20px;font-weight:600;font-size:13px;cursor:pointer}
/* Balance Hero */
.hero{background:linear-gradient(135deg,#3d2010,#2a1508);padding:22px 20px 18px;text-align:center;position:relative}
.hero::after{content:'';position:absolute;bottom:0;left:0;right:0;height:6px;background:linear-gradient(90deg,#8b6914,#c4943a,#8b6914);border-radius:0 0 0 0}
.hero .bal{font-size:28px;font-weight:800;color:#fff;display:flex;align-items:center;justify-content:center;gap:8px}
.hero .bal .ref{cursor:pointer;font-size:16px;color:var(--pri)}
.hero .blab{color:rgba(255,255,255,.7);font-size:13px;margin-top:4px;display:flex;align-items:center;justify-content:center;gap:5px}
.hero .acts{display:flex;gap:12px;margin-top:14px}
.hero .acts button{flex:1;padding:10px;border-radius:25px;border:none;font-weight:700;font-size:14px;cursor:pointer}
.btn-wd{background:#ff5252;color:#fff}
.btn-rc{background:var(--green);color:#fff}
/* Category */
.cats{display:flex;gap:4px;background:var(--brown);margin:12px;border-radius:16px;padding:4px}
.cat{flex:1;text-align:center;padding:10px 4px;cursor:pointer;border-radius:12px;transition:.3s}
.cat img{width:28px;height:28px;filter:grayscale(1);opacity:.5}
.cat .ct{font-size:11px;color:var(--muted);font-weight:600;margin-top:3px}
.cat.active{background:linear-gradient(135deg,var(--pri),var(--pri-dk))}
.cat.active img{filter:none;opacity:1}
.cat.active .ct{color:#fff}
/* Timer - Vertical */
.timer-v{background:url('https://pakclub.club/assets/deepOrange/wingo_bg-ec81392b.webp') center/cover;margin:0 12px;border-radius:14px;padding:16px;position:relative}
.timer-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.htp-btn{background:transparent;border:1px solid rgba(255,255,255,.7);color:#fff;border-radius:16px;padding:3px 12px;font-size:11px;cursor:pointer}
.timer-info{font-size:14px;font-weight:700}
.timer-mid{display:flex;align-items:center;justify-content:space-between}
.last-balls{display:flex;gap:4px}
.ball-sm{width:26px;height:26px}
.cd-wrap{display:flex;flex-direction:column;align-items:flex-end}
.cd-label{font-size:11px;font-weight:600;color:rgba(255,255,255,.8);margin-bottom:4px}
.cd-digits{display:flex;gap:4px;align-items:center}
.dg{background:#fff;color:var(--pri-dk);padding:6px 10px;border-radius:6px;font-weight:900;font-size:28px;min-width:36px;text-align:center}
.dg-sep{font-weight:900;font-size:24px;color:#fff}
.period-id{font-size:15px;font-weight:700;text-align:center;margin-top:10px;letter-spacing:1px}
/* Bet Section */
.betsec{background:var(--card);margin:12px;border-radius:14px;padding:16px;position:relative}
#countDownOverlay{position:absolute;inset:0;background:rgba(0,0,0,.85);z-index:100;display:none;align-items:center;justify-content:center;backdrop-filter:blur(5px);border-radius:14px;flex-direction:column;gap:8px}
.big-cd{display:flex;gap:12px}
.big-dg{background:#3c2a1e;color:var(--pri);font-size:64px;font-weight:900;padding:8px 28px;border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.5)}
.color-btns{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-bottom:16px}
.cbtn{padding:11px;border:none;border-radius:8px;font-weight:700;color:#fff;cursor:pointer;font-size:14px;transition:transform .1s}
.cbtn:active{transform:scale(.95)}
.cb-g{background:var(--green)}
.cb-v{background:var(--violet)}
.cb-r{background:var(--red)}
.numgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px 8px;margin-bottom:14px}
.nball{width:100%;cursor:pointer;transition:transform .15s;filter:drop-shadow(0 3px 3px rgba(0,0,0,.3))}
.nball:active{transform:scale(.9)}
.nball.pulse{animation:ballpulse .3s ease}
@keyframes ballpulse{0%,100%{transform:scale(1)}50%{transform:scale(1.25)}}
.rand-row{display:flex;align-items:center;gap:6px;margin-bottom:14px}
.rand-btn{background:transparent;border:2px solid var(--pri);color:var(--pri);padding:6px 14px;border-radius:6px;font-weight:700;font-size:13px;cursor:pointer}
.rand-btn:active{background:var(--pri);color:#fff}
.sz-btns{display:flex;border-radius:10px;overflow:hidden}
.sbtn{flex:1;padding:14px;border:none;font-weight:800;font-size:15px;cursor:pointer}
.sb-b{background:var(--pri);color:#fff}
.sb-s{background:var(--blue);color:#fff}
/* Tabs */
.tabs-h{display:flex;margin:12px;border-radius:10px;background:var(--brown)}
.ttrig{flex:1;padding:11px;text-align:center;color:var(--muted);font-weight:600;cursor:pointer;border-radius:10px;font-size:13px}
.ttrig.active{background:var(--pri);color:#fff}
/* History Table */
.htbl{width:100%;border-collapse:collapse;font-size:13px}
.htbl th{background:var(--pri);color:#fff;padding:10px;font-weight:600}
.htbl td{padding:10px;text-align:center;border-bottom:1px solid #2a2a2a;color:#fff;font-weight:500}
.cdot{display:inline-block;width:10px;height:10px;border-radius:50%;margin:0 2px}
.cdot-g{background:var(--green)}.cdot-r{background:var(--red)}.cdot-v{background:var(--violet)}
/* My History */
.mhlist{padding:0 12px;display:flex;flex-direction:column;gap:8px}
.mhi{background:var(--card);padding:12px;border-radius:10px;display:flex;justify-content:space-between;align-items:center}
.mhi-ic{width:40px;height:40px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;color:#fff}
.mhi-det{flex:1;padding-left:12px}
.mhi-per{font-size:13px;font-weight:700}
.mhi-tm{font-size:11px;color:var(--muted)}
.mhi-st{text-align:right}
.sbadge{display:inline-block;padding:2px 8px;border-radius:12px;border:1px solid;font-size:11px;font-weight:600;margin-bottom:3px}
.sw{color:var(--green);border-color:var(--green)}.sl{color:var(--red);border-color:var(--red)}.sp{color:var(--pri);border-color:var(--pri)}
.mhi-amt{font-size:13px;font-weight:800}
/* Bottom Sheet */
.sov{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:1999;display:none}
.bsheet{position:fixed;bottom:-100%;left:50%;transform:translateX(-50%);width:100%;max-width:420px;background:#1e1410;z-index:2000;border-radius:20px 20px 0 0;transition:bottom .3s;padding-bottom:env(safe-area-inset-bottom)}
.bsheet.open{bottom:0}
.sh-head{padding:14px;text-align:center;font-weight:700;font-size:16px;color:#fff;border-radius:20px 20px 0 0;position:relative}
.sh-head::after{content:'';position:absolute;bottom:-12px;left:50%;transform:translateX(-50%);border-width:12px 16px 0;border-style:solid;border-color:inherit;border-bottom-color:transparent!important;border-left-color:transparent!important;border-right-color:transparent!important}
.sh-body{padding:28px 18px 10px}
.sh-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.sh-row span{color:#aaa;font-size:13px}
.abtn,.qbtn{background:#333;border:none;color:#fff;padding:7px 12px;border-radius:5px;cursor:pointer;font-weight:600;font-size:13px}
.abtn.active{background:var(--green)}
.qinp{width:55px;text-align:center;background:#222;border:1px solid #444;color:#fff;padding:7px;font-weight:bold;font-size:14px;border-radius:4px}
.mult-row{display:flex;gap:5px;justify-content:flex-end;margin-bottom:14px;flex-wrap:wrap}
.mbtn{background:#333;border:none;color:#fff;padding:5px 10px;border-radius:4px;cursor:pointer;font-weight:600;font-size:12px}
.mbtn.active{background:var(--pri)}
.agree-row{display:flex;align-items:center;gap:8px;margin-bottom:16px}
.agree-row input{width:18px;height:18px;accent-color:var(--green)}
.agree-row label{font-size:12px;color:#aaa}
.agree-row label span{color:var(--red)}
.sh-foot{display:flex}
.sh-foot button{flex:1;padding:14px;border:none;font-weight:700;font-size:15px;cursor:pointer}
.fc{background:#333;color:#fff}
.fk{color:#fff}
/* Result Modal */
.rmod{position:fixed;inset:0;background:rgba(0,0,0,.8);z-index:3000;display:none;align-items:center;justify-content:center}
.rcont{position:relative;width:300px;height:420px}
.rbg{width:100%;height:100%;object-fit:contain}
.rtxt{position:absolute;top:38%;left:0;width:100%;text-align:center}
.rtitle{font-size:26px;font-weight:900;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.5);margin-bottom:8px}
.rbadges{margin-bottom:25px}
.rb{display:inline-block;padding:2px 10px;border-radius:5px;font-size:12px;font-weight:bold;margin:0 2px;color:#fff}
.rpamt{font-size:28px;font-weight:900;color:var(--pri);margin:12px 0 4px}
.rpper{font-size:11px;color:#888;line-height:1.2}
.rclose{position:absolute;bottom:-45px;left:50%;transform:translateX(-50%);background:transparent;border:2px solid #fff;color:#fff;width:36px;height:36px;border-radius:50%;font-size:18px;cursor:pointer}
