/* Droplify — built on DESIGN.md (Shopify-inspired).
   One light track everywhere: cream canvas, black pills, aloe/pistachio fills. */
:root {
  --bg: #fbfbf5;            /* canvas-cream */
  --surface: #ffffff;       /* canvas-light */
  --sunken: #f4f4f5;
  --ink: #000000;
  --ink-2: #3f3f46;         /* shade-70 */
  --muted: #71717a;         /* shade-50 */
  --faint: #a1a1aa;         /* shade-40 */
  --line: #e4e4e7;          /* hairline-light */
  --line-2: #d4d4d8;        /* shade-30 */
  --aloe: #c1fbd4;
  --pistachio: #d4f9e0;
  --accent: #000000;
  --accent-soft: var(--aloe);
  --danger: #b4281b;
  --danger-soft: #fde8e5;
  --night: #000000;
  --night-2: #0a0a0a;
  --night-3: #1e2c31;
  --font: 'Inter', 'Inter Variable', 'Noto Sans Bengali', 'Hind Siliguri', Helvetica, Arial, sans-serif;
  --font-bn-display: 'Inter', 'Noto Sans Bengali', 'Anek Bangla', 'Hind Siliguri', Helvetica, Arial, sans-serif;
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 20px; --pill: 9999px;
  --shadow: 0 8px 8px rgba(0, 0, 0, .1), 0 4px 4px rgba(0, 0, 0, .1), 0 2px 2px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .1);
  --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font); font-feature-settings: "ss03"; font-optical-sizing: auto; font-weight: 420; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; font-feature-settings: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; font-feature-settings: inherit; color: inherit; }
