:root {
  --bg: #fbf3e7;
  --paper: #fffdf8;
  --ink: #241b14;
  --ink-soft: #5b5044;
  --primary: #c1440e;
  --primary-dark: #8f330a;
  --gold: #c89b3c;
  --olive: #5b6b3a;
  --line: #e4d8c3;
  --shadow: 0 10px 30px rgba(36, 27, 20, 0.1);
  --ink-fixed: #241b14; /* header/footer/drawer-head এর মতো জায়গায় — থিম বদলালেও সবসময় গাঢ়ই থাকে */
}
:root[data-theme="dark"] {
  --bg: #171310;
  --paper: #231d18;
  --ink: #efe6d8;
  --ink-soft: #b7aa98;
  --line: #3b322a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hind Siliguri", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
.display {
  font-family: "Baloo Da 2", sans-serif;
}
a {
  color: inherit;
}
button {
  font-family: inherit;
}
.hidden {
  display: none !important;
}
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink-fixed);
  color: #f6eedd;
}
.header-promo {
  background: var(--ink-fixed);
  border-bottom: 3px solid var(--gold);
  transition: background 0.5s ease;
}
/* Account/Settings ইত্যাদি পেজে (Food পেজ ছাড়া) ফোনে উপরের সার্চ+ব্যানার+Deliver-to অংশটা লুকানো থাকবে */
.header-promo.hide-on-non-food {
  display: none;
}
/* ব্যানার স্লাইড বদলালে উপরের পুরো অংশ (location bar + search bar সহ) একই রঙে বদলে যাবে */
.header-promo.promo-bg-0 {
  background: linear-gradient(120deg, var(--olive), #3e4a28);
}
.header-promo.promo-bg-1 {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
}
.header-promo .location-bar {
  background: transparent;
  border-top: none;
  max-width: none;
  margin: 0;
  padding: 14px 0 8px;
}
.header-promo-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 0;
}
.header-promo .food-search-wrap {
  margin: 0;
}
.header-promo .banner-slider {
  margin: 0;
}
/* ডেস্কটপ/ওয়েবে হেডারের কালো promo বার লাগবে না — সার্চ+ব্যানার তখন JS দিয়ে Food ট্যাবের ভেতরে সরে যায় */
@media (min-width: 821px) {
  .header-promo {
    display: none;
  }
}

/* ---- ফোনে হেডারের কালো promo অংশে (সার্চ বার + ব্যানার) ছোট/কম্প্যাক্ট সাইজ — যাতে চোখে বেশি জায়গা না নেয় ---- */
.header-promo .food-search-wrap {
  margin: 0;
}
.header-promo .food-search-input {
  padding: 10.5px 14px 10.5px 40px;
  font-size: 13.5px;
}
.header-promo .food-search-icon svg {
  width: 17px;
  height: 17px;
}
.header-promo .banner-slider {
  border-radius: 13px;
  margin: 0;
}
.header-promo .banner-slide {
  min-height: 118px;
  padding: 16px 18px;
}
.header-promo .banner-tag {
  font-size: 10.5px;
  padding: 3px 10px;
  margin-bottom: 5px;
}
.header-promo .banner-txt h3 {
  font-size: 15px;
  margin: 0 0 4px;
}
.header-promo .banner-txt p {
  font-size: 11.5px;
  margin: 0 0 9px;
}
.header-promo .banner-btn {
  padding: 6px 13px;
  font-size: 11.5px;
}
.header-promo .banner-dots {
  bottom: 8px;
}
.header-promo .banner-dot {
  width: 6px;
  height: 6px;
}
.header-promo .banner-dot.active {
  width: 16px;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px dashed var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Baloo Da 2";
  font-weight: 800;
  font-size: 11px;
  color: #fff;
  text-align: center;
  line-height: 1.1;
  flex-shrink: 0;
}
.brand-text .title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}
.brand-text .sub {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.5px;
}
nav.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
nav.tabs button {
  background: transparent;
  border: 1px solid transparent;
  color: #f6eedd;
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.2s;
}
nav.tabs button.active,
nav.tabs button:hover {
  background: var(--primary);
  border-color: var(--gold);
  color: #fff;
}
/* ---- Foodpanda-style Address/Location bar (sits directly under the top header row) ---- */
.location-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  cursor: pointer;
  border-top: 1px solid rgba(246, 238, 221, 0.12);
  background: rgba(0, 0, 0, 0.12);
}
.location-bar:hover {
  background: rgba(0, 0, 0, 0.2);
}
.loc-bar-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loc-bar-icon svg {
  width: 100%;
  height: 100%;
}
.loc-bar-text {
  flex: 1;
  min-width: 0;
}
.loc-bar-label {
  font-size: 10.5px;
  color: var(--gold);
  letter-spacing: 0.3px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
}
.loc-bar-address {
  font-size: 13.5px;
  color: #f6eedd;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.loc-bar-chevron {
  color: var(--gold);
  font-size: 20px;
  flex-shrink: 0;
}
.loc-bar-fav-btn {
  background: transparent;
  border: 1.5px solid rgba(200, 155, 60, 0.5);
  color: var(--gold);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.loc-bar-fav-btn svg {
  width: 18px;
  height: 18px;
}
.loc-bar-fav-btn:hover {
  background: rgba(200, 155, 60, 0.15);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-btn {
  position: relative;
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 9px 16px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14.5px;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.18s ease;
}
.cart-count.bump {
  animation: cart-count-bump 0.38s ease;
}
@keyframes cart-count-bump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.55);
  }
  60% {
    transform: scale(0.85);
  }
  100% {
    transform: scale(1);
  }
}
.cart-btn.bump {
  animation: cart-btn-bump 0.38s ease;
}
@keyframes cart-btn-bump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.12) rotate(-4deg);
  }
  60% {
    transform: scale(0.97);
  }
  100% {
    transform: scale(1);
  }
}
.fly-to-cart-item {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
.add-btn.just-added {
  animation: add-btn-pop 0.32s ease;
}
@keyframes add-btn-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.78);
  }
  70% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}
