/**
 * প্রোফাইল অ্যাকাউন্টের সাজ | the look of the profile app.
 *
 * ব্যবসার অ্যাপটা নীল। এটা সবুজ — খুলেই যেন বোঝা যায় অন্য অ্যাপে আছি,
 * ভুল করে ব্যবসার খাতায় প্রোফাইল খোঁজা না হয়।
 */
:root {
  --nav-h: 56px;
  --tab-h: 56px;
  --brand: #0f9d76;
  --brand-dark: #0b7a5b;
  --brand-soft: rgba(15, 157, 118, .12);
}

@media (min-width: 992px) {
  :root { --tab-h: 0px; }          /* বড় পর্দায় নিচের বারটা নেই */
}

[data-bs-theme="dark"] {
  --brand: #2ec49a;
  --brand-dark: #24a683;
  --brand-soft: rgba(46, 196, 154, .16);
}

html[lang="bn"] body,
html[lang="bn"] .form-control,
html[lang="bn"] .form-select,
html[lang="bn"] .btn {
  font-family: "Nirmala UI", "Noto Sans Bengali", "SolaimanLipi", "Segoe UI", system-ui, sans-serif;
}

html, body { width: 100%; max-width: 100%; margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bs-body-bg);
}

/* আঙুলের চাপ সাথে সাথেই ধরুক | no 300ms wait on a phone */
button, a, .btn, .nav-link, label, summary { touch-action: manipulation; }

/* ---- ব্র্যান্ডের রং | the brand colour, applied where bootstrap says blue ---- */
.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-brand:hover, .btn-brand:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}
.btn-outline-brand {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-outline-brand:hover {
  background: var(--brand);
  color: #fff;
}
.text-brand { color: var(--brand) !important; }
.bg-brand-soft { background: var(--brand-soft); }
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem var(--brand-soft);
}

.brand-mark {
  width: 32px; height: 32px;
  display: inline-grid; place-items: center;
  border-radius: 9px;
  background: var(--brand);
  color: #fff; font-weight: 700; font-size: .9rem;
  flex: 0 0 auto;
}