b, strong { font-weight: 550; }
h1, h2, h3, h4 { font-weight: 550; line-height: 1.2; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
ul, ol { list-style: none; padding: 0; }
small { display: block; font-size: 13px; color: var(--muted); font-weight: 420; letter-spacing: -.005em; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.fine { font-size: 14px; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--ink); font-weight: 550; }
.neg { color: var(--danger) !important; }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.link { color: var(--ink); font-weight: 550; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link:hover { text-decoration-color: var(--ink); }
.ico { width: 18px; height: 18px; flex: none; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; }
.wrap-row { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.progress { height: 8px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- buttons: pill is the only button shape ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 24px; border-radius: var(--pill); border: 1px solid transparent; font-weight: 500; font-size: 15px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--ink-2); }
.btn.accent { background: var(--aloe); color: var(--ink); }
.btn.accent:hover { background: #a9f5c4; }
.btn.ghost { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn.ghost:hover { background: var(--sunken); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.text { color: var(--muted); padding: 0 12px; }
.btn.text:hover { color: var(--ink); }
.btn.sm { height: 34px; padding: 0 16px; font-size: 13.5px; }
.btn.lg { height: 52px; padding: 0 30px; font-size: 16px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.busy { pointer-events: none; opacity: .75; }
.btn.busy::before { content: ''; flex: none; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#loadbar { position: fixed; top: 0; left: 0; z-index: 9999; height: 3px; width: 0; background: var(--ink); opacity: 0; pointer-events: none; }
#loadbar.on { opacity: 1; width: 75%; transition: width 8s cubic-bezier(.1, .6, .2, 1); }
#loadbar.on.done { width: 100%; opacity: 0; transition: width .2s, opacity .3s .1s; }
.danger-text { color: var(--danger) !important; border-color: var(--line-2) !important; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: var(--pill); color: var(--muted); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--sunken); color: var(--ink); }
.icon-btn:disabled { opacity: .4; }
.table td.inv-cell { width: 1%; padding-left: 0; padding-right: 14px; }
.btn.inv-btn { height: 32px; padding: 0 12px; gap: 6px; border-color: var(--line); font-size: 13px; }
.btn.inv-btn:hover { border-color: var(--ink); }
.btn.inv-btn .ico { width: 16px; height: 16px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 14px; font-weight: 550; color: var(--ink); }
.hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea { width: 100%; height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); outline: 0; transition: border-color .15s, box-shadow .15s; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%2371717a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.select.auto { width: auto; min-width: 170px; }
.textarea { height: auto; min-height: 88px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--aloe); }
.input:disabled { background: var(--sunken); color: var(--muted); }
.input-pre { position: relative; }
.input-pre > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-pre .input { padding-left: 28px; }
.search { position: relative; min-width: 250px; }
.search .ico { position: absolute; left: 14px; top: 13px; color: var(--faint); }
.search .input { padding-left: 40px; border-radius: var(--pill); }

/* ---------- language switch ---------- */
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--pill); background: var(--surface); align-self: flex-start; }
.lang button { padding: 4px 12px; border-radius: var(--pill); font-size: 13px; font-weight: 500; color: var(--muted); line-height: 20px; }
.lang button.on { background: var(--ink); color: #fff; }
.side-foot .lang { align-self: stretch; }
.side-foot .lang button { flex: 1; }

/* ---------- logo / avatar / tile / badge ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.logo b { font-weight: 550; font-size: 21px; letter-spacing: -.02em; line-height: 1; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--aloe); color: var(--ink); display: grid; place-items: center; font-weight: 550; font-size: 13px; flex: none; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }

.tile { --tile: var(--sunken); aspect-ratio: 1; background: var(--tile); border-radius: var(--r-lg); display: grid; place-items: center; color: rgba(0, 0, 0, .45); overflow: hidden; }
.tile .ico { width: 34%; height: 34%; stroke-width: 1.2; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.sm { width: 44px; height: 44px; border-radius: var(--r-md); flex: none; }
.tile.sm .ico { width: 50%; height: 50%; stroke-width: 1.5; }
.tile[data-cat="home"], .tile[data-cat="fitness"], .tile[data-cat="wedding"] { --tile: var(--pistachio); }
.tile[data-cat="beauty"] { --tile: var(--aloe); }
.tile[data-cat="fashion"], .tile[data-cat="kids"] { --tile: #f1f1ee; }
.tile[data-cat="gadgets"] { --tile: var(--line); }

.badge { display: inline-block; padding: 3px 12px; border-radius: var(--pill); font-size: 12.5px; font-weight: 500; line-height: 18px; background: var(--sunken); color: var(--ink-2); white-space: nowrap; }
.b-pending { background: var(--line-2); color: var(--ink); }
.b-confirmed { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.b-shipped { background: var(--pistachio); color: var(--ink); }
.b-delivered, .b-active, .b-paid { background: var(--aloe); color: var(--ink); }
.b-cancelled, .b-draft { background: var(--sunken); color: var(--muted); }
.b-returned, .b-suspended, .b-rejected { background: var(--danger-soft); color: var(--danger); }

/* ---------- dashboard shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 14px 14px; border-right: 1px solid var(--line); background: var(--bg); z-index: 30; }
.side .brand { padding: 0 12px 24px; }
.side-label { padding: 0 14px 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--pill); color: var(--ink-2); font-weight: 500; font-size: 15px; transition: background .15s; }
.nav-item:hover { background: var(--sunken); }
.nav-item.on { background: var(--ink); color: #fff; }
.nav-item em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 550; background: var(--aloe); color: var(--ink); border-radius: var(--pill); min-width: 22px; height: 22px; padding: 0 7px; display: grid; place-items: center; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.demo-box { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.demo-box > span { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 500; padding: 0 4px 4px; }
.demo-box button { display: flex; align-items: center; gap: 8px; text-align: left; padding: 6px 4px; font-size: 14px; color: var(--ink-2); border-radius: var(--r-sm); }
.demo-box button:hover { color: var(--ink); text-decoration: underline; }
.demo-box.light { margin-top: 22px; text-align: left; }
.me { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 14px 6px 0; }
.me > div:nth-child(2) { min-width: 0; flex: 1; }
.me b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 14px; padding: 32px 40px 8px; max-width: 1240px; }
.top-title { flex: 1; min-width: 0; }
.top-title h1 { font-weight: 330; font-size: 40px; line-height: 1.1; }
.top-title p { color: var(--muted); margin-top: 6px; }
.top-actions { display: flex; gap: 10px; }
.menu { display: none; }
.nav-scrim { display: none; }
.content { padding: 20px 40px 56px; max-width: 1240px; display: flex; flex-direction: column; gap: 20px; }

/* ---------- cards / stats ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card.flush { padding: 0; overflow: hidden; }
.card.tint { background: var(--pistachio); border-color: transparent; }
.card.narrow { max-width: 680px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head.pad { padding: 22px 24px 0; margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; display: flex; flex-direction: column; gap: 2px; }
.stat small { font-weight: 500; color: var(--muted); font-size: 14px; }
.stat b { font-weight: 330; font-size: 38px; letter-spacing: -.01em; line-height: 1.15; }
.stat span { font-size: 13.5px; color: var(--muted); }
.stat.good { background: var(--aloe); border-color: var(--aloe); }
.stat.good small, .stat.good span { color: rgba(0, 0, 0, .65); }
.stat.warn { border-color: var(--ink); }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }

.bars { height: 190px; display: flex; align-items: flex-end; gap: 8px; padding-top: 8px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bar i { display: block; width: 100%; max-width: 30px; min-height: 3px; background: var(--ink); border-radius: var(--r-md) var(--r-md) 2px 2px; opacity: .88; transition: opacity .15s, background .15s; }
.bar:hover i { opacity: 1; background: #111; }
.bar span { font-size: 12px; color: var(--muted); }

.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list-row:first-of-type { border-top: 0; }
.list-row b { display: block; font-size: 15px; }
.howto { counter-reset: s; display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.howto li { counter-increment: s; display: flex; gap: 12px; color: var(--ink-2); }
.howto li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--ink); font-weight: 550; font-size: 13px; display: grid; place-items: center; }

/* ---------- toolbar / tabs / chips ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button { padding: 8px 14px; border-radius: var(--pill); font-weight: 500; font-size: 14px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.tabs button em { font-style: normal; font-size: 12.5px; color: var(--faint); }
.tabs button:hover { color: var(--ink); background: var(--sunken); }
.tabs button.on { background: var(--ink); color: #fff; }
.tabs button.on em { color: rgba(255, 255, 255, .6); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { padding: 8px 16px; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--pill); font-size: 14px; font-weight: 500; transition: border-color .15s; }
.chips button:hover { border-color: var(--ink); }
.chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg); white-space: nowrap; }
.table th.r { text-align: right; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--bg); }
.table td small { margin-top: 1px; }
.cell-prod { display: flex; align-items: center; gap: 12px; }
.empty { padding: 52px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty p { color: var(--muted); max-width: 360px; margin-bottom: 12px; }

/* ---------- product grid ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 22px 0 4px; flex-wrap: wrap; }
.pager button { min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface, #fff); border-radius: var(--r-md); font: inherit; cursor: pointer; color: inherit; }
.pager button.on { background: var(--ink, #111); color: #fff; border-color: var(--ink, #111); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .pg-gap { padding: 0 2px; color: var(--muted, #888); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pcard:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard.static { cursor: default; }
.pcard.static:hover { transform: none; box-shadow: none; }
.pcard .tile.lg { aspect-ratio: 5 / 4; border-radius: var(--r-md); }
.pcard-body { padding: 0 8px 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.pcard h3 { font-size: 16px; line-height: 1.3; min-height: 42px; }
.price-row { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.price-row small { font-size: 12px; }
.price-row b { font-size: 15px; font-variant-numeric: tabular-nums; }
.price-row .margin b { background: var(--aloe); padding: 0 8px; border-radius: var(--pill); margin-left: -8px; display: inline-block; }
.price-row .lock b { color: var(--faint); font-size: 13px; font-weight: 500; }
.pcard.static .price-row { grid-template-columns: repeat(2, auto); }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; gap: 8px; }
.stock { font-size: 13px; color: var(--muted); }
.stock.low { color: var(--danger); font-weight: 550; }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 350px; gap: 20px; align-items: start; }
.summary { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.cart-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.cart-row:first-of-type { border-top: 0; padding-top: 0; }
.cart-row b { display: block; font-size: 15px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--pill); height: 40px; }
.stepper button { width: 36px; height: 100%; display: grid; place-items: center; color: var(--muted); }
.stepper button:hover:not(:disabled) { color: var(--ink); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper span { min-width: 22px; text-align: center; font-weight: 550; }
.price-in { width: 116px; }
.price-in .input { height: 40px; }

/* ---------- sums / lines / timeline / misc ---------- */
.lines li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lines b { display: block; font-size: 15px; }
.lines li > span { margin-left: auto; font-weight: 550; font-variant-numeric: tabular-nums; }
.lines li > div { min-width: 0; }
.sums { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.sums > div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 15px; }
.sums dd { color: var(--ink); font-variant-numeric: tabular-nums; }
.sums .strong { color: var(--ink); font-weight: 550; padding-top: 10px; border-top: 1px solid var(--line); }
.sums .sep { padding-top: 10px; border-top: 1px dashed var(--line-2); }
.sums .profit { color: var(--ink); font-weight: 550; background: var(--aloe); padding: 12px 14px; border-radius: var(--r-md); margin-top: 2px; }
.sums .profit dd { color: var(--ink); font-size: 18px; }
.profit-box { display: flex; justify-content: space-between; align-items: center; background: var(--aloe); padding: 12px 14px; border-radius: var(--r-md); font-weight: 550; }
.profit-box b { font-size: 18px; }
.profit-box b.neg { color: var(--danger) !important; }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.mini-stats > div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }
.mini-stats b { display: block; font-size: 18px; font-weight: 450; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-top: 18px; }
.kv dt { font-size: 13px; color: var(--muted); }
.kv dd { font-weight: 500; overflow-wrap: anywhere; }
.addr { line-height: 1.6; margin: 4px 0 18px; }
.timeline { position: relative; margin-top: 8px; }
.timeline li { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: -2px; width: 1px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); margin-top: 5px; flex: none; position: relative; z-index: 1; }
.timeline li.now i { border-color: var(--ink); background: var(--ink); }
.timeline b { display: block; font-size: 14.5px; }
.sub-h { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- modal ---------- */
#modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
#modal.open { display: flex; }
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); animation: fade .15s ease; }
.dialog { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-modal); animation: rise .2s ease; }
.dialog.wide { max-width: 780px; }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 24px 4px; }
.dlg-head h3 { font-size: 22px; font-weight: 450; }
.dlg-body { padding: 18px 24px; }
.dlg-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 24px 24px; flex-wrap: wrap; }
.dlg-foot .danger-text { margin-right: auto; }
.dlg-foot .danger-text + .danger-text { margin-right: 0; }
.order-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.order-grid .label { margin-bottom: 4px; display: block; }
.form-split { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.img-up { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.img-up .tile { width: 200px; }
.img-up label { cursor: pointer; }
.ship-form { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.ship-form .select { width: 130px; }
.ship-form .input { width: 190px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }

#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--pill); font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-modal); animation: rise .2s ease; transition: opacity .25s, transform .25s; }
.toast .ico { width: 16px; height: 16px; color: var(--aloe); }
.toast.error { background: var(--danger); }
.toast.error .ico { color: #fff; }
.toast.out { opacity: 0; transform: translateY(6px); }

/* ---------- auth (transactional track) ---------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 28px 20px 48px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; max-width: 1160px; width: 100%; margin: 0 auto 8px; }
.auth-card { width: 100%; max-width: 440px; margin: 4vh auto 0; background: var(--surface); border-radius: var(--r-lg); padding: 36px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 600px; }
.auth-card.center { text-align: center; align-items: center; }
.auth-card h1 { font-weight: 330; font-size: 42px; line-height: 1.1; }
.auth-card form { margin-top: 6px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 14px; margin-top: 6px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-card { text-align: left; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-lg); transition: border-color .15s, background .15s; }
.demo-card:hover { border-color: var(--ink); background: var(--pistachio); }
.demo-card b { display: block; }
.seal { width: 56px; height: 56px; border-radius: 50%; background: var(--aloe); color: var(--ink); display: grid; place-items: center; }
.seal.bad { background: var(--danger-soft); color: var(--danger); }
.seal .ico { width: 26px; height: 26px; }

/* page container (landing) */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 900px) {
  .shell { display: block; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 276px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-modal); }
  body.nav-open .side { transform: none; }
  body.nav-open .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 20; }
  .menu { display: inline-grid; margin-left: -8px; }
  .top { padding: 18px 20px 4px; }
  .top-title h1 { font-size: 30px; }
  .content { padding: 16px 20px 48px; }

  

  
  .order-grid, .form-split { grid-template-columns: 1fr; }
  .img-up .tile { width: 140px; }

  
}
@media (max-width: 600px) {
  .stats, .stats.three { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat b { font-size: 30px; }
  .grid-2, .grid-3, .kv { grid-template-columns: 1fr; }

  
  .auth-card { padding: 26px 20px; }
  .search { min-width: 0; width: 100%; }
  .toolbar > .row, .toolbar > .search { width: 100%; }
  .select.auto { width: 100%; }
  .cart-row { flex-wrap: wrap; }
  .dlg-head, .dlg-body, .dlg-foot { padding-left: 18px; padding-right: 18px; }

  .ship-form .select, .ship-form .input { width: 100%; }
  .card { padding: 18px; }
  .card-head.pad { padding: 18px 18px 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Bangla typography: heavier thin-weights, no tracking, taller lines ---------- */
html[lang="bn"] body { line-height: 1.65; font-weight: 400; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3, html[lang="bn"] h4 { line-height: 1.35; }
html[lang="bn"] .top-title h1, html[lang="bn"] .auth-card h1 { font-weight: 400; letter-spacing: 0; line-height: 1.25; }
html[lang="bn"] .stat b { font-weight: 400; }

html[lang="bn"] .cat, html[lang="bn"] .table th, html[lang="bn"] .side-label, html[lang="bn"] .demo-box > span { letter-spacing: 0; text-transform: none; font-size: 13px; }
html[lang="bn"] .btn, html[lang="bn"] .badge, html[lang="bn"] .tabs button, html[lang="bn"] .nav-item { letter-spacing: 0; }
html[lang="bn"] .badge { line-height: 22px; }

/* ---------- joining fee / offer ---------- */
.tag { display: inline-block; padding: 3px 12px; border-radius: var(--pill); font-size: 12px; font-weight: 550; letter-spacing: .04em; text-transform: uppercase; background: var(--aloe); color: var(--ink); line-height: 18px; }
.save { font-size: 13.5px; font-weight: 550; color: var(--ink); background: var(--pistachio); padding: 2px 12px; border-radius: var(--pill); display: inline-block; }
.price-tag { display: inline-flex; align-items: baseline; gap: 12px; }
.price-tag .was { color: var(--faint); font-weight: 420; font-size: 26px; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--danger); }
.price-tag b { font-weight: 330; font-size: 64px; line-height: 1; letter-spacing: -.01em; }
.price-tag.sm .was { font-size: 15px; text-decoration-thickness: 1.5px; }
.price-tag.sm b { font-size: 18px; font-weight: 550; letter-spacing: 0; }
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.checklist .ico { width: 18px; height: 18px; margin-top: 3px; padding: 2px; border-radius: 50%; background: var(--aloe); color: var(--ink); stroke-width: 2.4; }

.stepbar { display: flex; gap: 10px; margin: 4px 0 6px; }
.stepbar li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--faint); }
.stepbar li + li::before { content: ''; width: 28px; height: 1px; background: var(--line-2); margin-right: 2px; }
.stepbar i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-style: normal; font-size: 12.5px; }
.stepbar .ico { width: 13px; height: 13px; stroke-width: 2.4; }
.stepbar .on { color: var(--ink); }
.stepbar .on i { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepbar .done { color: var(--ink); }
.stepbar .done i { background: var(--aloe); border-color: var(--aloe); color: var(--ink); }

.offer { background: var(--pistachio); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.offer small { color: rgba(0, 0, 0, .65); font-weight: 500; font-size: 14px; }
.offer .tag { background: #fff; }
.offer .save { background: #fff; }
.offer-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.offer .price-tag b { font-size: 56px; }
.offer .muted { color: rgba(0, 0, 0, .65); margin-bottom: 6px; }
.offer .checklist .ico { background: #fff; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-methods label { cursor: pointer; }
.pay-methods input { position: absolute; opacity: 0; pointer-events: none; }
.pay-methods span { display: grid; place-items: center; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-md); font-weight: 550; transition: border-color .15s, background .15s; }
.pay-methods label:hover span { border-color: var(--ink); }
.pay-methods input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--aloe); }
.pay-methods input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.receipt { display: flex; align-items: flex-start; gap: 10px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; font-size: 14px; color: var(--ink-2); }
.receipt .ico { width: 16px; height: 16px; margin-top: 4px; flex: none; }
.kv .span-2 { grid-column: 1 / -1; }

html[lang="bn"] .tag { letter-spacing: 0; text-transform: none; }
html[lang="bn"] .price-tag b { font-weight: 400; }

@media (max-width: 600px) { .price-tag b { font-size: 52px; }  .stepbar li + li::before { width: 14px; } }

/* ---------- mobile polish ---------- */
.sums > div { align-items: center; }
.card-head { flex-wrap: wrap; }
.toast { max-width: calc(100vw - 32px); }

@media (max-width: 900px) {
  .top { position: sticky; top: 0; z-index: 15; padding: 12px 20px; background: rgba(251, 251, 245, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); max-width: none; }
  .form-split .tile.lg { aspect-ratio: 16 / 11; width: 100%; }
  .form-split .img-up .tile.lg { width: 100%; max-width: 260px; }
}

/* tables turn into stacked cards: the first cell is the title, the rest get their column name */
@media (max-width: 700px) {
  .table-wrap { overflow: visible; }
  .table, .table tbody { display: block; }
  .table thead { display: none; }
  .table tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { display: block; padding: 0; border: 0; margin-top: 6px; font-size: 14.5px; text-align: right; overflow: hidden; }
  .table td:first-child { margin-top: 0; text-align: left; font-size: 16px; }
  .table td[data-label]::before { content: attr(data-label); float: left; margin-right: 14px; color: var(--muted); font-size: 14px; font-weight: 420; }
  .table td.act { margin-top: 12px; }
  .table tr:has(.inv-cell) { position: relative; }
  .table td.inv-cell { position: absolute; top: 10px; right: 12px; margin: 0; width: auto; padding: 0; overflow: visible; }
  .table tr:has(.inv-cell) td:first-child { padding-right: 120px; }
  .table tr.click:hover td { background: none; }
  .table tr.click:active { background: var(--bg); }
  .table td small { margin-top: 0; }
  .table td .num, .table td.num { white-space: nowrap; }
}

@media (max-width: 600px) {
  .top { padding: 10px 16px; gap: 10px; }
  .top-title h1 { font-size: 24px; }
  .top-title p { display: none; }
  .top-actions .btn { height: 38px; padding: 0 16px; font-size: 14px; }
  .content { padding: 16px 16px 40px; gap: 16px; }

  .wrap { padding: 0 16px; }

  /* dialogs slide up from the bottom like a phone sheet */
  #modal { padding: 0; align-items: flex-end; }
  .dialog, .dialog.wide { max-width: none; max-height: 92vh; border-radius: 18px 18px 0 0; animation: sheet .25s ease; }
  @keyframes sheet { from { transform: translateY(48px); opacity: 0; } }
  .dlg-foot { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding-top: 12px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .dlg-foot .btn { flex: 1 1 auto; }
  .dlg-foot .danger-text { margin-right: 0; }
  .mini-stats { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
  .mini-stats:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr; }

  .list-row { gap: 10px; }
  .list-row .btn.sm { padding: 0 12px; }
  .list-row > .pos { font-size: 14px; }
  .pcard .tile.lg { aspect-ratio: 16 / 11; }

  .cart-row { gap: 10px; }
  .cart-row .grow { flex: 1 1 calc(100% - 70px); }
  .cart-row .price-in { flex: 1; width: auto; }
  .cart-row .icon-btn { margin-left: auto; }

  .pgrid { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: repeat(3, auto); }
  .auth { padding: 20px 16px 40px; }
  .auth-card h1 { font-size: 34px; }
  .stepbar { flex-wrap: wrap; }
  .pay-methods { gap: 8px; }

  

  
}

/* very small phones (320px) */
@media (max-width: 360px) {

  

  .lang button { padding: 4px 9px; }

  
}

@media (max-width: 360px) {

  
  .price-tag b { font-size: 46px; }
  .price-tag .was { font-size: 20px; }
}

/* ---------- delivery charge paid by the reseller at checkout ---------- */
.sums .due { color: var(--ink); padding: 12px 14px; border: 1px dashed var(--ink); border-radius: var(--r-md); margin-top: 4px; align-items: flex-start; }
.sums .due dt { color: var(--ink); font-weight: 550; }
.sums .due dt small { font-weight: 420; margin-top: 2px; }
.sums .due dd { font-weight: 550; font-size: 17px; }
.pay-box { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.pay-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pay-head b { font-size: 22px; font-weight: 450; }
.pay-methods.four, .pay-methods.two { grid-template-columns: repeat(2, 1fr); }
.pay-methods.four span, .pay-methods.two span { height: auto; min-height: 46px; padding: 8px 10px; text-align: center; gap: 0; }
.pay-methods.four small, .pay-methods.two small { font-size: 12px; }
.pay-methods label.off { cursor: not-allowed; }
.pay-methods label.off span { opacity: .5; background: var(--sunken); }
@media (min-width: 700px) { .pay-methods.four { grid-template-columns: repeat(4, 1fr); } }

/* sidebar: always reachable, even when the phone's URL bar makes the screen shorter than 100vh */
.side { overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 900px) {
  .side { height: auto; max-height: 100dvh; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .side-foot { padding-top: 16px; }
}

/* ---------- Bangla fonts: Hind Siliguri for text, Anek Bangla for big headings (Latin stays Inter) ---------- */
html[lang="bn"] body { font-size: 16.5px; line-height: 1.6; }
html[lang="bn"] .top-title h1, html[lang="bn"] .auth-card h1, html[lang="bn"] .stat b, html[lang="bn"] .price-tag b, html[lang="bn"] .dlg-head h3, html[lang="bn"] .logo b { font-family: var(--font-bn-display); }

html[lang="bn"] small { font-size: 13.5px; }
html[lang="bn"] .btn { font-weight: 500; }

/* the dashboard button in the landing nav gets a short label on phones */
.btn .short { display: none; }

/* ======================= landing page (light, cream canvas) ======================= */
.lp { min-height: 100vh; background: var(--bg); }
.lp section[id] { scroll-margin-top: 84px; }
.lp .mark { background: linear-gradient(transparent 62%, var(--aloe) 62%); padding: 0 4px; }

/* nav */
.lp-head { position: sticky; top: 0; z-index: 30; background: rgba(251, 251, 245, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.lp-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.lp-links { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.lp-links a:hover { color: var(--ink); }

/* hero */
.lp-hero { text-align: center; padding-top: 96px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: center; }
.lp-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: var(--pill); background: var(--aloe); font-size: 14px; font-weight: 500; margin-bottom: 32px; }
.lp-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: lp-blink 1.6s ease-in-out infinite; }
@keyframes lp-blink { 50% { opacity: .25; } }
/* running highlights strip (news ticker): dark band, colourful moving pills, scrolls right to left without a stop */
.lp-ticker { overflow: hidden; background: var(--surface); padding: 10px 0; border-bottom: 1px solid var(--line); }
.lp-ticker-track { display: flex; width: max-content; animation: lp-marq var(--dur, 40s) linear infinite; }
.lp-ticker:hover .lp-ticker-track { animation-play-state: paused; }
.lp-ticker-set { display: flex; align-items: center; flex: none; }
.lp-sep { color: var(--line-2); font-style: normal; font-size: 14px; margin: 0 6px; }
.lp-tk { display: inline-flex; align-items: center; gap: 10px; margin: 0 14px; padding: 8px 18px; border-radius: var(--pill); background: var(--aloe); color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; text-decoration: none; }
a.lp-tk:hover { background: #a8f3c3; }
.lp-tk .ico { width: 18px; height: 18px; flex: none; }
.lp-code { display: inline-block; margin: 0 2px; padding: 1px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 700; letter-spacing: .06em; }
@keyframes lp-marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lp-ticker-track { animation: none; width: auto; justify-content: center; } .lp-ticker-set:nth-child(2) { display: none; } .lp-ticker-set { flex-wrap: wrap; justify-content: center; gap: 8px 0; } }
.lp-hero h1 { font-weight: 600; font-size: clamp(40px, 6.6vw, 76px); line-height: 1.1; letter-spacing: -.02em; max-width: 900px; }
.lp .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; margin: 24px 0 40px; line-height: 1.6; }
.lp .lead b { color: var(--ink); font-weight: 600; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.lp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; max-width: 560px; margin-top: 56px; }
.lp-facts b { display: block; font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.lp-facts span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* sections */
.lp-sec { padding-top: 96px; }
.lp-sec.narrow { max-width: 880px; }
.lp-sec-head { text-align: center; margin-bottom: 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lp-sec-head h2 { font-weight: 600; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.15; letter-spacing: -.02em; max-width: 760px; }
.lp-sec-head .muted { max-width: 560px; }
.lp-pill { display: inline-block; padding: 4px 14px; border-radius: var(--pill); background: var(--aloe); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* cards */
.lp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; transition: border-color .2s; }
.lp-card:hover { border-color: var(--ink); }
.lp-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.lp-card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--aloe); display: grid; place-items: center; margin-bottom: 20px; }
.lp-ic .ico { width: 26px; height: 26px; stroke-width: 1.8; }

/* steps: black numbered circles + cards */
.lp-steps { display: flex; flex-direction: column; gap: 24px; }
.lp-steps li { display: flex; align-items: flex-start; gap: 22px; }
.lp-steps .n { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 600; }
.lp-steps .lp-card { flex: 1; padding: 22px 26px; }

/* earnings calculator */
.calc { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.calc-controls { padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.calc-label { font-size: 14px; color: var(--muted); font-weight: 500; }
.calc-step { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-top: 6px; }
.calc-step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; flex: none; }
.calc-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }
.calc-pick { display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; padding: 10px; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color .15s, background .15s; font-weight: 500; font-size: 14px; line-height: 1.35; }
.calc-pick:hover { border-color: var(--ink-2); }
.calc-pick.on { border-color: var(--ink); background: var(--pistachio); }
.calc-pick .tile { width: 100%; height: auto; aspect-ratio: 1; flex: none; border-radius: 10px; overflow: hidden; }
.calc-pick span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.calc-eq { display: flex; align-items: stretch; justify-content: space-between; gap: 6px; padding: 12px; margin: 6px 0 14px; background: var(--bg); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.calc-eq > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.calc-eq small { font-size: 12.5px; color: var(--muted); }
.calc-eq b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-eq i { align-self: center; font-style: normal; font-size: 22px; color: var(--muted); }
.calc-eq .gain b { color: #0a7a3c; }
.calc-how { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-top: 4px; }
.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.calc-chips button { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--pill); font-size: 14px; font-weight: 500; background: var(--surface); transition: border-color .15s, background .15s; }
.calc-chips button:hover { border-color: var(--ink); }
.calc-chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.calc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; }
.calc-row label { font-weight: 500; }
.calc-row output { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-hint { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-top: -4px; }
.calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; outline: 0; cursor: pointer; background: linear-gradient(to right, var(--ink) var(--p, 50%), var(--line) var(--p, 50%)); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--ink), 0 2px 6px rgba(0, 0, 0, .2); }
.calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--ink), 0 2px 6px rgba(0, 0, 0, .2); }
.calc input[type="range"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 10px; }
.calc-result { padding: 36px; background: var(--pistachio); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.calc-result small { color: var(--ink-2); font-size: 14px; }
.calc-result #calc-net { font-weight: 600; font-size: clamp(44px, 5.6vw, 68px); line-height: 1.05; letter-spacing: -.02em; }
.calc-lines { width: 100%; margin: 6px 0; }
.calc-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(0, 0, 0, .08); color: var(--ink-2); font-size: 15px; }
.calc-lines li b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-lines .sum { color: var(--ink); font-weight: 600; }
.calc-result .fine { color: var(--ink-2); }

/* pricing */
.lp-price { position: relative; overflow: hidden; max-width: 580px; margin: 0 auto; text-align: center; background: var(--pistachio); border-radius: var(--r-xl); padding: 48px 40px 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lp-price::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--ink); }
.lp-hot { display: inline-block; padding: 5px 14px; border-radius: var(--pill); background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.lp-price h2 { font-weight: 600; font-size: clamp(30px, 4vw, 40px); letter-spacing: -.02em; margin-top: 6px; }
.lp-price .price-tag { justify-content: center; margin: 8px 0 2px; }
.lp-price .checklist { text-align: left; margin: 14px 0 6px; }
.lp-price .btn { margin-top: 12px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 550; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 22px; height: 22px; flex: none; color: var(--muted); transition: transform .25s ease, color .2s; }
.faq summary:hover .ico, .faq details[open] summary .ico { color: var(--ink); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 44px 24px 0; color: var(--muted); max-width: 680px; }

/* footer */
.lp-app { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; background: var(--pistachio); border-radius: var(--r-xl); padding: 40px 28px 32px; }
.lp-app .lp-ic { background: #fff; }
.lp-app h2 { font-weight: 600; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.2; letter-spacing: -.02em; }
html[lang="bn"] .lp-app h2 { font-family: var(--font-bn-display); letter-spacing: 0; line-height: 1.3; }
.lp-app-text { display: flex; flex-direction: column; gap: 8px; max-width: 480px; }
.lp-app .fine { margin: 0; max-width: 460px; }
@media (max-width: 560px) { .lp-app .btn { width: 100%; justify-content: center; } }
.lp-foot { margin-top: 112px; padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.lp-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14.5px; color: var(--ink-2); }
.lp-foot nav a:hover { color: var(--ink); }
.lp-foot .fine { margin: 0; }

/* live seat meter in the hero (real count) */
.lp-seatmini { width: 100%; max-width: 440px; margin-top: 28px; padding: 16px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); display: flex; flex-direction: column; gap: 12px; text-align: left; box-shadow: 0 1px 0 rgba(0, 0, 0, .02), 0 8px 24px -16px rgba(0, 0, 0, .18); }
.lp-seatmini-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lp-seatmini-top b { font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.lp-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.lp-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; animation: lp-blink 1.6s ease-in-out infinite; }
.lp-bar { width: 100%; height: 12px; border-radius: var(--pill); background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.lp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ink) 0%, #3f3f46 100%); position: relative; overflow: hidden; transition: width 1s ease; }
.lp-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); transform: translateX(-100%); animation: lp-shine 2.4s ease-in-out infinite; }
@keyframes lp-shine { to { transform: translateX(100%); } }
.lp-bar-legend { display: flex; justify-content: space-between; width: 100%; margin-top: -4px; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-seatmini.full .lp-bar i { background: var(--muted); }
.lp-seatmini + .lead { margin-top: 24px; }

/* offer countdown */
.cd { display: inline-flex; gap: 8px; }
.cd-u { display: flex; flex-direction: column; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-variant-numeric: tabular-nums; }
.cd-u[hidden] { display: none; }
.cd-u b { font-weight: 600; line-height: 1.1; }
.cd-u small { color: var(--muted); }
.cd-lg .cd-u { min-width: 70px; padding: 10px 12px; }
.cd-lg .cd-u b { font-size: 26px; }
.cd-lg .cd-u small { font-size: 12px; }
.cd-sm .cd-u { min-width: 46px; padding: 4px 8px; }
.cd-sm .cd-u b { font-size: 16px; }
.cd-sm .cd-u small { font-size: 10.5px; }
.lp-hero-cd { display: flex; align-items: center; gap: 12px; margin: -16px 0 28px; font-size: 14px; color: var(--muted); font-weight: 500; flex-wrap: wrap; justify-content: center; }
.lp-ends { margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.offer-cd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.offer .cd-u { background: #fff; }

/* Bangla */
html[lang="bn"] .lp-hero h1, html[lang="bn"] .lp-sec-head h2, html[lang="bn"] .lp-price h2, html[lang="bn"] .lp-seatmini-top b { font-family: var(--font-bn-display); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
html[lang="bn"] .lp-pill, html[lang="bn"] .lp-hot { letter-spacing: 0; text-transform: none; font-size: 13px; }
html[lang="bn"] .faq summary { font-weight: 500; line-height: 1.5; }
html[lang="bn"] .lp .lead { line-height: 1.8; }

/* tablet */
@media (max-width: 900px) {
  .lp-links { display: none; }
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .lp-hero { padding-top: 64px; }
  .lp-sec { padding-top: 80px; }
}
/* phone: left-aligned like the old landing page, one column, nav on one line */
@media (max-width: 600px) {
  .lp-nav { height: 62px; gap: 10px; }
  .lp-nav .row { gap: 6px; flex-wrap: nowrap; }
  .lp-nav .btn { height: 38px; padding: 0 14px; font-size: 14px; }
  .lp-nav .btn.text { padding: 0 8px; }
  .lp-nav .nav-cta { display: none; }
  .lp-nav .logo b { font-size: 19px; }
  .lp-nav .btn .long { display: none; }
  .lp-nav .btn .short { display: inline; }
  .lp-hero { text-align: left; align-items: flex-start; padding-top: 40px; padding-bottom: 32px; }
  .lp-badge { margin-bottom: 24px; font-size: 13px; }
  .lp-tk { font-size: 13.5px; padding: 8px 16px; margin: 0 10px; }
  .lp-cta { flex-direction: column; width: 100%; }
  .lp-cta .btn { width: 100%; justify-content: center; }
  .lp-facts { margin-top: 40px; max-width: none; }
  .lp-facts span { font-size: 13px; }
  .lp-sec { padding-top: 64px; }
  .lp-sec-head { text-align: left; align-items: flex-start; margin-bottom: 32px; }
  .lp-features { grid-template-columns: 1fr; gap: 14px; }
  .lp-card { padding: 22px; }
  .lp-steps li { gap: 14px; }
  .lp-steps .n { width: 44px; height: 44px; font-size: 18px; }
  .lp-steps .lp-card { padding: 18px 20px; }
  .calc-controls, .calc-result { padding: 24px 20px; }
  .calc-picks { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .calc-pick { padding: 8px; font-size: 13px; }
  .calc-eq b { font-size: 16px; }
  .calc-result .btn { width: 100%; justify-content: center; }
  .lp-price { padding: 40px 20px 28px; }
  .lp-price .btn { width: 100%; justify-content: center; }
  .faq summary { font-size: 16.5px; padding: 18px 0; }
  .faq details p { padding-right: 0; }
  .lp-foot { margin-top: 80px; }
  .lp-hero-cd { justify-content: flex-start; margin-top: -8px; }
  .cd-lg .cd-u { min-width: 0; flex: 1; padding: 8px 6px; }
  .cd-lg { width: 100%; }
  .cd-lg .cd-u b { font-size: 22px; }
}

/* ---- payment method cards (sign-up) and payment settings (admin) ---- */
.pay-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #fff; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.pay-card:hover { border-color: var(--ink); }
.pay-card input { position: absolute; opacity: 0; pointer-events: none; }
.pay-card img, .pay-set img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; margin-bottom: 4px; }
.pay-card b { font-weight: 550; font-size: 15px; }
.pay-card small { color: var(--muted); font-size: 12px; }
.pay-card .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); margin-top: 6px; }
.pay-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--pistachio); }
.pay-card:has(input:checked) .dot { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 2px var(--pistachio); }
.pay-card:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.pay-cards.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .pay-cards.four { grid-template-columns: repeat(4, 1fr); } }
.pay-card .pay-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 4px; background: var(--ink); color: #fff; }
.pay-card .pay-ic svg { width: 20px; height: 20px; }
.pay-card.off { cursor: not-allowed; opacity: .55; background: var(--sunken); }
.pay-card.off:hover { border-color: var(--line-2); }
.pay-info { background: var(--pistachio); border: 1px solid var(--aloe); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pay-info-top { display: flex; align-items: center; gap: 10px; font-weight: 550; font-size: 14.5px; }
.pay-info-top .tag { margin-left: auto; white-space: nowrap; background: #fff; border: 1px solid var(--line-2); }
.pay-num { flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.pay-num b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px; letter-spacing: .06em; font-weight: 600; }
.pay-set { display: flex; flex-direction: column; gap: 16px; }
.pay-set-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pay-set-head h3 { margin: 0 0 4px; }
.pay-preview { background: var(--sunken); border-radius: var(--r-md); padding: 10px 12px; font-size: 13px; color: var(--muted); }
.pay-preview b { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 500; }
.input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .15s; pointer-events: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + i { background: var(--ink); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 520px) { .pay-card { padding: 12px 4px; } .pay-card b { font-size: 14px; } .pay-num b { font-size: 18px; } }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.lp-price .checklist .ico { background: #fff; }
.lp-price .price-tag b { font-weight: 600; letter-spacing: -.02em; }

/* ---------- reseller shop: grid, product page, cart ---------- */
.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.shop-bar .search { flex: 1; max-width: 460px; }
.chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: -2px -4px 0; padding: 2px 4px; }
.chips.scroll-x::-webkit-scrollbar { display: none; }
.chips.scroll-x button { flex: none; }
.shop-count { font-size: 14px; color: var(--muted); margin: -6px 0 -6px; }
.cart-btn { position: relative; }
.cart-btn em, .scard-cart em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pill); background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; line-height: 1; }