.fly-plus-one {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-weight: 800;
  font-size: 14px;
  color: var(--primary, #c0392b);
  will-change: transform, opacity;
}
.related-items-block {
  margin: 4px 0 12px;
}
.related-items-head {
  font-family: "Baloo Da 2", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
}
.related-items-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.related-item-card {
  flex: 0 0 108px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}
.related-item-card .ric-photo {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--bg), #f0e2c6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 6px;
}
.related-item-card .ric-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  height: 28px;
  overflow: hidden;
}
.related-item-card .ric-price {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin: 3px 0 6px;
}
.related-item-card .ric-add {
  width: 100%;
  background: var(--ink-fixed);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 5px 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.related-item-card .ric-add:hover {
  background: var(--primary);
}
.logout-btn {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.theme-toggle-btn,
.lang-toggle-btn {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: #f6eedd;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.theme-toggle-btn:hover,
.lang-toggle-btn:hover {
  background: var(--gold);
  color: var(--ink-fixed);
}
/* ফোনে হেডারের বাটন অনেকগুলো একসাথে হয়ে জায়গা কম পড়ছিল, তাই dark/light আর
     bn/en টগল দুটো ছোট স্ক্রিনে ☰ (হ্যামবার্গার) মেনুর ভেতরে দেখানো হয় — ডেস্কটপে
     আগের মতোই হেডারে থাকে। দুটোই একই id/class-এর ফাংশন কল করে (js/i18n.js), তাই
     কোনটাতে ক্লিক করলেও থিম/ভাষা সবখানে একসাথে বদলায়। */
.nav-tabs-settings {
  display: none;
}
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.btn {
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#view-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, #241b14, #3a2c1c);
}
.auth-stack {
  max-width: 420px;
  width: 100%;
}
/* ---- Promo banner image sitting on top of the login card ---- */
.auth-promo-banner {
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  line-height: 0;
}
.auth-promo-img {
  display: block;
  width: 100%;
  height: auto;
}
.auth-card {
  background: var(--paper);
  border: 2px dashed var(--gold);
  border-top: none;
  border-radius: 0 0 22px 22px;
  padding: 30px 28px 34px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
  position: relative;
  margin-top: -20px;
  z-index: 2;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 20px;
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 16px -8px rgba(36, 27, 20, 0.12);
}
.auth-card h1,
.auth-card-title {
  color: var(--ink);
  font-size: 26px;
  margin: 14px 0 18px;
  text-align: left;
  position: relative;
  font-weight: 700;
}
.auth-card .sub {
  text-align: left;
  color: var(--ink-soft);
  font-size: 13.5px;
  margin-bottom: 22px;
  position: relative;
}
.auth-view-more-link {
  text-align: center;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: underline;
  margin: 16px 0 0;
  cursor: pointer;
}
.auth-terms-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.5;
  margin: 16px 0 0;
}
.auth-toggle {
  display: flex;
  background: var(--bg);
  border-radius: 20px;
  padding: 4px;
  margin-bottom: 20px;
}
.auth-toggle button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-soft);
}
.auth-toggle button.active {
  background: var(--primary);
  color: #fff;
}
.field {
  margin-bottom: 12px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--ink-soft);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14.5px;
  background: #fff;
  color: var(--ink-fixed);
  color-scheme: light;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #8a7d6c;
  opacity: 1;
}
.field textarea {
  resize: vertical;
  min-height: 60px;
}
.password-field-wrap {
  position: relative;
}
.password-field-wrap input {
  padding-right: 42px;
}
.pw-toggle-btn {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 6px 10px;
  line-height: 1;
  opacity: 0.75;
}
.pw-toggle-btn:hover {
  opacity: 1;
}
.forgot-pass-link {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 600;
  text-align: right;
  margin: 6px 2px 0;
  cursor: pointer;
  text-decoration: underline;
}
.forgot-pass-link:hover {
  opacity: 0.8;
}
.phone-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.phone-input-wrap .phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: var(--paper);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 14.5px;
  border-right: 1.5px solid var(--line);
  white-space: nowrap;
}
.phone-input-wrap input {
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}
.phone-input-wrap input:focus {
  outline: none;
}

.food-search-wrap {
  position: relative;
  margin: 14px 0 18px;
}
.food-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  display: flex;
  pointer-events: none;
}
.food-search-icon svg {
  width: 19px;
  height: 19px;
}
.food-search-input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 13px 16px 13px 42px;
  font-size: 14.5px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
}
.food-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193, 68, 14, 0.12);
}
.food-search-input::placeholder {
  color: var(--ink-soft);
}

/* কুইজিন ট্যাগ রো (Pizza/Biryani/Fast Food ইত্যাদি) */
.cuisine-tag-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-top: 14px;
}
.cuisine-tag-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.cuisine-tag-btn .ct-icon {
  font-size: 15px;
}
.cuisine-tag-btn.active {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

/* Offers/New/Super/Ratings টগল চিপ + Sort ড্রপডাউন */
.special-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.special-filter-btn {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.special-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary-dark);
  color: #fff;
}
.sort-select {
  margin-left: auto;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  font-family: inherit;
}

/* রেস্টুরেন্ট/হোম-শেফ কার্ডের ব্যাজ (rating/new/super/offer) */
.card-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}
.rating-badge,
.new-badge,
.super-badge,
.offer-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
}
.rating-badge {
  background: var(--cream);
  color: var(--ink);
}
.new-badge {
  background: #2e7d32;
  color: #fff;
}
.super-badge {
  background: var(--gold);
  color: var(--ink);
}
.offer-badge {
  background: var(--primary);
  color: #fff;
}

