/* Rufaida Agro — shared app styles (mirrors the landing page design) */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/robotoflex.woff2') format('woff2');
  font-stretch: 75% 100%;
}

/* Hind Siliguri (OFL) — Bengali script support, self-hosted (CSP: no external fonts) */
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 400; font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1; src: url('../assets/fonts/hindsiliguri-400-bengali.woff2') format('woff2'); }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; src: url('../assets/fonts/hindsiliguri-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 500; font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1; src: url('../assets/fonts/hindsiliguri-500-bengali.woff2') format('woff2'); }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; src: url('../assets/fonts/hindsiliguri-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 600; font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1; src: url('../assets/fonts/hindsiliguri-600-bengali.woff2') format('woff2'); }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; src: url('../assets/fonts/hindsiliguri-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 700; font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1; src: url('../assets/fonts/hindsiliguri-700-bengali.woff2') format('woff2'); }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; src: url('../assets/fonts/hindsiliguri-700-latin.woff2') format('woff2'); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  background: #f8f8f8;
  overflow-y: scroll;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
::-webkit-scrollbar { display: none; }

body {
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  color: #252525;
  background: linear-gradient(to bottom, #fff, #f8f8f8 320px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; }
a { color: #0a512f; }

/* ---------- header (mirrors the landing .site-header) ---------- */
.app-header {
  position: relative;
  z-index: 10;
}
.app-header .bar {
  position: relative;
  padding: 1.21vw 5.9vw 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.app-header .logo img { display: block; width: 13.5vw; height: auto; }
.nav-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 2.48vw; }
.app-nav { display: flex; align-items: center; gap: 2.48vw; }
.app-nav a {
  position: relative;
  font-size: max(13px, 1.32vw);
  font-weight: 500;
  color: #1e1e1e;
  text-decoration: none;
}
.app-nav a:hover { color: #56893c; }
.app-nav a.on { color: #0a512f; }
.app-nav a:focus-visible { outline: 2px solid #0a512f; outline-offset: 3px; border-radius: 4px; }
.nav-toggle { display: none; }
.cart-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 12px;
  background: #f4f6f4;
  color: #14352a;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .12s ease;
}
.cart-btn:hover { background: #e9efe6; color: #0a512f; }
.cart-btn:active { transform: translateY(1px); }
.cart-btn:focus-visible { outline: 2px solid #0a512f; outline-offset: 2px; }
.cart-btn .badge {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 1.55em;
  padding: .16em .4em;
  border-radius: 99px;
  background: #0a512f;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
.cart-btn .badge.pop { animation: badge-pop .32s ease; }
.cart-btn .badge:empty { display: none; }
.lang-btn {
  border: 0;
  border-radius: 12px;
  background: #f4f6f4;
  color: #14352a;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  height: 46px;
  padding: 0 16px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .12s ease;
}
.lang-btn:hover { background: #e9efe6; color: #0a512f; }
.lang-btn:active { transform: translateY(1px); }
.lang-btn:focus-visible { outline: 2px solid #0a512f; outline-offset: 2px; }

/* ---------- bag drawer ---------- */
.bag-backdrop {
  position: fixed; inset: 0;
  z-index: 60;
  background: rgba(20, 53, 42, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.bag-backdrop.open { opacity: 1; pointer-events: auto; }
.bag {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 61;
  width: min(420px, 92vw);
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 18px 0 0 18px;
  transform: translateX(105%);
  transition: transform .28s ease;
}
.bag.open { transform: none; }
.bag.is-empty .bag-foot { display: none; }
.bag-head {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 24px;
}
.bag-head .bag-ic { display: inline-grid; place-items: center; color: #0a512f; }
.bag-head h2 { flex: 1; font-size: 19px; font-weight: 600; color: #14352a; }
.bag-x {
  border: 0; background: none;
  padding: 4px 8px;
  font: inherit; font-size: 24px; line-height: 1;
  color: #7a8a80;
  cursor: pointer;
}
.bag-x:hover { color: #14352a; }
.bag-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; display: flex; flex-direction: column; }
.bag-body > * { flex: none; }
.bag-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; color: #7a8a80; font-size: 15.5px; }
.bag-empty svg { color: #cfdcd2; }
.bag-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #eef1ee;
}
.bag-item:last-of-type { border-bottom: 0; }
.bag-item img, .bag-thumb {
  width: 56px; height: 56px; flex: none;
  object-fit: cover;
  border-radius: 12px;
  background: #f0f2f0;
}
.bag-item .bi-mid { flex: 1; min-width: 0; }
.bag-item .bi-name { font-size: 15.5px; font-weight: 600; color: #14352a; overflow-wrap: break-word; }
.bag-item .bi-meta { margin-top: 8px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #7a8a80; }
.bag-item .bi-qty { display: inline-flex; align-items: center; gap: 2px; background: #e7ebe6; border-radius: 10px; padding: 2px; }
.bi-qty .bq-x {
  width: 28px; height: 28px;
  border: 0; border-radius: 8px;
  background: transparent;
  font: inherit; font-size: 16px; line-height: 1;
  color: #14352a;
  cursor: pointer;
}
.bi-qty .bq-x:hover:not(:disabled) { background: #dbe6d6; }
.bi-qty .bq-x:disabled { color: #b9c4bc; cursor: default; }
.bi-qty .bq-n { min-width: 24px; text-align: center; font-size: 14px; font-weight: 600; color: #14352a; font-variant-numeric: tabular-nums; }
.bag-item .bi-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bag-item .bi-tot { font-size: 15.5px; font-weight: 600; color: #0a512f; white-space: nowrap; }
.bag-item .bi-rm {
  border: 0; background: none; padding: 0;
  font: inherit; font-size: 12.5px; font-weight: 500;
  color: #7a8a80;
  cursor: pointer;
}
.bag-item .bi-rm:hover { color: #a3320d; }
.bag-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0 4px;
  margin-top: 4px;
  border-top: 1px solid #eef1ee;
  font-size: 16px; font-weight: 600; color: #14352a;
}
.bag-subtotal b { font-size: 17.5px; color: #0a512f; }
.bag-foot {
  display: grid; gap: 12px;
  padding: 20px 24px 28px;
}
.bag-foot .btn { width: 100%; justify-content: center; text-decoration: none; }
.bag-foot .view-cart {
  text-align: center;
  font-size: 14.5px; font-weight: 600;
  color: #0a512f;
  text-decoration: none;
}
.bag-foot .view-cart:hover { text-decoration: underline; }

/* ---------- layout ---------- */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) 5.9vw clamp(64px, 7vw, 100px);
}
.wrap, .card, #panel { min-width: 0; width: 100%; }
body > .wrap, body > .auth-shell { flex: 1; }

/* centered section head, like .areas-head on the landing */
.page-head { margin: 0 auto 44px; max-width: 62ch; text-align: center; }
.eyebrow {
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #56893c;
}
.page-head h1 {
  margin-top: min(1.1vw, 16px);
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.12;
  font-weight: 600;
  font-stretch: 90%;
  letter-spacing: -0.02em;
  color: #14352a;
  text-wrap: balance;
}
.page-head p {
  margin: 1.2vw auto 0;
  max-width: 46ch;
  font-size: clamp(14px, 1.4vw, 19px);
  line-height: 1.55;
  color: #55655c;
}

/* ---------- cards / forms ---------- */
.card {
  background: #fff;
  border: 0;
  border-radius: 20px;
  padding: clamp(24px, 2.6vw, 36px);
}
.card h3 {
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 600;
  font-stretch: 92%;
  letter-spacing: -0.01em;
  color: #14352a;
  margin-bottom: 16px;
}
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.form label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; font-size: 15px; font-weight: 600; color: #14352a; }
.form input, .form select, .form textarea {
  font: inherit;
  font-size: 16px;
  color: #252525;
  padding: 15px 16px;
  border: 0;
  border-radius: 12px;
  background-color: #e7ebe6;
  width: 100%;
  transition: background .2s;
}
.form textarea { min-height: 96px; resize: vertical; }
.form select { appearance: none; -webkit-appearance: none; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%237a8a80" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>'); background-repeat: no-repeat; background-position: right 16px center; padding-right: 46px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  background-color: #dbe6d6;
}
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hint { font-size: 14px; font-weight: 400; color: #7a8a80; }
.form input::placeholder, .form textarea::placeholder,
.track-form input::placeholder, .coupon-row input::placeholder { color: #9aa8a0; }
input:-webkit-autofill, textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #e7ebe6 inset;
  -webkit-text-fill-color: #252525;
  caret-color: #252525;
}
input:-webkit-autofill:focus, textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #dbe6d6 inset;
}
.otp-row { display: flex; gap: 12px; align-items: stretch; }
.otp-row input { flex: 1 1 auto; width: auto; min-width: 0; }
.otp-row .btn { flex: 0 0 auto; padding: 15px 18px; }
.auth-shell .otp-row .btn, .admin-form .otp-row .btn { width: auto; margin-top: 0; }
@media (max-width: 420px) { .otp-row .btn { padding: 15px 12px; font-size: 15px; } }
@media (max-width: 480px) {
  .otp-row { flex-direction: column; gap: 18px; }
  .otp-row input { width: 100%; }
  .otp-row .btn, .auth-shell .otp-row .btn, .admin-form .otp-row .btn { width: 100%; margin-top: 0; }
}

/* button = landing .cta, flat */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border: 0;
  border-radius: 12px;
  background: #0a512f;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background .2s, transform .12s ease;
}
.btn:hover { background: #084527; }
.btn:not(:disabled):active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid #0a512f; outline-offset: 3px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost {
  background: #f2f5f2;
  color: #0a512f;
  border: 0;
  box-shadow: none;
}
.btn.ghost:hover { background: #e6ede4; }
.btn.small { padding: 8px 16px; font-size: 13px; }
.btn.danger { background: #f9ece6; color: #a3320d; border: 0; box-shadow: none; }
.btn.danger:hover { background: #fdf3ef; }

.error-box {
  padding: 13px 16px;
  border-radius: 12px;
  background: #fdeeee;
  border: 0;
  color: #9c2a2a;
  font-size: 15px;
  animation: fade-in .25s ease;
}
.ok-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: #eef5ea;
  border: 0;
  color: #14352a;
  font-size: 14.5px;
  line-height: 1.6;
  animation: fade-in .3s ease;
}

/* ---------- auth pages ---------- */
.auth-shell {
  width: min(520px, 92vw);
  margin: clamp(48px, 7vw, 110px) auto clamp(64px, 8vw, 110px);
  padding: 0 18px;
}
.auth-shell .card { padding: 0; text-align: center; background: none; border: 0; border-radius: 0; box-shadow: none; }
.auth-shell .eyebrow { display: block; font-size: clamp(13px, 1.15vw, 16px); }
.auth-shell h1 {
  margin-top: 10px;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.1;
  font-weight: 600;
  font-stretch: 90%;
  letter-spacing: -0.02em;
  color: #14352a;
}
.auth-shell .subtle { margin: 14px 0 30px; font-size: clamp(15px, 1.4vw, 18px); }
.auth-shell .form { text-align: left; gap: 20px; }
.auth-shell .form label { font-size: 15px; }
.auth-shell .form input { padding: 15px 16px; }
.auth-shell .btn { width: 100%; margin-top: 8px; padding: 15px 32px; font-size: 16px; }
.auth-shell .hint { margin-top: 24px; font-size: 15px; }
.auth-shell .hint a { font-weight: 600; text-decoration: none; }

/* ---------- cart ---------- */
.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
}
.cart-line:first-child { padding-top: 0; }
.cart-line:last-of-type { border-bottom: 0; padding-bottom: 0; }
.cart-line img { width: 84px; height: 66px; object-fit: cover; border-radius: 12px; background: #f0f2f0; }
.cart-line b { font-size: 17px; font-weight: 600; font-stretch: 94%; color: #14352a; }
.line-right > b { font-size: 17px; font-weight: 600; color: #14352a; }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 0; border-radius: 10px; overflow: hidden; background: #e7ebe6; }
.qty button {
  width: 36px; height: 36px;
  border: 0; background: none;
  font: inherit; font-size: 17px; color: #14352a;
  cursor: pointer;
}
.qty button:hover { background: #eef5ea; }
.qty button:disabled { color: #b9c4bc; cursor: default; background: none; }
.qty span { min-width: 34px; text-align: center; font-size: 15px; font-weight: 600; }
.qty input {
  width: 46px; min-width: 0; height: 36px;
  border: 0; border-radius: 0; background: none;
  font: inherit; font-size: 15px; font-weight: 600; color: #14352a;
  text-align: center;
  appearance: textfield; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.qty input:focus { outline: none; background: #dbe6d6; }
.max-hint { margin-top: 6px; font-size: 13px; }
.line-right { display: grid; justify-items: end; gap: 8px; }
.rm { border: 0; background: none; font: inherit; font-size: 14px; color: #a3320d; cursor: pointer; text-decoration: underline; }

.summary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.srow { display: flex; justify-content: space-between; gap: 14px; font-size: 15.5px; color: #55655c; }
.srow.total { padding-top: 14px; font-size: 19px; font-weight: 600; color: #14352a; }
.disc { color: #56893c; font-weight: 500; }

.coupon-row { display: flex; gap: 10px; }
.coupon-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  color: #252525;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: #e7ebe6;
}
.coupon-row input:focus { outline: none; background: #dbe6d6; }
.coupon-row .btn { padding: 14px 26px; }

.empty { padding: 64px 20px; text-align: center; color: #55655c; background: #fff; border: 0; border-radius: 20px; }
.empty h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; font-stretch: 92%; color: #14352a; margin-bottom: 8px; }
.empty p { font-size: 15.5px; margin-bottom: 24px; }

/* ---------- two-column ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.side > .side-card:first-child { position: sticky; top: 24px; }
.side-card h3 { margin-bottom: 6px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cod-note {
  margin-top: 26px;
  display: flex; gap: 10px;
  font-size: 14.5px;
  color: #14352a;
  line-height: 1.55;
}
.cod-note b { color: #0a512f; flex: none; }
@media (max-width: 640px) {
  .cod-note { flex-direction: column; gap: 6px; margin-top: 20px; }
}
.mini-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: #55655c; padding: 9px 0; }
.mini-line b { color: #14352a; font-weight: 500; }

/* ---------- track / orders ---------- */
.status-badge {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.st-placed    { background: #eef2fb; color: #3b5a9c; }
.st-confirmed { background: #e9f4ef; color: #166b46; }
.st-packed    { background: #fdf3e0; color: #9a6a11; }
.st-shipped   { background: #e8f1fb; color: #1f5fa8; }
.st-delivered { background: #eef5ea; color: #3c6d2a; }
.st-cancelled { background: #fdeeee; color: #a3320d; }

.timeline { display: flex; gap: 0; margin: 30px 0 12px; }
.timeline .step { flex: 1; text-align: center; position: relative; font-size: 12px; color: #9aa8a0; }
.timeline .step::before {
  content: '';
  display: block;
  width: 14px; height: 14px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #dfe6df;
  border: 3px solid #eef1ee;
}
.timeline .step::after {
  content: '';
  position: absolute;
  top: 7px; left: -50%;
  width: 100%; height: 2px;
  background: #e3e8e3;
  z-index: -1;
}
.timeline .step:first-child::after { display: none; }
.timeline .step.done { color: #0a512f; font-weight: 600; }
.timeline .step.done::before { background: #56893c; border-color: #dcecd4; }
.timeline .step.done::after { background: #56893c; }

/* ---------- track page ---------- */
.track-form { display: flex; gap: 12px; max-width: 580px; margin: 0 auto; }
.track-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #252525;
  padding: 15px 16px;
  border: 0;
  border-radius: 12px;
  background: #e7ebe6;
  transition: background .2s;
}
.track-form input:focus { outline: none; background: #dbe6d6; }
.track-form .btn { padding: 15px 34px; }
.track-form .btn:disabled { opacity: .55; }
#err:not([hidden]), #result { max-width: 640px; margin: 18px auto 0; }
.track-card {
  background: #fff;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
  padding: clamp(24px, 3vw, 36px);
}
.track-card .thead { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.track-card .code {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  font-stretch: 92%;
  letter-spacing: -0.01em;
  color: #14352a;
}
.track-card .status-badge { font-size: 13px; padding: 7px 16px; }
.track-card .hint { font-size: 15px; margin-top: 8px; }
.track-card .error-box { margin-top: 22px; }
.track-card .timeline { margin: 38px 2px 26px; }
.track-card .timeline .step { font-size: 13px; }
.track-card .mini-line { font-size: 15px; padding: 10px 0; }
.track-card .srow { font-size: 15px; padding: 5px 0; }
.track-card .srow.total { font-size: 19px; padding-top: 14px; }
.track-card > div:first-of-type { margin-bottom: 4px; }
@media (max-width: 480px) {
  .track-form { flex-direction: column; gap: 18px; }
  .track-card .timeline .step { font-size: 11px; }
}

.order-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  font-size: 15.5px;
}
.order-list .order-row:first-child { border-top: 0; padding-top: 0; }
.order-list .order-row:last-child { padding-bottom: 0; }
.order-row > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.order-row .oc { font-size: 17px; font-weight: 600; color: #14352a; letter-spacing: .02em; }
.order-row .om { color: #7a8a80; font-size: 14.5px; }
.order-row .rm { color: #0a512f; font-weight: 600; font-size: 15px; text-decoration: none; }

/* ---------- admin ---------- */
.tabs { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 42px; }
.tabs button {
  padding: 14px 26px;
  border: 0;
  border-radius: 12px;
  background: #e9ede9;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #33463d;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.tabs button:hover { color: #0a512f; background: #dfe8df; }
.tabs button.on { background: #0a512f; color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; margin-bottom: 42px; }
.stat {
  background: #fff;
  border: 0;
  border-radius: 18px;
  padding: 28px;
}
.stat b { display: block; font-size: 28px; font-weight: 600; font-stretch: 92%; letter-spacing: -0.01em; color: #14352a; }
.stat span { font-size: 12.5px; color: #7a8a80; text-transform: uppercase; letter-spacing: .1em; }

table.tbl { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.tbl.wide { min-width: 900px; }
.tbl th { white-space: nowrap; text-align: left; padding: 11px 12px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: #7a8a80; }
.tbl th, .tbl td { text-align: left; overflow-wrap: break-word; }
.tbl td { padding: 16px 12px; color: #252525; vertical-align: middle; }
.tbl td:last-child { padding-right: 28px; }
.rows .trow { padding-top: 8px; padding-bottom: 8px; }
.rows .trow + .trow { margin-top: 14px; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl select, .tbl input { width: 100%; min-width: 0; font: inherit; font-size: 14.5px; color: #252525; padding: 10px 12px; border: 0; border-radius: 12px; background-color: #e7ebe6; }
.tbl select { appearance: none; -webkit-appearance: none; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%237a8a80" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>'); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.tbl select:focus, .tbl input:focus { outline: none; background-color: #dbe6d6; }
.tbl .imgcell { width: 54px; }
.tbl .imgcell img { width: 54px; height: 40px; object-fit: cover; border-radius: 8px; background: #f0f2f0; display: block; }
.tbl .acts { display: flex; gap: 8px; justify-content: flex-end; }
.scroll-x { overflow-x: auto; }
.card.scroll-x { width: 0; min-width: 100%; }
.tbl-head { padding-top: 15px; padding-bottom: 15px; margin-bottom: 14px; }
.admin-form { margin-bottom: 34px; padding: clamp(28px, 3vw, 42px); }
body[data-no-lang] .wrap { max-width: 1400px; }
.admin-form h3 { margin-bottom: 22px; }
.admin-form .form { max-width: 560px; gap: 24px; }
.admin-form .form .row2 { gap: 24px; }
.field-label { font-size: 15px; font-weight: 600; color: #14352a; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.subtle { color: #7a8a80; font-size: 14.5px; }
.section-title { margin: 30px 0 14px; font-size: 19px; font-weight: 600; font-stretch: 94%; color: #14352a; }
.img-prev img { height: 56px; width: auto; border-radius: 10px; }

/* ---------- footer ---------- */
.app-foot { margin-top: auto; text-align: center; padding: 26px 18px 34px; font-size: 13px; color: #7a8a80; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .side-card { position: static; }
  .tbl .acts { flex: 1 1 auto; justify-content: stretch; }
  .tbl .acts .btn { flex: 1 1 0; width: 0; min-width: 0; padding-left: 8px; padding-right: 8px; border-radius: 6px; }
}
@media (max-width: 640px) {
  .app-header .bar { padding: 20px 5.9vw 0; }
  .app-header .logo img { width: 130px; }
  .wrap { padding: 48px 18px 76px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 40px; }
  .stat { padding: 30px 26px; }
  .stat b { font-size: 30px; }
  .page-head { margin-bottom: 40px; }
  .form .row2 { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr auto; align-items: start; }
  .cart-line img { width: 64px; height: 52px; }
  .line-right { justify-items: end; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; justify-content: stretch; margin-bottom: 40px; }
  .tabs button { width: 100%; padding: 16px 10px; font-size: 15.5px; }
  .tbl.wide { min-width: 0; }
  .tbl { table-layout: auto; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody { display: block; width: 100%; }
  .card.scroll-x { background: transparent; padding: 0; }
  .rows .trow + .trow { margin-top: 18px; }
  .tbl-head { display: none; }
  .tbl tr { display: block; position: relative; background: #fff; border-radius: 18px; padding: 26px 22px; }
  .tbl td:has(.imgcell) { position: absolute; top: 18px; right: 20px; padding: 0; display: block; }
  .tbl td:has(.imgcell) + td { font-size: 16.5px; font-weight: 600; color: #14352a; justify-content: flex-start; padding-right: 80px; }
  .tbl td:has(.imgcell) + td::before { display: none; }
  .tbl td:has(.acts)::before { display: none; }
  .tbl td > .acts { flex: 1 1 auto; justify-content: stretch; gap: 10px; flex-wrap: nowrap; }
  .tbl td:last-child { padding-right: 0; }
  .tbl .acts .btn { flex: 1 1 0; width: 0; min-width: 0; padding: 10px 8px; font-size: 15px; border-radius: 12px; }
  .tbl tbody tr + tr { margin-top: 18px; border-top: 0; }
  .tbl td { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; text-align: right; }
  .tbl td:first-child { font-size: 16.5px; font-weight: 600; color: #14352a; }
  .tbl td:first-child::before { display: none; }
  .tbl td:first-child .subtle { font-weight: 400; }
  .tbl td::before { content: attr(data-label); flex: none; font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: #7a8a80; }
  .tbl td > div:not(.acts):not(.imgcell) { text-align: right; }
  .tbl td .subtle { font-size: 14px; }
  .tbl select { width: auto; max-width: 100%; min-width: max-content; flex-shrink: 0; font-size: 15px; padding: 12px 38px 12px 16px; }
  .tbl td > input { width: auto; flex: 1 1 auto; min-width: 0; text-align: right; }
  .tbl .acts { flex: 1 1 auto; justify-content: stretch; flex-wrap: nowrap; }
}
@media (max-width: 820px) {
  .app-header .bar { padding: 20px 5.9vw 0; gap: 10px; }
  .app-header .logo img { width: 130px; }
  .nav-wrap { display: contents; }
  .app-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 5.9vw;
    margin-top: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    min-width: 158px;
    padding: 8px;
    background: rgba(255, 255, 255, .96);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(20, 53, 42, .18);
  }
  .app-nav.open { display: flex; }
  .app-nav a {
    display: block;
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 9px;
  }
  .app-nav a:active { background: #eef5ea; }
  .cart-btn { width: 42px; height: 42px; margin-right: 0; }
  .cart-btn svg { width: 24px; height: 24px; }
  .lang-btn { height: 42px; padding: 0 14px; font-size: 15px; margin-left: auto; margin-right: 10px; }
  .nav-wrap:not(:has(.lang-btn)) .cart-btn { margin-left: auto; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-right: -6px;
    border: 0;
    border-radius: 12px;
    background: #f4f6f4;
    color: #14352a;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle[aria-expanded="true"] { background: #e9efe6; color: #0a512f; }
}

/* ---------- Bangla typography ---------- */
html[lang="bn"] body:not([data-no-lang]) {
  font-family: 'Hind Siliguri', 'Roboto', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.65;
}
html[lang="bn"] body:not([data-no-lang]) h1,
html[lang="bn"] body:not([data-no-lang]) h2,
html[lang="bn"] body:not([data-no-lang]) h3 { letter-spacing: normal; line-height: 1.35; font-stretch: 100%; }
html[lang="bn"] body:not([data-no-lang]) .eyebrow,
html[lang="bn"] body:not([data-no-lang]) .status-badge { text-transform: none; letter-spacing: normal; }

/* Bangla data fields/columns in the English admin UI */
.bn-lang { font-family: 'Hind Siliguri', 'Roboto', 'Segoe UI', system-ui, sans-serif; }

/* ---------- motion ---------- */
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.97); } }
@keyframes badge-pop { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.28); } }
.fade-up { animation: fade-up .35s ease backwards; }
.pop-in { animation: pop-in .3s ease backwards; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- custom dropdown (all selects, all browsers) ---------- */
.dd { position: relative; display: block; }
.dd > select {
  position: absolute;
  width: 1px; height: 1px;
  margin: 0; border: 0; padding: 0;
  opacity: 0;
  pointer-events: none;
}
.dd-btn {
  display: flex;
  align-items: center;
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: #252525;
  text-align: left;
  padding: 15px 46px 15px 16px;
  border: 0;
  border-radius: 12px;
  background-color: #e7ebe6;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%237a8a80" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  transition: background-color .2s, transform .12s ease;
}
.dd-btn:hover { background-color: #dde4dc; }
.dd.open > .dd-btn, .dd.open > .dd-btn:hover { background-color: #dbe6d6; }
.dd-btn:focus-visible { outline: 2px solid #0a512f; outline-offset: 3px; }
.dd-btn:not(:disabled):active { transform: translateY(1px); }
.dd-btn:disabled { opacity: .55; cursor: not-allowed; }
.dd-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-list {
  position: fixed;
  z-index: 80;
  max-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 6px;
  background: #fff;
  border: 1px solid #e3eae3;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(20, 53, 42, .16);
  display: none;
}
.dd.open .dd-list { display: block; animation: dd-in .16s ease; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-6px); } }
.dd-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 15.5px;
  color: #252525;
  cursor: pointer;
}
.dd-opt:hover, .dd-opt.active { background: #eef5ea; }
.dd-opt.on { background: #eef5ea; color: #0a512f; font-weight: 600; }
.dd-opt.on::after { content: '\2713'; margin-left: auto; color: #0a512f; }
.dd.dd-tbl > .dd-btn { font-size: 14.5px; padding: 10px 34px 10px 12px; border-radius: 12px; background-position: right 12px center; }
.dd.dd-tbl .dd-opt { font-size: 14.5px; }
@media (max-width: 640px) {
  .dd.dd-tbl { width: auto; max-width: 100%; }
  .dd.dd-tbl > .dd-btn { width: auto; min-width: max-content; font-size: 15px; padding: 12px 38px 12px 16px; background-position: right 16px center; }
}
