/*
VOICE  : উষ্ণ, আস্থাশীল, শান্ত — অভিভাবক ও শিক্ষার্থী দুজনেই নিশ্চিন্ত হবেন
IDEA   : রাতের ছাত্রাবাস ভবন — প্রতিটি জানালা একটি রুম, আলো জ্বলা মানে কেউ পড়ছে
PICTURE: জানালার গ্রিডওয়ালা ভবন; খালি রুমের জানালা কমলা আলোয় ডাকছে
COLOUR : Pacemaker-এর ভাষা — নেভি ইঙ্ক + উষ্ণ সোনালি, সাদা কার্ড, হালকা পাতা
TYPE   : Hind Siliguri (বাংলা) + Noto-র স্পষ্ট বাংলা সংখ্যা ("Bn Digits"); ল্যাটিন Manrope / Sora
LAYOUT : মোবাইল-প্রথম; Admin-এ সাইডবার/নিচের ট্যাব, কার্ড-ভিত্তিক
*/
:root {
  color-scheme: light;
  --night: #0f1d33;
  --night-2: #183356;
  --night-3: #24497a;
  --glow: #e4b65c;
  --glow-2: #eec469;
  --glow-soft: #fcf3df;
  --paper: #f6f8fb;
  --card: #ffffff;
  --card-2: #f7f9fc;
  --hover: #f1f5fa;
  --seg: #e9eef5;
  --occ: #e8eef7;
  --topbar: rgba(249,251,253,.9);
  --brand-ink: #0f1d33;
  --brand-ink-2: #183356;
  --ink: #0b1628;
  --ink-2: #2c3a4f;
  --muted: #4a5668;
  --line: #e3e8ee;
  --line-2: #eef2f7;
  --ok: #138a5a;
  --ok-soft: #e5f5ed;
  --bad: #d23f31;
  --bad-soft: #fdecea;
  --warn: #b97800;
  --warn-soft: #fff4d6;
  --info-soft: #e8eef7;
  --r: 16px;
  --r-sm: 10px;
  --sh: 0 1px 2px rgba(11,22,40,.05), 0 6px 20px rgba(11,22,40,.06);
  --sh-lg: 0 20px 60px rgba(8,15,28,.22);
  --font: "Bn Digits", "Hind Siliguri", "Manrope", system-ui, sans-serif;
  --font-head: "Bn Digits", "Hind Siliguri", "Sora", system-ui, sans-serif;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--paper); overflow-x: clip; }
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 .8em; }
a { color: var(--brand-ink-2); }
img { max-width: 100%; display: block; }
.ic { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.hidden { display: none !important; }
.req { color: var(--bad); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.grow { flex: 1; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 28px; }

/* ---------- বাটন ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border: 0; border-radius: 12px;
  background: var(--night); color: #fff; font: inherit; font-weight: 600; font-size: 16px;
  cursor: pointer; text-decoration: none; transition: transform .08s, background .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:hover { background: var(--night-2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn:focus-visible, .icon-btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(228,182,92,.45); outline-offset: 2px; }
.btn.glow { background: var(--glow); color: #fff; box-shadow: 0 6px 18px rgba(228,182,92,.35); }
.btn.glow:hover { background: #d09945; }
.btn.ghost { background: transparent; color: var(--brand-ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { background: var(--line-2); }
.btn.soft { background: var(--info-soft); color: var(--brand-ink); }
.btn.soft:hover { background: #dbe5f2; }
.btn.danger { background: var(--bad); }
.btn.wa { background: #1c9e57; }
.btn.wa:hover { background: #168449; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn.lg { min-height: 52px; font-size: 17px; }
.btn.block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: var(--line-2); }

/* ---------- ফর্ম ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--ink-2); margin-bottom: 5px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; min-height: 46px;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--night-3); }
textarea { resize: vertical; min-height: 90px; }
.check { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--brand-ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--line-2); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.seg { display: inline-flex; background: var(--line-2); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 7px 14px; border-radius: 9px; cursor: pointer; min-height: 36px; white-space: nowrap; }
.seg button.on { background: var(--card); color: var(--brand-ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* ---------- কার্ড ও তালিকা ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh); }
.kpi .k { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .k .ic { width: 16px; height: 16px; }
.kpi .v { font-size: clamp(24px, 4vw, 30px); font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 13px; color: var(--muted); }
.kpi.hero { background: linear-gradient(135deg, var(--night), var(--night-3)); color: #fff; border: 0; }
.kpi.hero .k, .kpi.hero .s { color: rgba(255,255,255,.75); }
.kpi.good .v { color: var(--ok); } .kpi.bad .v { color: var(--bad); } .kpi.glow .v { color: var(--glow); }
.bar { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: var(--glow); border-radius: 99px; }
.kpi.hero .bar { background: rgba(255,255,255,.18); }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
.list > li:last-child { border-bottom: 0; }
.list > li.click { cursor: pointer; border-radius: 10px; padding-inline: 8px; }
.list > li.click:hover { background: var(--line-2); }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--info-soft); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; font-size: 15px; }
.avatar.room { background: var(--night); color: #fff; font-size: 14px; }
.li-main { flex: 1; min-width: 0; }
.li-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-sub { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.alerts li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); color: #8e2a20; font-weight: 500; cursor: pointer; }
.alerts li.warn { background: var(--warn-soft); color: #7a5000; }
.alerts li.ok { background: var(--ok-soft); color: #0d6440; cursor: default; }
.alerts li .ic { margin-top: 2px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.badge.ok { background: var(--ok-soft); color: #0d6440; }
.badge.bad { background: var(--bad-soft); color: #a3291e; }
.badge.warn { background: var(--warn-soft); color: #7a5000; }
.badge.info { background: var(--info-soft); color: var(--brand-ink); }
.badge.glow { background: var(--glow-soft); color: #8a5a0c; }

.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
td.r, th.r { text-align: right; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--hover); }
@media (max-width: 600px) {
  table { font-size: 14px; }
  .stack thead { display: none; }
  .stack tr { display: grid; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .stack td { display: flow-root; border: 0; padding: 3px 0 3px 7.5em; text-align: left !important; }
  .stack td::before { content: attr(data-l); float: left; width: 7em; margin-left: -7.5em; color: var(--muted); font-size: 13px; }
  .stack td:empty { display: none; }
}

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; color: var(--line); margin-bottom: 6px; }
.loading { display: flex; gap: 6px; justify-content: center; padding: 40px; }
.loading span { width: 10px; height: 10px; border-radius: 50%; background: var(--night-3); animation: bounce 1s infinite; }
.loading span:nth-child(2) { animation-delay: .15s; } .loading span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-6px); } }

.stars { display: inline-flex; gap: 1px; vertical-align: -3px; }
.stars .ic { width: 16px; height: 16px; color: #d5dbe3; fill: #d5dbe3; }
.stars .ic.on { color: #f4a100; fill: #f4a100; }
.stars.lg .ic { width: 22px; height: 22px; }
.rate-pick { display: flex; gap: 6px; justify-content: center; margin: 8px 0 14px; }
.rate-pick button { border: 0; background: none; padding: 4px; cursor: pointer; }
.rate-pick .ic { width: 40px; height: 40px; color: #d5dbe3; fill: #eef2f7; transition: transform .1s; }
.rate-pick button.on .ic { color: #f4a100; fill: #f4a100; }
.rate-pick button:active .ic { transform: scale(.9); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink-2); min-height: 36px; }
.chip.on { border-color: var(--night); background: var(--night); color: #fff; }

/* ---------- রুম ম্যাপ ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.floor { margin-bottom: 18px; }
.floor-title { font-weight: 700; color: var(--ink-2); margin-bottom: 8px; font-size: 15px; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
.room { border-radius: 10px; padding: 9px 2px; text-align: center; font-weight: 700; font-size: 14px; border: 1.5px solid transparent; user-select: none; font-variant-numeric: tabular-nums; }
.room.vacant, .room.available { background: var(--glow-soft); color: #8a5a0c; border-color: #f1dcaa; }
.room.occupied, .room.unavailable { background: var(--occ); color: var(--brand-ink-2); }
.room.reserved, .room.leaving { background: var(--warn-soft); color: #7a5000; border-color: #f2dc9c; }
.room.maintenance { background: var(--seg); color: #94a0b0; text-decoration: line-through; }
.room.click { cursor: pointer; } .room.click:hover { filter: brightness(.96); }
.room.sel { outline: 3px solid var(--glow); outline-offset: 1px; }
.lg-vacant { background: #f1dcaa; } .lg-occ { background: #c7d3e3; } .lg-res { background: #f2dc9c; } .lg-maint { background: #d5dbe3; }

/* ---------- মোডাল ও টোস্ট ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(8,15,28,.55); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .18s; }
.modal-back.show { opacity: 1; }
.modal { background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); box-shadow: var(--sh-lg); transform: translateY(20px); transition: transform .2s; }
.modal-back.show .modal { transform: none; }
.modal.wide { max-width: 760px; }
.modal.small { max-width: 400px; border-radius: 18px; margin: auto 16px; }
.confirm-back { align-items: center; }
.confirm-text { font-size: 17px; font-weight: 500; margin: 4px 0 6px; }
@media (min-width: 700px) { .modal-back { align-items: center; } .modal { border-radius: 20px; padding: 22px 24px; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; position: sticky; top: -18px; background: var(--card); padding: 4px 0 8px; z-index: 2; }
.modal-head h3 { margin: 0; font-size: 20px; }
.kv { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 6px 12px; font-size: 15px; margin-bottom: 14px; }
.kv > div:nth-child(odd) { color: var(--muted); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 200; display: flex; gap: 10px; align-items: center; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: var(--sh-lg); font-weight: 500; max-width: min(92vw, 520px); transition: all .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok .ic { color: #6ee7a8; } .toast.err { background: #8e2a20; }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* ---------- লগইন ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--night); }
.auth-art { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.auth-art svg { width: 100%; height: 100%; }
.auth-card { background: var(--paper); padding: clamp(28px, 6vw, 72px) clamp(20px, 6vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.auth-card form { margin-top: 18px; }
.brand-row { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--brand-ink); text-decoration: none; margin-bottom: 26px; }
.demo-box { margin: 8px 0 18px; padding: 16px; border-radius: 14px; background: var(--glow-soft); border: 1px dashed #e8cf94; }
.demo-box .row-wrap { margin: 8px 0 4px; }
@media (max-width: 820px) {
  .auth-page { grid-template-columns: minmax(0, 1fr); grid-template-rows: 190px auto; }
  .auth-card { border-radius: 24px 24px 0 0; margin-top: -24px; position: relative; }
}

/* ---------- অ্যাপ শেল (Admin/শিক্ষার্থী) ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--night); color: #fff; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.side .brand-row { color: #fff; margin: 4px 8px 22px; font-size: 19px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: rgba(255,255,255,.78); text-decoration: none; font-weight: 500; margin-bottom: 2px; position: relative; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.on { background: rgba(255,255,255,.14); color: #fff; font-weight: 700; }
.nav-item.on::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--glow); }
.nav-item .dot { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--glow); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; font-size: 14px; }
.side-user .avatar { background: rgba(255,255,255,.14); color: #fff; }
.main { padding: 22px clamp(16px, 3vw, 36px) 110px; max-width: 1240px; width: 100%; }
.topbar { display: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h2 { margin: 0; color: var(--brand-ink); font-size: clamp(24px, 3vw, 30px); }
.page-head .sub { color: var(--muted); font-size: 14px; }
.tabbar { display: none; }
.demo-strip { background: var(--glow); color: #fff; text-align: center; font-size: 14px; padding: 6px 12px; font-weight: 500; }
.demo-strip button { background: rgba(255,255,255,.2); color: #fff; border: 0; border-radius: 8px; padding: 2px 10px; font: inherit; font-size: 13px; cursor: pointer; margin-left: 8px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 10px; background: var(--topbar); backdrop-filter: blur(10px); padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .topbar .brand-row { margin: 0; font-size: 17px; }
  .main { padding: 16px 14px calc(96px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.05); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 2px; border: 0; background: none; border-radius: 10px; position: relative; cursor: pointer; }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar .on { color: var(--brand-ink); }
  .tabbar .on .ic { color: var(--glow); }
  .tabbar .dot { position: absolute; top: 2px; right: calc(50% - 20px); min-width: 18px; height: 18px; border-radius: 99px; background: var(--glow); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
}
.sheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sheet-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; background: var(--line-2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; text-align: center; position: relative; }
.sheet-grid a .ic { width: 26px; height: 26px; color: var(--brand-ink); }
.sheet-grid a .dot { position: absolute; top: 6px; right: 8px; background: var(--glow); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 6px; }

/* ---------- ডাইনিং হাজিরা ---------- */
.meal-head { position: sticky; top: 0; z-index: 5; background: var(--paper); padding: 6px 0 10px; }
@media (max-width: 900px) { .meal-head { top: 61px; } }
.meal-count { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.meal-count div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; text-align: center; }
.meal-count b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.meal-count span { font-size: 12px; color: var(--muted); }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.att { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; text-align: left; font: inherit; color: inherit; min-height: 60px; transition: all .12s; -webkit-tap-highlight-color: transparent; }
.att .avatar { width: 44px; height: 44px; font-size: 14px; }
.att.done { background: var(--ok-soft); border-color: #9fd9bd; }
.att.done .avatar { background: var(--ok); color: #fff; }
.att.extra { background: var(--warn-soft); border-color: #f2dc9c; }
.att:active { transform: scale(.98); }
.att .tick { margin-left: auto; color: var(--ok); }

/* মিল টগল (শিক্ষার্থী) */
.day-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 10px; }
.day-card h4 { margin: 0 0 10px; font-size: 16px; display: flex; justify-content: space-between; gap: 8px; }
.slot-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot-btn { border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 6px; font: inherit; cursor: pointer; text-align: center; min-height: 64px; color: var(--ink); }
.slot-btn b { display: block; font-size: 15px; }
.slot-btn span { font-size: 12px; color: var(--muted); }
.slot-btn.on { background: var(--ok-soft); border-color: #9fd9bd; }
.slot-btn.on span { color: #0d6440; }
.slot-btn.off { background: var(--seg); }
.slot-btn.off b { color: var(--muted); text-decoration: line-through; }
.slot-btn:disabled { cursor: not-allowed; opacity: .75; }

/* শিক্ষার্থী হোম */
.hello { background: linear-gradient(140deg, var(--night), var(--night-3)); color: #fff; border-radius: 22px; padding: 20px; position: relative; overflow: hidden; margin-bottom: 16px; }
.hello h2 { color: #fff; font-size: 24px; margin: 2px 0 4px; }
.hello p { color: rgba(255,255,255,.8); margin: 0; }
.hello .win { position: absolute; right: -10px; top: -10px; width: 130px; opacity: .35; }
.meal-today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mt-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; text-align: center; }
.mt-card .t { font-size: 13px; color: var(--muted); font-weight: 600; }
.mt-card .menu { font-size: 13px; color: var(--ink-2); margin: 4px 0 8px; min-height: 2.6em; line-height: 1.3; }
@media (max-width: 420px) { .meal-today { grid-template-columns: minmax(0, 1fr); } .mt-card { display: grid; grid-template-columns: 5.5em minmax(0, 1fr) auto; align-items: center; text-align: left; gap: 8px; } .mt-card .menu { margin: 0; min-height: 0; } }

/* ---------- পাবলিক সাইট ---------- */
.site-nav { position: sticky; top: 0; z-index: 30; background: rgba(8,15,28,.92); backdrop-filter: blur(10px); color: #fff; }
.site-nav .in { max-width: 1240px; margin: 0 auto; padding: 10px max(5vw, 16px); display: flex; align-items: center; gap: 14px; }
.site-nav .brand-row { color: #fff; margin: 0; }
.site-nav nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.site-nav nav a { color: rgba(255,255,255,.82); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.site-nav nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
@media (max-width: 860px) { .site-nav nav { display: none; } .site-nav .btn { margin-left: auto; } }
.hero { background: radial-gradient(ellipse at 70% 110%, #1b3a66 0%, var(--night) 55%, #080f1c 100%); color: #fff; position: relative; overflow: hidden; }
.hero .in { max-width: 1240px; margin: 0 auto; padding: clamp(36px, 6vw, 80px) max(5vw, 16px) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 4vw, 56px); align-items: end; }
.hero-copy { padding-bottom: clamp(32px, 6vw, 80px); }
.hero h1 { color: #fff; font-size: clamp(34px, 5.4vw, 56px); line-height: 1.1; margin-bottom: 16px; }
.hero .lead { font-size: clamp(17px, 2vw, 19px); color: rgba(255,255,255,.82); max-width: 34em; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.1); padding: 6px 14px; border-radius: 99px; font-size: 14px; color: #f3dca6; margin-bottom: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.08); }
.hero-stats { display: flex; gap: 24px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 28px; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 14px; color: rgba(255,255,255,.7); }
.building { position: relative; align-self: end; }
.building svg { width: 100%; height: auto; display: block; }
.building-tag { position: absolute; top: 12%; left: 4%; background: var(--card); color: var(--ink); border-radius: 14px; padding: 10px 14px; box-shadow: var(--sh-lg); font-size: 14px; }
.building-tag b { color: var(--glow); font-size: 22px; display: block; line-height: 1.1; }
@media (max-width: 860px) { .hero .in { grid-template-columns: minmax(0, 1fr); } .hero-copy { padding-bottom: 0; } .building { margin: 0 -8px; } }
.band { padding: clamp(44px, 6vw, 84px) max(5vw, 16px); }
.band > .in { max-width: 1240px; margin: 0 auto; }
.band.white { background: var(--card); }
.band.night { background: var(--night); color: #fff; }
.band.night h2 { color: #fff; }
.band h2 { color: var(--brand-ink); }
.section-lead { color: var(--muted); max-width: 40em; margin-bottom: 24px; font-size: 17px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
@media (max-width: 600px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .feature { padding: 14px; } .feature .fi { width: 38px; height: 38px; margin-bottom: 8px; } .feature h3 { font-size: 16px; } .feature p { font-size: 13.5px; line-height: 1.45; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.feature .fi { width: 46px; height: 46px; border-radius: 14px; background: var(--glow-soft); color: var(--glow); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.feature .fi .ic { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }
.food-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
@media (max-width: 820px) { .food-wrap { grid-template-columns: minmax(0, 1fr); } }
.rating-big { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 24px; }
.rating-big .n { font-size: 64px; font-weight: 700; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.rating-big .stars .ic { width: 24px; height: 24px; }
.menu-table { width: 100%; color: #fff; }
.menu-table td { border-bottom: 1px solid rgba(255,255,255,.12); padding: 10px 8px; }
.menu-table td:first-child { color: #f3dca6; font-weight: 600; white-space: nowrap; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 820px) { .two { grid-template-columns: minmax(0, 1fr); } }
.fee-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fee-row b { color: var(--brand-ink); white-space: nowrap; }
.rules { padding-left: 0; list-style: none; margin: 0; }
.rules li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.rules li .ic { color: var(--glow); margin-top: 3px; }
.apply-card { max-width: 820px; margin: 0 auto; background: var(--card); border-radius: 24px; padding: clamp(20px, 4vw, 40px); box-shadow: var(--sh-lg); color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 8px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }
.footer { background: #080f1c; color: rgba(255,255,255,.7); padding: 30px max(5vw, 16px) 90px; font-size: 14px; }
.footer .in { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer a { color: rgba(255,255,255,.85); }
.float-wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #1c9e57; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.float-wa .ic { width: 28px; height: 28px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.win-glow { animation: flicker 3.5s ease-in-out infinite; }
@media (max-width: 600px) {
  .att-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .att { padding: 8px; gap: 8px; min-height: 56px; }
  .att .avatar { width: 38px; height: 38px; font-size: 13px; border-radius: 10px; }
  .att .li-title { font-size: 14px; }
  .att .li-sub { font-size: 12px; }
  .att .tick { display: none; }
}
.lang-switch { display: inline-flex; background: rgba(255,255,255,.12); border-radius: 10px; padding: 3px; gap: 2px; margin-left: 6px; flex: none; }
.lang-switch button { border: 0; background: transparent; color: rgba(255,255,255,.8); font: inherit; font-size: 14px; font-weight: 700; padding: 5px 10px; border-radius: 8px; cursor: pointer; min-height: 34px; }
.lang-switch button.on { background: #fff; color: var(--night); }
@media (max-width: 860px) { .site-nav .lang-switch { margin-left: auto; } .site-nav .nav-apply { margin-left: 0; } }
@media (max-width: 400px) { .site-nav .brand-row span { font-size: 17px; } .site-nav .nav-apply { padding: 6px 10px; } }
.hero-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #fff; text-decoration: none; font-size: 15px; }
.hero-phone .ic { color: var(--glow-2); }
.hero-phone span { color: rgba(255,255,255,.75); }
.hero-phone b { font-size: 19px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.fee-note { display: block; font-size: 14px; color: var(--ok); margin-top: 2px; }
.fee-row.fee-plain { justify-content: flex-start; align-items: center; color: var(--ok); font-weight: 600; background: var(--ok-soft); border-radius: 12px; padding: 12px 14px; border-bottom: 0; margin-top: 10px; }
.fee-row.fee-plain .ic { color: var(--ok); }
.rules-consent { background: var(--line-2); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.rules-consent summary { cursor: pointer; font-weight: 600; color: var(--brand-ink); display: flex; gap: 8px; align-items: center; }
.rules-consent .check { margin: 12px 0 2px; }
.rules-list { margin: 10px 0; padding-left: 22px; color: var(--ink-2); font-size: 15px; }
.rules-list li { margin-bottom: 8px; }
.rules-list.big { font-size: 16px; color: var(--ink); }
.rules-list.big li { padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.consent-page { min-height: 100vh; background: var(--night); display: flex; align-items: center; justify-content: center; padding: 20px 14px; }
.consent-card { background: var(--paper); border-radius: 22px; padding: clamp(20px, 5vw, 36px); width: 100%; max-width: 640px; box-shadow: var(--sh-lg); }
.consent-card h1 { font-size: 26px; color: var(--brand-ink); }
.rule-card { display: flex; gap: 12px; align-items: flex-start; background: var(--warn-soft); border: 1px solid #f2dc9c; color: #6b4600; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.rule-card p { margin: 2px 0 0; }
.rule-edit { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: start; margin-bottom: 10px; }
.rule-no { width: 28px; height: 28px; border-radius: 8px; background: var(--night); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-top: 8px; }
.rule-edit textarea { min-height: 60px; }
.rule-act { display: flex; flex-direction: column; gap: 2px; }
.rule-act .icon-btn { width: 34px; height: 30px; font-weight: 700; }
.rule-act .icon-btn:disabled { opacity: .3; }
@media (max-width: 520px) { .rule-act { flex-direction: row; grid-column: 2; } .rule-edit { grid-template-columns: 30px minmax(0, 1fr); } }
.nav-login { display: inline-flex; align-items: center; gap: 6px; flex: none; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 7px 14px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.55); background: rgba(255,255,255,.08); min-height: 38px; }
.nav-login:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.nav-login .ic { width: 18px; height: 18px; }
@media (max-width: 600px) { .site-nav .nav-apply { display: none; } .site-nav .in { gap: 8px; } }
@media (max-width: 380px) { .site-nav .brand-row span { display: none; } }
.footer-login { color: #fff !important; border-color: rgba(255,255,255,.35); text-decoration: none; }
.footer-login:hover { background: rgba(255,255,255,.1); }
.side .site-link { margin-top: 14px; border: 1px dashed rgba(255,255,255,.25); }
.top-home { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; color: var(--brand-ink); font-weight: 600; font-size: 14px; padding: 7px 10px; border-radius: 10px; background: var(--info-soft); }
.top-home .ic { width: 18px; height: 18px; }
.next-meal { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; background: linear-gradient(120deg, #e4b65c, #eec469); border-radius: 18px; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 10px 26px rgba(228,182,92,.28); }
.next-meal .nm-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; flex: none; }
.next-meal .nm-icon .ic { width: 28px; height: 28px; }
.next-meal .nm-main { flex: 1; min-width: 0; }
.next-meal .nm-k { font-size: 14px; font-weight: 600; opacity: .9; }
.next-meal .nm-v { font-size: clamp(20px, 4.5vw, 26px); line-height: 1.25; }
.next-meal .nm-v b { font-size: 1.25em; }
.next-meal .nm-s { font-size: 13px; opacity: .92; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.next-meal .nm-s .ic { width: 14px; height: 14px; }
.next-meal .nm-off { text-align: center; font-size: 12px; background: rgba(255,255,255,.18); border-radius: 12px; padding: 8px 10px; flex: none; }
.next-meal .nm-off b { font-size: 20px; }
.meal-cta, .refer-cta { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
.meal-cta span, .refer-cta span { flex: 1; min-width: 0; }
.meal-cta b, .refer-cta b { display: block; font-size: 17px; }
.meal-cta small, .refer-cta small { display: block; font-size: 13px; line-height: 1.4; opacity: .9; }
.meal-cta > .ic:first-child, .refer-cta > .ic:first-child { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.22); flex: none; }
.meal-cta { background: linear-gradient(120deg, var(--ok), #1fb574); color: #fff; box-shadow: 0 8px 22px rgba(19,138,90,.28); }
.refer-cta { background: linear-gradient(120deg, #e4b65c, #eec469); color: #fff; box-shadow: 0 8px 22px rgba(228,182,92,.28); }
.meal-cta:active, .refer-cta:active { transform: scale(.99); }

/* =====================================================================
   Pacemaker-ধাঁচের ডিজাইন — নেভি ইঙ্ক + উষ্ণ সোনালি
   (pacemakerbd.pages.dev-এর মতো: গাঢ় নেভি হেডার/হিরো, সোনালি মূল বাটন,
   হালকা পাতায় সাদা কার্ড, নরম ছায়া, গোল কোণ)
   ===================================================================== */
@font-face { font-family: "Bn Digits"; font-weight: 400; font-display: swap; unicode-range: U+09E6-09EF; src: url("../fonts/bn-digits-400.woff2") format("woff2"); }
@font-face { font-family: "Bn Digits"; font-weight: 500; font-display: swap; unicode-range: U+09E6-09EF; src: url("../fonts/bn-digits-500.woff2") format("woff2"); }
@font-face { font-family: "Bn Digits"; font-weight: 600; font-display: swap; unicode-range: U+09E6-09EF; src: url("../fonts/bn-digits-600.woff2") format("woff2"); }
@font-face { font-family: "Bn Digits"; font-weight: 700; font-display: swap; unicode-range: U+09E6-09EF; src: url("../fonts/bn-digits-700.woff2") format("woff2"); }

:root {
  --ink-deep: #080f1c;       /* লোগোর পটভূমি */
  --navy: #183356;           /* অ্যাপের মূল বাটন */
  --navy-hover: #1f4170;
  --gold: #e4b65c;
  --gold-ink: #8a5a0c;       /* হালকা পটে সোনালি লেখা */
  --gold-line: #f1dcaa;
  --sidebar: #0a1730;
  --sidebar-acc: #16294a;
  --r: 14px;
  --r-sm: 10px;
  --sh: 0 1px 2px rgba(11,22,40,.05), 0 12px 32px -16px rgba(24,51,86,.30);
  --sh-hover: 0 2px 4px rgba(11,22,40,.06), 0 18px 40px -18px rgba(24,51,86,.38);
  --aurora: radial-gradient(120% 90% at 100% 0%, rgba(228,182,92,.26) 0%, transparent 55%), linear-gradient(150deg, #0c1a30 0%, #15305a 65%, #1b3c68 100%);
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: 0; }
body { -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(228,182,92,.3); }
:focus-visible { outline: 2px solid #3977a8; outline-offset: 2px; }

/* ---------- বাটন ---------- */
.btn { background: var(--navy); border-radius: 12px; transition: transform .12s, background .15s, box-shadow .15s, filter .15s; }
.btn:hover { background: var(--navy-hover); }
.btn.glow { background: var(--gold); color: var(--ink-deep); font-weight: 700; box-shadow: 0 12px 28px -12px var(--gold); }
.btn.glow:hover { background: var(--gold); filter: brightness(1.05); transform: translateY(-1px); }
.btn.ghost { background: var(--card); color: var(--navy); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--hover); }
.btn.soft { background: var(--info-soft); color: var(--navy); }
.btn.call { background: #128a5a; color: #fff; }
.btn.call:hover { background: #0f7a4f; }
.btn.lg { min-height: 54px; border-radius: 16px; padding-inline: 24px; }
.btn.danger { background: var(--bad); }
.icon-btn:hover { background: var(--hover); }
input, select, textarea { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
input:focus, select:focus, textarea:focus { border-color: #3977a8; box-shadow: 0 0 0 3px rgba(57,119,168,.15); }
.seg { background: var(--seg); border-radius: 12px; }
.seg button.on { background: var(--card); color: var(--navy); box-shadow: 0 1px 3px rgba(11,22,40,.1); }
.chip.on { background: var(--navy); border-color: var(--navy); }

/* ---------- কার্ড, KPI, তালিকা ---------- */
.card, .kpi, .feature, .faq details, .meal-count div, .mt-card, .day-card, .att, .slot-btn, .sheet-grid a { border: 1px solid var(--line); }
.card { border-radius: var(--r); box-shadow: var(--sh); }
.kpi { border-radius: var(--r); box-shadow: var(--sh); position: relative; overflow: hidden; }
.kpi .k .ic { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--info-soft); color: var(--navy); }
.kpi.good .k .ic { background: var(--ok-soft); color: var(--ok); }
.kpi.bad .k .ic { background: var(--bad-soft); color: var(--bad); }
.kpi.glow .k .ic { background: var(--glow-soft); color: #b7862f; }
.kpi.glow .v { color: #b7862f; }
.kpi.hero { background: var(--ink-deep); border: 0; box-shadow: 0 18px 40px -20px rgba(8,15,28,.8); }
.kpi.hero .v { color: var(--gold); }
.kpi.hero .k .ic { background: rgba(255,255,255,.08); color: var(--gold); }
.bar > i { background: var(--gold); }
.avatar { border-radius: 12px; background: var(--info-soft); color: var(--navy); }
.avatar.room { background: linear-gradient(135deg, #1b3a66, var(--ink-deep)); color: var(--gold); }
.list > li.click:hover { background: var(--hover); }
.badge { border-radius: 99px; font-weight: 600; }
.badge.glow { background: var(--glow-soft); color: #b7862f; }
.badge.info { background: var(--info-soft); color: var(--navy); }
th { background: var(--card-2); font-weight: 600; }
tbody tr:nth-child(even) td { background: var(--card-2); }
.menu-table tbody tr td, .band.night tbody tr td { background: transparent; }
.empty .ic { width: 56px; height: 56px; padding: 12px; border-radius: 16px; background: var(--info-soft); color: var(--navy); }
.modal { border-radius: 22px 22px 0 0; }
@media (min-width: 700px) { .modal { border-radius: 20px; } }
.modal-back { background: rgba(8,15,28,.55); backdrop-filter: blur(3px); }
.toast { background: var(--ink-deep); border-radius: 14px; }
.toast.ok .ic { color: var(--gold); }
.page-head h2 { color: var(--brand-ink); font-weight: 700; }
.alerts li { border-radius: 12px; }
.rule-card { border-radius: 12px; }

/* ---------- অ্যাপ শেল ---------- */
.demo-strip { background: var(--glow-soft); color: var(--gold-ink); border-bottom: 1px solid var(--gold-line); font-weight: 600; }
.demo-strip button { background: var(--ink-deep); color: #fff; }
.side { background: var(--sidebar); }
.side .brand-row { color: #fff; }
.nav-item { border-radius: 10px; color: rgba(236,241,248,.75); font-size: 15px; padding: 10px 12px; }
.nav-item:hover { background: rgba(22,41,74,.6); color: #fff; }
.nav-item.on { background: var(--sidebar-acc); color: #fff; font-weight: 600; }
.nav-item.on::before { display: none; }
.nav-item.on .ic { color: var(--gold); }
.nav-item .dot, .tabbar .dot, .sheet-grid a .dot { background: var(--gold); color: var(--ink-deep); }
.side .site-link { border: 1px dashed rgba(255,255,255,.18); }
.side-foot { border-top-color: rgba(255,255,255,.07); }
.side-user .avatar { background: rgba(255,255,255,.08); color: var(--gold); }
@media (max-width: 900px) {
  .topbar { background: var(--sidebar); border-bottom: 0; }
  .topbar .brand-row { color: #fff; }
  .topbar .icon-btn { color: rgba(255,255,255,.85); }
  .topbar .icon-btn:hover { background: rgba(255,255,255,.08); }
  .tabbar { border-top: 1px solid var(--line); background: var(--card); box-shadow: 0 -8px 24px -12px rgba(11,22,40,.18); }
  .tabbar .on { color: var(--navy); }
  .tabbar .on .ic { color: var(--navy); }
  .tabbar .on::after { content: ""; position: absolute; top: -6px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
  .meal-head { top: 60px; }
}
.top-home { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 99px; padding: 6px 12px; }
.top-home:hover { background: rgba(255,255,255,.14); }
.sheet-grid a { background: var(--card); box-shadow: var(--sh); }
.sheet-grid a .ic { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--ink-deep); color: var(--gold); }

/* ড্যাশবোর্ড: পরের মিল */
.next-meal { background: var(--aurora); box-shadow: 0 18px 40px -20px rgba(8,15,28,.7); border-radius: 18px; }
.next-meal .nm-icon { background: rgba(228,182,92,.16); color: var(--gold); }
.next-meal .nm-k { color: var(--gold); opacity: 1; }
.next-meal .nm-v b { color: var(--gold); }
.next-meal .nm-off { background: rgba(255,255,255,.08); }

/* ডাইনিং ও রুম */
.att { border-radius: 14px; background: var(--card); }
.att:hover { border-color: #c7d3e3; }
.att.done { background: var(--ok-soft); border-color: #9fd9bd; }
.att.done .avatar { background: var(--ok); color: #fff; }
.room { border-radius: 10px; border: 1px solid transparent; transition: transform .12s; }
.room.click:hover { transform: translateY(-1px); }
.room.vacant, .room.available { background: var(--glow-soft); color: var(--gold-ink); border-color: var(--gold-line); }
.room.occupied, .room.unavailable { background: var(--occ); color: var(--navy); }
.lg-vacant { background: var(--gold-line); } .lg-occ { background: #c7d3e3; }
.floor-title { display: flex; align-items: center; gap: 10px; }
.floor-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* শিক্ষার্থী */
.hello { background: var(--aurora); border-radius: 20px; box-shadow: 0 18px 40px -20px rgba(8,15,28,.7); }
.hello p:first-of-type { color: var(--gold); font-weight: 600; }
.slot-btn { border-radius: 14px; background: var(--card); }
.slot-btn.on { background: var(--ok-soft); border-color: #9fd9bd; }
.meal-cta { background: var(--aurora); box-shadow: 0 14px 30px -16px rgba(8,15,28,.7); }
.meal-cta > .ic:first-child { background: rgba(228,182,92,.18); color: var(--gold); }
.meal-cta b { color: #fff; }
.refer-cta { background: linear-gradient(135deg, #eec469, var(--gold) 55%, #d09945); color: var(--ink-deep); box-shadow: 0 14px 30px -14px var(--gold); }
.refer-cta > .ic:first-child { background: rgba(255,255,255,.35); }
.mt-card, .day-card, .meal-count div { box-shadow: var(--sh); }
.consent-page { background: var(--aurora); }

/* লগইন */
.auth-page { background: var(--ink-deep); }
.auth-art { background: radial-gradient(60% 80% at 90% 0%, rgba(228,182,92,.18), transparent), radial-gradient(50% 70% at 0% 100%, rgba(24,51,86,.9), transparent); }
.auth-card h1 { color: var(--brand-ink); }
.demo-box { background: var(--glow-soft); border: 1px solid var(--gold-line); border-radius: 16px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 26px; }
.auth-top .brand-row { margin-bottom: 0; }

/* ---------- পাবলিক ওয়েবসাইট ---------- */
.site-nav { background: rgba(8,15,28,.9); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-nav .in { max-width: 1152px; }
.site-nav nav a { border-radius: 99px; padding: 8px 14px; font-size: 15px; color: rgba(255,255,255,.8); }
.site-nav nav a:hover { color: #fff; background: transparent; }
.nav-login { border-radius: 99px; border: 1px solid rgba(255,255,255,.18); background: transparent; font-weight: 600; }
.nav-login:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.site-nav .nav-apply { border-radius: 99px; }
.lang-switch { background: rgba(255,255,255,.08); border-radius: 99px; }
.lang-switch button { border-radius: 99px; }
.lang-switch button.on { background: var(--gold); color: var(--ink-deep); }
.hero { background: var(--ink-deep); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 70% at 85% 10%, rgba(228,182,92,.2), transparent), radial-gradient(60% 80% at 0% 100%, rgba(24,51,86,.95), transparent); }
.hero .in { position: relative; max-width: 1152px; }
.hero .eyebrow { background: rgba(228,182,92,.1); border: 1px solid rgba(228,182,92,.3); color: var(--gold); font-weight: 700; font-size: 13px; }
.hero .eyebrow .ic { width: 15px; height: 15px; }
.hero h1 { font-weight: 700; line-height: 1.18; }
.hero .lead { color: rgba(255,255,255,.75); }
.hero-cta .btn.lg { min-height: 56px; }
.hero .btn.ghost { background: rgba(255,255,255,.05); color: #fff; border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(6px); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.1); }
.hero-phone .ic { color: var(--gold); }
.hero-stats { gap: 0; margin-top: 30px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 6px; display: inline-flex; }
.hero-stats > div { padding: 10px 18px; border-radius: 14px; }
.hero-stats > div:first-child { background: rgba(228,182,92,.12); }
.hero-stats > div:first-child b { color: var(--gold); }
.hero-stats b { font-size: 26px; }
.building-tag { background: #fff; color: var(--ink); border-radius: 16px; }
.building-tag b { color: #b7862f; }
.band > .in { max-width: 1152px; }
.band { background: transparent; }
.band.white { background: #fff; }
.band.night { background: var(--ink-deep); position: relative; overflow: hidden; }
.band.night::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 90% 0%, rgba(228,182,92,.16), transparent), radial-gradient(50% 70% at 0% 100%, rgba(24,51,86,.9), transparent); }
.band.night > .in { position: relative; }
.band h2 { color: var(--brand-ink); font-size: clamp(26px, 3.6vw, 38px); }
.band h2::before { content: ""; display: block; width: 28px; height: 2px; background: var(--gold); margin-bottom: 14px; }
.band.night h2 { color: #fff; }
.feature { border-radius: 18px; box-shadow: 0 1px 2px rgba(11,22,40,.04); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--sh-hover); }
.feature .fi { width: 44px; height: 44px; border-radius: 12px; background: var(--ink-deep); color: var(--gold); }
.rating-big { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; backdrop-filter: blur(10px); }
.rating-big .n { color: var(--gold); }
.menu-table td { color: rgba(255,255,255,.9); border-bottom-color: rgba(255,255,255,.08); }
.menu-table td:first-child { color: var(--gold); }
.fee-row b { color: var(--navy); }
.apply-card { border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.apply-card h2 { color: var(--brand-ink); }
.faq details { border-radius: 16px; box-shadow: none; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--gold-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.footer { background: var(--ink-deep); }
.footer a { color: rgba(255,255,255,.8); }
.footer .btn.ghost, .hero .btn.ghost, .band.night .btn.ghost { background: rgba(255,255,255,.05); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.float-wa { width: 54px; height: 54px; background: #128a5a; box-shadow: 0 12px 30px -8px rgba(18,138,90,.7); }
.room.sel { outline: 3px solid var(--gold); }

/* ---------- দিন / রাতের মোড বোতাম ---------- */
.theme-btn { width: 38px; height: 38px; border-radius: 99px; border: 1px solid var(--line); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--card); color: var(--navy); }
.theme-btn .ic { width: 18px; height: 18px; }
.theme-btn .t-sun { display: none; }
html[data-theme="dark"] .theme-btn .t-sun { display: block; }
html[data-theme="dark"] .theme-btn .t-moon { display: none; }
.site-nav .theme-btn, .topbar .theme-btn { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.15); }
.side .side-theme { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; margin-bottom: 8px; border: 0; border-radius: 10px; background: rgba(255,255,255,.05); color: rgba(236,241,248,.8); font: inherit; font-size: 15px; cursor: pointer; }
.side .side-theme:hover { background: rgba(255,255,255,.1); color: #fff; }
.side .side-theme .ic { width: 18px; height: 18px; color: var(--gold); }
.side-theme .t-sun, .side-theme .l-day { display: none; }
html[data-theme="dark"] .side-theme .t-sun, html[data-theme="dark"] .side-theme .l-day { display: inline; }
html[data-theme="dark"] .side-theme .t-moon, html[data-theme="dark"] .side-theme .l-night { display: none; }

/* ---------- রাতের মোড (Pacemaker-এর .dark-এর মতো) ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #071225; --card: #0d1b33; --card-2: #10203b; --hover: #142744; --seg: #091629; --occ: #15284a;
  --topbar: rgba(7,18,37,.9);
  --ink: #edf2f8; --ink-2: #c3cedb; --muted: #aeb9c4;
  --line: rgba(255,255,255,.1); --line-2: rgba(255,255,255,.06);
  --navy: #3f7fbf; --navy-hover: #4b8dcf;
  --brand-ink: #edf2f8; --brand-ink-2: #8fb8e6;
  --ok: #37b880; --ok-soft: #0f3326; --bad: #f14d4c; --bad-soft: #3a1717; --warn-soft: #382a0e;
  --info-soft: #15284a; --glow-soft: #33280f; --gold-ink: #eec469; --gold-line: #5b4517;
  --sidebar: #091428; --sidebar-acc: #15243c;
  --sh: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -16px rgba(0,0,0,.6);
  --sh-hover: 0 2px 4px rgba(0,0,0,.3), 0 18px 40px -18px rgba(0,0,0,.7);
  --sh-lg: 0 20px 60px rgba(0,0,0,.6);
}
html[data-theme="dark"] .band.white { background: #0a172c; }
html[data-theme="dark"] .building-tag { background: var(--card); color: var(--ink); }
html[data-theme="dark"] .btn.ghost, html[data-theme="dark"] .btn.soft { color: #cfe0f3; }
html[data-theme="dark"] .fee-row b, html[data-theme="dark"] .seg button.on, html[data-theme="dark"] .tabbar .on, html[data-theme="dark"] .tabbar .on .ic, html[data-theme="dark"] .avatar, html[data-theme="dark"] .badge.info, html[data-theme="dark"] .kpi .k .ic, html[data-theme="dark"] .empty .ic { color: #cfe0f3; }
html[data-theme="dark"] .theme-btn { color: var(--gold); }
html[data-theme="dark"] .alerts li { color: #ffb4aa; }
html[data-theme="dark"] .alerts li.warn, html[data-theme="dark"] .badge.warn, html[data-theme="dark"] .rule-card { color: #f5d27a; }
html[data-theme="dark"] .alerts li.ok, html[data-theme="dark"] .badge.ok, html[data-theme="dark"] .slot-btn.on span { color: #7fe0b2; }
html[data-theme="dark"] .badge.bad { color: #ffaaa1; }
html[data-theme="dark"] .rule-card, html[data-theme="dark"] .att.extra, html[data-theme="dark"] .room.reserved, html[data-theme="dark"] .room.leaving { border-color: #5a4614; }
html[data-theme="dark"] .room.reserved, html[data-theme="dark"] .room.leaving { color: #f5d27a; }
html[data-theme="dark"] .room.occupied, html[data-theme="dark"] .room.unavailable { color: #a9c3e6; }
html[data-theme="dark"] .room.maintenance { color: #6f8297; }
html[data-theme="dark"] .att.done, html[data-theme="dark"] .slot-btn.on { border-color: #1f6b4b; }
html[data-theme="dark"] .stars .ic { color: #2f4057; fill: #2f4057; }
html[data-theme="dark"] .stars .ic.on, html[data-theme="dark"] .rate-pick button.on .ic { color: #f4a100; fill: #f4a100; }
html[data-theme="dark"] .rate-pick .ic { color: #2f4057; fill: #15243c; }
html[data-theme="dark"] .lg-occ { background: #2a4366; } html[data-theme="dark"] .lg-res { background: #5a4614; } html[data-theme="dark"] .lg-maint { background: #2f3c4f; }
html[data-theme="dark"] .tabbar { box-shadow: 0 -8px 24px -12px rgba(0,0,0,.6); }
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: #7b8aa0; }
html[data-theme="dark"] .att:hover { border-color: rgba(255,255,255,.2); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.band.night .apply-card h2 { color: var(--brand-ink); }

/* ---------- ইনস্টল / নোটিফিকেশন গেট ---------- */
.gate-card h1 { margin-top: 6px; }
.g-steps { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; }
.g-steps i { flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.g-step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.g-step b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 1.5px solid var(--line); font-size: 14px; }
.g-step b svg { width: 16px; height: 16px; }
.g-step.on { color: var(--brand-ink); }
.g-step.on b { background: var(--gold); border-color: var(--gold); color: #1b1300; }
.g-step.done b { background: #16a34a; border-color: #16a34a; color: #fff; }
.g-list { margin: 14px 0; padding-left: 22px; display: grid; gap: 10px; line-height: 1.6; }
.g-list svg { width: 16px; height: 16px; vertical-align: -3px; }
.g-ok { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(22,163,74,.12); color: inherit; margin: 14px 0; line-height: 1.6; }
.g-ok svg { flex: none; width: 20px; height: 20px; color: #16a34a; margin-top: 2px; }
.g-ok.soft { background: var(--card-2); }
.g-ok.soft svg { color: #b7862f; }
.badge.nopush { background: rgba(220,38,38,.1); color: #dc2626; }
.gate-card [hidden] { display: none !important; }