/* ওনার ড্যাশবোর্ডে cuisine tag checkbox */
.tag-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 7px 12px;
  cursor: pointer;
}
.tag-check input {
  margin: 0;
}

/* অর্ডার হিস্ট্রিতে Rate বাটন + জমা দেওয়া রেটিং */
.rate-order-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.rated-tag {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* রেটিং মোডালের স্টার পিকার */
.star-picker {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}
.star-pick {
  font-size: 34px;
  color: var(--line);
  cursor: pointer;
  transition: 0.15s;
}
.star-pick.active {
  color: var(--gold);
}
.form-msg {
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}
.form-msg.error {
  color: var(--primary);
}
.form-msg.success {
  color: var(--olive);
  font-weight: 700;
}
.setup-note {
  font-size: 11.5px;
  color: var(--ink-soft);
  background: var(--bg);
  border-radius: 8px;
  padding: 10px;
  margin-top: 16px;
  line-height: 1.6;
}
.loc-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(36, 27, 20, 0.05);
}
.loc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.loc-head h3 {
  margin: 0;
  font-size: 17px;
}
.loc-status {
  font-size: 13px;
  color: var(--ink-soft);
}
.loc-maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.loc-maps iframe {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 10px;
}
.loc-maps .cap {
  font-size: 11.5px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 4px;
}
.dist-pill {
  display: inline-block;
  background: var(--olive);
  color: #fff;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
}
@media (max-width: 600px) {
  .loc-maps {
    grid-template-columns: 1fr;
  }
}
.hero-small {
  max-width: 1100px;
  margin: 26px auto 0;
  padding: 0 20px;
}
.ticket-small {
  background: var(--paper);
  border: 2px dashed var(--gold);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.ticket-small h1 {
  font-size: clamp(24px, 4vw, 36px);
  color: var(--primary);
  margin: 0 0 4px;
}
.ticket-small p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0;
}
section.menu-section {
  margin-top: 36px;
}
/* Account/Search/Settings ইত্যাদি পেজে উপরে ব্যানার না থাকায় ৩৬px গ্যাপটা ফাঁকা জায়গার মতো লাগছিল */
body.no-top-promo section.menu-section {
  margin-top: 14px;
}
body.no-top-promo #view-search .search-page-sticky-bar {
  margin-top: 0;
  padding-top: 2px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-head h2 {
  font-size: 24px;
  margin: 0;
}
.section-head .note {
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ---- Search page (Foodpanda-style: sticky search bar, cuisines grid, featured row, pill suggestions) ---- */
.search-page-sticky-bar {
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 5;
  padding: 10px 0 12px;
  margin: 0 0 6px;
  border-bottom: 1px solid var(--line);
}
.search-section-title {
  margin: 22px 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.search-section-title .note {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 6px;
}
.search-cuisine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
}
.search-cuisine-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.search-cuisine-item.active .search-cuisine-circle {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary) inset;
}
.search-cuisine-circle {
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 68px;
  border-radius: 16px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.search-cuisine-item .search-cuisine-label {
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  line-height: 1.2;
}
.search-featured-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch;
}
.search-featured-card {
  flex: 0 0 132px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s;
}
.search-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(36, 27, 20, 0.1);
}
.search-featured-photo {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: var(--bg);
  overflow: hidden;
}
.search-featured-name {
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 8px 2px;
  line-height: 1.25;
}
.search-featured-meta {
  font-size: 11px;
  color: var(--ink-soft);
  padding: 0 8px 8px;
}
.search-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-pill-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
}
.search-pill-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.demo-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-size: 10.5px;
  padding: 2px 9px;
  border-radius: 10px;
  font-weight: 700;
  margin-left: 8px;
}
.rest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.rest-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(36, 27, 20, 0.06);
  cursor: pointer;
  transition: 0.2s;
  position: relative;
}
.rest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(36, 27, 20, 0.12);
}
.rest-banner {
  height: 110px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  overflow: hidden;
}
.rest-body {
  padding: 14px 16px;
}
.rest-body .rname {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 4px;
}
.rest-body .rtag {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  min-height: 32px;
}
.rest-body .rbtn {
  width: 100%;
  background: var(--ink-fixed);
  color: #fff;
  border: none;
  padding: 9px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}
.cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.cat-tabs button {
  flex-shrink: 0;
  background: var(--paper);
  border: 1.5px solid var(--line);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink-soft);
}
.cat-tabs button.active {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(36, 27, 20, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.fav-heart-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(36, 27, 20, 0.15);
  transition: transform 0.15s;
}
.fav-heart-btn:hover {
  transform: scale(1.12);
}
.fav-heart-btn.is-fav {
  background: #fdeaea;
  border-color: #e8a9a9;
}
.card-photo {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, var(--bg), #f0e2c6);
  border: 1px dashed var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  overflow: hidden;
}
.card .name {
  font-weight: 700;
  font-size: 16.5px;
}
.card .sizes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.size-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}
.size-row .lbl {
  font-size: 13.5px;
  color: var(--ink-soft);
}
.size-row .price {
  font-family: "Baloo Da 2";
  color: var(--primary);
  font-weight: 700;
  font-size: 15.5px;
}
.add-btn {
  background: var(--ink-fixed);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 17px;
  cursor: pointer;
  line-height: 1;
  font-weight: 700;
}
.add-btn:hover {
  background: var(--primary);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 12px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 27, 20, 0.45);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}
.overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(400px, 92vw);
  height: 100%;
  background: var(--paper);
  z-index: 100;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.drawer.show {
  right: 0;
}
.drawer-head {
  background: var(--ink-fixed);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-head h3 {
  margin: 0;
  font-size: 19px;
}
.drawer-head button {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

/* ---- Step 2/3 (Cart & Checkout): a full, standalone page — NOT a side drawer/popup ---- */
.drawer.cart-page {
  top: 0;
  right: auto;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  z-index: 300;
  background: var(--bg);
}
.drawer.cart-page.show {
  transform: translateX(0);
  right: auto;
}
.drawer.cart-page .drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
}
.drawer-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.drawer-back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.drawer.cart-page .cart-steps {
  position: sticky;
  top: 58px;
  z-index: 2;
}
.drawer.cart-page .drawer-body,
.drawer.cart-page .cart-steps,
.drawer.cart-page .drawer-foot {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.drawer.cart-page .drawer-foot {
  position: sticky;
  bottom: 0;
  background: var(--paper);
}
@media (max-width: 820px) {
  .drawer.cart-page .drawer-foot {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
}
.receipt-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  gap: 8px;
}
.receipt-item .ri-name {
  font-size: 14.5px;
  font-weight: 600;
}
.receipt-item .ri-unit {
  font-size: 12px;
  color: var(--ink-soft);
}
.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-ctrl button {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.empty-cart {
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 10px;
  font-size: 14.5px;
}
.drawer-foot {
  border-top: 2px dashed var(--line);
  padding: 18px 20px;
}
.drawer-foot .tf-note {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  display: block;
}
.drawer-foot .btn {
  margin-top: 2px;
}
.support-chat-page {
  display: flex;
  flex-direction: column;
  max-width: 640px;
}
.support-chat-messages {
  min-height: 50vh;
  max-height: 65vh;
  overflow-y: auto;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--bg);
}
.support-chat-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-top: 14px;
}
.chat-msg {
  margin-bottom: 12px;
  max-width: 82%;
}
.chat-msg.mine {
  margin-left: auto;
}
.chat-msg-meta {
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 3px;
}
.chat-msg.mine .chat-msg-meta {
  text-align: right;
}
.chat-msg-bubble {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-msg.mine .chat-msg-bubble {
  background: var(--olive);
  color: #fff;
  border-color: var(--olive);
}
.total-row {
  display: flex;
  justify-content: space-between;
  font-family: "Baloo Da 2";
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}
.total-row span:last-child {
  color: var(--primary);
}

/* ---------- Floating "View Cart" bar (Menu page) ---------- */
.floating-cart-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(120px);
  width: min(420px, 92vw);
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 26px rgba(36, 27, 20, 0.35);
  z-index: 90;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.floating-cart-bar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.floating-cart-bar .fcb-info {
  font-size: 14px;
  font-weight: 600;
}
.floating-cart-bar .fcb-dot {
  opacity: 0.7;
  margin: 0 2px;
}
.floating-cart-bar .fcb-action {
  font-family: "Baloo Da 2";
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Mobile-first Bottom Navigation Bar (Foodpanda style: Food / Grocery / Cart / Account) ---------- */
.bottom-nav {
  display: none;
}
@media (max-width: 820px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(36, 27, 20, 0.1);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  body.cart-page-open .bottom-nav {
    display: none;
  }
  .wrap {
    padding-bottom: 78px;
  }
  footer {
    padding-bottom: 78px;
  }
  /* 🔧 উপরের .wrap / footer rule দুটো বর্তমান HTML-এর কোনো এলিমেন্টেই মেলে না
     (কোথাও class="wrap" বা <footer> ব্যবহার হয় না) — তাই bottom-nav bar-টা
     position:fixed থাকায় প্রতিটা পেজের (Account, Admin Panel, My Restaurant
     ইত্যাদি) একদম শেষ আইটেমগুলোর উপর বসে গিয়ে সেগুলো ঢেকে দিচ্ছিল, স্ক্রল করেও
     পুরোপুরি উপরে তোলা যেত না। body-ই আসল স্ক্রলযোগ্য কনটেইনার (কোনো
     overflow-hidden wrapper নেই), তাই এখানেই bottom-nav-এর উচ্চতার সমান (+safe
     area) padding দেওয়া হচ্ছে যাতে সব পেজেই শেষ আইটেম bar-এর আড়ালে না যায়।
     bottom-nav লুকানো থাকলে (cart page) এই সামান্য বাড়তি ফাঁকা জায়গা ক্ষতিকর
     না, তাই আলাদা করে বাদ দেওয়ার দরকার নেই। */
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .floating-cart-bar {
    bottom: calc(70px + env(safe-area-inset-bottom));
  }
}
/* Bottom nav swaps its whole button set based on the logged-in user's role
   (customer vs restaurant owner vs pharmacy owner vs home-chef vs rider) —
   only one .bn-role-group is shown at a time, see setBottomNavRole() in view.js */
.bn-role-group {
  display: none;
  width: 100%;
}
.bn-role-group.show {
  display: flex;
  flex: 1;
}
.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
  color: var(--ink-soft);
}
.bn-item .bn-icon,
.bn-item .bn-icon-wrap {
  width: 23px;
  height: 23px;
  position: relative;
}
.bn-item .bn-icon svg {
  width: 100%;
  height: 100%;
}
.bn-item .bn-label {
  font-size: 10.5px;
  font-weight: 700;
}
.bn-item.active {
  color: var(--primary);
}
.bn-item .cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- Veg / Non-Veg indicator ---------- */
.veg-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 7px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.veg-indicator.is-veg {
  border: 1.5px solid #1e7b34;
}
.veg-indicator.is-nonveg {
  border: 1.5px solid #a31515;
}
.veg-indicator .veg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.veg-indicator.is-veg .veg-dot {
  background: #1e7b34;
}
.veg-indicator.is-nonveg .veg-dot {
  background: #a31515;
}

/* ---------- Menu card quantity stepper (after Add is tapped) ---------- */
.menu-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--ink-fixed);
  border-radius: 16px;
  padding: 4px 10px;
}
.menu-qty-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-qty-btn:hover {
  color: var(--gold);
}
.menu-qty-count {
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  min-width: 14px;
  text-align: center;
}

