/* Ayan Point — অ্যাডমিন প্যানেলের স্টাইল (অনুমোদিত ডিজাইন অনুযায়ী; কোনো বিল্ড টুল লাগে না) */
:root{
  --red:#D80000; --red-d:#B3121F; --ink:#24191B; --muted:#5F5557;
  --bg:#F4F0F0; --soft:#F8F4F4; --line:rgba(36,25,27,.08); --line-2:rgba(36,25,27,.16);
  --ok:#1D8A4A; --warn:#8A5A00;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.adm{margin:0;font-family:'Hind Siliguri',system-ui,-apple-system,'Segoe UI',sans-serif;background:var(--bg);color:var(--ink);line-height:1.5}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font-family:inherit;font-size:inherit;color:inherit}
button{cursor:pointer}
h1,h2,h3,p{margin:0}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid color-mix(in srgb,var(--red) 55%,white);outline-offset:2px}

/* গ্লসি লাল */
.red{background:linear-gradient(180deg,color-mix(in srgb,var(--red) 70%,white) 0%,var(--red) 45%,color-mix(in srgb,var(--red) 78%,black) 100%);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 5px 12px color-mix(in srgb,var(--red) 26%,transparent)}
.card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 6px 18px rgba(120,20,30,.05)}
.glass{background:rgba(255,255,255,.72);backdrop-filter:blur(16px) saturate(170%);-webkit-backdrop-filter:blur(16px) saturate(170%);border:1px solid rgba(255,255,255,.9)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border-radius:14px;border:0;font-weight:700;font-size:15px;white-space:nowrap}
.btn.card{font-weight:600;font-size:14px;color:var(--ink)}
.btn-sm{min-height:44px;padding:0 14px;border-radius:12px;font-size:13px}
.btn svg{flex:none}