.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s, transform .2s; }
.scard:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }
.scard-media { position: relative; display: block; }
.scard-media .tile.lg { aspect-ratio: 1; border-radius: 0; }
.scard-media img { transition: transform .35s ease; }
.scard:hover .scard-media img { transform: scale(1.04); }
.scard.is-out .scard-media .tile { filter: grayscale(1); opacity: .55; }
.scard-gain, .scard-flag { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: var(--pill); font-size: 12.5px; font-weight: 600; line-height: 18px; }
.scard-gain { background: var(--aloe); color: var(--ink); }
.scard-flag { background: var(--ink); color: #fff; }
.scard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.scard h3 { font-size: 15.5px; line-height: 1.35; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.scard h3 a { color: var(--ink); }
.scard h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.scard-price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.scard-price b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.scard-price small { font-size: 12.5px; color: var(--muted); }
.scard-sub { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; }
.scard-sub .stock { font-size: 13px; }
.stock.out { color: var(--danger); font-weight: 550; }
.scard-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.scard-cart { padding: 0; width: 42px; flex: none; border-color: var(--line-2); gap: 4px; }
.scard-cart.in { width: auto; padding: 0 10px; border-color: var(--ink); background: var(--aloe); }
.scard-cart .ico { width: 18px; height: 18px; }

.crumbs { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); flex-wrap: wrap; margin-top: -6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.crumbs .ico { width: 14px; height: 14px; color: var(--faint); }

.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.pd-media { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pd-media .tile.lg { width: 100%; aspect-ratio: 1; border-radius: var(--r-lg); }
.pd-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pd-info .cat { margin-bottom: -6px; }
.pd-title { font-size: 30px; line-height: 1.2; font-weight: 450; letter-spacing: -.01em; }
.stock-pill { align-self: flex-start; font-size: 13px; font-weight: 550; padding: 4px 12px; border-radius: var(--pill); background: var(--pistachio); }
.stock-pill.low { background: #fff4d6; color: #8a5a00; }
.stock-pill.out { background: var(--danger-soft); color: var(--danger); }
.pd-prices { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.pd-prices > div { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.pd-prices > div + div { border-left: 1px solid var(--line); }
.pd-prices small { font-size: 12.5px; color: var(--muted); }
.pd-prices b { font-size: 22px; font-weight: 600; }
.pd-prices .gain { background: var(--aloe); }
.pd-buy { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.pd-fields { display: grid; grid-template-columns: 1fr auto; gap: 14px; }
.stepper.lg { height: 44px; align-self: flex-start; }
.stepper.lg button { width: 42px; }
.stepper input { width: 48px; height: 100%; border: 0; text-align: center; font: inherit; font-weight: 550; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 0; }
.stepper:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--aloe); }
#pd-warn:empty { display: none; }
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-actions .btn { min-width: 0; padding: 0 14px; }
.pd-perks { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--bg); border-radius: var(--r-md); }
.pd-perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.pd-perks .ico { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.pd-desc { white-space: pre-line; line-height: 1.7; color: var(--ink-2); }
.pd-copy-hint { margin-top: 12px; }

.cart-name { display: block; font-size: 15px; font-weight: 550; color: var(--ink); }
.cart-name:hover, .list-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.list-name { display: block; font-size: 15px; font-weight: 550; color: var(--ink); }
.cart-row small.neg { display: block; font-weight: 550; }
.cart-note { margin-top: 16px; }
.cart-note .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; }

@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .pd-media { position: static; }
  .pd-media .tile.lg { max-width: 460px; }
}
@media (max-width: 600px) {
  .sgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .scard-body { padding: 10px 10px 12px; }
  .scard h3 { font-size: 14px; min-height: 38px; }
  .scard-price b { font-size: 17px; }
  .scard-sub { font-size: 12px; }
  .scard-sub .stock { font-size: 12px; }
  .scard-gain, .scard-flag { left: 8px; top: 8px; font-size: 11.5px; padding: 3px 8px; }
  .scard-actions .btn.sm { height: 36px; padding: 0 10px; }
  .scard-cart { width: 38px; }
  .shop-bar .search { max-width: none; }
  .shop-bar > .row { width: 100%; justify-content: space-between; }
  .shop-bar .select.auto { width: auto; min-width: 0; }
  .pd { padding: 0; border: 0; background: none; }
  .pd-title { font-size: 24px; }
  .pd-prices b { font-size: 18px; }
  .pd-prices > div { padding: 10px; }
  .pd-fields { grid-template-columns: 1fr; }
  .pd-actions { position: sticky; bottom: 0; z-index: 5; background: var(--bg); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); margin: 0 -2px; }
  .pd-actions .btn { height: 48px; padding: 0 12px; }
  .cart-btn span { display: none; }
}

/* ---------- product photos + options (admin form, product page) ---------- */
.pf-photos { width: 200px; }
.pf-photos.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-photos.grid .pf-ph:first-child { grid-column: 1 / -1; }
.pf-ph { position: relative; }
.pf-ph .tile.lg { width: 100%; aspect-ratio: 1; border-radius: var(--r-md); }
.pf-ph .tag { position: absolute; left: 6px; top: 6px; }
.pf-main { position: absolute; left: 4px; bottom: 4px; right: 4px; background: rgba(255, 255, 255, .92); border-radius: var(--pill); font-size: 11.5px; font-weight: 550; padding: 3px 6px; }
.pf-del { position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; }
.pf-del .ico { width: 14px; height: 14px; }
#pf-add[hidden] { display: none; }
.pf-vars { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.pf-gen { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.pf-var { display: grid; grid-template-columns: 1fr 96px 36px; gap: 8px; align-items: center; margin-top: 6px; }
#pf-var-list:empty { display: none; }

.scard-opts { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-thumbs button { border: 2px solid transparent; border-radius: var(--r-md); padding: 2px; transition: border-color .15s; }
.pd-thumbs button.on { border-color: var(--ink); }
.pd-thumbs .tile.sm { width: 56px; height: 56px; }
.pd-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-opts button { min-width: 48px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); font-size: 14px; font-weight: 500; transition: border-color .15s, background .15s; }
.pd-opts button:hover:not(:disabled) { border-color: var(--ink); }
.pd-opts button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.pd-opts button:disabled { color: var(--faint); text-decoration: line-through; cursor: not-allowed; background: var(--sunken); }
.pd-opts small { font-size: 11px; opacity: .7; }
.cart-opt { display: inline-block !important; background: var(--sunken); border-radius: var(--r-sm); padding: 0 6px; margin: 2px 0; color: var(--ink) !important; font-weight: 500; }
@media (max-width: 900px) {
  .pf-photos { width: 100%; max-width: 420px; }
  .pf-photos.grid { grid-template-columns: repeat(3, 1fr); }
  .pf-photos.grid .pf-ph:first-child { grid-column: auto; }
  .form-split .pf-ph .tile.lg { aspect-ratio: 1; max-width: none; }
  .pf-main { font-size: 10.5px; padding: 2px 4px; }
}
@media (max-width: 600px) {
  .pf-gen { grid-template-columns: 1fr 1fr; }
  .pf-gen .btn { grid-column: 1 / -1; }
}

/* ---------- WhatsApp support ---------- */
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border-radius: var(--pill); background: #25d366; color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); transition: transform .15s, box-shadow .15s; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0, 0, 0, .22); }
.wa-float .ico, .btn.wa .ico { width: 24px; height: 24px; stroke-width: 1.8; }
.btn.wa { background: #25d366; color: #fff; }
.btn.wa:hover { background: #1ebe5b; }
.wa-box { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.wa-box p { font-size: 14px; color: var(--ink-2); }
@media (max-width: 600px) { .wa-float { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); height: 50px; padding: 0 14px; } .wa-float span { display: none; } }

/* ---------- legal pages (/privacy, /terms, /cookies) ---------- */
.legal { min-height: 100vh; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.legal-doc { max-width: 780px; padding-top: 12px; padding-bottom: 24px; }
.legal-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.legal-tabs a { padding: 8px 16px; border-radius: var(--pill); border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; background: var(--surface); }
.legal-tabs a:hover { border-color: var(--ink); }
.legal-tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.legal-doc h1 { font-size: 44px; line-height: 1.1; font-weight: 450; letter-spacing: -.01em; }
.legal-date { color: var(--muted); font-size: 14px; margin-top: 10px; }
.legal-intro { font-size: 18px; line-height: 1.7; color: var(--ink-2); margin: 22px 0 8px; padding: 18px 20px; background: var(--pistachio); border-radius: var(--r-lg); }
.legal-doc section { padding: 26px 0 4px; border-bottom: 1px solid var(--line); }
.legal-doc section:last-child { border-bottom: 0; }
.legal-doc h2 { font-size: 21px; font-weight: 550; margin-bottom: 10px; }
.legal-doc h2 span { color: var(--faint); font-weight: 500; margin-right: 4px; }
.legal-doc p, .legal-doc li { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.legal-doc p + p, .legal-doc ul + p, .legal-doc p + ul { margin-top: 10px; }
.legal-doc ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.legal-doc li::marker { color: var(--faint); }
.legal .lp-foot { margin-top: 48px; }
@media (max-width: 600px) {
  .legal-top { padding-top: 14px; padding-bottom: 14px; }
  .legal-top .btn { display: none; }
  .legal-doc h1 { font-size: 32px; }
  .legal-intro { font-size: 16px; padding: 14px 16px; }
  .legal-doc h2 { font-size: 18px; }
  .legal-doc p, .legal-doc li { font-size: 15px; }
}

/* ---------- public product list (home strip + /shop): photo and name only, no prices ---------- */
.pub-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.scard.pub .scard-media { width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.scard.pub h3 button { all: unset; cursor: pointer; display: block; }
.scard.pub h3 button:hover { text-decoration: underline; text-underline-offset: 3px; }
.pub-lock { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--muted); }
.pub-lock .ico { width: 16px; height: 16px; flex: none; }
.scard.pub-more { align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 28px 20px; min-height: 280px; background: var(--pistachio); border: 2px dashed var(--line-2); text-decoration: none; color: var(--ink); }
.scard.pub-more:hover { border-color: var(--ink); transform: none; box-shadow: none; }
.scard.pub-more h3 { font-size: 17px; line-height: 1.5; font-weight: 600; margin: 0; }
.pub-more-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.pub-more-ic .ico { width: 26px; height: 26px; }
.lp-more { display: flex; justify-content: center; margin-top: 36px; }
.pub-shop { padding-top: 56px; }
.pub-shop .lp-sec-head { margin-bottom: 36px; }
.pub-dlg { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 4px 0; }
.pub-dlg .dlg-foot { justify-content: center; margin-top: 12px; }
@media (max-width: 640px) { .pub-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* home: photo strip, trust bar, curated product grid */
.lp-facts { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); max-width: 720px; }
.lp-marquee { overflow: hidden; padding: 4px 0 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lp-mq-track { display: flex; width: max-content; animation: lp-mq 70s linear infinite; }
.lp-marquee:hover .lp-mq-track { animation-play-state: paused; }
.lp-mq-set { display: flex; gap: 14px; padding-right: 14px; }
.lp-mq-item .tile { width: 168px; height: 168px; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); }
@keyframes lp-mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lp-mq-track { animation: none; } .lp-marquee { overflow-x: auto; } }

.lp-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 8px; }
.lp-trust-i { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; }
.lp-trust-i + .lp-trust-i { border-left: 1px solid var(--line); }
.lp-trust-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--aloe); display: grid; place-items: center; }
.lp-trust-ic .ico { width: 22px; height: 22px; stroke-width: 1.8; }
.lp-trust-i b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.lp-trust-i span span, .lp-trust-i div > span { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.lp-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -16px 0 28px; }
.lp-cats a, .lp-cats button { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: var(--pill); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color .15s; }
.lp-cats a:hover, .lp-cats button:hover { border-color: var(--ink); }
.lp-cats a.on, .lp-cats button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.lp-cats b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.lp-cats a.on b { color: var(--aloe); }

.home-grid { grid-template-columns: repeat(var(--hc, 4), 1fr); gap: 18px; }
.home-grid .scard.feat { grid-column: span 2; grid-row: span 2; }
.home-grid .scard.feat .scard-media { flex: 1; min-height: 0; }
.home-grid .scard.feat .scard-body { flex: none; }
.home-grid .scard.feat .scard-media .tile { height: 100%; aspect-ratio: auto; }
.home-grid .scard.feat h3 { font-size: 19px; font-weight: 600; min-height: 0; }
.feat-flag { background: var(--aloe); color: var(--ink); left: 14px; top: 14px; padding: 6px 14px; font-size: 13px; }
html[lang="bn"] .lp-trust-i b { line-height: 1.5; }
@media (max-width: 1000px) {
  .lp-trust { grid-template-columns: 1fr 1fr; }
  .lp-trust-i + .lp-trust-i { border-left: 0; }
  .lp-trust-i:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lp-trust-i:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .lp-mq-item .tile { width: 120px; height: 120px; }
  .lp-trust { grid-template-columns: 1fr; margin-top: 28px; }
  .lp-trust-i:nth-child(n) { border-left: 0; }
  .lp-trust-i + .lp-trust-i { border-top: 1px solid var(--line); }
  .lp-cats { justify-content: flex-start; margin-top: -8px; }
  .home-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-grid .scard.feat { grid-row: auto; }
  .home-grid .scard.feat .scard-media .tile { aspect-ratio: 1; height: auto; }
}

/* admin: home page highlights editor */
.hl-list { display: flex; flex-direction: column; gap: 12px; }
.hl-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--sunken); }
.hl-fields { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 10px; min-width: 0; }
.hl-btns { display: flex; gap: 2px; }
.cat-row .cat-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--pistachio); }
.cat-row .cat-ico svg { width: 20px; height: 20px; }
.cat-fields { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cat-row .icon-btn:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 760px) { .cat-row { grid-template-columns: auto 1fr; } }
@media (max-width: 760px) { .hl-row { grid-template-columns: auto 1fr; } .hl-fields { grid-template-columns: 1fr; } .hl-btns { grid-column: 1 / -1; justify-content: flex-end; } }
