@font-face {
  font-family: "SolaimanLipi";
  src: local("SolaimanLipi"),
       url("https://cdn.jsdelivr.net/gh/mdminhazulhaque/solaimanlipi@gh-pages/fonts/solaimanlipi.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* Smart Shop — আসল বিকাশ অ্যাপ স্টাইল 🩷
   রেফারেন্স: বিকাশ অ্যাপের হোমস্ক্রিন —
   উজ্জ্বল গোলাপি হেডার + সাদা কার্ভড শিট + সাদা বটম নেভ বার */
:root {
  color-scheme: light;
  --pk: #e2136e;        /* বিকাশ গোলাপি */
  --pk-deep: #c40e63;
  --pk-dark: #9c0b4e;
  --pk-bright: #f2498f;
  --pk-soft: #fde9f2;
  --pk-pale: #fff5fa;
  --grn: #00b578;
  --grn-deep: #00875a;
  --grn-soft: #dcf5e9;
  --blu: #2e90fa;
  --blu-deep: #1b6de0;
  --blu-soft: #e2eefe;
  --ink: #21252c;
  --muted: #8b8f98;
  --line: #f3e4ec;
  --bg: #f7f7fa;
  --card: #ffffff;
  --radius: 18px;
  --shadow-sm: 0 1px 3px rgba(226,19,110,.07);
  --shadow: 0 3px 12px rgba(33,37,44,.07);
  --shadow-lg: 0 16px 44px rgba(226,19,110,.2);
  --nav-h: 64px;
  --font-display: "SolaimanLipi", "Baloo Da 2", "Hind Siliguri", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "SolaimanLipi", "Hind Siliguri", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom));
  overflow-x: clip; /* phone-e kono element dan-bam scroll toiri korbe na (sticky thik thakbe) */
  -webkit-font-smoothing: antialiased;
}
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; background: #fff; }