/* কাঠামো */
.adm-shell{display:flex;min-height:100vh}
.adm-side{flex:none;width:264px;height:100vh;position:sticky;top:0;overflow-y:auto;background:linear-gradient(180deg,#2A1C1E 0%,#170E0F 100%);color:#E9DEDF;padding:20px 14px;display:flex;flex-direction:column;gap:4px}
.adm-brand{display:flex;align-items:center;gap:10px;padding:4px 8px 18px}
.adm-brand .mark{width:46px;height:46px;border-radius:13px;background:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.adm-brand strong{display:block;font-size:17px;color:#fff;line-height:1.2}
.adm-brand span.sub{display:block;font-size:12px;color:#BCAEB0}
.adm-nav{display:flex;flex-direction:column;gap:2px}
.adm-group{padding:14px 12px 6px;font-size:12px;font-weight:600;color:#BCAEB0;letter-spacing:.4px}
.adm-item{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-radius:12px;font-size:15px;font-weight:600;color:#E9DEDF}
.adm-item:hover{background:rgba(255,255,255,.07)}
.adm-item.on{color:#fff;background:linear-gradient(180deg,#E8353F,#B3121F)}
.adm-item .lbl{flex:1}
.adm-badge{min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#fff;color:#B3121F;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.adm-user{margin-top:auto;padding:14px 8px 0;display:flex;align-items:center;gap:10px;border-top:1px solid rgba(255,255,255,.12)}
.adm-user .av{width:40px;height:40px;border-radius:20px;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;flex:none}
.adm-user .who{flex:1;min-width:0;line-height:1.25}
.adm-user .who strong{display:block;font-size:14px;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.adm-user .who span{font-size:12px;color:#BCAEB0}
.adm-user button{width:44px;height:44px;border:0;background:transparent;color:#E9DEDF;display:flex;align-items:center;justify-content:center;border-radius:12px}
.adm-user button:hover{background:rgba(255,255,255,.08)}
.adm-main{flex:1;min-width:0;padding:24px 28px 40px}
.adm-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-bottom:6px}
.adm-top h1{font-size:28px;font-weight:700;line-height:1.25}
.adm-top .subt{font-size:14px;color:var(--muted)}
.adm-top .acts{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.adm-burger{display:none;width:48px;height:48px;border-radius:14px;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff}
.adm-scrim{display:none}
.adm-bottom{display:none}

/* বার্তা */
.alert{margin:14px 0 0;padding:12px 16px;border-radius:14px;font-size:14px}
.alert-ok{background:#E6F6EC;color:#14602F;border:1px solid #CBE8D5}
.alert-err{background:#FDE6E8;color:#8A1220;border:1px solid #F5C6CB}
.alert-note{background:#FFF4D6;color:#6B4A00;border:1px solid #F3E2A8}
.alert ul{margin:6px 0 0;padding-left:20px}

/* ফর্ম */
.sec{padding:22px}
.sec h2{font-size:20px;font-weight:700}
.sec .lead{margin-top:6px;font-size:14px;color:var(--muted)}
.row{display:flex;flex-wrap:wrap;gap:16px}
.fld{flex:1 1 280px;min-width:0}
.stack>*+*{margin-top:16px}
.lb{display:block;font-size:13px;font-weight:600;margin-bottom:6px}
.in{width:100%;min-height:48px;padding:10px 14px;border-radius:12px;border:1px solid var(--line-2);background:#fff;outline:0}
textarea.in{resize:vertical;line-height:1.5}
.in:focus{border-color:var(--red);box-shadow:0 0 0 3px color-mix(in srgb,var(--red) 18%,transparent)}
.hint{display:block;margin-top:5px;font-size:12px;color:var(--muted)}
.hint.warn{color:var(--warn)}
.fe{display:block;margin-top:5px;font-size:13px;color:#B3121F;font-weight:600}
.lnk{font-size:12px;color:var(--muted);word-break:break-all}
.lnk b{color:var(--ink)}
.tgl{display:flex;align-items:flex-start;gap:12px;min-height:48px;padding:10px 12px;border-radius:12px;background:var(--soft);cursor:pointer}
.tgl input{width:22px;height:22px;margin-top:2px;accent-color:var(--red);flex:none}
.tgl strong{font-weight:600;font-size:14px}
.tgl small{display:block;font-size:12px;color:var(--muted)}
.imgbox{display:flex;align-items:center;gap:14px;padding:14px;border-radius:14px;background:var(--soft)}
.imgbox .prev{width:72px;height:72px;border-radius:16px;background:#fff;display:flex;align-items:center;justify-content:center;flex:none;overflow:hidden}
.imgbox .prev img{max-width:100%;max-height:100%;object-fit:contain}
.imgbox .meta{flex:1;min-width:0}
.imgbox .meta strong{display:block;font-size:14px}
.imgbox .meta span{font-size:12px;color:var(--muted)}
.imgbox input[type=file]{font-size:13px;max-width:100%;margin-top:6px}

.tabs{display:flex;gap:8px;overflow-x:auto;padding:4px 0 8px;margin-top:14px;scrollbar-width:thin}
.tabs a{flex:none;min-height:44px;padding:0 18px;display:flex;align-items:center;border-radius:22px;font-size:14px;font-weight:600;background:#fff;border:1px solid var(--line-2);color:var(--ink)}
.tabs a:hover{border-color:var(--red);color:var(--red-d)}
.savebar{margin-top:16px;display:flex;justify-content:flex-end}

/* টেবিল */
.tbl-wrap{overflow-x:auto}
table.tbl{width:100%;border-collapse:collapse}
.th{font-size:12px;font-weight:600;color:var(--muted);text-align:left;padding:10px 14px;background:var(--soft);white-space:nowrap}
.td{font-size:14px;padding:12px 14px;border-top:1px solid var(--line);vertical-align:middle}
.chip{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:14px;font-size:12px;font-weight:700;white-space:nowrap}
.zone-in{width:100%;min-width:90px;min-height:44px;padding:8px 10px;border-radius:10px;border:1px solid var(--line-2);background:#fff}

/* ড্যাশবোর্ড */
.checklist{margin-top:16px;padding:22px}
.ck-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.ck-head h2{font-size:20px;font-weight:700}
.ck-head .s{font-size:14px;color:var(--muted)}
.bar{flex:1;height:10px;border-radius:5px;background:#F0E6E7;overflow:hidden}
.bar>div{height:100%;box-shadow:none}
.ck-grid{margin-top:16px;display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}
.ck{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;border:1px solid var(--line-2);background:#fff}
.ck.done{background:#F1FAF4;border-color:#CBE8D5}
.ck .dot{flex:none;width:28px;height:28px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#8A7E80;color:#fff;font-size:13px;font-weight:700}
.ck.done .dot{background:var(--ok)}
.ck .t{flex:1;min-width:0;line-height:1.3}
.ck .t strong{display:block;font-size:14px}
.ck .t span{font-size:12px;color:var(--muted)}
.ck .go{flex:none;display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:10px;font-size:13px;font-weight:700;color:#B3121F;background:#fff;border:1px solid color-mix(in srgb,var(--red) 40%,white)}
.kpis{margin-top:16px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.kpi{padding:18px;display:flex;align-items:center;gap:14px}
.kpi .ic{width:52px;height:52px;flex:none;border-radius:16px;display:flex;align-items:center;justify-content:center}
.kpi .tx{display:flex;flex-direction:column;line-height:1.25}
.kpi .tx .a{font-size:13px;color:var(--muted)}
.kpi .tx strong{font-size:28px}
.kpi .tx .b{font-size:12px;color:var(--muted)}
.cols{margin-top:16px;display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start}
.cols>.c2{flex:2 1 480px;min-width:0}
.cols>.c1{flex:1 1 280px;min-width:0}
.panel{padding:22px}
.panel h2{font-size:18px;font-weight:700}
.chart{margin-top:18px;height:220px;display:flex;align-items:flex-end;gap:14px;padding-bottom:28px;border-bottom:1px solid var(--line-2);position:relative}
.chart .col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;position:relative}
.chart .col .v{font-size:12px;font-weight:600;margin-bottom:4px;min-height:18px}
.chart .col .b{width:100%;max-width:54px;border-radius:10px 10px 4px 4px}
.chart .col .d{position:absolute;bottom:-26px;font-size:12px;color:var(--muted)}
.chart .col .b.zero{background:#EFE6E7;box-shadow:none}
.statelist{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.statelist a{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 10px;border-radius:12px;font-size:14px}
.statelist a:hover{background:var(--soft)}
.statelist i{width:10px;height:10px;border-radius:5px;display:inline-block}
.statelist span{flex:1}
.quick{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.quick a{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px;border-radius:14px;background:var(--soft);font-size:14px;font-weight:600;min-height:44px}
.quick a svg{color:#B3121F}
.empty{padding:28px 16px;text-align:center;color:var(--muted);font-size:14px}
.empty strong{display:block;color:var(--ink);font-size:15px;margin-bottom:4px}
.lowlist{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.lowlist li{display:flex;align-items:center;gap:10px;font-size:14px}
.lowlist li span:first-child{flex:1}
.lowlist .q{height:26px;padding:0 10px;display:flex;align-items:center;border-radius:13px;font-size:12px;font-weight:700;color:#8A2A00;background:#FFE9DB}

/* লগইন */
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(900px 500px at 15% 10%,#FFE3E4 0,transparent 60%),radial-gradient(800px 500px at 90% 90%,#FFD6D8 0,transparent 55%),var(--bg)}
.login-card{width:100%;max-width:420px;padding:32px 28px}
.login-card .brand{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;margin-bottom:22px}
.login-card .brand .mark{width:64px;height:64px;border-radius:18px;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(120,20,30,.12)}
.login-card h1{font-size:24px;font-weight:700}
.login-card .sub{font-size:14px;color:var(--muted)}
.login-card .btn{width:100%;margin-top:6px}

.soon{padding:44px 24px;text-align:center;max-width:620px;margin:24px auto 0}
.soon .ic{width:64px;height:64px;margin:0 auto 14px;border-radius:20px;background:#FDE6E8;color:#B3121F;display:flex;align-items:center;justify-content:center}
.soon h2{font-size:22px}
.soon p{margin-top:8px;color:var(--muted);font-size:15px}

/* মোবাইল */
@media (max-width:960px){
  .adm-side{position:fixed;left:0;top:0;bottom:0;z-index:60;transform:translateX(-105%);transition:transform .22s ease;box-shadow:12px 0 32px rgba(0,0,0,.3)}
  body.nav-open .adm-side{transform:none}
  .adm-scrim{position:fixed;inset:0;z-index:55;background:rgba(20,10,12,.5)}
  body.nav-open .adm-scrim{display:block}
  .adm-burger{display:flex}
  .adm-main{padding:16px 14px 96px}
  .adm-top h1{font-size:24px}
  .adm-bottom{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;height:68px;padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:rgba(255,255,255,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line-2)}
  .adm-bottom a,.adm-bottom button{flex:1;min-width:0;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;font-weight:600;color:var(--muted);border-radius:12px;position:relative}
  .adm-bottom .on{color:var(--red-d)}
  .adm-bottom .on svg{stroke:var(--red-d)}
  .adm-bottom .pip{position:absolute;top:4px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--red);color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center}
  .adm-top .acts .btn{flex:1}
  .imgbox{flex-wrap:wrap}
  .chart{gap:8px}
}

/* ক্যাটাগরি ও পণ্য তালিকা */
.catrow{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px;border-top:1px solid var(--line)}
.catrow:first-child{border-top:0}
.catrow.sub{padding-left:46px;background:var(--soft)}
.catmain{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 200px}
.catimg{width:44px;height:44px;border-radius:12px;background:var(--soft);flex:none;overflow:hidden}
.catimg img{width:100%;height:100%;object-fit:cover}
.cattx strong{display:block;font-size:15px}
.cattx small{font-size:12px;color:var(--muted)}
.catact{display:flex;gap:8px;flex-wrap:wrap}
.prow{display:flex;align-items:center;gap:14px;padding:12px 18px;border-top:1px solid var(--line)}
.prow:first-child{border-top:0}
.prow:hover{background:var(--soft)}
.pimg{width:56px;height:56px;border-radius:12px;background:var(--soft);flex:none;overflow:hidden}
.pimg img{width:100%;height:100%;object-fit:cover}
.ptx{flex:1;min-width:0;display:flex;flex-direction:column}
.ptx strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ptx small,.pnum small{font-size:12px;color:var(--muted)}
.pnum{display:flex;flex-direction:column;text-align:right;flex:none}
.pnum b{font-size:15px}
.gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;margin-top:14px}
.gi{border:1px solid var(--line-2);border-radius:14px;padding:8px;background:#fff;display:flex;flex-direction:column;gap:4px;font-size:13px}
.gi img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}
.gi label{display:flex;align-items:center;gap:6px;min-height:36px;cursor:pointer}
.gi label.rm{color:#B3121F}
.gi input{width:18px;height:18px;accent-color:var(--red)}
@media (max-width:640px){.prow{flex-wrap:wrap}.pnum{text-align:left}.catrow.sub{padding-left:28px}}

/* ===== অর্ডার ম্যানেজমেন্ট ===== */
.tabs a.on{background:var(--red);border-color:var(--red);color:#fff}.tabs a.warn{background:#FFF4D6;border-color:#F3E2A8;color:#6B4A00}.tabs a.warn.on{background:#E0A100;color:#fff}
.tn{margin-left:6px;padding:1px 8px;border-radius:10px;background:rgba(0,0,0,.08);font-size:12px}.tabs a.on .tn{background:rgba(255,255,255,.25)}
.orow{display:flex;align-items:center;gap:14px;padding:12px 18px;border-top:1px solid var(--line)}.orow:first-child{border-top:0}.orow:hover{background:var(--soft)}
.orow .ob{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;color:inherit}
.orow .o1{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.orow .o1 strong{font-size:16px;color:#B3121F}
.orow .o2{font-size:14px}.orow .o3{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.orow .o3 em{font-style:normal;font-weight:700}
.orow .oright{display:flex;flex-direction:column;text-align:right;flex:none}.orow .oright b{font-size:16px}.orow .oright small{font-size:12px;color:var(--muted)}
.orow .oq{flex:none}
@media (max-width:700px){.orow{flex-wrap:wrap;padding:12px 14px}.orow .ob{flex:1 1 100%}.orow .oright{text-align:left;flex:1}}
.oitems{margin-top:10px}.oi{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line)}.oi:first-child{border-top:0}.oi .pimg{width:52px;height:52px;flex:none}.oi b{flex:none}
.sum{margin:12px 0 0 auto;max-width:340px}.sum div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:14px}.sum dt{color:var(--muted)}.sum dd{margin:0;font-weight:600}
.sum .tot{border-top:2px solid var(--ink);margin-top:4px;padding-top:8px}.sum .tot dt,.sum .tot dd{color:var(--ink);font-size:17px;font-weight:700}.sum .due dt,.sum .due dd{color:#B3121F;font-weight:700}
.pay{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start;justify-content:space-between;margin-top:12px;padding:14px;border:1px solid var(--line);border-radius:14px}
.pay .pt{display:flex;flex-direction:column;gap:3px;min-width:0;font-size:14px}.pay .pact{flex:1 1 100%;margin-top:6px;padding-top:12px;border-top:1px dashed var(--line)}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace;letter-spacing:.3px}
.tl{list-style:none;margin:12px 0 0;padding:0 0 0 18px;border-left:2px solid var(--line)}.tl li{position:relative;padding:0 0 14px 14px;display:flex;flex-direction:column}
.tl li::before{content:"";position:absolute;left:-25px;top:4px;width:12px;height:12px;border-radius:50%;background:var(--red);border:2px solid #fff;box-shadow:0 0 0 2px var(--line)}
.tl small{color:var(--muted);font-size:12px}.tl span{font-size:14px}
.cust{display:flex;flex-direction:column;gap:6px;margin-top:10px}.cust strong{font-size:17px}
.cust .cl{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:12px;background:#F4EEEE;font-weight:600;width:fit-content}.cust .cl.wa{background:#E3F6EA;color:#14602F}
.cust .addr{margin:4px 0 0;padding:12px;border-radius:12px;background:var(--soft);font-size:14px}.cust .cnote{margin:0;padding:10px 12px;border-radius:12px;background:#FFF4D6;font-size:13.5px}
[hidden]{display:none!important}
@media (max-width:900px){
  .ocols{flex-direction:column;flex-wrap:nowrap;gap:14px;align-items:stretch}
  .ocols>.c1,.ocols>.c2,.ocols>.c1>.stack,.ocols>.c2>.stack{display:contents}
  .ocols .s-status{order:1}.ocols .s-cust{order:2}.ocols .s-items{order:3}.ocols .s-pay{order:4}.ocols .s-ret{order:4}.ocols .s-hist{order:5}.ocols .s-note{order:6}
}

/* ===== কনটেন্ট ম্যানেজমেন্ট ===== */
.bthumb{width:120px;height:48px;flex:none;border-radius:10px;overflow:hidden;background:#F4EEEE;border:1px solid var(--line)}.bthumb img{width:100%;height:100%;object-fit:cover}
.bprev{width:120px!important;height:60px!important}.bprev img{object-fit:cover}
.hrow{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.hrow.new{border-top:2px dashed var(--line-2)}
.hrow .in{min-height:44px}.hchk{flex:none;min-height:44px}
.rt{font-size:15px;line-height:1.75}.rt h2{font-size:19px;margin:20px 0 6px}.rt h3{font-size:16px;margin:14px 0 4px}.rt ul,.rt ol{margin:6px 0 10px;padding-left:22px}.rt li{margin:3px 0}.rt p{margin:8px 0}.rt a{color:#B3121F;text-decoration:underline}
code{background:#F4EEEE;padding:1px 6px;border-radius:6px;font-size:12.5px}

/* ===== কাস্টমার / ম্যানুয়াল অর্ডার ===== */
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}.kpis div{background:#F8F3F3;border-radius:14px;padding:12px;text-align:center}.kpis b{display:block;font-size:18px}.kpis span{font-size:12px;color:var(--muted)}
@media (max-width:640px){.kpis{grid-template-columns:repeat(2,1fr)}}
.mo-search{position:relative}.mo-res{position:absolute;left:0;right:0;top:100%;z-index:20;margin-top:4px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 40px -14px rgba(36,25,27,.35);max-height:320px;overflow:auto}
.mo-res button{display:flex;gap:10px;align-items:center;width:100%;min-height:52px;padding:8px 12px;border:0;background:none;text-align:left;cursor:pointer;font:inherit;border-bottom:1px solid var(--line)}.mo-res button:hover{background:#FBF1F1}
.mo-res img,.mo-res i{width:40px;height:40px;border-radius:8px;object-fit:cover;background:#F4EEEE;flex:none}
.mo-res small{display:block;color:var(--muted);font-size:12px}
.mo-line{display:grid;grid-template-columns:1fr 92px 110px 90px 44px;gap:8px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.mo-line .nm strong{display:block;font-size:14px}.mo-line .nm small{color:var(--muted);font-size:12px}.mo-line .in{min-height:44px;padding:0 10px}.mo-line .lt{font-weight:700;text-align:right}
.mo-x{width:44px;height:44px;border:0;border-radius:12px;background:#FDE6E8;color:#8A1220;font-size:20px;cursor:pointer}
@media (max-width:700px){.mo-line{grid-template-columns:1fr 1fr 44px;grid-template-areas:"nm nm x" "q p lt"}.mo-line .nm{grid-area:nm}.mo-line .q{grid-area:q}.mo-line .p{grid-area:p}.mo-line .lt{grid-area:lt}.mo-line .mo-x{grid-area:x}}
.mo-sum{display:grid;gap:6px;margin-top:10px;font-size:15px}.mo-sum div{display:flex;justify-content:space-between}.mo-sum .gt{font-size:19px;font-weight:800;border-top:2px solid var(--line);padding-top:8px}

/* ===== লাইভ চ্যাট (অ্যাডমিন) ===== */
.chat{display:grid;grid-template-columns:320px 1fr;gap:14px;margin-top:14px;height:calc(100vh - 170px);min-height:480px}
.chat-list,.chat-main{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.chat-list{overflow-y:auto}
.chat-row{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:none;padding:12px 14px;cursor:pointer;font:inherit;min-height:60px}
.chat-row:hover{background:#FBF4F4}.chat-row.on{background:#FDE9E9}
.chat-row .cr1,.chat-row .cr2{display:flex;justify-content:space-between;gap:8px;align-items:center}
.chat-row .cr1 small{color:var(--muted);font-size:11.5px;flex:none}.chat-row .cp{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-row.un strong{color:#B3121F}.chat-row.un .cp{color:var(--ink);font-weight:600}
.chat-row .pip{flex:none;min-width:22px;height:22px;border-radius:11px;background:var(--red);color:#fff;font-size:12px;display:flex;align-items:center;justify-content:center;padding:0 6px}
.chat-empty{margin:auto;text-align:center;padding:30px;color:var(--muted);max-width:360px}.chat-empty strong{display:block;color:var(--ink);margin-bottom:6px}
.chat-thread{display:flex;flex-direction:column;height:100%;min-height:0}.chat-thread[hidden]{display:none}
.chat-th{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 14px;border-bottom:1px solid var(--line)}
.chat-who{flex:1 1 180px;min-width:0}.chat-who strong{display:block}.chat-who small{color:var(--muted);font-size:12px;word-break:break-all}
.chat-acts{display:flex;gap:6px;flex-wrap:wrap}.chat-back{display:none}
.chat-msgs{flex:1;overflow-y:auto;padding:14px;background:#F7F2F2;display:flex;flex-direction:column;gap:8px}
.cm{max-width:78%;padding:9px 12px;border-radius:16px;font-size:14.5px;line-height:1.5;word-break:break-word;white-space:pre-wrap}.cm small{display:block;margin-top:2px;font-size:11px;opacity:.65;text-align:right}
.cm.v{align-self:flex-start;background:#fff;border:1px solid var(--line);border-bottom-left-radius:5px}
.cm.a{align-self:flex-end;background:var(--red);color:#fff;border-bottom-right-radius:5px}
.chat-quick{display:flex;gap:6px;overflow-x:auto;padding:8px 12px;border-top:1px solid var(--line);scrollbar-width:none}.chat-quick::-webkit-scrollbar{display:none}
.chat-quick button{flex:none;min-height:36px;padding:0 12px;border-radius:18px;border:1px solid var(--line);background:#fff;font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
.chat-form{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line);align-items:flex-end}
.chat-form textarea{flex:1;min-width:0;min-height:48px;max-height:120px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;font:inherit;font-size:15px;resize:none}
@media (max-width:900px){
  .chat{grid-template-columns:1fr;height:calc(100vh - 190px)}
  .chat .chat-main{display:none}.chat.is-thread .chat-list{display:none}.chat.is-thread .chat-main{display:flex}
  .chat-back{display:inline-flex}
}
.cn-pill{position:fixed;left:50%;transform:translateX(-50%);bottom:84px;z-index:90}.cn-pill[hidden]{display:none}
.cn-pill button{min-height:44px;padding:0 16px;border-radius:22px;border:0;background:#24191B;color:#fff;font:inherit;font-size:13.5px;cursor:pointer;box-shadow:0 12px 30px rgba(0,0,0,.35)}
@media (min-width:901px){.cn-pill{bottom:24px;left:auto;right:24px;transform:none}}
.cn-toast{position:fixed;top:14px;right:14px;z-index:95;max-width:340px;padding:14px 16px;border-radius:16px;background:#fff;border-left:5px solid var(--red);box-shadow:0 20px 50px -12px rgba(36,25,27,.45);display:flex;flex-direction:column;gap:3px;animation:lcin .25s ease}.cn-toast[hidden]{display:none}
.cn-toast span{color:var(--muted);font-size:13.5px}.cn-toast a{color:#B3121F;font-weight:700;text-decoration:underline;margin-top:4px}

/* ===== রিপোর্ট ===== */
.rp-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.rp-k{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 16px;display:flex;flex-direction:column;gap:2px}
.rp-k span{font-size:13px;color:var(--muted)}.rp-k b{font-size:24px;line-height:1.25}.rp-k small{font-size:12px;color:var(--muted)}
.rp-k.warn{border-color:#F0B3B8;background:#FFF5F5}.rp-k.warn b{color:#B3121F}
@media (max-width:900px){.rp-kpis{grid-template-columns:repeat(2,1fr)}.rp-k b{font-size:20px}}
.rp-chart{display:flex;align-items:flex-end;gap:4px;height:200px;margin-top:14px;overflow-x:auto;padding-top:6px}
.rp-col{flex:1 0 20px;min-width:20px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%}
.rp-col i{display:block;width:70%;max-width:34px;background:linear-gradient(180deg,#F06A68,var(--red));border-radius:6px 6px 2px 2px}
.rp-col em{font-style:normal;font-size:10.5px;color:var(--muted);margin-top:4px;white-space:nowrap}.rp-v{font-size:10.5px;color:var(--ink);margin-bottom:2px}
.rp-row{display:flex;gap:10px;align-items:baseline;padding:10px 0;border-top:1px solid var(--line);flex-wrap:wrap}.rp-row:first-of-type{margin-top:6px}
.rp-n{flex:1 1 140px;min-width:0;font-weight:600}.rp-m{color:var(--muted);font-size:13px}.rp-row small{color:var(--muted);font-size:12px;flex-basis:100%;text-align:right}

/* কর্মী ও ভূমিকা */
.stf-av{flex:none;width:40px;height:40px;border-radius:50%;background:var(--red);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px}
.permgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin-top:14px}
.permgrid .tgl small{font-family:ui-monospace,monospace;font-size:11px}
@media (max-width:640px){.permgrid{grid-template-columns:1fr}}

/* স্টক */
.stk-row{border-top:1px solid var(--line)}.stk-row:first-child{border-top:0}
.stk-d{padding:0 18px 14px}.stk-d summary{display:inline-flex;align-items:center;cursor:pointer;list-style:none}.stk-d summary::-webkit-details-marker{display:none}
.stk-f{margin-top:12px;padding:16px;border-radius:14px;background:var(--soft)}
.stk-buy[hidden]{display:none!important}
.pthumb{flex:none;width:44px;height:44px;border-radius:10px;object-fit:cover;background:var(--soft)}

/* রিভিউ */
.rv-row{padding:16px 18px;border-top:1px solid var(--line,#eee)}.rv-row:first-child{border-top:0}
.rv-top{display:flex;gap:12px;align-items:flex-start}.rv-who{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;min-width:0}.rv-who small{flex-basis:100%;color:#6b5f61}
.rv-stars{color:#E0A100;letter-spacing:1px;font-size:15px}
.rv-t{font-weight:700;margin:10px 0 0}.rv-c{margin:6px 0 0;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}
.rv-reply{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#F6F1F1;font-size:14px}
.rv-act{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;align-items:flex-start}

/* ড্যাশবোর্ড: নজর দরকার */
.attn{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin:0 0 14px}
.attn-i{display:flex;align-items:center;gap:12px;padding:14px 16px;text-decoration:none;color:inherit;border-left:4px solid var(--c)}
.attn-i .ic{flex:none;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:var(--c);background:color-mix(in srgb,var(--c) 12%,#fff)}
.attn-i .tx{flex:1;min-width:0;display:flex;flex-direction:column}.attn-i small{color:#6b5f61}.attn-i .go{color:var(--c);font-weight:700}
.golive{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px 18px;margin-bottom:14px;border-width:1px}
.golive .gl-t{display:flex;align-items:center;gap:14px;min-width:0}.golive .gl-t strong{display:block;font-size:16px}.golive .gl-t span:not(.gl-dot){display:block;font-size:13px;color:var(--muted,#5F5557);margin-top:2px}
.golive .gl-dot{flex:none;width:14px;height:14px;border-radius:50%}
.golive.off{background:#FFF8E6;border-color:#F0DCA0}.golive.off .gl-dot{background:#E0A100;box-shadow:0 0 0 5px rgba(224,161,0,.2)}
.golive.on{background:#EAF7EF;border-color:#BFE3CC}.golive.on .gl-dot{background:#1D8A4A;box-shadow:0 0 0 5px rgba(29,138,74,.2)}
.golive .gl-a{display:flex;gap:10px;align-items:center;flex-wrap:wrap}

/* ===== ডার্ক মোড (টপবারের চাঁদ/সূর্য বাটন; পছন্দ ব্রাউজারে সংরক্ষিত) ===== */
.thm{width:48px;height:48px;border-radius:14px;border:1px solid var(--line-2);background:#fff;display:inline-flex;align-items:center;justify-content:center;color:var(--ink);flex:none}
.thm .sun{display:none}
html[data-theme="dark"] .thm .sun{display:block}
html[data-theme="dark"] .thm .moon{display:none}
html[data-theme="dark"]{color-scheme:dark;
  --ink:#EFE6E7; --muted:#B5A8AA; --bg:#141011; --soft:#241B1D;
  --line:rgba(255,255,255,.09); --line-2:rgba(255,255,255,.18);
  --ok:#4CC37F; --warn:#E8B04A}
html[data-theme="dark"] body.adm{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .card,
html[data-theme="dark"] .in,html[data-theme="dark"] .zone-in,html[data-theme="dark"] .thm,
html[data-theme="dark"] .adm-burger,html[data-theme="dark"] .tabs a,html[data-theme="dark"] .ck,
html[data-theme="dark"] .gi,html[data-theme="dark"] .mo-res,html[data-theme="dark"] .chat-list,
html[data-theme="dark"] .chat-main,html[data-theme="dark"] .cm.v,html[data-theme="dark"] .chat-quick button,
html[data-theme="dark"] .cn-toast,html[data-theme="dark"] .rp-k,html[data-theme="dark"] .ck .go,
html[data-theme="dark"] .login-card{background:#1E1618;color:var(--ink);border-color:var(--line-2)}
html[data-theme="dark"] .glass{background:rgba(30,22,24,.78);border-color:var(--line-2)}
html[data-theme="dark"] .imgbox .prev,html[data-theme="dark"] .adm-brand .mark,html[data-theme="dark"] .login-card .brand .mark{background:#fff}
html[data-theme="dark"] .login-wrap{background:radial-gradient(900px 500px at 15% 10%,#3A1519 0,transparent 60%),radial-gradient(800px 500px at 90% 90%,#2B0E11 0,transparent 55%),var(--bg)}
html[data-theme="dark"] .th{background:#241B1D;color:var(--muted)}
html[data-theme="dark"] .in::placeholder{color:#8F8284}
html[data-theme="dark"] .in option,html[data-theme="dark"] select option{background:#1E1618;color:#EFE6E7}
html[data-theme="dark"] .tabs a.on{background:var(--red);color:#fff;border-color:var(--red)}
html[data-theme="dark"] .tabs a.warn{background:#3A2C0A;border-color:#6B4A00;color:#F3D68A}
html[data-theme="dark"] .alert-ok{background:#12301F;color:#8BE0AE;border-color:#1F5A38}
html[data-theme="dark"] .alert-err{background:#3A1519;color:#FFB4BB;border-color:#6E2830}
html[data-theme="dark"] .alert-note{background:#3A2C0A;color:#F3D68A;border-color:#6B4A00}
html[data-theme="dark"] .ck.done{background:#12301F;border-color:#1F5A38}
html[data-theme="dark"] .bar,html[data-theme="dark"] .chart .col .b.zero{background:#2E2326}
html[data-theme="dark"] .soon .ic,html[data-theme="dark"] .mo-x{background:#3A1519;color:#FFB4BB}
html[data-theme="dark"] .lowlist .q{background:#3D2412;color:#FFC79B}
html[data-theme="dark"] .cust .cl,html[data-theme="dark"] .bthumb,html[data-theme="dark"] code,
html[data-theme="dark"] .mo-res img,html[data-theme="dark"] .mo-res i{background:#2E2326}
html[data-theme="dark"] .cust .cl.wa{background:#12301F;color:#8BE0AE}
html[data-theme="dark"] .cust .cnote{background:#3A2C0A;color:#F3D68A}
html[data-theme="dark"] .kpis div,html[data-theme="dark"] .rv-reply,html[data-theme="dark"] .chat-msgs{background:#241B1D}
html[data-theme="dark"] .chat-row:hover{background:#2A1F22}
html[data-theme="dark"] .chat-row.on{background:#3A1A1F}
html[data-theme="dark"] .rp-k.warn{background:#3A1519;border-color:#6E2830}
html[data-theme="dark"] .golive.off{background:#3A2C0A;border-color:#6B4A00}
html[data-theme="dark"] .golive.on{background:#12301F;border-color:#1F5A38}
html[data-theme="dark"] .attn-i .ic{background:color-mix(in srgb,var(--c) 22%,#1E1618)}
html[data-theme="dark"] .adm-bottom{background:rgba(24,17,19,.94);border-top-color:var(--line-2)}
html[data-theme="dark"] .adm-bottom .on{color:#FF8A92}
html[data-theme="dark"] .adm-side{background:linear-gradient(180deg,#1A1214 0%,#0E0809 100%);border-right:1px solid var(--line)}
html[data-theme="dark"] .tl li::before{border-color:#1E1618}
html[data-theme="dark"] .cn-pill button{background:#EFE6E7;color:#24191B}
html[data-theme="dark"] .fe,html[data-theme="dark"] .rt a,html[data-theme="dark"] .gi label.rm,
html[data-theme="dark"] .orow .o1 strong,html[data-theme="dark"] .sum .due dt,html[data-theme="dark"] .sum .due dd,
html[data-theme="dark"] .quick a svg,html[data-theme="dark"] .cn-toast a,html[data-theme="dark"] .chat-row.un strong,
html[data-theme="dark"] .rp-k.warn b,html[data-theme="dark"] .ck .go{color:#FF8A92}
html[data-theme="dark"] .rv-who small,html[data-theme="dark"] .attn-i small{color:var(--muted)}
/* ভিউয়ের ইনলাইন রঙ (সাদা/হালকা ব্যাকগ্রাউন্ড ও গাঢ় লেখা) */
html[data-theme="dark"] [style*="background:#fff"],html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background:#FFF;"],html[data-theme="dark"] [style*="background:#ffffff"]{background:#1E1618!important}
html[data-theme="dark"] [style*="background:#F1ECEC"],html[data-theme="dark"] [style*="background:#ECE6E7"],
html[data-theme="dark"] [style*="background:#F4EEEE"],html[data-theme="dark"] [style*="background:#F8F4F4"],
html[data-theme="dark"] [style*="background:#F7F2F2"],html[data-theme="dark"] [style*="background:#F6F1F1"]{background:#2E2326!important}
html[data-theme="dark"] [style*="background:#FDE6E8"]{background:#3A1519!important}
html[data-theme="dark"] [style*="background:#FFF4D6"],html[data-theme="dark"] [style*="background:#FFF0CC"],html[data-theme="dark"] [style*="background:#FFF1D6"]{background:#3A2C0A!important}
html[data-theme="dark"] [style*="background:#E6F6EC"],html[data-theme="dark"] [style*="background:#DDF3E4"],html[data-theme="dark"] [style*="background:#E3F6E8"]{background:#12301F!important}
html[data-theme="dark"] [style*="background:#EADFFA"]{background:#2A1B45!important}
html[data-theme="dark"] [style*="color:#8A1220"],html[data-theme="dark"] [style*="color:#B3121F"],
html[data-theme="dark"] [style*="color:#b91c1c"],html[data-theme="dark"] [style*="color:#B3261E"]{color:#FF9AA1!important}
html[data-theme="dark"] [style*="color:#14602F"],html[data-theme="dark"] [style*="color:#14532D"]{color:#8BE0AE!important}
html[data-theme="dark"] [style*="color:#8A5A00"],html[data-theme="dark"] [style*="color:#6B4A00"],
html[data-theme="dark"] [style*="color:#B26A00"],html[data-theme="dark"] [style*="color:#7A4B00"]{color:#F3D68A!important}
html[data-theme="dark"] [style*="color:#5B2A9E"]{color:#CDB4FF!important}
html[data-theme="dark"] [style*="color:#1A4DA1"],html[data-theme="dark"] [style*="color:#0B4F8A"]{color:#9CC4FF!important}
html[data-theme="dark"] [style*="color:#3A2E30"],html[data-theme="dark"] [style*="color:#333"],html[data-theme="dark"] [style*="color:#24191B"],
html[data-theme="dark"] [style*="color:#5F5557"],html[data-theme="dark"] [style*="color:#6b5f61"],html[data-theme="dark"] [style*="color:#6F6467"]{color:var(--ink)!important}
html[data-theme="dark"] [style*="color:#6b5f61"],html[data-theme="dark"] [style*="color:#6F6467"],html[data-theme="dark"] [style*="color:#5F5557"]{color:var(--muted)!important}
html[data-theme="dark"] img{filter:none}
/* ডার্ক মোডে কাস্টম স্ক্রলবার */
html[data-theme="dark"] ::-webkit-scrollbar{width:10px;height:10px}
html[data-theme="dark"] ::-webkit-scrollbar-thumb{background:#4A3B3E;border-radius:6px}
@media (max-width:760px){.thm{width:44px;height:44px}}
html[data-theme="dark"] [style*="background:#F4EDEE"],html[data-theme="dark"] [style*="background:#EFEAEA"],html[data-theme="dark"] [style*="background:#F1F2F4"],html[data-theme="dark"] [style*="background:#EEF1F6"]{background:#2E2326!important}
html[data-theme="dark"] [style*="background:#FDE3E3"]{background:#3A1519!important}
html[data-theme="dark"] [style*="background:#E8F0FE"],html[data-theme="dark"] [style*="background:#DCEBFA"]{background:#14263F!important}
html[data-theme="dark"] [style*="color:#41506B"]{color:#B9CBEA!important}
html[data-theme="dark"] [style*="color:#7A4B00"]{color:#F3D68A!important}
html[data-theme="dark"] [style*="color:#B36B00"]{color:#F3D68A!important}
.inst-help{position:fixed;inset:0;z-index:120;background:rgba(0,0,0,.55);display:grid;place-items:center;padding:16px}
.inst-help[hidden]{display:none}
.inst-card{max-width:420px;width:100%;background:#fff;border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:8px}
.inst-card p{margin:0;font-size:14.5px;line-height:1.6;color:var(--muted)}
html[data-theme="dark"] .inst-card{background:#1E1618}
#admInstall[hidden]{display:none}

/* ভাষা সুইচ */
.langsw-a{display:inline-flex;border:1px solid var(--line,rgba(127,127,127,.35));border-radius:10px;overflow:hidden;flex:none}
.langsw-a button{min-height:36px;min-width:44px;padding:0 10px;border:0;background:transparent;color:inherit;font:inherit;font-size:13px;font-weight:700;cursor:pointer;opacity:.7}
.langsw-a button.on{background:var(--red,#D80000);color:#fff;opacity:1}
.langsw-a button[value=bn]::before{content:"\09AC\09BE\0982\09B2\09BE"}