/* ---------- Cart line delete button ---------- */
.receipt-item {
  position: relative;
}
.cart-delete-btn {
  width: 26px;
  height: 26px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-delete-btn:hover {
  color: var(--primary);
  background: rgba(193, 68, 14, 0.08);
}

/* ---------- Checkout: Order Summary ---------- */
.order-summary-block {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 4px 0 16px;
}
.order-summary-head {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 6px;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding: 4px 0;
  border-top: 1px dashed var(--line);
}
.order-summary-row:first-child {
  border-top: none;
}
.order-summary-row .os-unit {
  color: var(--ink-soft);
  font-size: 12px;
}

/* Subtotal / Platform Charge / Delivery Fee / Total — line-by-line breakdown inside Order Summary */
.order-summary-totals {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1.5px solid var(--line);
}
.ost-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 4px 0;
  color: var(--ink-soft);
}
.ost-row .ost-v {
  color: var(--ink);
  font-weight: 600;
}
.ost-row.ost-discount .ost-v {
  color: var(--olive);
}
.ost-row.ost-final {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1.5px dashed var(--line);
  font-family: "Baloo Da 2";
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.ost-row.ost-final .ost-v {
  color: var(--primary);
  font-size: 20px;
}
.ost-note {
  font-size: 11.5px;
  color: var(--olive);
  margin-top: 2px;
}

/* ---------- Checkout: Delivery Address (auto-filled display + Change) ---------- */
.addr-display-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}
.addr-display-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.addr-display-text {
  flex: 1;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.4;
}
.addr-change-btn {
  padding: 6px 14px;
  font-size: 12.5px;
  flex-shrink: 0;
  white-space: nowrap;
}
.addr-edit-wrap {
  margin-top: 8px;
}

/* ---------- Checkout: Payment Method chips ---------- */
.payment-method-row {
  display: flex;
  gap: 8px;
}
.payment-method-btn {
  flex: 1;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1.6;
  text-align: center;
}
.payment-method-btn.active {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}
.account-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-top: 20px;
}
.account-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.account-row .k {
  color: var(--ink-soft);
}
.account-row .v {
  font-weight: 600;
}
.order-hist-item {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 13.5px;
}
.support-chat-unread {
  border: 2px solid var(--primary);
}
.order-hist-item .oh-top {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 4px;
}
.order-hist-item .oh-items {
  color: var(--ink-soft);
  white-space: pre-line;
  font-size: 12.5px;
}
footer {
  margin-top: 60px;
  background: var(--ink-fixed);
  color: #efe6d6;
  padding: 36px 20px 26px;
}
.foot-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
footer h4 {
  font-family: "Baloo Da 2";
  color: var(--gold);
  margin: 0 0 10px;
  font-size: 17px;
}
footer p {
  font-size: 13.5px;
  color: #cfc3ac;
  line-height: 1.9;
}
.foot-bottom {
  max-width: 1100px;
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid #3a3025;
  font-size: 12px;
  color: #8a7f6c;
  text-align: center;
}
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle-btn span {
  display: block;
  width: 100%;
  height: 2.4px;
  background: #f6eedd;
  border-radius: 2px;
}
.nav-backdrop {
  display: none;
}
/* Mobile (Foodpanda-style): the bottom nav bar is now the primary navigation,
     so the old hamburger/off-canvas menu and the big "Saidpur / FOOD & GROCERIES"
     wordmark are dropped — just the round logo mark + address bar + cart stay,
     matching a clean Foodpanda-style top bar. Anything not on the bottom bar
     (Medicine, Owner/Kitchen/Pharmacy/Rider/Admin dashboards) moves into Account. */
@media (max-width: 820px) {
  .nav-toggle-btn,
  nav.tabs,
  .nav-backdrop {
    display: none !important;
  }
  .brand-text {
    display: none;
  }
  .brand-badge {
    width: 38px;
    height: 38px;
    font-size: 10px;
  }
  .header-inner {
    display: none;
  }
}
@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* ---- Role signup / pending approval ---- */
#view-pending {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, #241b14, #3a2c1c);
}
.role-choice {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.role-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 14px;
}
.role-opt input {
  margin: 0;
}
.role-opt:has(input:checked) {
  border-color: var(--primary);
  background: #fbefe6;
}
.role-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 6px 0 0;
}

/* ---- Status pills ---- */
.status-pill {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}
.status-wait {
  background: #f3e3c2;
  color: #7a5a16;
}
.status-ok {
  background: #e1ead3;
  color: var(--olive);
}
.status-blocked {
  background: #f6d2cc;
  color: #b3261e;
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}
.admin-stat-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
}
.admin-stat-card .num {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1.2;
}
.admin-stat-card .lbl {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.admin-stat-card.blocked-stat .num {
  color: #b3261e;
}

/* ---- Owner dashboard ---- */
.owner-cat-block {
  margin-bottom: 14px;
}
.owner-cat-head {
  font-family: "Baloo Da 2";
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 15px;
}
.owner-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px dashed var(--line);
  padding: 9px 0;
}
.owner-order-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.otp-confirm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.otp-confirm-row .mins-input {
  width: 140px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
}