/* ============ header — বিকাশের গোলাপি হেডার ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  /* উপরের অংশ যাতে স্ট্যাটাস বার/নচের নিচে ঢেকে না যায় + শ্বাস নেওয়ার জায়গা */
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 18px 34px;
  background:
    radial-gradient(circle 90px at 80% 18%, rgba(255,255,255,.09), transparent 70%),
    radial-gradient(circle 150px at 8% 0%, rgba(226,19,110,.22), transparent 70%),
    radial-gradient(ellipse 260px 110px at 92% 120%, rgba(46,144,250,.14), transparent 70%),
    linear-gradient(180deg, #2b2e36 0%, #17191d 55%, #0a0b0e 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  overflow: hidden;
}
.topbar::after {
  /* সাদা শিটের কার্ভড টপ — বিকাশের মতো */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background: #fff; border-radius: 26px 26px 0 0;
}
.brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.logo {
  width: 50px; height: 50px; border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 27px; box-shadow: 0 4px 12px rgba(0,0,0,.18);
  border: 2px solid rgba(255,255,255,.7);
}
.topbar h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.greet { margin: 1px 0 0; font-size: 12.5px; color: #ffd9e9; font-weight: 600; }
.subtitle { margin: 0; font-size: 11.5px; opacity: .65; letter-spacing: 1.5px; text-transform: uppercase; }
.icon-btn {
  border: none; background: #fff; color: var(--pk-deep);
  width: 44px; height: 44px; border-radius: 50%; font-size: 19px;
  cursor: pointer; position: relative; z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:active { transform: scale(.93); }

/* ============ views ============ */
.view { display: none; padding: 16px 16px 22px; animation: fadeUp .22s ease; background: #fff; }
.view.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: none;} }

/* ============ cards & stats ============ */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px;
  border: 1px solid #f6eef3;
}
.card h2 { margin: 0 0 10px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card h2::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: var(--pk); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.link-btn { border: none; background: none; color: var(--blu-deep); font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid #f6eef3;
  padding: 14px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.stat-top { display: flex; align-items: center; gap: 8px; width: 100%; }
.stat-icon {
  width: 40px; height: 40px; border-radius: 50%; font-size: 19px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: #f4f4f6;
}
/* বিকাশের সার্ভিস আইকনের মতো রঙিন */
.stat-card:nth-child(4n+1) .stat-icon { background: var(--grn-soft); }
.stat-card:nth-child(4n+2) .stat-icon { background: var(--blu-soft); }
.stat-card:nth-child(4n+3) .stat-icon { background: var(--pk-soft); }
.stat-card:nth-child(4n+4) .stat-icon { background: #fef3c7; }
.stat-card.warn .stat-icon { background: #fef3c7; }
.stat-num { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.stat-card.warn .stat-num { color: #b45309; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ============ alert banner ============ */
.alert-banner {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fcd34d; color: #92400e;
  border-radius: var(--radius); padding: 13px 15px; margin-bottom: 16px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 4px 14px rgba(245,158,11,.15);
}
.alert-banner::before {
  content: "🔔"; font-size: 22px; background: #fff; width: 42px; height: 42px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.alert-banner.danger { background: linear-gradient(135deg, #fef2f2, #fee2e2); border-color: #fca5a5; color: #991b1b; box-shadow: 0 4px 14px rgba(220,38,38,.12); }
.hidden { display: none !important; }

/* ============ mini lists ============ */
.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini-row {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 14px; background: #fbfbfd;
  border: 1px solid #f3f0f4;
}
.mini-row img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #f4f4f6; box-shadow: var(--shadow-sm); }
.mini-row .grow { flex: 1; min-width: 0; }
.mini-row .t1 { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row .t2 { font-size: 12px; color: var(--muted); }
.mini-row b { font-variant-numeric: tabular-nums; }
.pill {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.pill.red { background: #fee2e2; color: #b91c1c; }
.pill.orange { background: #ffedd5; color: #c2410c; }
.pill.yellow { background: #fef9c3; color: #a16207; }
.pill.green { background: #d1fae5; color: #065f46; }
.pill.gray { background: #f1f1f4; color: var(--muted); }
.pill.blue { background: #dbeafe; color: #1d4ed8; }
.empty-note { text-align: center; color: var(--muted); font-size: 13px; padding: 12px; }

/* ============ products ============ */
.search-row { margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.search-row .input { flex: 1; min-width: 0; }
.search-row .icon-btn { flex-shrink: 0; font-size: 20px; }
.input {
  width: 100%; padding: 13px 15px; font-size: 16px; font-family: inherit; /* 16px: mobile-e focus-e auto-zoom hobe na */
  border: 1.5px solid #ececf0; border-radius: 14px; background: #fbfbfd; color: var(--ink);
}
.input:focus { outline: none; border-color: var(--pk); box-shadow: 0 0 0 3px rgba(226,19,110,.12); background: #fff; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  border: 1.5px solid #ececf0; background: #fbfbfd; border-radius: 999px;
  padding: 8px 16px; font-size: 13px; font-weight: 600; white-space: nowrap;
  cursor: pointer; font-family: inherit; color: var(--ink);
}
.chip.active { background: var(--pk); border-color: var(--pk); color: #fff; box-shadow: 0 4px 12px rgba(226,19,110,.3); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pcard {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid #f6eef3;
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pcard:active { transform: scale(.97); }
.pcard .pimg { width: 100%; height: 118px; object-fit: cover; background: #f4f4f6; display: block; }
.pcard .pbody { padding: 10px 11px 12px; }
.pcard .pname { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .pmeta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.pcard .pprice {
  font-weight: 700; font-size: 15px; color: var(--grn-deep);
  background: var(--grn-soft); padding: 3px 10px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.pcard .pstock { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.pcard .pbadges { position: absolute; top: 8px; left: 8px; display: flex; gap: 5px; }
.pcard .pbadges .pill { box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.sell-btn {
  width: 100%; margin-top: 9px; border: none; border-radius: 11px; padding: 9px 0;
  background: var(--pk); color: #fff;
  font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 10px rgba(226,19,110,.28);
}
.sell-btn:active { transform: scale(.96); }
.empty { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty-icon { font-size: 56px; margin-bottom: 10px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.12)); }

/* ============ bottom nav — বিকাশের সাদা বার ============ */
.bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
  border-top: 1px solid #f3e4ec;
  display: flex; z-index: 60;
  box-shadow: 0 -8px 24px rgba(226,19,110,.1);
}
.nav-btn {
  flex: 1; border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10.5px; font-weight: 700; color: #a8a3ad; font-family: inherit;
  position: relative; letter-spacing: .2px;
}
.nav-btn .nav-ico { font-size: 22px; opacity: .8; transition: all .15s; }
.nav-btn.active { color: var(--pk); }
.nav-btn.active .nav-ico { opacity: 1; transform: translateY(-1px); }
.nav-btn.fab { flex: 0 0 66px; }
.nav-btn.fab .nav-ico {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pk), var(--blu-deep));
  color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center;
  margin-top: -26px; box-shadow: 0 8px 20px rgba(226,19,110,.45);
  border: 3px solid #fff; opacity: 1;
}
.badge {
  position: absolute; top: 6px; right: calc(50% - 26px);
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
  min-width: 19px; height: 19px; border-radius: 999px; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
  box-shadow: 0 2px 6px rgba(220,38,38,.4);
}

/* ============ modal ============ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(60,5,32,.5); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeUp .15s ease;
}
.modal-sheet {
  background: #fff; width: 100%; max-width: 520px;
  border-radius: 26px 26px 0 0; padding: 12px 18px calc(22px + env(safe-area-inset-bottom));
  max-height: 92vh; overflow-y: auto;
  animation: slideup .24s cubic-bezier(.2,.9,.3,1.1);
  box-shadow: var(--shadow-lg);
}
.modal-sheet::before {
  content: ""; display: block; width: 44px; height: 5px; border-radius: 4px;
  background: #f0d3e1; margin: 2px auto 12px;
}
@keyframes slideup { from { transform: translateY(60px); opacity: .5;} to { transform: none; opacity: 1;} }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.modal-head .icon-btn { background: #f6f6f8; color: var(--ink); box-shadow: none; width: 38px; height: 38px; }

/* ============ form ============ */
.photo-picker {
  width: 100%; height: 158px; border-radius: 16px; margin-bottom: 14px;
  border: 2px dashed #f0c6da; background: var(--pk-pale); cursor: pointer;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.photo-picker img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { text-align: center; color: var(--muted); }
.photo-placeholder span { font-size: 36px; }
.photo-placeholder p { margin: 4px 0 0; font-size: 13px; font-weight: 500; }
.form-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: #5b5f6b; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.btn {
  border: none; border-radius: 14px; padding: 14px 16px;
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: transform .12s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--pk); color: #fff; box-shadow: 0 6px 16px rgba(226,19,110,.32); }
.btn-outline { background: #f6f6f8; color: var(--ink); }
.btn-danger { background: linear-gradient(135deg,#ef4444,#b91c1c); color: #fff; width: 100%; box-shadow: 0 6px 16px rgba(220,38,38,.28); }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 11px; }

/* ============ detail ============ */
.detail-photo { width: 100%; height: 180px; object-fit: cover; border-radius: 16px; background: #f4f4f6; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.kv { display: flex; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid #f6f0f3; font-size: 14px; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.stock-ctl { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 12px 0; background: var(--pk-pale); border-radius: 14px; padding: 10px; }
.stock-ctl .qty-btn { width: 46px; height: 46px; font-size: 24px; }

/* ============ sell ============ */
.qty-row { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 18px 0 10px; }
.qty-btn {
  width: 56px; height: 56px; border-radius: 50%; border: none; font-size: 28px;
  background: var(--pk); color: #fff; cursor: pointer; font-weight: 700;
  box-shadow: 0 6px 14px rgba(226,19,110,.32);
}
.qty-btn:active { transform: scale(.9); }
.qty-num { font-size: 32px; font-weight: 700; min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.sell-total { text-align: center; font-size: 16px; margin-bottom: 16px; color: var(--muted); }
.sell-total b {
  color: #fff; font-size: 23px; background: linear-gradient(135deg, var(--pk), var(--blu-deep));
  padding: 4px 18px; border-radius: 999px; box-shadow: 0 4px 12px rgba(226,19,110,.3);
}

/* ============ expiry ============ */
.exp-group { margin-bottom: 18px; }
.exp-group > h3 { font-size: 15px; font-weight: 700; margin: 0 0 9px; display: flex; align-items: center; gap: 8px; }
.exp-count { background: var(--pk-deep); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; }

/* ============ settings ============ */
.muted { color: var(--muted); font-size: 13px; }
.danger-zone { border: 1.5px solid #fecaca; }
.version { text-align: center; margin-top: 20px; }

/* ============ charts ============ */
.vchart { display: flex; align-items: flex-end; gap: 6px; padding: 10px 2px 2px; }
.vbar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; min-width: 0; }
.vbar-val { font-size: 10px; font-weight: 700; color: var(--pk-deep); min-height: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vbar {
  width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--pk-bright), var(--pk-deep));
  transform-origin: bottom; animation: barGrow .5s ease;
}
.vbar-col:nth-child(3n+2) .vbar { background: linear-gradient(180deg, #2dd4a7, var(--grn-deep)); }
.vbar-col:nth-child(3n) .vbar { background: linear-gradient(180deg, #6aa8ff, var(--blu-deep)); }
.vbar-col.today .vbar { background: linear-gradient(180deg, #f59e0b, #b45309); }
.vbar-label { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.25; }
.vbar-label span { display: block; font-size: 9.5px; font-weight: 500; opacity: .8; }
.vbar-col.today .vbar-label { color: #b45309; }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hchart { display: flex; flex-direction: column; gap: 11px; padding: 4px 2px; }
.hbar-row { display: grid; grid-template-columns: 86px 1fr 38px; align-items: center; gap: 9px; }
.hbar-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 15px; background: #f6f0f3; border-radius: 999px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--pk-bright), var(--pk-deep)); transform-origin: left; animation: barGrowX .55s ease; }
.hbar-fill.low { background: linear-gradient(90deg, #f59e0b, #b45309); }
.hbar-fill.zero { background: linear-gradient(90deg, #f87171, #b91c1c); }
.hbar-val { font-size: 12.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
@keyframes barGrowX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============ price adjuster (sell) ============ */
.price-edit { background: var(--pk-pale); border: 1px solid #f6e0ec; border-radius: 14px; padding: 12px; margin-bottom: 6px; }
.price-edit-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; margin-bottom: 9px; }
.price-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; }
.price-ctl .qty-btn { width: 48px; height: 48px; font-size: 24px; }
.price-input {
  width: 118px; text-align: center; font-size: 21px; font-weight: 700; font-family: inherit;
  padding: 8px 6px; border: 1.5px solid #ececf0; border-radius: 12px; background: #fff; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price-input:focus { outline: none; border-color: var(--pk); box-shadow: 0 0 0 3px rgba(226,19,110,.12); }

/* ============ promo card (website request) ============ */
.promo-card {
  background:
    radial-gradient(220px 120px at 0% 100%, rgba(46,144,250,.4), transparent 60%),
    radial-gradient(200px 110px at 100% 0%, rgba(0,181,120,.3), transparent 60%),
    linear-gradient(135deg, var(--pk-dark), var(--pk-deep) 60%, var(--pk));
  border: none; color: #fff;
}
.promo-card h2 { color: #fff; }
.promo-card .muted { color: rgba(255,255,255,.82); }
.btn-gold { background: #fff; color: var(--pk-deep); box-shadow: 0 6px 16px rgba(0,0,0,.2); }

/* ============ dues ledger ============ */
.due-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--pk); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.due-avatar.sm { width: 40px; height: 40px; font-size: 17px; }
.due-home { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.due-home-stat { background: var(--pk-pale); border: 1px solid #f6e0ec; border-radius: 14px; padding: 10px 12px; }
.due-big { font-size: 30px; font-weight: 700; color: #b91c1c; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.due-big.sm { font-size: 22px; }
.due-balance-card {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1.5px solid #fca5a5; border-radius: var(--radius);
  padding: 16px; text-align: center;
}
.txn-ico {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  box-shadow: var(--shadow-sm);
}
.txn-ico.due { background: #fee2e2; }
.txn-ico.pay { background: var(--grn-soft); }

/* ============ top products ============ */
#topProducts { display: flex; flex-direction: column; gap: 4px; }
.top-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #f6f0f3; }
.top-row:last-child { border-bottom: none; }
.top-row .rank { width: 34px; text-align: center; font-size: 22px; flex-shrink: 0; }
.rank-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #f6f6f8; color: var(--muted); font-size: 13px; font-weight: 700;
}
.top-row .grow { flex: 1; min-width: 0; }
.top-row .t1 { font-weight: 700; font-size: 13.5px; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-row .hbar-track { height: 9px; }
.top-nums { text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.top-nums b { font-size: 13.5px; }
.hbar-fill.gold { background: linear-gradient(90deg, #f59e0b, #b45309); }

/* ============ lock screen ============ */
.lock-screen {
  position: fixed; inset: 0; z-index: 300;
  background:
    radial-gradient(300px 180px at 85% 0%, rgba(46,144,250,.35), transparent 60%),
    radial-gradient(280px 180px at 10% 100%, rgba(0,181,120,.3), transparent 60%),
    linear-gradient(160deg, var(--pk-bright), var(--pk-deep));
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lock-box { width: 100%; max-width: 340px; text-align: center; color: #fff; }
.logo.lg { font-size: 54px; }
.lock-box h2 { margin: 8px 0 2px; }
.lock-box .muted { color: rgba(255,255,255,.75); }
.lock-users { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.lock-user {
  width: 100%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: 14px; font-size: 16px;
}
.lock-prompt { font-weight: 700; margin: 14px 0 10px; font-size: 16px; }
.pin-dots { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.pin-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); }
.pin-dots span.on { background: #fff; border-color: #fff; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 260px; margin: 0 auto 14px; }
.pin-key {
  aspect-ratio: 1.5; border-radius: 14px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.14); color: #fff; font-size: 22px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.pin-key:active { background: rgba(255,255,255,.32); }
.lock-box .link-btn { color: #ffd9e9; font-size: 15px; }

/* ============ boot splash (লাফানো ঠেকাতে) ============ */
#bootSplash {
  position: fixed; inset: 0; z-index: 400;
  background:
    radial-gradient(300px 180px at 85% 0%, rgba(46,144,250,.35), transparent 60%),
    radial-gradient(280px 180px at 10% 100%, rgba(0,181,120,.3), transparent 60%),
    linear-gradient(160deg, var(--pk-bright), var(--pk-deep));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: #fff;
}
.bs-logo {
  width: 72px; height: 72px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E2136E, #2E90FA);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.bs-logo svg { width: 38px; height: 38px; color: #fff; }
.bs-name { font-family: "Baloo Da 2", sans-serif; font-size: 30px; font-weight: 800; }
.bs-spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: bs-rot .8s linear infinite;
}
@keyframes bs-rot { to { transform: rotate(360deg); } }
.bs-txt { color: rgba(255,255,255,.8); font-size: 14px; }

/* ============ auth (login page) ============ */
#authScreen { overflow-y: auto; }
.auth-card {
  width: 100%; max-width: 380px; text-align: center; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  border-radius: 24px; padding: 28px 24px 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35); backdrop-filter: blur(6px);
  margin: auto;
}
.auth-logo {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E2136E, #2E90FA);
  box-shadow: 0 8px 22px rgba(226,19,110,.5);
}
.auth-logo svg { width: 34px; height: 34px; color: #fff; }
.auth-title { font-family: "Baloo Da 2", sans-serif; font-size: 32px; font-weight: 800; margin: 0; line-height: 1.15; }
.auth-tag { color: rgba(255,255,255,.8); margin: 4px 0 18px; font-size: 14.5px; }
.auth-feats { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-bottom: 20px; }
.auth-feat { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.92); }
.auth-feat b { color: #fff; }
.af-ic { font-size: 18px; line-height: 1.2; flex-shrink: 0; }
.auth-error {
  background: rgba(255,60,60,.18); border: 1px solid rgba(255,120,120,.55);
  color: #ffe1e1; border-radius: 12px; padding: 11px 13px; font-size: 13.5px;
  line-height: 1.5; text-align: left; margin-bottom: 14px;
}
.auth-gbtn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #fff; color: #1f2937; border: none; border-radius: 14px;
  padding: 14px; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.auth-gbtn:active { transform: scale(.98); }
.auth-gbtn:disabled { opacity: .7; cursor: wait; }
.auth-gbtn .glogo { width: 22px; height: 22px; flex-shrink: 0; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; color: rgba(255,255,255,.65); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.25); }
.auth-skip {
  width: 100%; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 14px; padding: 12px; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.auth-skip:active { background: rgba(255,255,255,.15); }
.auth-note { color: rgba(255,255,255,.7); font-size: 12.5px; line-height: 1.5; margin: 12px 0 0; }
.auth-priv { color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.5; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); }

/* ============ staff perms ============ */
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.perm-check {
  display: flex; align-items: center; gap: 8px;
  background: var(--pk-pale); border: 1px solid #f6e0ec; border-radius: 10px; padding: 9px 10px;
  font-size: 13.5px; cursor: pointer;
}
.perm-check input { width: 17px; height: 17px; accent-color: var(--pk); }

/* ============ net dot ============ */
.net-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-left: 4px; vertical-align: 1px; }
.net-dot.on { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,.8); }
.net-dot.off { background: #f59e0b; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ============ segmented tabs ============ */
.seg-tabs {
  display: flex; background: #f6eef3; border-radius: 16px; padding: 4px; margin-bottom: 14px;
  box-shadow: inset 0 1px 3px rgba(226,19,110,.08);
}
.seg-btn {
  flex: 1; border: none; background: transparent; padding: 11px 6px; border-radius: 12px;
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.seg-btn.active { background: #fff; color: var(--pk-deep); box-shadow: var(--shadow-sm); }

/* ============ delivery ============ */
.del-row { align-items: flex-start; }
.del-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.del-actions .btn-sm { padding: 6px 10px; font-size: 12.5px; }

/* ============ tutorials ============ */
.tut-item {
  display: flex; gap: 12px; align-items: center; background: #fff;
  border-radius: 14px; padding: 10px; margin-bottom: 10px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(33,37,44,.06);
}
.tut-thumb { width: 120px; height: 68px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: #f4f4f6; }

/* ============ community chat ============ */
.chat-msgs {
  height: 52vh; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px; background: #fbf7fa;
}
.chat-msg {
  max-width: 82%; padding: 8px 12px; border-radius: 14px; background: #fff;
  box-shadow: 0 1px 3px rgba(226,19,110,.1); align-self: flex-start;
  overflow-wrap: anywhere;
}
.chat-msg.mine { align-self: flex-end; background: var(--pk-soft); }
.chat-msg .cn { font-size: 11px; font-weight: 700; color: var(--pk-deep); }
.chat-msg .ct { font-size: 14px; margin: 3px 0; white-space: pre-wrap; }
.chat-msg .ctm { font-size: 10px; color: #9ca3af; text-align: right; }
.chat-input-row { display: flex; gap: 8px; padding: 10px; background: #fff; }
.chat-input-row .input { flex: 1; min-width: 0; }

/* ============ toast ============ */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 30px); left: 50%; transform: translateX(-50%);
  background: var(--pk-dark); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; z-index: 200;
  box-shadow: 0 10px 26px rgba(226,19,110,.4); border: 1px solid rgba(255,255,255,.2);
  animation: fadeUp .2s ease; max-width: 90vw; text-align: center;
}

/* ============ premium fonts & icons ============ */
h1, h2, h3, .btn, .nav-btn, .chip, .stat-num, .pprice, .sell-total b,
.qty-num, .due-big, .price-input, .pill, .badge, .exp-count, .rank-num,
.vbar-val, .hbar-val, .top-nums b, .seg-btn, .link-btn {
  font-family: var(--font-display);
}
.topbar h1 { letter-spacing: .3px; }
.nav-ico svg { width: 24px; height: 24px; display: block; }
.nav-btn .nav-ico { filter: none; }
.nav-btn.fab .nav-ico svg { width: 28px; height: 28px; }
.logo { color: var(--pk-deep); }
.logo svg { width: 30px; height: 30px; display: block; }
.logo.lg svg { width: 58px; height: 58px; }

/* ============ toggle switch ============ */
.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; border-radius: 999px; background: #dfe3ea; transition: .2s; cursor: pointer; }
.switch .slider::before { content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.switch input:checked + .slider { background: var(--pk); }
.switch input:checked + .slider::before { transform: translateX(22px); }

/* ============ PROPER DARK MODE ============ */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0f13;
  --card: #161a21;
  --ink: #f1f4f8;
  --muted: #9aa4b2;
  --line: #262c36;
  --pk-soft: #3d1229;
  --pk-pale: #221016;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow: 0 4px 16px rgba(0,0,0,.45);
  --shadow-lg: 0 16px 44px rgba(0,0,0,.6);
}
[data-theme="dark"] #app { background: var(--bg); }
[data-theme="dark"] .view { background: var(--bg); }
[data-theme="dark"] .topbar::after { background: var(--bg); }
[data-theme="dark"] .card, [data-theme="dark"] .stat-card, [data-theme="dark"] .pcard { border-color: rgba(255,255,255,.07); }
[data-theme="dark"] .mini-row { background: #14181e; border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .input { background: #10141a; border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .chip { background: #14181e; border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .bottomnav { background: rgba(16,19,25,.96); border-top-color: rgba(255,255,255,.08); }
[data-theme="dark"] .nav-btn { color: #7d8695; }
[data-theme="dark"] .nav-btn.active { color: #ff5c96; }
[data-theme="dark"] .modal-sheet { background: #14181e; }
[data-theme="dark"] .modal { background: rgba(0,0,0,.65); }
[data-theme="dark"] .btn-outline { background: #1e242d; color: var(--ink); }
[data-theme="dark"] .kv { border-bottom-color: rgba(255,255,255,.07); }
[data-theme="dark"] .photo-picker { background: #14181e; border-color: #5b2b44; }
[data-theme="dark"] .field > span { color: #c3cad4; }
[data-theme="dark"] .price-edit, [data-theme="dark"] .stock-ctl,
[data-theme="dark"] .due-home-stat, [data-theme="dark"] .perm-check { background: #14181e; border-color: rgba(255,255,255,.07); }
[data-theme="dark"] .top-row { border-bottom-color: rgba(255,255,255,.07); }
[data-theme="dark"] .hbar-track { background: #242a34; }
[data-theme="dark"] .rank-num { background: #242a34; color: var(--muted); }
[data-theme="dark"] .tut-item { background: var(--card); }
[data-theme="dark"] .chat-msgs { background: #0a0c10; }
[data-theme="dark"] .chat-msg { background: #1e242d; }
[data-theme="dark"] .chat-msg.mine { background: #3d1229; }
[data-theme="dark"] .chat-input-row { background: #14181e; }
[data-theme="dark"] .seg-tabs { background: #1e242d; }
[data-theme="dark"] .seg-btn.active { background: #2c333f; color: #ff8ab8; }
[data-theme="dark"] .modal-head .icon-btn { background: #242a34; color: var(--ink); }
[data-theme="dark"] .price-input { background: #10141a; border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .toast { background: #101318; border-color: rgba(226,19,110,.5); }
[data-theme="dark"] .pill.gray { background: #242a34; color: #9aa4b2; }
[data-theme="dark"] .switch .slider { background: #2c333f; }
/* dark-mode text fixes */
[data-theme="dark"] .due-big { color: #f87171; }
[data-theme="dark"] .stat-card.warn .stat-num { color: #f0b04a; }
[data-theme="dark"] .vbar-val { color: #ff8ab8; }
[data-theme="dark"] .vbar-col.today .vbar-label { color: #f0b04a; }
[data-theme="dark"] .link-btn { color: #6aa8ff; }
[data-theme="dark"] .chat-msg .cn { color: #ff8ab8; }
[data-theme="dark"] .alert-banner { background: linear-gradient(135deg, #2a2111, #3a2c12); border-color: #8a6d1f; color: #f5c86e; }
[data-theme="dark"] .alert-banner.danger { background: linear-gradient(135deg, #2b1215, #3a1518); border-color: #7f2d33; color: #f69a9a; }
[data-theme="dark"] .due-balance-card { background: linear-gradient(135deg, #2b1215, #3a1518); border-color: #7f2d33; }

/* ============ iOS polish ============ */
.bottomnav { -webkit-backdrop-filter: blur(14px); }
.icon-btn { -webkit-backdrop-filter: blur(4px); }
.modal { -webkit-backdrop-filter: blur(3px); }
#app { min-height: 100vh; min-height: 100dvh; }

/* ============ responsive: tablet & PC — সব স্ক্রিনে সুন্দর ============ */
@media (min-width: 700px) {
  #app { max-width: 1080px; }
  .view { padding: 24px 30px 30px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .pcard .pimg { height: 150px; }
  .due-home { grid-template-columns: repeat(4, 1fr); }
  .bottomnav { max-width: 1080px; }
  .modal { align-items: center; padding: 24px; }
  .modal-sheet { border-radius: 24px; max-height: 88vh; }
  .modal-sheet::before { display: none; }
  .detail-actions { grid-template-columns: repeat(4, 1fr); }
  .chat-msgs { height: 60vh; }
  .topbar { padding-left: 30px; padding-right: 30px; }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .pcard .pimg { height: 160px; }
}

/* ============ Premium Home v2 — design only (logic untouched) ============ */
#view-home { background: var(--bg); }
.home-stats { margin-top: -14px; position: relative; z-index: 2; }
.home-stats .stat {
  background: linear-gradient(155deg, #232833 0%, #14171e 100%);
  border: 1px solid rgba(255,255,255,.09); border-radius: 20px; padding: 16px;
  box-shadow: 0 14px 30px rgba(0,0,0,.35); position: relative; overflow: hidden;
}
.home-stats .stat::after { content: ""; position: absolute; top: -30px; right: -30px; width: 100px; height: 100px;
  border-radius: 50%; background: var(--glow, rgba(226,19,110,.25)); filter: blur(30px); }
.home-stats .stat-ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--tint); box-shadow: 0 4px 12px var(--tsh); position: relative; z-index: 1; }
.home-stats .stat-num { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: #fff; margin-top: 10px;
  position: relative; z-index: 1; line-height: 1.15; overflow-wrap: anywhere; /* boro taka-r ongko card-er baire jabe na */ }
.home-stats .stat-lb { font-size: 11.5px; color: #b9c0cc; font-weight: 500; position: relative; z-index: 1; }

.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 4px; font-size: 11.5px; font-weight: 600; color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow); font-family: inherit; min-height: 88px; justify-content: center; }
.qa .qi { width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: var(--tint); box-shadow: 0 4px 10px var(--tsh); }
.qa:active { transform: scale(.95); }

.sec { margin-top: 22px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 0 2px; }
.sec-head h2 { font-family: var(--font-display); font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.group { background: var(--card); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.group .mini-list { display: flex; flex-direction: column; }
.group .mini-row { background: none; border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 13px 16px; }
.group .mini-row:last-child { border-bottom: none; }
.group .empty-note { padding: 22px 16px; }
.row.sum-row { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.row.sum-row .rt { flex: 1; } .row.sum-row .rv { text-align: right; }
.row.sum-row .t2 { font-size: 11.5px; color: var(--muted); }
.row.sum-row .v1.big { font-family: var(--font-display); font-weight: 800; font-size: 21px; margin-top: 2px; }

.cta-card { background: var(--card); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 18px; margin-top: 22px; }
.cta-card h2 { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.cta-card p { font-size: 13px; color: var(--muted); margin: 8px 0 14px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow);
  cursor: pointer; position: relative; font-family: inherit; text-align: left; color: var(--ink); }
.tile .ti { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--tint); margin-bottom: 10px; }
.tile .tt { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; }
.tile .td { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.tile .bdg { position: absolute; top: 12px; right: 12px; background: var(--red, #e5484d); color: #fff; font-size: 10.5px;
  font-weight: 700; min-width: 21px; height: 21px; border-radius: 999px; display: flex; align-items: center;
  justify-content: center; padding: 0 6px; }

#view-home .promo-card {
  margin-top: 22px; border-radius: 20px; padding: 20px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #e2136e 0%, #8b2fc9 60%, #4a1d96 100%);
  box-shadow: 0 14px 30px rgba(139,47,201,.35); border: none;
}
#view-home .promo-card::after { content: "🌐"; position: absolute; right: 10px; top: 6px; font-size: 90px; opacity: .18; }
#view-home .promo-card h2 { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: #fff; position: relative; z-index: 1; }
#view-home .promo-card p { font-size: 13px; color: rgba(255,255,255,.92); margin: 8px 0 16px; position: relative; z-index: 1; }
#view-home .promo-card .btn { position: relative; z-index: 1; }
.btn-white { background: #fff; color: #8b2fc9; box-shadow: none; }

@media (min-width: 700px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .qa-grid { grid-template-columns: repeat(4, 1fr); max-width: 640px; }
}

/* dark-mode soft tints for Premium Home v2 */
[data-theme="dark"] {
  --grn-soft: #0e2a21; --blu-soft: #12263f; --amber-soft: #2e2410; --red-soft: #2e1518;
  --red: #f2555a; --grn: #00d68a;
}

/* primary CTA — bold highlight (light + dark) */
.btn-pk { background: linear-gradient(135deg, #f55a9c, var(--pk) 55%, var(--pk-deep)); color: #fff;
  font-weight: 800; box-shadow: 0 8px 22px rgba(226,19,110,.45), inset 0 1px 0 rgba(255,255,255,.25);
  text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.btn-pk:active { transform: scale(.98); }

/* centered FAB — সবার মাঝখানে */
.nav-spacer { flex: 1 1 0; }
.nav-btn.fab { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); flex: none; }
.nav-btn.fab .nav-ico { margin-top: 0; }

/* FAB truly centered — 7-col grid: + মাঝখানে, সব বাটন ভিজিবল (বাকি আর ঢাকবে না) */
.bottomnav { display: grid; grid-template-columns: repeat(7, 1fr); }
.nav-btn.fab { position: static; transform: none; grid-column: span 2; justify-self: center; }
.nav-btn.fab .nav-ico { margin-top: -26px; }

/* ===== Professional centered FAB with cradle notch (Material pattern) ===== */
.bottomnav { display: flex;
  -webkit-mask-image: radial-gradient(circle 46px at 50% -4px, transparent 44px, #000 45px);
  mask-image: radial-gradient(circle 46px at 50% -4px, transparent 44px, #000 45px);
}
.nav-cradle { flex: 1 1 0; }
.nav-fab { position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); z-index: 61;
  width: 60px; height: 60px; border-radius: 50%; border: 3px solid #fff;
  background: linear-gradient(135deg, var(--pk), var(--blu-deep)); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 8px 20px rgba(226,19,110,.45); }
.nav-fab svg { width: 28px; height: 28px; }
.nav-fab:active { transform: translateX(-50%) scale(.94); }

/* desktop: nav items compact & centered (বড় গ্যাপ ফিক্স) */
@media (min-width: 700px) {
  .bottomnav { justify-content: center; }
  .bottomnav .nav-btn, .bottomnav .nav-cradle { flex: 0 0 92px; }
}
/* FAB vertical align with notch */
.nav-fab { bottom: calc(env(safe-area-inset-bottom, 0px) + 34px); }

/* ===== Final nav: solid bar, docked centered FAB (notch সরানো) ===== */
.bottomnav { -webkit-mask-image: none; mask-image: none; }
.nav-fab { position: absolute; top: -30px; bottom: auto; left: 50%; transform: translateX(-50%); }
.nav-fab:active { transform: translateX(-50%) scale(.94); }

/* ===== Final nav: + aligned in row with others, centered ===== */
.bottomnav { display: flex; align-items: stretch; -webkit-mask-image: none; mask-image: none; }
.nav-half { flex: 1 1 0; display: flex; min-width: 0; }
.nav-half .nav-btn { flex: 1 1 0; min-width: 0; }
.nav-fab { position: static; transform: none; flex: 0 0 auto; align-self: center;
  width: 56px; height: 56px; margin: 4px 8px; }
.nav-fab:active { transform: scale(.94); }
@media (min-width: 700px) {
  .bottomnav { justify-content: center; }
  .nav-half { max-width: 300px; }
}

/* Premium 4 header logo — dark rounded image, white circle noy */
.logo-img { background: transparent; border: none; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.logo-img img { width: 50px; height: 50px; border-radius: 14px; display: block; box-shadow: 0 0 0 1.5px rgba(212,175,55,.55); /* kalo header-e logo-ta futbe */ }
