/*
Theme Name: Baji Mobile
Theme URI: https://baji999.casa/
Author: Baji999 SEO Team
Description: Mobile-only interface for the Baji999 brand – online casino & betting portal for Bangladesh. SEO brand optimised, lightweight, renders as a phone frame on desktop.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: bjx
*/

/* ============ TOKENS ============ */
:root{
  --bg:#0a1410; --bg2:#0e1c17; --bg3:#12241d;
  --card:#11201a; --card2:#16291f; --line:rgba(255,255,255,.08);
  --gold:#ecc96e; --gold-2:#b8862f;
  --gold-grad:linear-gradient(135deg,#26c581 0%,#17a56b 45%,#0e7a4e 100%);
  --green:#17a56b; --green-d:#0e7a4e;
  --red:#e5474b; --blue:#2f7fd6;
  --text:#eef4fb; --muted:#93a6bd;
  --shadow:0 8px 26px rgba(0,0,0,.45);
  --radius:14px; --wrap:480px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;font-family:"Hind Siliguri","Noto Sans Bengali",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:var(--text);line-height:1.55;font-size:15px;
  background:#05100b radial-gradient(1200px 600px at 50% -10%,#0f2419 0%,#05100b 60%);
  background-attachment:fixed;
}
img{max-width:100%;height:auto;display:block;border:0}
a{color:inherit;text-decoration:none}
button{font-family:inherit}
h1,h2,h3,.bjx-sec-h .bjx-sec-t,.bjx-feat-t,.bjx-brand .txt,.bjx-cta h3,.bjx-post h1{font-family:"Poppins","Hind Siliguri",sans-serif;letter-spacing:.2px}

/* ============ MOBILE FRAME (desktop centering) ============ */
.bjx-app{
  max-width:var(--wrap);margin:0 auto;min-height:100vh;position:relative;
  background:linear-gradient(180deg,#0a1712 0%,#060f0a 100%);
  box-shadow:0 0 60px rgba(0,0,0,.6);overflow-x:clip;padding-bottom:74px;
}
@media(min-width:520px){
  body{padding:18px 0}
  .bjx-app{border-radius:22px;min-height:calc(100vh - 36px);border:1px solid rgba(255,255,255,.06)}
  .bjx-head{top:18px;border-radius:22px 22px 0 0}
}

/* ============ HEADER ============ */
.bjx-head{
  position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:10px;
  padding:9px 12px;background:rgba(9,20,15,.94);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.bjx-burger{width:38px;height:38px;display:flex;align-items:center;justify-content:center;background:transparent;border:0;color:var(--gold);cursor:pointer}
.bjx-brand{display:flex;align-items:center;gap:8px;margin-right:auto}
.bjx-brand img{height:30px;width:auto}
.bjx-brand .txt{font-weight:800;letter-spacing:.5px;font-size:16px;background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.bjx-hbtn{padding:7px 12px;border-radius:999px;font-size:13px;font-weight:700;border:1px solid var(--gold-2)}
.bjx-hbtn.ghost{color:var(--gold);background:transparent}
.bjx-hbtn.solid{color:#eafff5;background:var(--gold-grad);border-color:transparent;box-shadow:0 3px 10px rgba(23,165,107,.4)}

/* ============ MARQUEE ============ */
.bjx-marq{display:flex;align-items:center;gap:8px;padding:7px 12px;background:linear-gradient(90deg,#101f30,#0b1520);border-bottom:1px solid var(--line);font-size:12.5px;color:var(--gold)}
.bjx-marq .ico{flex:0 0 auto}
.bjx-marq .track{overflow:hidden;white-space:nowrap;position:relative;flex:1}
.bjx-marq .track span{display:inline-block;padding-left:100%;animation:bjx-scroll 22s linear infinite}
@keyframes bjx-scroll{to{transform:translateX(-100%)}}

/* ============ SLIDER ============ */
.bjx-slider{position:relative;overflow:hidden}
.bjx-slides{display:flex;transition:transform .5s ease}
.bjx-slides a{flex:0 0 100%}
.bjx-slides img{width:100%;aspect-ratio:8/3;object-fit:cover}
.bjx-dots{position:absolute;bottom:8px;left:0;right:0;display:flex;gap:6px;justify-content:center}
.bjx-dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.4);transition:.3s}
.bjx-dots i.on{width:18px;border-radius:4px;background:var(--gold)}

/* ============ QUICK ACTIONS ============ */
.bjx-quick{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:12px}
.bjx-quick a{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 4px;border-radius:12px;background:var(--card);border:1px solid var(--line);font-size:11.5px;font-weight:600;color:var(--muted)}
.bjx-quick a svg{color:var(--gold)}
.bjx-quick a.hot{background:linear-gradient(160deg,#2a1414,#141d2c);border-color:rgba(229,71,75,.4)}
.bjx-quick a.hot svg{color:var(--red)}

/* ============ SECTION ============ */
.bjx-sec{padding:6px 12px 4px}
.bjx-sec-h{display:flex;align-items:center;justify-content:space-between;margin:14px 0 10px}
.bjx-sec-h h2,.bjx-sec-h h3,.bjx-sec-h .bjx-sec-t{margin:0;font-size:16px;font-weight:800;display:flex;align-items:center;gap:8px}
.bjx-sec-h h2::before,.bjx-sec-h h3::before,.bjx-sec-h .bjx-sec-t::before{content:"";width:4px;height:16px;border-radius:2px;background:var(--gold-grad)}
.bjx-sec-h a{font-size:12px;color:var(--muted)}

/* ============ PRODUCT GRID ============ */
.bjx-cats{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;padding:2px 12px 10px}
.bjx-cat{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;padding:14px 4px 11px;border-radius:14px;background:linear-gradient(165deg,var(--card2),var(--card));border:1px solid var(--line);overflow:hidden}
.bjx-cat::after{content:"";position:absolute;top:-30px;right:-30px;width:60px;height:60px;border-radius:50%;background:radial-gradient(circle,rgba(236,201,110,.18),transparent 70%)}
.bjx-cat .ic{width:36px;height:36px;display:flex;align-items:center;justify-content:center;color:var(--gold)}
.bjx-cat .nm{font-size:11.5px;font-weight:700;text-align:center;line-height:1.25}
.bjx-cat .tag{position:absolute;top:5px;left:5px;font-size:8.5px;font-weight:800;padding:2px 5px;border-radius:5px;background:var(--red);color:#fff;letter-spacing:.4px}

/* ============ PROMO SCROLLER ============ */
.bjx-promos{display:flex;gap:11px;overflow-x:auto;padding:2px 12px 12px;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}
.bjx-promos::-webkit-scrollbar{display:none}
.bjx-promo{flex:0 0 84%;scroll-snap-align:start;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:var(--card);box-shadow:var(--shadow)}
.bjx-promo img{width:100%;aspect-ratio:810/465;object-fit:cover}
.bjx-promo .cap{display:flex;align-items:center;justify-content:space-between;padding:9px 11px;font-size:12.5px;font-weight:600}
.bjx-promo .cap b{color:var(--gold)}
.bjx-promo .cap .go{font-size:11px;color:#eafff5;background:var(--gold-grad);padding:5px 11px;border-radius:999px;font-weight:800}

/* ============ FEATURES ============ */
.bjx-feats{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:2px 12px 12px}
.bjx-feat{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:14px;background:var(--card);border:1px solid var(--line)}
.bjx-feat .ic{flex:0 0 34px;width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:rgba(236,201,110,.12);color:var(--gold)}
.bjx-feat h4,.bjx-feat .bjx-feat-t{margin:0 0 3px;font-size:13px;font-weight:800}
.bjx-feat p{margin:0;font-size:11.5px;color:var(--muted);line-height:1.45}

/* ============ PROVIDER CHIPS ============ */
.bjx-chips{display:flex;flex-wrap:wrap;gap:8px;padding:2px 12px 14px}
.bjx-chips span{font-size:12px;font-weight:700;padding:7px 12px;border-radius:999px;background:var(--card2);border:1px solid var(--line);color:var(--muted)}

/* ============ SEO CONTENT ============ */
.bjx-content{padding:8px 14px 16px;font-size:14px;color:#cdd9e6}
.bjx-content h1{font-size:21px;line-height:1.3;margin:6px 0 12px;font-weight:800;color:#fff}
.bjx-content h1 .hl{background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.bjx-content h2{font-size:17px;margin:20px 0 9px;font-weight:800;color:#fff}
.bjx-content h3{font-size:15px;margin:16px 0 7px;font-weight:700;color:var(--gold)}
.bjx-content p{margin:0 0 11px}
.bjx-content ul{margin:0 0 12px;padding-left:18px}
.bjx-content li{margin-bottom:6px}
.bjx-content a{color:var(--gold);text-decoration:underline;text-underline-offset:2px}
.bjx-content strong{color:#fff}
.bjx-table{width:100%;border-collapse:collapse;margin:6px 0 14px;font-size:12.5px;border-radius:10px;overflow:hidden}
.bjx-table th{background:var(--bg3);color:var(--gold);text-align:left;padding:9px 10px;font-weight:700}
.bjx-table td{padding:9px 10px;border-top:1px solid var(--line);color:#cdd9e6}

/* ============ FAQ ============ */
.bjx-faq{padding:0 12px 8px}
.bjx-faq details{background:var(--card);border:1px solid var(--line);border-radius:12px;margin-bottom:9px;overflow:hidden}
.bjx-faq summary{list-style:none;cursor:pointer;padding:13px 14px;font-size:13.5px;font-weight:700;display:flex;justify-content:space-between;align-items:center;gap:10px}
.bjx-faq summary::-webkit-details-marker{display:none}
.bjx-faq summary::after{content:"+";color:var(--gold);font-size:20px;font-weight:400;flex:0 0 auto}
.bjx-faq details[open] summary::after{content:"–"}
.bjx-faq .a{padding:0 14px 13px;font-size:12.5px;color:var(--muted);line-height:1.55}

/* ============ CTA BAND ============ */
.bjx-cta{margin:8px 12px 18px;padding:18px 16px;border-radius:16px;text-align:center;background:linear-gradient(135deg,#123528,#0a1c14);border:1px solid rgba(23,165,107,.32)}
.bjx-cta h3{margin:0 0 6px;font-size:16px;font-weight:800}
.bjx-cta p{margin:0 0 12px;font-size:12.5px;color:var(--muted)}
.bjx-cta a{display:inline-block;padding:11px 28px;border-radius:999px;font-weight:800;color:#eafff5;background:var(--gold-grad);box-shadow:0 6px 16px rgba(23,165,107,.4)}

/* ============ FOOTER (Baji999 bespoke — distinct from clone source) ============ */
.bjx-foot{padding:16px 14px 22px;background:#060f0a;border-top:2px solid var(--green-d);font-size:12px;color:var(--muted)}
.bjx-pay{display:flex;flex-direction:column;gap:8px;align-items:center;padding:13px;background:var(--card);border:1px solid var(--line);border-radius:14px;margin-bottom:16px}
.bjx-pay .lbl{font-size:10.5px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.bjx-pay .methods{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.bjx-pay .methods span{font-weight:800;font-size:12px;padding:6px 14px;border-radius:8px;background:var(--bg3);color:var(--gold);border:1px solid rgba(236,201,110,.25)}
.bjx-fnav{display:flex;flex-direction:column;gap:15px;margin-bottom:16px}
.bjx-fnav .fcol h4{margin:0 0 9px;font-size:12.5px;color:var(--text);font-weight:800;display:flex;align-items:center;gap:7px}
.bjx-fnav .fcol h4 svg{color:var(--green)}
.bjx-fnav .fcol .lk{display:flex;flex-wrap:wrap;gap:7px 9px}
.bjx-fnav .fcol .lk a{font-size:11.5px;color:var(--muted);padding:5px 11px;border-radius:999px;background:var(--card);border:1px solid var(--line)}
.bjx-fnav .fcol .lk a:active,.bjx-fnav .fcol .lk a:hover{color:var(--green);border-color:var(--green-d)}
.bjx-fsocial{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:12px 4px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:14px}
.bjx-fsocial .soc{display:flex;gap:12px;flex-wrap:wrap}
.bjx-fsocial .soc a{font-size:11.5px;font-weight:600;color:var(--muted)}
.bjx-fsocial .apps{display:flex;gap:8px}
.bjx-fsocial .apps a{border:1px solid var(--line);border-radius:8px;padding:6px 11px;color:var(--text);font-size:11px;font-weight:700;display:flex;align-items:center;gap:5px}
.bjx-ftrust{display:flex;gap:10px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--card);margin-bottom:12px;line-height:1.5}
.bjx-ftrust .b18{flex:0 0 auto;width:32px;height:32px;border-radius:50%;border:2px solid var(--red);color:var(--red);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:11px}
.bjx-foot .copy{text-align:center;font-size:11px;color:#5f7189;line-height:1.6}

/* ============ BOTTOM NAV ============ */
.bjx-tab{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:var(--wrap);z-index:50;display:grid;grid-template-columns:repeat(5,1fr);background:rgba(8,13,20,.96);backdrop-filter:blur(12px);border-top:1px solid var(--line)}
.bjx-tab a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 2px 9px;font-size:10px;font-weight:600;color:var(--muted)}
.bjx-tab a svg{color:var(--muted)}
.bjx-tab a.mid{margin-top:-16px}
.bjx-tab a.mid .cc{width:46px;height:46px;border-radius:50%;background:var(--gold-grad);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(23,165,107,.5);color:#eafff5}
.bjx-tab a.on,.bjx-tab a.on svg{color:var(--gold)}

/* ============ DRAWER ============ */
.bjx-drawer{position:fixed;inset:0;z-index:60;visibility:hidden;opacity:0;transition:.25s}
.bjx-drawer.open{visibility:visible;opacity:1}
.bjx-drawer .bg{position:absolute;inset:0;background:rgba(0,0,0,.6)}
.bjx-drawer .panel{position:absolute;top:0;left:0;bottom:0;width:76%;max-width:320px;background:linear-gradient(180deg,#0d1a28,#080d14);transform:translateX(-100%);transition:.28s;padding:16px;overflow-y:auto;border-right:1px solid var(--line)}
.bjx-drawer.open .panel{transform:none}
.bjx-drawer .panel .top{display:flex;align-items:center;gap:9px;margin-bottom:14px}
.bjx-drawer .panel .top img{height:28px}
.bjx-drawer nav a{display:flex;align-items:center;gap:11px;padding:11px 8px;border-bottom:1px solid var(--line);font-size:14px;font-weight:600}
.bjx-drawer nav a svg{color:var(--gold);flex:0 0 auto}

/* ============ BLOG / GENERIC PAGE ============ */
.bjx-page{padding:14px}
.bjx-page .crumb{font-size:11.5px;color:var(--muted);margin-bottom:10px}
.bjx-page .crumb a{color:var(--gold)}
.bjx-post{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:15px;margin-bottom:14px}
.bjx-post h1,.bjx-post h2.t{font-size:19px;margin:0 0 8px;line-height:1.35;color:#fff}
.bjx-post .meta{font-size:11.5px;color:var(--muted);margin-bottom:12px}
.bjx-entry{font-size:14px;color:#cdd9e6}
.bjx-entry h2{font-size:17px;color:#fff;margin:18px 0 8px}
.bjx-entry h3{font-size:15px;color:var(--gold);margin:14px 0 7px}
.bjx-entry p{margin:0 0 11px}
.bjx-entry img{border-radius:10px;margin:6px 0}
.bjx-entry a{color:var(--gold);text-decoration:underline}
.bjx-cardlist{display:flex;flex-direction:column;gap:12px}
.bjx-artcard{display:flex;gap:11px;background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden;padding:10px}
.bjx-artcard .th{flex:0 0 96px;width:96px;height:70px;border-radius:9px;overflow:hidden;background:var(--bg3)}
.bjx-artcard .th img{width:100%;height:100%;object-fit:cover}
.bjx-artcard h3{margin:0 0 5px;font-size:13.5px;line-height:1.35}
.bjx-artcard .meta{font-size:11px;color:var(--muted)}
.bjx-pager{display:flex;justify-content:center;gap:8px;margin:16px 0}
.bjx-pager a,.bjx-pager span{padding:7px 12px;border-radius:9px;background:var(--card);border:1px solid var(--line);font-size:13px}
.bjx-pager .cur{background:var(--gold-grad);color:#eafff5;font-weight:800}

/* ---- author box (E-E-A-T) ---- */
.bjx-author{display:flex;gap:12px;align-items:flex-start;margin:18px 0 8px;padding:14px;background:#0f1620;border:1px solid rgba(232,185,74,.25);border-radius:12px}
.bjx-author-av{flex:0 0 46px;width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#e8b94a,#b8891f);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;color:#0b0f14}
.bjx-author-role{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#8a94a3;margin-bottom:2px}
.bjx-author-name{font-weight:700;color:#e8b94a;text-decoration:none;font-size:15px}
.bjx-author-name:hover{text-decoration:underline}
.bjx-author-bio{margin:5px 0 0;font-size:13px;line-height:1.55;color:#b9c1cc}

/* ---- drawer menu accordion ---- */
.bjx-drawer .panel .top{position:relative}
.bjx-close{position:absolute;right:0;top:-2px;background:none;border:none;color:var(--muted);font-size:26px;line-height:1;cursor:pointer;padding:0 4px}
.bjx-menu{display:flex;flex-direction:column;margin:0 -4px}
.bjx-mlink,.bjx-mgroup>summary{display:flex;align-items:center;gap:11px;padding:12px 8px;border-bottom:1px solid var(--line);font-size:14px;font-weight:600;color:var(--text);cursor:pointer;list-style:none}
.bjx-mgroup>summary::-webkit-details-marker{display:none}
.bjx-mgroup>summary>svg:first-child,.bjx-mlink>svg:first-child{color:var(--gold);flex:0 0 auto}
.bjx-mgroup>summary>span{flex:1}
.bjx-mgroup>summary>svg:last-child{color:var(--muted);transition:transform .2s}
.bjx-mgroup[open]>summary>svg:last-child{transform:rotate(90deg)}
.bjx-mgroup[open]>summary{color:var(--gold)}
.bjx-msub{display:flex;flex-direction:column;padding:2px 0 8px 30px;background:rgba(0,0,0,.16)}
.bjx-msub a{padding:9px 8px;font-size:13px;color:var(--muted);border-bottom:1px solid rgba(255,255,255,.045)}
.bjx-msub a:last-child{border-bottom:none}
.bjx-msub a.ov{color:#93a2b5;font-style:italic}
.bjx-msub a:active,.bjx-msub a:hover{color:var(--gold)}
.bjx-drawer-cta{display:flex;flex-direction:column;gap:9px;margin-top:16px}
.bjx-drawer-cta a{display:flex;align-items:center;justify-content:center;gap:8px;padding:11px;border-radius:10px;font-weight:700;font-size:13.5px}
.bjx-drawer-cta .reg{background:var(--gold-grad);color:#eafff5}
.bjx-drawer-cta .chat{border:1px solid var(--line);color:var(--text)}

/* ---- blog list card (excerpt + author) ---- */
.bjx-artcard .ct{display:flex;flex-direction:column;min-width:0;flex:1}
.bjx-artcard .ex{font-size:12px;line-height:1.5;color:var(--muted);margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bjx-artcard .meta .au{color:var(--gold)}
.bjx-artcard h3{color:var(--text)}

/* ---- popular games grid (baji thumbnails) ---- */
.bjx-games{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;padding:2px 12px 12px}
.bjx-game{display:flex;flex-direction:column;gap:5px;border-radius:12px;overflow:hidden;background:var(--card);border:1px solid var(--line)}
.bjx-game img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px 12px 0 0}
.bjx-game .gname{font-size:10.5px;font-weight:700;text-align:center;padding:0 3px 8px;line-height:1.2;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:360px){.bjx-games{grid-template-columns:repeat(3,1fr)}}