/* ---- Customer-facing delivery OTP display ---- */
.delivery-otp-box {
  background: var(--ink-fixed);
  color: #fff;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  margin-top: 16px;
}
.delivery-otp-box .lbl {
  font-size: 12.5px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
.delivery-otp-box .code {
  font-family: "Baloo Da 2";
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 8px;
  color: #fff;
}
.delivery-otp-box .hint {
  font-size: 12px;
  color: #cfc3ac;
  margin-top: 6px;
}
.mins-input {
  width: 120px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13.5px;
}

/* ---- Order tracking ---- */
.track-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.track-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.track-step .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
  border: 2px solid var(--line);
}
.track-step.done .dot {
  background: var(--olive);
  border-color: var(--olive);
}
.track-step.current .dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(193, 68, 14, 0.15);
}
.track-step .lbl {
  font-size: 14px;
  color: var(--ink-soft);
}
.track-step.done .lbl,
.track-step.current .lbl {
  color: var(--ink);
  font-weight: 600;
}
.track-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 24px;
  width: 2px;
  height: calc(100% - 4px);
  background: var(--line);
}
.track-step.done:not(:last-child)::before {
  background: var(--olive);
}

/* ---- Owner: online/offline toggle & item timing ---- */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.online-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.online-toggle-lbl {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.online-toggle-btn {
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  background: #e1ead3;
  color: var(--olive);
}
.online-toggle-btn.is-offline {
  background: #f3d6ce;
  color: var(--primary-dark);
}
.slot-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink-soft);
  margin-top: 4px;
}
.slot-badge.unavailable {
  background: #f3d6ce;
  color: var(--primary-dark);
}
.rest-card.is-offline {
  opacity: 0.55;
  cursor: not-allowed;
}
.rest-card.is-offline:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(36, 27, 20, 0.06);
}
.offline-tag {
  display: inline-block;
  background: var(--ink-fixed);
  color: #fff;
  font-size: 10.5px;
  padding: 2px 9px;
  border-radius: 10px;
  font-weight: 700;
  margin-left: 8px;
}
.card.item-unavailable {
  opacity: 0.55;
}
.card.item-unavailable .add-btn {
  background: var(--line);
  cursor: not-allowed;
  pointer-events: none;
}

/* ---- QR pickup scan modal (rider) ---- */
.qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(36, 27, 20, 0.65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.qr-modal-inner {
  background: var(--paper);
  border-radius: 16px;
  padding: 26px;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow);
}
.qr-modal-inner h3 {
  margin: 0 0 14px;
  text-align: center;
  font-size: 19px;
}
#qrScanRegion {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
}

/* ---- QR pickup display (restaurant owner) ---- */
.qr-owner-box {
  margin-top: 10px;
  text-align: center;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 14px;
}

/* ---- Persistent active-order tracking bar ---- */
.track-btn {
  position: relative;
  background: var(--olive);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 14.5px;
  animation: track-pulse 2s ease-in-out infinite;
}
.track-btn:hover {
  filter: brightness(1.1);
}
@keyframes track-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
  }
}
@media (max-width: 600px) {
  .track-btn span#trackBtnLabel {
    display: none;
  }
  .track-btn {
    padding: 9px 12px;
  }
  .track-btn span#supportChatBtnLabel {
    display: none;
  }
}

/* ---- Wallet & Rewards ---- */
.wallet-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---- Meal Subscription progress ---- */
.progress-bar {
  background: var(--line);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
  margin-top: 6px;
}
.progress-fill {
  background: var(--olive);
  height: 100%;
  border-radius: 20px;
  transition: width 0.3s;
}

/* ---- Homepage: Top Banner Slider ---- */
.banner-slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.banner-track {
  display: flex;
  transition: transform 0.5s ease;
}
.banner-slide {
  flex: 0 0 100%;
  min-height: 170px;
  display: flex;
  align-items: center;
  padding: 26px 28px;
}
.banner-slide-a {
  background: linear-gradient(120deg, var(--olive), #3e4a28);
}
.banner-slide-b {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
}
.banner-txt {
  color: #fff;
  max-width: 520px;
}
.banner-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.banner-txt h3 {
  margin: 0 0 6px;
  font-family: "Baloo Da 2";
  font-size: clamp(18px, 3vw, 24px);
}
.banner-txt p {
  margin: 0 0 14px;
  font-size: 13.5px;
  opacity: 0.92;
}
.banner-btn {
  background: #fff !important;
  color: var(--ink) !important;
  font-weight: 700;
  padding: 9px 18px;
  font-size: 13.5px;
}
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.2s;
}
.banner-dot.active {
  background: #fff;
  width: 22px;
  border-radius: 6px;
}

/* ---- Homepage: Quick Category Icons ---- */
.quick-cat-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin-bottom: 6px;
}
.quick-cat-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px 20px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: 0.2s;
  box-shadow: 0 2px 6px rgba(36, 27, 20, 0.05);
}
.quick-cat-btn .qc-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.quick-cat-btn .qc-icon svg {
  width: 100%;
  height: 100%;
}
.quick-cat-btn:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(36, 27, 20, 0.1);
}
.quick-cat-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary-dark);
  color: #fff;
  box-shadow: 0 6px 16px rgba(193, 68, 14, 0.3);
}
.quick-cat-btn.active .qc-icon {
  color: #fff;
}

/* ---- Homepage: Flash Sale (Off-Peak Discount) ---- */
.flash-sale-wrap {
  margin-top: 8px;
}
.flash-sale-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.flash-card {
  flex: 0 0 168px;
  background: var(--paper);
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  padding: 14px;
  position: relative;
  box-shadow: 0 4px 12px rgba(36, 27, 20, 0.06);
}
.flash-badge-corner {
  position: absolute;
  top: -9px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 10px;
}
.flash-photo {
  font-size: 34px;
  text-align: center;
  margin: 6px 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}
