/* Droplify — built on DESIGN.md (Shopify-inspired).
   Transactional track (dashboards, auth): cream canvas, black pills, aloe/pistachio fills.
   Cinematic track (landing): black canvas, white thin display type, white-stroked pills. */
: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', 'Hind Siliguri', Helvetica, Arial, sans-serif;
  --font-bn-display: 'Inter', '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; }
body:has(.site) { background: var(--night); }
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; }
.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; }

/* ---------- 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; }
.site .lang { background: transparent; border-color: var(--ink-2); }
.site .lang button.on { background: #fff; color: #000; }

/* ---------- 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: 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; }
.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; }

/* ---------- landing (cinematic track: black canvas, white type) ---------- */
.site { background: var(--night); color: #fff; min-height: 100vh; }
.site small { color: #a1a1aa; }
.site .muted, .site .fine { color: #a1a1aa; }
.site .logo { color: #fff; }
.site .btn.primary { background: var(--night); color: #fff; border: 2px solid #fff; }
.site .btn.primary:hover { background: #1a1a1a; }
.site .btn.ghost { background: transparent; color: #fff; border: 1px solid var(--ink-2); }
.site .btn.ghost:hover { border-color: #fff; background: transparent; }
.site .btn.text { color: #a1a1aa; }
.site .btn.text:hover { color: #fff; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.site-links { display: flex; gap: 28px; font-weight: 500; color: #d4d4d8; }
.site-links a:hover { color: #fff; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 120px; }
.eyebrow { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #a1a1aa; font-weight: 500; margin-bottom: 22px; }
.hero h1 { font-weight: 330; font-size: clamp(46px, 7.4vw, 92px); line-height: 1; letter-spacing: .015em; }
.hero h1 em { font-style: normal; color: #71717a; }
.lead { font-size: 18px; font-weight: 450; color: #d4d4d8; max-width: 520px; margin: 28px 0 34px; line-height: 1.56; }
.mock { background: var(--night-2); border-radius: var(--r-xl); padding: 26px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 1px 3px rgba(0, 0, 0, .3), 0 5px 10px rgba(0, 0, 0, .2); }
.mock-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--night-3); }
.mock-head b { font-size: 20px; font-weight: 450; display: block; }
.mock .badge { background: #fff; color: #000; }
.mock .tile { --tile: var(--night-3); color: rgba(255, 255, 255, .55); }
.mock .lines li { border-bottom-color: var(--night-3); }
.mock .sums dd { color: #fff; }
.mock .sums .profit { background: #fff; color: #000; }
.mock .sums .profit dd { color: #000; }
.band { background: var(--night-2); padding: 96px 0; }
.section { padding-top: 112px; padding-bottom: 8px; }
.section-title { font-weight: 330; font-size: clamp(34px, 4.4vw, 55px); line-height: 1.16; margin-bottom: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps span { font-weight: 330; font-size: 52px; color: #fff; line-height: 1; display: block; margin-bottom: 18px; letter-spacing: .02em; }
.steps h3 { font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.steps p { color: #a1a1aa; }
.site .pgrid { gap: 16px; }
.site .pcard { background: var(--night-2); border-color: var(--night-3); }
.site .pcard:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); border-color: transparent; transform: none; }
.site .tile { --tile: var(--night-3); color: rgba(255, 255, 255, .5); }
.site .cat { color: #71717a; }
.site .price-row { border-top-color: var(--night-3); }
.site .price-row b { color: #fff; }
.site .price-row .lock b { color: #71717a; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-3); }
.features > div { padding: 28px 24px 8px 0; }
.features > div + div { padding-left: 24px; border-left: 1px solid var(--night-3); }
.features h3 { font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.features p { color: #a1a1aa; }
.cta-band { margin: 120px 0 0; background: var(--night-2); border-radius: var(--r-xl); padding: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.cta-band h2 { font-weight: 330; font-size: clamp(34px, 4.4vw, 55px); line-height: 1.1; }
.site-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 72px; padding-bottom: 48px; flex-wrap: wrap; gap: 12px; }

/* ---------- 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; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; padding-bottom: 72px; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .features > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .site-links { display: none; }
  .order-grid, .form-split { grid-template-columns: 1fr; }
  .img-up .tile { width: 140px; }
  .cta-band { padding: 40px 28px; }
  .section { padding-top: 80px; }
}
@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; }
  .steps, .features { grid-template-columns: 1fr; }
  .features > div, .features > div + div { padding: 20px 0 8px; border-left: 0; border-bottom: 1px solid var(--night-3); }
  .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; }
  .site-nav .nav-cta { display: none; }
  .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"] .hero h1, html[lang="bn"] .section-title, html[lang="bn"] .cta-band h2,
html[lang="bn"] .top-title h1, html[lang="bn"] .auth-card h1, html[lang="bn"] .steps span { font-weight: 400; letter-spacing: 0; line-height: 1.25; }
html[lang="bn"] .stat b { font-weight: 400; }
html[lang="bn"] .hero h1 { font-size: clamp(40px, 6.2vw, 76px); }
html[lang="bn"] .eyebrow, 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; }
html[lang="bn"] .lead { line-height: 1.75; }

/* ---------- 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; }

/* landing (dark track): pill tags go white — aloe/pistachio stay on the light track */
.site .tag { background: #fff; color: #000; }
.site .save { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--ink-2); }
.site .price-tag .was { color: #71717a; text-decoration-color: #a1a1aa; }
.site .checklist li { color: #d4d4d8; }
.site .checklist .ico { background: #fff; color: #000; }
.offer-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; color: #d4d4d8; font-size: 15px; }
.price-card { background: var(--night-2); border-radius: var(--r-xl); padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.price-card .section-title { margin: 16px 0 12px; }
.price-box { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; border: 1px solid var(--night-3); border-radius: var(--r-lg); }
.price-box .price-tag b { font-size: 76px; }
.price-box .btn { margin-top: 10px; }

html[lang="bn"] .tag { letter-spacing: 0; text-transform: none; }
html[lang="bn"] .price-tag b { font-weight: 400; }
@media (max-width: 900px) { .price-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; } }
@media (max-width: 600px) { .price-tag b { font-size: 52px; } .price-box { padding: 24px; } .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.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; }
  .site-nav { padding-left: 16px; padding-right: 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; }
  .hero { padding-top: 16px; }
  .eyebrow { margin-bottom: 16px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cta-band .btn, .price-box .btn { width: 100%; }
}

/* very small phones (320px) */
@media (max-width: 360px) {
  .site-nav { gap: 8px; }
  .site-nav .row { gap: 4px; }
  .site-nav .logo b { font-size: 19px; }
  .lang button { padding: 4px 9px; }
  .site-nav .btn.text { padding: 0 8px; font-size: 14px; }
  .hero h1 { font-size: 40px; }
}
.price-card > * { min-width: 0; }
@media (max-width: 900px) { .price-card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) {
  .price-card { padding: 28px 18px; }
  .price-box { padding: 20px; }
  .price-box .price-tag b, .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 { grid-template-columns: repeat(2, 1fr); }
.pay-methods.four span { height: auto; min-height: 46px; padding: 8px 10px; text-align: center; gap: 0; }
.pay-methods.four small { font-size: 12px; }
.pay-methods label.off { cursor: not-allowed; }
.pay-methods label.off span { opacity: .5; background: var(--sunken); }
.pay-box:has(input[value="wallet"]:checked) .pay-number { display: none; }
@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"] .hero h1, html[lang="bn"] .section-title, html[lang="bn"] .cta-band h2, html[lang="bn"] .top-title h1,
html[lang="bn"] .auth-card h1, html[lang="bn"] .steps span, 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"] .hero h1 { font-weight: 400; line-height: 1.3; }
html[lang="bn"] .section-title, html[lang="bn"] .cta-band h2 { line-height: 1.3; }
html[lang="bn"] small { font-size: 13.5px; }
html[lang="bn"] .btn { font-weight: 500; }

/* landing nav on phones: everything on one line, the dashboard button gets a short label */
.btn .short { display: none; }
@media (max-width: 600px) {
  .site-nav { gap: 10px; }
  .site-nav .row { gap: 6px; flex-wrap: nowrap; }
  .site-nav .btn { height: 38px; padding: 0 16px; font-size: 14px; }
  .site-nav .btn.text { padding: 0 8px; }
  .site-nav .logo b { font-size: 20px; }
  .site-nav .lang button { padding: 4px 10px; }
  .site-nav .btn .long { display: none; }
  .site-nav .btn .short { display: inline; }
}

/* ======================= landing page (dark track) ======================= */
.site section[id] { scroll-margin-top: 84px; }
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(0, 0, 0, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-nav { padding-top: 14px; padding-bottom: 14px; }
.site-links { gap: 26px; font-size: 14.5px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border: 1px solid var(--night-3); border-radius: var(--pill); letter-spacing: .04em; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }

/* hero visual: the order card with two floating status chips */
.stage { position: relative; padding: 22px 0 30px; }
.stage .mock { position: relative; z-index: 1; }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: var(--r-lg); background: #fff; color: #000; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); }
.chip .ico { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: #000; color: #fff; stroke-width: 1.8; }
.chip small { color: #52525b; font-size: 12.5px; line-height: 1.2; }
.chip b { font-size: 17px; font-weight: 550; line-height: 1.3; display: block; font-variant-numeric: tabular-nums; }
.chip-a { top: -4px; right: -14px; animation: float 6s ease-in-out infinite; }
.chip-b { bottom: -6px; left: -22px; animation: float 7s ease-in-out -2s infinite; }
@keyframes float { 50% { transform: translateY(-9px); } }

/* scrolling highlights strip */
.strip { overflow: hidden; display: flex; border-top: 1px solid var(--night-3); border-bottom: 1px solid var(--night-3); background: var(--night); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip-track { display: flex; flex: none; gap: 44px; padding: 18px 22px; animation: marquee 38s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-track li { display: flex; align-items: center; gap: 10px; color: #d4d4d8; font-weight: 500; white-space: nowrap; }
.strip-track .ico { color: #fff; stroke-width: 1.5; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* big numbers */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 72px; }
.facts > div { padding: 0 24px; border-left: 1px solid var(--night-3); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts b { display: block; font-weight: 330; font-size: clamp(44px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.facts span { color: #a1a1aa; font-size: 15px; display: block; margin-top: 6px; }

/* icon tiles */
.icon-tile { width: 48px; height: 48px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-3), inset 0 1px 0 rgba(255, 255, 255, .05); color: #fff; margin-bottom: 18px; }
.icon-tile .ico { width: 22px; height: 22px; stroke-width: 1.5; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps li { padding: 0 28px 0 0; position: relative; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 24px; left: 64px; right: 16px; height: 1px; background: repeating-linear-gradient(90deg, #3f3f46 0 6px, transparent 6px 12px); }
.steps .n { position: absolute; top: 0; right: 28px; font-weight: 330; font-size: 15px; color: #71717a; letter-spacing: .06em; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { font-size: 15px; }

/* earnings calculator */
.calc { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--night-2); border-radius: var(--r-xl); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 0 0 1px var(--night-3); }
.calc-controls { padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.calc-label { font-size: 14px; color: #a1a1aa; font-weight: 500; }
.chips-dark { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chips-dark button { padding: 8px 14px; border: 1px solid #3f3f46; border-radius: var(--pill); font-size: 14px; font-weight: 500; color: #d4d4d8; transition: border-color .15s, background .15s, color .15s; }
.chips-dark button:hover { border-color: #fff; color: #fff; }
.chips-dark button.on { background: #fff; color: #000; border-color: #fff; }
.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: 330; font-variant-numeric: tabular-nums; }
.calc-hint { display: flex; justify-content: space-between; font-size: 13px; color: #71717a; margin-top: -4px; }
.calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; outline: 0; cursor: pointer; background: linear-gradient(90deg, #fff var(--p, 50%), #3f3f46 var(--p, 50%)); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 7px rgba(255, 255, 255, .12); }
.calc input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 7px rgba(255, 255, 255, .12); }
.calc input[type="range"]:focus-visible { outline: 2px solid #fff; outline-offset: 10px; }
.calc-result { padding: 36px; background: #fff; color: #000; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.calc-result small { color: #52525b; font-size: 14px; }
.calc-result #calc-total { font-weight: 330; font-size: clamp(48px, 6vw, 76px); line-height: 1.05; letter-spacing: -.01em; }
.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 var(--line); color: #3f3f46; font-size: 15px; }
.calc-lines li b { color: #000; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-lines .sum { color: #000; font-weight: 550; }
.calc-result .fine { color: #71717a; }
.calc-result .btn.primary { background: #000; color: #fff; border: 0; margin-top: 4px; }

.site .pcard .price-row .lock b { display: inline-flex; align-items: center; gap: 6px; }
.site .pcard .price-row .lock .ico { width: 14px; height: 14px; }

/* feature grid */
.features { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 16px; }
.features > div, .features > div + div { padding: 28px; border: 1px solid var(--night-3); border-radius: var(--r-lg); background: var(--night-2); transition: border-color .2s; }
.features > div:hover { border-color: #3f3f46; }
.features h3 { font-size: 18px; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--night-3); }
.faq details { border-bottom: 1px solid var(--night-3); }
.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: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 22px; height: 22px; flex: none; color: #a1a1aa; transition: transform .25s ease, color .2s; }
.faq summary:hover .ico { color: #fff; }
.faq details[open] summary .ico { transform: rotate(45deg); color: #fff; }
.faq details p { padding: 0 44px 24px 0; color: #a1a1aa; max-width: 680px; }

/* footer */
.site-foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; align-items: start; padding-top: 80px; padding-bottom: 48px; }
.foot-brand p { color: #a1a1aa; margin-top: 12px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col b { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #71717a; font-weight: 500; margin-bottom: 4px; }
.foot-col a { color: #d4d4d8; }
.foot-col a:hover { color: #fff; }
.foot-note { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--night-3); }

/* scroll reveal (only hidden when JS is ready to show it again) */
[data-reveal].pre { opacity: 0; transform: translateY(22px); }
[data-reveal].pre.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }

html[lang="bn"] .eyebrow, html[lang="bn"] .foot-col b { letter-spacing: 0; text-transform: none; }
html[lang="bn"] .facts b, html[lang="bn"] .calc-result #calc-total { font-weight: 400; }
html[lang="bn"] .faq summary { font-weight: 500; line-height: 1.5; }

@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .site-links { gap: 18px; }
}
@media (max-width: 900px) {
  .stage { padding: 24px 12px 30px; }
  .chip-a { right: 0; } .chip-b { left: 0; }
  .facts { grid-template-columns: 1fr 1fr; gap: 36px 0; padding-top: 56px; }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .steps li:not(:last-child)::after { display: none; }
  .calc { grid-template-columns: 1fr; }
  .site-foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .features > div, .features > div + div { padding: 22px; border-left: 1px solid var(--night-3); border-bottom: 1px solid var(--night-3); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li { padding-right: 0; }
  .steps .n { right: 0; }
  .calc-controls, .calc-result { padding: 26px 20px; }
  .facts b { font-size: 40px; }
  .facts > div { padding: 0 14px; }
  .faq summary { font-size: 16.5px; padding: 18px 0; }
  .faq details p { padding-right: 0; }
  .chip { padding: 10px 14px 10px 10px; }
  .chip b { font-size: 15px; }
  .chip-a { top: -8px; } .chip-b { bottom: -8px; }
  .site-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; flex-wrap: wrap; }
  .strip { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .strip-track[aria-hidden="true"] { display: none; }
  .chip-a, .chip-b, .eyebrow .dot { animation: none; }
}
@media (max-width: 900px) { .features > div:nth-child(3) { padding: 28px; border-left: 1px solid var(--night-3); } }
@media (max-width: 600px) { .features > div:nth-child(3) { padding: 22px; } }

.site .section-head { margin-bottom: 40px; align-items: flex-end; }
.site .section-head .section-title { margin-bottom: 0; }
.chip-b { bottom: -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-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; }
