/* ===== নতুন ড্যাশবোর্ড (অ্যাপ-স্টাইল) + ব্যানার স্লাইডার ===== */
:root{--nd:#0a2fd1;--nd2:#3b6cf5;--nd-soft:#eef2ff;--nd-tile:#f7f8fc;--nd-line:#e6e9f3}

/* ---------- ব্যানার স্লাইডার (সব শিক্ষার্থী পেজে) ---------- */
.nbn-wrap{position:relative;margin:0 0 16px}
.nbn{position:relative;overflow:hidden;border-radius:18px;background:#e9edf7;aspect-ratio:5/2;box-shadow:0 6px 18px rgba(15,23,60,.13);touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.nbn.auto{aspect-ratio:auto;border-radius:20px;background:#0a2fd1;box-shadow:0 8px 22px rgba(10,47,209,.22)}
.nbn-track{display:flex;height:100%;transition:transform .55s cubic-bezier(.4,0,.2,1);will-change:transform}
.nbn-slide{flex:0 0 100%;min-width:0;height:100%;position:relative}
.nbn-slide.img img{width:100%;height:100%;object-fit:cover;display:block;user-select:none;-webkit-user-drag:none}
.nbn.auto .nbn-slide{display:flex;height:auto}
.nbn.auto .nbn-slide>.brandplate{flex:1;margin:0;border-radius:0;box-shadow:none}
.nbn.auto .nbn-slide.img{line-height:0}
.nbn.auto .nbn-slide.img img{height:100%;max-height:280px}
.nbn-dots{display:flex;justify-content:center;gap:6px;margin-top:10px}
.nbn-dots button{width:9px;height:9px;padding:0;border:0;border-radius:99px;background:#c9ced9;cursor:pointer;transition:width .25s,background .25s}
.nbn-dots button.on{width:22px;background:var(--nd)}
.nbn-wrap.plate .nbn-dots{position:absolute;left:0;right:0;bottom:10px;margin:0;z-index:3;pointer-events:none}
.nbn-wrap.plate .nbn-dots button{pointer-events:auto;background:rgba(255,255,255,.55);box-shadow:0 1px 3px rgba(0,0,0,.4)}
.nbn-wrap.plate .nbn-dots button.on{background:#fff}
@media(prefers-reduced-motion:reduce){.nbn-track{transition:none}}

/* ডিফল্ট ব্যানার (এডমিন ছবি না দিলে) */
.nbd{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 5%;color:#fff}
.nbd-bg{position:absolute;inset:0;width:100%;height:100%}
.nbd-t{position:relative;display:grid;gap:3px;min-width:0}
.nbd-t b{font-size:clamp(1.05rem,5.2vw,1.5rem);line-height:1.2;font-weight:700}
.nbd-t small{font-size:clamp(.68rem,3vw,.85rem);opacity:.92;line-height:1.35}
.nbd-t em{justify-self:start;margin-top:5px;font-style:normal;font-weight:700;font-size:.78rem;background:#fff;color:var(--nd);padding:4px 13px;border-radius:99px}
.nbd-logo{position:relative;width:min(24%,92px);aspect-ratio:1;border-radius:50%;border:3px solid rgba(255,255,255,.85);background:#fff;object-fit:cover;flex:none}

/* ---------- ড্যাশবোর্ড পেজ ---------- */
body.nd{background:#fff}
.ndp{padding:0}
.ndw{max-width:560px;margin:0 auto;padding:0 16px 8px}
.ndw .flash{margin-top:12px}

.nhero{position:relative;margin:0 -16px;height:214px;overflow:hidden;background:#dfe9ff}
.nhero-art{position:absolute;inset:0;width:100%;height:100%}
.nhero-in{position:relative;display:flex;align-items:center;gap:12px;padding:calc(14px + env(safe-area-inset-top,0px)) 16px 0}
.nhero-logo{width:54px;height:54px;flex:none;border-radius:50%;background:#fff;padding:3px;box-shadow:0 3px 12px rgba(10,47,209,.25)}
.nhero-logo img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.nhero-who{min-width:0;flex:1;line-height:1.25}
.nhero-who small{display:block;font-size:1.05rem;font-weight:500;color:#33415c}
.nhero-who b{display:block;font-size:1.02rem;font-weight:600;color:#10183a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nhero-who .lvchip{margin-top:3px}
.nbell{position:relative;flex:none;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:#10183a;background:rgba(255,255,255,.55);backdrop-filter:blur(4px)}
.nbell svg{width:26px;height:26px}
.nbell b{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;padding:0 4px;border-radius:99px;background:#ef4444;color:#fff;font-size:.68rem;line-height:18px;text-align:center;font-weight:700;border:2px solid #fff;box-sizing:content-box}

.nbal{position:relative;z-index:2;display:flex;align-items:center;gap:14px;width:100%;margin:-40px 0 20px;padding:13px 16px;background:#fff;border:1px solid #edf0f7;border-radius:16px;box-shadow:0 8px 24px rgba(15,23,60,.12);font:inherit;text-align:left;cursor:pointer;color:inherit}
.nbal-ic{width:46px;height:46px;flex:none;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,var(--nd2),var(--nd));color:#fff;font-size:1.45rem;font-weight:700;box-shadow:0 4px 10px rgba(10,47,209,.35)}
.nbal-t{flex:1;min-width:0;font-size:1.28rem;font-weight:500;color:#8a93a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nbal.show .nbal-t{color:#10183a;font-weight:700;font-size:1.5rem}
.nbal-s{flex:none;font-size:.72rem;color:#8a93a6;max-width:70px;line-height:1.2;text-align:right}
.nbal.show .nbal-s{display:none}

.ng{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.ng a,.ng button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:9px;min-height:106px;padding:15px 3px 11px;background:var(--nd-tile);border:1px solid var(--nd-line);border-radius:16px;box-shadow:0 2px 6px rgba(15,23,60,.04);font:inherit;font-size:.8rem;font-weight:500;line-height:1.25;text-align:center;color:#1b2133;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ng a:active,.ng button:active{background:var(--nd-soft)}
.ng svg{width:36px;height:36px;color:var(--nd);flex:none}
.ng .dis{opacity:.5}
.ng .nbadge{position:absolute;top:6px;right:8px}
.nh{margin:24px 2px 12px;font-size:1.2rem;font-weight:600;color:#33415c}

.ndsec{margin-top:6px}
.nd .dh{font-size:1.1rem;font-weight:600;color:#33415c;margin:26px 2px 10px}
.nd .card{border-radius:16px;box-shadow:0 2px 8px rgba(15,23,60,.05)}
.nd .dstats .ds{border-radius:16px}
.nd .bcards{margin-top:0}

/* নিচের নেভিগেশন */
.nbnav{display:none}
.nsh{display:none}
@media(max-width:899px){
  body.nd{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}
  .nd .mh,.nd .bnav,.nd .foot,.nd .wa{display:none}
  .nd .ov,.nd .drawer{display:none}
  .nbnav{position:fixed;left:0;right:0;bottom:0;z-index:45;display:grid;grid-template-columns:1fr 1fr 86px 1fr 1fr;align-items:stretch;height:calc(64px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:#fff;border-top:1px solid #eceff6;box-shadow:0 -4px 18px rgba(15,23,60,.07)}
  .nbnav .t{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:0;background:none;border:0;font:inherit;font-size:.74rem;font-weight:500;color:#7b8498;-webkit-tap-highlight-color:transparent}
  .nbnav .t svg{width:26px;height:26px}
  .nbnav .t.on{color:var(--nd);font-weight:600}
  .nbnav .fabw{position:relative}
  .nbnav .fab{position:absolute;left:50%;top:-28px;transform:translateX(-50%);width:62px;height:62px;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(160deg,var(--nd2),var(--nd));border:4px solid #fff;box-shadow:0 8px 20px rgba(10,47,209,.4)}
  .nbnav .fab svg{width:30px;height:30px}
  .nsh.open{display:block;position:fixed;inset:0;z-index:70}
  .nsh-ov{position:absolute;inset:0;background:rgba(10,20,50,.5)}
  .nsh-p{position:absolute;left:0;right:0;bottom:0;max-height:82vh;overflow:auto;background:#fff;border-radius:22px 22px 0 0;padding:10px 16px calc(18px + env(safe-area-inset-bottom,0px));animation:nshup .24s ease-out}
  .nsh-p>i{display:block;width:42px;height:4px;border-radius:9px;background:#d5d9e4;margin:0 auto 12px}
  .nsh-p h4{margin:0 0 12px;font-size:1.05rem;color:#33415c}
  .nsh-out{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:14px;padding:12px;border:1px solid #f1c4c4;border-radius:14px;background:#fff5f5;color:#b42318;font:inherit;font-weight:600;cursor:pointer}
  .nsh-out svg{width:20px;height:20px}
}
@keyframes nshup{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
@media(min-width:900px){
  .ndw{max-width:640px}
  .nhero{margin:0;border-radius:0 0 22px 22px}
  .nbal{margin-top:-36px}
  .nd-menu-m{display:none}
}
@media(max-width:360px){.ng{gap:7px}.ng a,.ng button{font-size:.74rem;min-height:98px}.ng svg{width:32px;height:32px}.nbal-t{font-size:1.1rem}}
@media(max-width:899px){.nd-out-d{display:none}}

/* ---- সাব-পেজের টপবার ও সুইচ ---- */
.nbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:10px;margin:0 -16px 14px;padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px;background:#fff;border-bottom:1px solid #eceff6}
.nbar h2{margin:0;font-size:1.15rem;font-weight:600;color:#10183a}
.nbar-back{width:40px;height:40px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--nd-soft);color:var(--nd)}
.nbar-back svg{width:22px;height:22px}
.nd .s2 .wrap.dash{max-width:560px}
.nsw{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding:12px 14px;border:1px solid var(--nd-line);border-radius:14px;background:var(--nd-tile);color:#1b2133;font-weight:600}
.nsw i{position:relative;width:44px;height:26px;border-radius:99px;background:#cfd5e3;flex:none}
.nsw i::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3)}
@media(min-width:900px){.nbar{top:var(--hh,64px);margin:0 0 14px;border-radius:14px;border:1px solid #eceff6}}