.flash-name {
  font-weight: 700;
  font-size: 13.5px;
  text-align: center;
  min-height: 34px;
}
.flash-source {
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 6px;
}
.flash-price-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.flash-final-price {
  font-family: "Baloo Da 2";
  color: var(--primary);
  font-weight: 800;
  font-size: 16px;
}
.price-strike {
  color: var(--ink-soft);
  text-decoration: line-through;
  font-size: 12px;
}
.flash-add-btn {
  width: 100%;
  border-radius: 10px;
  height: 32px;
}
.slot-badge.flash-badge {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.slot-badge.preorder-badge {
  background: var(--olive);
  color: #fff;
  border-color: var(--olive);
  margin-left: 4px;
}

/* ---- Generic centered modal (Bulk Order etc.) ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 27, 20, 0.55);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--paper);
  border-radius: 16px;
  padding: 24px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.modal-head h3 {
  margin: 0;
  font-size: 19px;
}
.modal-close {
  cursor: pointer;
  font-size: 20px;
  color: var(--ink-soft);
  line-height: 1;
}

/* ---- Account page: Quick Access cards (Orders / Wallet / Subscriptions / Addresses) ---- */
.quick-access-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0 22px;
}
.quick-access-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
  box-shadow: 0 2px 6px rgba(36, 27, 20, 0.05);
}
.quick-access-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(36, 27, 20, 0.1);
}
.quick-access-card .qa-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.quick-access-card .qa-icon svg {
  width: 100%;
  height: 100%;
}
.quick-access-card span:last-child {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

/* ---- Account page: foodpanda-style grouped list ---- */
.acct-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 18px;
}
.acct-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 4px;
}
.acct-page-title {
  font-family: "Baloo Da 2", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.acct-profile-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.acct-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}