/* ---- উপরের বার | the header ---- */
.app-nav {
  height: var(--nav-h);
  background: var(--bs-body-bg);
  border-bottom: 1px solid var(--bs-border-color);
  position: sticky; top: 0; z-index: 1030;
  display: flex; align-items: center; gap: .5rem;
  padding: 0 .75rem;
}
.app-nav .nav-title { min-width: 0; }
.app-nav .nav-title .t {
  font-weight: 600; line-height: 1.1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* বড় পর্দায় মেনুগুলো উপরের বারেই | on a desktop the tabs move up here */
.nav-links { display: none; }
@media (min-width: 992px) {
  .nav-links { display: flex; gap: .25rem; }
  .nav-links .nav-link {
    border-radius: .5rem; padding: .35rem .8rem;
    color: var(--bs-body-color);
  }
  .nav-links .nav-link:hover { background: var(--bs-secondary-bg); }
  .nav-links .nav-link.active { background: var(--brand); color: #fff; }
}

/* ---- নিচের বার, শুধু ফোনে | the tab bar, phones only ---- */
.tab-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--tab-h);
  display: flex; z-index: 1030;
  background: var(--bs-body-bg);
  border-top: 1px solid var(--bs-border-color);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-bar a {
  flex: 1 1 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .1rem;
  text-decoration: none;
  color: var(--bs-secondary-color);
  font-size: .7rem;
}
.tab-bar a i { font-size: 1.15rem; }
.tab-bar a.active { color: var(--brand); }
@media (min-width: 992px) { .tab-bar { display: none; } }

/* ---- দুই ঘরের বার | when the bar holds only the two worlds ----

   ঘর দুটো বলে জায়গা বেশি, তাই লেখাটাও বড় আর চালু ঘরটার নিচে একটা দাগ —
   বুড়ো আঙুল নামানোর আগেই যেন চোখে পড়ে কোন দুনিয়ায় আছি।
*/
.tab-bar.two a {
  gap: .2rem;
  font-size: .82rem; font-weight: 600;
  position: relative;
}
.tab-bar.two a i { font-size: 1.35rem; }
.tab-bar.two a.active::after {
  content: '';
  position: absolute; left: 22%; right: 22%; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0;
  background: var(--brand);
}

/* তালা দেওয়া ঘর | locked, never hidden — hiding it would hide the door itself */
.tab-bar.two a.locked { color: var(--bs-secondary-color); opacity: .8; }
.tab-bar.two .ico { position: relative; display: inline-block; }
.tab-bar.two .lock {
  position: absolute; right: -9px; bottom: -2px;
  font-size: .6rem; line-height: 1;
  background: var(--bs-body-bg); border-radius: 50%;
  padding: 1px 2px;
}

/* ---- এই দুনিয়ার ধাপ | the steps inside one world, on top of the page ----

   নিচের বার বলে **কোন দুনিয়ায়**, এই সারি বলে **সেই দুনিয়ার কোথায়**।
   দুটো আলাদা প্রশ্ন, তাই আলাদা জায়গা। সারিটা পাশে গড়ায়, তাই ঘর বাড়ালেও
   কিছু কেটে যায় না।
*/
.step-row {
  display: flex; gap: .4rem;
  overflow-x: auto; scrollbar-width: none;
  margin: -.25rem -.75rem .75rem;
  padding: 0 .75rem .3rem;
}
.step-row::-webkit-scrollbar { display: none; }
.step-chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 2rem;
  padding: .35rem .8rem;
  font-size: .85rem;
  text-decoration: none;
  color: var(--bs-body-color);
  white-space: nowrap;
}
.step-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.step-chip.active .dot-count { background: #fff; color: var(--brand); }

/* ছাঁকনিটা এখন ধরা হচ্ছে না | the chips are set aside while a name is being searched */

/* কিসের দোকান | the trade badge, at the right end of a shop row */
.kind-tag {
  flex: 0 0 auto;
  align-self: center;
  max-width: 40%;
  padding: .15rem .5rem;
  border-radius: 2rem;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .7rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 380px) { .kind-tag { display: none; } }

/* ---- লিখতে লিখতে নিচে | the names that come up while you type ----

   ঘরটার ঠিক নিচে ঝোলে, বাকি পাতাটার উপরে — তাই তালিকা ঠেলে নামে না,
   আর লেখা থামালে জায়গাটা যেমন ছিল তেমনই ফিরে আসে।
*/
.sug-wrap { position: relative; flex: 0 0 100%; order: 99; }
.sug-drop {
  position: absolute; left: 0; right: 0; top: 2px; z-index: 1040;
  max-height: 60vh; overflow-y: auto;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .7rem;
  box-shadow: 0 .6rem 1.4rem rgba(0, 0, 0, .12);
}
.sug-row {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .7rem;
  text-decoration: none;
  color: var(--bs-body-color);
  border-bottom: 1px solid var(--bs-border-color);
}
.sug-row:last-child { border-bottom: 0; }
.sug-row.on, .sug-row:hover { background: var(--brand-soft); }
.sug-pic {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: .45rem; overflow: hidden;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.sug-pic img { width: 100%; height: 100%; object-fit: cover; }
.sug-txt { min-width: 0; display: flex; flex-direction: column; }
.sug-txt .nm {
  font-weight: 600; font-size: .9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sug-txt .sb {
  font-size: .74rem; color: var(--bs-secondary-color);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* কিছু মেলেনি | said inside the panel, not by staying shut */
/* কতদূর গিয়ে পাওয়া গেল | how far the search had to reach */
.reach-note {
  display: flex; align-items: center; gap: .4rem;
  padding: .5rem .7rem;
  border-radius: .6rem;
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  font-size: .8rem;
}

/* ঠিকানার আইকন আর তার নিচে খোলা লাইনটা | the pin, and what it opens */
.sug-row { position: relative; flex-wrap: wrap; }
.sug-eye {
  margin-inline-start: auto;
  border: 0; background: transparent;
  color: var(--bs-secondary-color);
  padding: .2rem .35rem; border-radius: .4rem;
  font-size: 1rem; line-height: 1;
}
.sug-eye:hover { background: var(--bs-tertiary-bg); color: var(--brand); }
.sug-where {
  display: none;
  flex: 0 0 100%;
  margin-top: .3rem; padding-inline-start: 2.6rem;
  font-size: .74rem; color: var(--bs-secondary-color);
}
.sug-row.open .sug-where { display: block; }
.sug-row.open .sug-eye { color: var(--brand); }

.sug-none {
  padding: .7rem;
  text-align: center;
  font-size: .82rem;
  color: var(--bs-secondary-color);
}

.page {
  padding: 1rem .75rem calc(var(--tab-h) + 1.5rem);
  max-width: 960px; margin: 0 auto;
}
@media (min-width: 992px) { .page { padding-bottom: 2rem; } }

/* ---- মুখের ছবি | the faces ---- */
.face {
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-grid; place-items: center;
  font-weight: 700;
  flex: 0 0 auto;
  overflow: hidden;
}
.face-sm { width: 44px; height: 44px; font-size: 1rem; }
.face-md { width: 72px; height: 72px; font-size: 1.6rem; }
.face-lg { width: 116px; height: 116px; font-size: 2.6rem; }
.face img { width: 100%; height: 100%; object-fit: cover; }

/* ---- প্রোফাইলের কার্ড | one profile in the list ---- */
.profile-card {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .85rem;
  background: var(--bs-body-bg);
  text-decoration: none;
  color: var(--bs-body-color);
}
.profile-card:hover { border-color: var(--brand); background: var(--brand-soft); }
.profile-card .who { min-width: 0; flex: 1 1 auto; }
.profile-card .who .n {
  font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-card .who .s {
  font-size: .82rem; color: var(--bs-secondary-color);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.badge-primary-profile {
  background: var(--brand); color: #fff;
  font-size: .68rem; font-weight: 600;
  padding: .18rem .5rem; border-radius: 999px;
}

/* ---- এক প্রোফাইলের পাতা | the single profile page ---- */
.hero {
  text-align: center;
  padding: 1.25rem 1rem 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  background: var(--bs-body-bg);
}
.hero .name { font-size: 1.25rem; font-weight: 700; margin-top: .6rem; }
.hero .sub { color: var(--bs-secondary-color); font-size: .9rem; }

.detail-row {
  display: flex; gap: .75rem;
  padding: .6rem .25rem;
  border-bottom: 1px dashed var(--bs-border-color);
}
.detail-row:last-child { border-bottom: 0; }
.detail-row .k {
  width: 42%; max-width: 190px;
  color: var(--bs-secondary-color); font-size: .87rem;
}
.detail-row .v { flex: 1 1 auto; word-break: break-word; }

/* ---- ফর্মের ছবির ঘর | the photo box at the top of every form ---- */
.photo-drop {
  display: block; width: 116px; margin: 0 auto;
  text-align: center; cursor: pointer;
}
.photo-drop .ring {
  width: 116px; height: 116px;
  border-radius: 50%;
  border: 2px dashed var(--bs-border-color);
  display: grid; place-items: center;
  overflow: hidden;
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
}
.photo-drop:hover .ring { border-color: var(--brand); color: var(--brand); }
.photo-drop .ring img { width: 100%; height: 100%; object-fit: cover; }
.photo-drop input[type="file"] { display: none; }

/* ---- ভরাটের দাগ | how full the profile is ---- */
.fill-bar {
  height: 8px; border-radius: 999px;
  background: var(--bs-secondary-bg);
  overflow: hidden;
}
.fill-bar > span {
  display: block; height: 100%;
  background: var(--brand);
  border-radius: 999px;
}

/* ---- লগইনের পাতা | the door ---- */
.auth-wrap {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: 1.25rem;
}
.auth-card { width: 100%; max-width: 420px; }

/* সেভের পর ভেসে ওঠা বার্তা | the note after a save */
.flash-card {
  display: flex; align-items: center; gap: .6rem;
}

/* ---- পাসওয়ার্ডের পাশে চোখ | the eye inside every hidden box ---- */
.peek-wrap {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}
.peek-wrap > .form-control { padding-inline-end: 2.5rem; }

.peek-eye {
  position: absolute;
  inset-inline-end: .25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  border: 0;
  background: transparent;
  color: var(--bs-secondary-color);
  padding: .25rem .45rem;
  line-height: 1;
  font-size: 1rem;
}
.peek-eye:hover { color: var(--bs-body-color); }

/* ---------------------------------------------------------------------------
   বাজার | the marketplace: shop, goods, basket, orders
   --------------------------------------------------------------------------- */

/* ছোট গোল সংখ্যা | the little count that rides on a tab or a bell */
.dot-count {
  display: inline-grid; place-items: center;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: .62rem; font-weight: 700; line-height: 1;
}
.tab-bar .ico { position: relative; display: inline-block; }
.tab-bar .ico .dot-count { position: absolute; top: -5px; inset-inline-start: 11px; }

.bell-dot {
  position: absolute; top: 2px; inset-inline-end: 1px;
  min-width: 16px; height: 16px; padding: 0 3px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: #dc3545; color: #fff;
  font-size: .6rem; font-weight: 700; line-height: 1;
}

/* ---- দূরত্বের ধাপ | the range chips ---- */
.range-row {
  display: flex; gap: .4rem;
  overflow-x: auto; padding-bottom: .25rem;
  scrollbar-width: none;
}
.range-row::-webkit-scrollbar { display: none; }
.range-chip {
  flex: 0 0 auto;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .82rem;
  text-decoration: none;
  color: var(--bs-body-color);
  white-space: nowrap;
}
.range-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---- পণ্যের কার্ড | one product on offer ---- */
.goods {
  display: flex; gap: .75rem;
  padding: .7rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .85rem;
  background: var(--bs-body-bg);
  text-decoration: none; color: var(--bs-body-color);
}
.goods:hover { border-color: var(--brand); }
.goods .thumb {
  width: 64px; height: 64px; flex: 0 0 auto;
  border-radius: .6rem; overflow: hidden;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 1.4rem;
}
.goods .thumb img { width: 100%; height: 100%; object-fit: cover; }
.goods .body { min-width: 0; flex: 1 1 auto; }
.goods .nm {
  font-weight: 600; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.goods .price { color: var(--brand); font-weight: 700; }
.goods .sub {
  font-size: .78rem; color: var(--bs-secondary-color);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.goods .far {
  font-size: .74rem;
  background: var(--bs-tertiary-bg);
  border-radius: 999px; padding: .1rem .5rem;
  display: inline-block;
}

/* ---- পরিমাণের ঘর | the +/- stepper, so nobody has to type ---- */
.stepper { display: flex; align-items: stretch; max-width: 190px; }
.stepper button {
  width: 40px; flex: 0 0 auto;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  font-size: 1.1rem; line-height: 1;
}
.stepper button:first-child { border-radius: .5rem 0 0 .5rem; }
.stepper button:last-child  { border-radius: 0 .5rem .5rem 0; }
.stepper input {
  flex: 1 1 auto; min-width: 0;
  text-align: center;
  border: 1px solid var(--bs-border-color);
  border-inline: 0;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  padding: .35rem .2rem;
}
.stepper input:focus { outline: none; border-color: var(--brand); }

/* ---- অর্ডার | orders ---- */
.order-card {
  display: block;
  border: 1px solid var(--bs-border-color);
  border-radius: .85rem;
  padding: .75rem;
  background: var(--bs-body-bg);
  text-decoration: none; color: var(--bs-body-color);
}
.order-card:hover { border-color: var(--brand); }

/* গোপন নম্বরটা বড় করে, ফাঁক দিয়ে — দোকানে দাঁড়িয়ে পড়তে হয় */
.code-box {
  text-align: center;
  border: 2px dashed var(--brand);
  border-radius: .85rem;
  padding: .9rem;
  background: var(--brand-soft);
}
.code-box .n {
  font-size: 2rem; font-weight: 800; letter-spacing: .35rem;
  color: var(--brand); line-height: 1.1;
}

/* ---- নোটিফিকেশন | the bell's list ---- */
.notice {
  display: flex; gap: .7rem;
  padding: .7rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .85rem;
  background: var(--bs-body-bg);
}
.notice.unseen { border-inline-start: 4px solid var(--brand); }
.notice .body { min-width: 0; flex: 1 1 auto; }
.reveal-box {
  margin-top: .5rem; padding: .5rem .6rem;
  border-radius: .6rem;
  background: var(--bs-tertiary-bg);
  font-size: .85rem;
}

/* মজুদ শেষ হলে সারিটা ফিকে | a sold-out row steps back */
.is-out { opacity: .55; }
.warn-row { color: #dc3545; font-size: .78rem; }

/* ---- বাঁধা দর আর ন্যূনতম | the rate that is read, and the floor ----

   দরের পাশে ছোট্ট তালাটা কথা বলে না, দেখায় — এটা পড়ার জিনিস, দরদামের নয়।
   ন্যূনতমের লাইনটা তার নিচে, একটু জোর দিয়ে, কারণ ওটা না পড়লে ক্রেতা
   কম লিখে বসেন আর তারপর পপ-আপ খেয়ে অবাক হন।
*/
.rate-fixed {
  display: inline-flex; align-items: center; gap: .2rem;
  margin-inline-start: .35rem;
  padding: .05rem .35rem;
  border-radius: .35rem;
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  font-size: .68rem; white-space: nowrap;
  vertical-align: middle;
}
.min-line {
  display: flex; align-items: center; gap: .25rem;
  margin-top: .15rem;
  color: #b26a00;
  font-size: .75rem; font-weight: 600;
}

/* ---- লাভ | the profit, and it only ever shows on the seller's own pages ----

   ক্রেতার কোনো পাতায় ক্রয় মূল্য বা লাভ ছাপা হয় না। ক্লাসগুলো এখানে আছে
   বলে কোথাও বসিয়ে দেওয়া যায় — কিন্তু বসানো হয়েছে কেবল নিজের তাকে আর
   পণ্যের ফর্মে, যেখানে সংখ্যাটা দোকানদারের নিজের।
*/
.margin-chip {
  display: inline-flex; align-items: center; gap: .2rem;
  margin-inline-start: .35rem;
  padding: .05rem .4rem;
  border-radius: .35rem;
  background: rgba(15, 157, 118, .12);
  color: #0b7a5b;
  font-size: .7rem; font-weight: 600; white-space: nowrap;
  vertical-align: middle;
}
.margin-chip.loss { background: rgba(220, 53, 69, .12); color: #b02a37; }
[data-bs-theme="dark"] .margin-chip { color: #4ecfa8; }
[data-bs-theme="dark"] .margin-chip.loss { color: #ea868f; }

/* ফর্মে লেখার সাথে সাথে | the same number, worked out while you type */
.margin-line {
  min-height: 1.4rem;
  font-size: .85rem; font-weight: 600;
  color: var(--bs-secondary-color);
}
.margin-line.up   { color: #0b7a5b; }
.margin-line.down { color: #b02a37; }
[data-bs-theme="dark"] .margin-line.up   { color: #4ecfa8; }
[data-bs-theme="dark"] .margin-line.down { color: #ea868f; }


/* বাকির ফিতা | the strip that says what is still owed */
.due-strip {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .8rem;
  border-radius: .7rem;
  background: rgba(220, 53, 69, .1);
  color: #b02a37;
  text-decoration: none;
  font-size: .9rem;
}
[data-bs-theme="dark"] .due-strip { color: #ea868f; }

/*
   ঝুড়িতে কত আছে | "already in the basket", said beside the + .
   আগে লেখাটা শুধু তখনই সাজত যখন সে যোগ করার সারির ভেতরে থাকত, তাই
   পণ্যের পাতায় সাদামাটা হয়ে পড়ে থাকত। এখন নিজের পায়ে দাঁড়ানো —
   যেখানেই বসুক, একরকম দেখায়।
*/
.in-cart {
  display: inline-block; align-self: center;
  font-size: .76rem; color: var(--brand); font-weight: 600;
}

/* পক্ষের সারি | one party in the book list */
.party-row {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .85rem;
  background: var(--bs-body-bg);
  text-decoration: none; color: var(--bs-body-color);
}
.party-row:hover { border-color: var(--brand); }

/* খাতার সারি | one line of a party's book */
.book-line {
  display: flex; gap: .6rem;
  padding: .6rem .25rem;
  border-bottom: 1px dashed var(--bs-border-color);
}
.book-line:last-child { border-bottom: 0; }
.book-line .when { font-size: .76rem; color: var(--bs-secondary-color); }

/* ---------------------------------------------------------------------------
   ঠিকানার গাছ ও খোঁজার পরিধি | the address tree and how far a search reaches
   --------------------------------------------------------------------------- */

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .3rem;
  font-size: .85rem;
}
.crumbs a { color: var(--brand); text-decoration: none; }
.crumbs span { color: var(--bs-secondary-color); }

.place-row {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem .7rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .7rem;
  background: var(--bs-body-bg);
}

/* পরিধির চিপ | the chip that always says where we are searching */
.scope-bar { display: flex; }
.scope-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  max-width: 100%;
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: .3rem .8rem;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .85rem; font-weight: 600;
}
.scope-chip .lv {
  font-weight: 400; font-size: .75rem;
  color: var(--bs-secondary-color);
}

/* মই | the ladder: narrow at the bottom, wide at the top */
.ladder { display: flex; flex-direction: column-reverse; gap: .3rem; }
.rung {
  width: 100%;
  display: flex; align-items: baseline; gap: .5rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .55rem;
  padding: .4rem .7rem;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  text-align: start;
}
.rung .lv { font-size: .72rem; color: var(--bs-secondary-color); min-width: 62px; }
.rung .nm { font-weight: 600; }
.rung.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.rung.active .lv { color: rgba(255,255,255,.8); }

/* পরিধির বাইরে | the line past which things sit outside the chosen area */
.split-note {
  margin: .6rem 0 .2rem;
  font-size: .78rem;
  color: var(--bs-secondary-color);
  text-align: center;
  position: relative;
}
.split-note::before,
.split-note::after {
  content: ""; position: absolute; top: 50%; width: 22%;
  border-top: 1px dashed var(--bs-border-color);
}
.split-note::before { inset-inline-start: 0; }
.split-note::after  { inset-inline-end: 0; }

.is-far { opacity: .72; }

/* পণ্যের সারির ডানে + | the plus that opens the shops that have it */
.pick-plus {
  align-self: center; flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: .5rem;
  background: var(--brand); color: #fff;
  font-size: 1.2rem; font-weight: 700; line-height: 1;
}

/* ---- পরিমাণ নয়তো টাকা | two boxes, either one may be filled ---- */
.two-box { display: flex; align-items: flex-end; gap: .4rem; }
.two-box label {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: .15rem;
}
.two-box label span { font-size: .72rem; color: var(--bs-secondary-color); }
.two-box input {
  width: 100%;
  border: 1px solid var(--bs-border-color);
  border-radius: .45rem;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  padding: .3rem .4rem;
  text-align: center;
}
.two-box input:focus { outline: none; border-color: var(--brand); }
.two-box button {
  flex: 0 0 auto;
  width: 42px; height: 34px;
  border: 1px solid var(--brand);
  border-radius: .45rem;
  background: var(--brand); color: #fff;
  font-size: 1.15rem; line-height: 1;
}

/* ঠিকানা বসানো নেই — চিপটা ডেকে বলে | the chip that asks for an address */
.scope-chip.warn {
  border-color: #dc3545;
  background: rgba(220, 53, 69, .08);
  color: #b02a37;
  text-decoration: none;
}
[data-bs-theme="dark"] .scope-chip.warn { color: #ea868f; }