.acct-profile-avatar svg {
  width: 30px;
  height: 30px;
}
.acct-profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.acct-avatar-edit-btn {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--card-bg, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.acct-profile-name {
  font-family: "Baloo Da 2", sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
}
.acct-profile-settings-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.15s;
}
.acct-profile-settings-btn svg {
  width: 19px;
  height: 19px;
}
.acct-profile-settings-btn:hover {
  border-color: var(--gold);
  color: var(--primary);
}
.acct-quick-list {
  margin-bottom: 8px;
}
.acct-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 6px 0 22px;
}
.acct-quick-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 6px;
  cursor: pointer;
  transition: 0.15s;
  font-family: inherit;
}
.acct-quick-box:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.acct-quick-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.acct-quick-icon svg {
  width: 100%;
  height: 100%;
}
.acct-quick-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  line-height: 1.25;
}
.acct-app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 16px;
  padding: 18px 18px;
  margin: 2px 0 18px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: 0.15s;
}
.acct-app-banner:hover {
  filter: brightness(1.05);
}
.acct-app-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.acct-app-banner-text strong {
  font-family: "Baloo Da 2", sans-serif;
  font-size: 17px;
  font-weight: 700;
}
.acct-app-banner-text > span {
  font-size: 12.5px;
  opacity: 0.9;
  max-width: 230px;
}
.acct-app-banner-cta {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: 13px;
  margin-top: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.acct-app-banner-arrow {
  text-decoration: none;
}
.acct-app-banner-icon {
  font-size: 34px;
  flex-shrink: 0;
}
@media (max-width: 420px) {
  .acct-quick-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .acct-quick-box {
    padding: 13px 4px;
  }
}
.acct-row-logout .acct-row-label,
.acct-row-logout .acct-row-icon {
  color: #c0392b;
}
.acct-wallet-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px;
  margin: 14px 0 24px;
  cursor: pointer;
  transition: 0.2s;
}
.acct-wallet-box:hover {
  border-color: var(--gold);
}
.acct-wallet-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.acct-wallet-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.acct-wallet-sub {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.acct-wallet-amt {
  font-weight: 800;
  font-size: 17px;
  color: var(--primary);
}
.acct-group-title {
  font-family: "Baloo Da 2", sans-serif;
  font-size: 19px;
  margin: 26px 0 6px;
  color: var(--ink);
}
.acct-list {
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.acct-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: 0.15s;
  background: none;
  width: 100%;
  text-align: left;
}
.acct-row:hover {
  background: var(--bg);
}
.acct-row-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.acct-row-icon svg {
  width: 100%;
  height: 100%;
}
.acct-row-label {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.acct-row-chevron {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
}
.acct-row .cart-count {
  position: static;
  margin-right: 2px;
}
.acct-settings-row {
  cursor: default;
}
.acct-settings-row:hover {
  background: none;
}
.acct-settings-row .theme-toggle-btn,
.acct-settings-row .lang-toggle-btn {
  background: var(--bg);
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.acct-settings-row .theme-toggle-btn:hover,
.acct-settings-row .lang-toggle-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.acct-logout-btn {
  width: 100%;
  margin-top: 34px;
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 14px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
}
.acct-logout-btn:hover {
  background: var(--ink);
  color: var(--paper);
}
.acct-footer-version {
  text-align: center;
  color: var(--ink-soft);
  font-size: 12.5px;
  margin: 18px 0 6px;
}

/* ---- Order drawer: 3-step (Menu / Cart / Checkout) progress bar ---- */
.cart-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 20px 10px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.cart-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  cursor: pointer;
}
.cart-step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  transition: 0.2s;
}
.cart-step-label {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 600;
}
.cart-step.active .cart-step-circle,
.cart-step.done .cart-step-circle {
  background: var(--primary);
  color: #fff;
}
.cart-step.active .cart-step-label,
.cart-step.done .cart-step-label {
  color: var(--ink);
}
.cart-step-line {
  flex: 1 1 40px;
  height: 2px;
  background: var(--line);
  margin: 12px 4px 0;
}
.cart-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 14px;
}
.cart-back-link:hover {
  text-decoration: underline;
}
@media (max-width: 520px) {
  .quick-access-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Meal Subscription: breakfast/lunch/dinner slot cards + multi-item list ---- */
.slot-card {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: var(--paper);
}
.slot-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.slot-card-head input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.slot-fields {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.item-multi-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  margin-top: 4px;
}

/* ---- Subscription add-on cards (👵 আম্মুর ছুটি · 🎒 কিডস টিফিন · 🏥 ডায়েট প্ল্যান · 🏢 কর্পোরেট) ---- */
.addon-card {
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: #fffdf7;
}
.addon-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.addon-card-head input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.addon-fields {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.chip-toggle {
  position: relative;
}
.chip-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.chip-toggle span {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 20px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.chip-toggle input:checked + span {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

/* 🎓 Student Subscription: 7-day tab bar (one tab per day of week, filled
     in independently so e.g. Saturday can have a different hotel/food than
     Sunday). A tab turns green once that day has a hotel + at least one
     item picked; the currently-open day gets the olive "active" outline. */
.student-day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 10px;
}
.student-day-tab {
  padding: 7px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
.student-day-tab.active {
  border-color: var(--olive);
  color: var(--olive);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.03) inset;
}
.student-day-tab.done {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}
.student-day-tab.done::after {
  content: " ✓";
}
.student-day-progress {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.addon-disclaimer {
  font-size: 12px;
  color: var(--primary-dark);
  background: #fbeae3;
  border: 1px solid #f3d6ce;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
}
.addon-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.prescription-status {
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 6px;
}
.prescription-status.pending {
  background: #fce9c6;
  color: #8a5a00;
}
.prescription-status.approved {
  background: #d9ead3;
  color: #2e7d32;
}
.prescription-status.rejected {
  background: #f3d6ce;
  color: var(--primary-dark);
}

/* ---- Sadaqah & Donation (Feed the Needy) ---- */
.donation-quote-banner {
  position: relative;
  background: linear-gradient(120deg, var(--olive), #3e4a28);
  border-radius: 16px;
  padding: 26px 26px 22px;
  margin: 18px 0 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.donation-quote-mark {
  position: absolute;
  top: 2px;
  left: 14px;
  font-size: 54px;
  color: rgba(255, 255, 255, 0.18);
  font-family: Georgia, serif;
  line-height: 1;
}
.donation-quote-text {
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.55;
  margin: 0;
  max-width: 640px;
  transition: opacity 0.4s ease;
}
.donation-quote-source {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.donation-quote-text.fade {
  opacity: 0;
}

.donation-loc-card {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.donation-loc-card .dl-info {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.donation-loc-card .dl-icon {
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
}
.donation-loc-card .dl-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.donation-loc-card .dl-meta {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.donation-loc-card .dl-remove {
  cursor: pointer;
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
  background: none;
  border: none;
  padding: 2px 4px;
}

.donation-discount-hint {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--olive);
  margin: 6px 0 0;
}
.donation-discount-hint.none {
  color: var(--ink-soft);
  font-weight: 600;
}

#donationSummaryCard .account-row .v {
  font-weight: 700;
}
#donDiscountRow.has-discount {
  color: var(--olive);
}

.donation-history-card {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--paper);
}
.donation-history-card .dh-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}
.donation-history-card .dh-meta {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.donation-status {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
}
.donation-status.pending {
  background: #fce9c6;
  color: #8a5a00;
}
.donation-status.confirmed {
  background: #d9ead3;
  color: #2e7d32;
}

/* ===== Container ===== */

.cuisine-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;

  padding: 0;
  margin: 16px 0;
}

/* ===== Button ===== */

.cuisine-tag {
  display: flex;
  align-items: center;

  width: 180px;
  height: 70px;

  padding: 0; /* Remove all inner padding */
  overflow: hidden;

  background: #fffbf5;
  border: 2px solid #e5d6b7;
  border-radius: 18px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);

  transition: 0.25s ease;
  cursor: pointer;
}

.cuisine-tag:hover {
  transform: translateY(-3px);
  border-color: #c89a45;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.cuisine-tag.active {
  border-color: #c89a45;
  background: #fff4df;
}

/* ===== Image Side ===== */

.cuisine-icon {
  width: 68px;
  height: 68px;

  object-fit: cover;
  display: block;

  margin: 0; /* Remove margins */
  padding: 0;

  flex-shrink: 0;

  border-radius: 16px 0 0 16px;
}

/* ===== Text ===== */

.cuisine-tag span {
  flex: 1;

  margin: 0;
  padding: 0;

  text-align: center;

  font-size: 17px;
  font-weight: 700;
  color: #4c3a21;
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;
  border-radius: 14px;
  overflow: hidden; /* <-- This fixes the poking corners */

  padding: 0;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* or cover if you want it to fill */
}

/* ---------------------------------------------------------------------- */
/* Real photo uploads (restaurant badge / menu item image) — stored as a  */
/* compressed base64 data URL directly in Firestore, no Storage needed.   */
/* ---------------------------------------------------------------------- */
.entity-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.photo-upload-preview {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg);
  display: none;
}
.photo-upload-preview.show {
  display: block;
}
.photo-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-fixed);
  color-scheme: light;
}
.photo-upload-btn:hover {
  background: var(--bg);
}
.photo-upload-remove {
  font-size: 12.5px;
  color: #b23b3b;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  display: none;
}
.photo-upload-remove.show {
  display: inline-block;
}
.mini-photo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 2px;
}
