:root {
  --bg: #F1F5F3;
  --surface: #FFFFFF;
  --ink: #12231F;
  --muted: #566761;
  --line: #D8E0DC;
  --accent: #0B6B4D;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEFE7;
  --signal: #D98E04;
  --signal-soft: #FBEFD2;
  --danger: #B3261E;
  --danger-soft: #F9DEDC;
  --good: #1B7F4B;
  --font-display: "Tiro Bangla", "Noto Serif Bengali", Georgia, serif;
  --font-body: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1512; --surface: #14211D; --ink: #E6EFEB; --muted: #94A7A0; --line: #25352F;
    --accent: #3DBE8C; --accent-ink: #06150F; --accent-soft: #173A2E;
    --signal: #F0B53A; --signal-soft: #3A2E10; --danger: #F2827A; --danger-soft: #3F1D1A; --good: #55CF8F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1512; --surface: #14211D; --ink: #E6EFEB; --muted: #94A7A0; --line: #25352F;
  --accent: #3DBE8C; --accent-ink: #06150F; --accent-soft: #173A2E;
  --signal: #F0B53A; --signal-soft: #3A2E10; --danger: #F2827A; --danger-soft: #3F1D1A; --good: #55CF8F;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--surface); z-index: 30; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
.g { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.in { max-width: 1000px; margin: 0 auto; }

/* top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.top .in { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; padding-block: 8px; }
.logo { font-weight: 700; letter-spacing: .01em; font-size: 22px; text-decoration: none; display: flex; align-items: center; gap: 8px; color: inherit; }
.logo i { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); display: inline-block; position: relative; }
.logo i::before, .logo i::after { content: ""; position: absolute; background: var(--accent-ink); }
.logo i::before { left: 12px; top: 5px; width: 2px; height: 16px; }
.logo i::after { top: 12px; left: 5px; height: 2px; width: 16px; }
.tabs { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 6px 12px; border-radius: 999px; font-weight: 500; color: var(--muted); font-size: 14px; }
.tabs a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.tabs .n { font-family: var(--font-mono); font-size: 11px; background: var(--signal); color: #1c1400; border-radius: 99px; padding: 0 6px; margin-left: 4px; }
.strip { background: var(--signal-soft); border-bottom: 1px solid var(--line); font-size: 13px; }
.strip .in { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; padding-block: 6px; }
.strip select { background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: 3px 8px; max-width: 100%; }
.strip .hint { color: var(--muted); }

h1.pt { font-size: clamp(24px, 4.5vw, 34px); line-height: 1.25; padding-block: 22px 4px; }
.lead { color: var(--muted); margin: 0 0 6px; max-width: 62ch; }

/* toolbar */
.bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-block: 12px 4px; }
.search { flex: 1 1 220px; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; outline: none; }
.sel { background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 12px; max-width: 100%; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 8px; }
.chip { flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 14px; cursor: pointer; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.count { color: var(--muted); font-size: 13px; padding-block: 4px 10px; }

/* buttons */
.btn { border: 0; cursor: pointer; border-radius: 10px; padding: 9px 18px; font-weight: 600; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent)); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 2px 6px rgba(0,0,0,.18); transition: transform .12s ease, filter .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease; -webkit-tap-highlight-color: transparent; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.96); filter: brightness(1.22) saturate(1.15); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); filter: none; }
.btn.ghost:active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); filter: none; box-shadow: none; }
.btn.warn { background: linear-gradient(180deg, color-mix(in srgb, var(--danger) 88%, #fff), var(--danger)); color: #fff; }
.btn.warn:active { box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 28%, transparent); }
.btn.big { width: 100%; padding: 12px 18px; font-size: 16px; }
.btn.sm { padding: 4px 12px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: default; filter: none; }

/* avatars, pills */
.av { width: 38px; height: 38px; border-radius: 50%; background: hsl(var(--h) 45% 38%); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.av { overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pav { display: flex; align-items: center; gap: 14px; }
.chk-line { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.av.lg { width: 72px; height: 72px; font-size: 28px; }
.av.sm { width: 26px; height: 26px; font-size: 12px; }
.pill { font-size: 12px; padding: 1px 12px; border-radius: 99px; font-weight: 600; white-space: nowrap; display: inline-block; }
.pill.run { background: var(--signal-soft); color: var(--ink); }
.pill.del { background: var(--accent-soft); color: var(--accent); }
.pill.done { background: var(--good); color: var(--accent-ink); }
.pill.bad { background: var(--danger-soft); color: var(--danger); }
.cat { font-size: 12px; font-family: var(--font-mono); background: var(--ink); color: var(--bg); border-radius: 6px; padding: 0 8px; }
.rk { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 0 8px; border: 1.5px solid currentColor; }
.rk.r0 { color: var(--muted); } .rk.r1 { color: #A0622D; } .rk.r2 { color: #6B7C85; } .rk.r3 { color: var(--signal); } .rk.r4 { color: var(--accent); }
.star { color: var(--signal); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who b { cursor: pointer; }
.who b:hover { text-decoration: underline; }
.who small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }

/* feed */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; padding-bottom: 36px; align-items: start; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; }
.post .hd { padding: 12px 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
img.media, .ph { width: 100%; aspect-ratio: 16/9; display: block; object-fit: cover; }
.ph { display: grid; place-items: center; align-content: center; color: #fff; font-family: var(--font-mono); font-size: 42px; text-align: center; }
.ph small { font-family: var(--font-body); font-size: 12px; opacity: .75; }
.ph.c2d { background: linear-gradient(135deg, hsl(168 42% 36%), hsl(168 48% 20%)); }
.ph.c3d { background: linear-gradient(135deg, hsl(284 42% 40%), hsl(284 48% 22%)); }
.ph.ccad { background-color: #16356f; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 22px 22px; }
.post .bd { padding: 12px 14px 4px; }
.post h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.post .ds { color: var(--muted); margin: 4px 0 0; }
.price { font-family: var(--font-mono); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 6px; }
.price small { font-family: var(--font-body); font-size: 12px; color: var(--muted); margin-left: 6px; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px 12px; align-items: center; }
.ab { border: 1.5px solid var(--line); background: transparent; border-radius: 99px; padding: 3px 12px; cursor: pointer; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.ab[aria-pressed="true"] { border-color: var(--danger); color: var(--danger); }
.ab:hover { border-color: var(--accent); }
.acts .btn { margin-left: auto; }
.cms { border-top: 1px solid var(--line); padding: 10px 14px 12px; display: grid; gap: 8px; background: var(--bg); }
.cm { display: flex; gap: 8px; font-size: 14px; }
.cm div { background: var(--surface); border-radius: 10px; padding: 4px 10px; min-width: 0; overflow-wrap: anywhere; }
.cm b { cursor: pointer; font-weight: 600; margin-right: 6px; }
.cmf { display: flex; gap: 8px; }
.cmf input { flex: 1; min-width: 0; border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; padding: 6px 10px; }

/* designers */
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; padding-bottom: 36px; }
.dc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; min-width: 0; }
.dc .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.nums div { background: var(--bg); border-radius: 10px; padding: 6px 2px; font-size: 12px; color: var(--muted); }
.nums b { display: block; font-family: var(--font-mono); font-size: 17px; color: var(--ink); font-weight: 500; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; background: var(--accent-soft); color: var(--accent); padding: 1px 10px; border-radius: 99px; }

/* profile */
.ph-hd { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding-block: 22px 8px; }
.ph-hd h1 { font-size: 28px; }
.ph-hd .meta { color: var(--muted); font-size: 14px; display: flex; gap: 4px 14px; flex-wrap: wrap; margin-top: 2px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding-block: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-family: var(--font-mono); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat.hl { background: var(--signal-soft); border-color: transparent; }
.stat.bd .v { color: var(--danger); }
.sec { padding-bottom: 24px; }
.sec h2 { font-size: 21px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bars { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.bar1 { display: grid; grid-template-columns: 56px 1fr 40px; gap: 10px; align-items: center; font-size: 14px; }
.bar1 i { display: block; height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.bar1 i span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.row { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.row .t { flex: 1 1 220px; min-width: 0; font-weight: 500; }
.row .t small { display: block; color: var(--muted); font-weight: 400; }
.row .t small b { cursor: pointer; font-weight: 500; }
.amt { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.rt { display: flex; gap: 2px; align-items: center; font-size: 13px; color: var(--muted); }
.rt button { border: 0; background: transparent; cursor: pointer; font-size: 20px; color: var(--line); padding: 0 1px; }
.rt button:hover, .rt button.on { color: var(--signal); }
.empty { color: var(--muted); border: 1.5px dashed var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.note { font-size: 13px; color: var(--muted); }

/* messages */
.mg { display: grid; gap: 8px; padding-bottom: 30px; }
.th { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.th .hd { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.msgs { padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 220px; max-height: 50vh; overflow-y: auto; }
.bub { max-width: 80%; padding: 6px 12px; border-radius: 14px; background: var(--bg); overflow-wrap: anywhere; }
.bub small { display: block; font-size: 11px; color: var(--muted); }
.bub.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.bub.me small { color: inherit; opacity: .75; }
.sendf { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.sendf input { flex: 1; min-width: 0; border: 1.5px solid var(--line); background: var(--bg); border-radius: 10px; padding: 8px 12px; }

/* modal */
.ov { position: fixed; inset: 0; z-index: 40; background: rgba(5, 14, 11, .6); display: flex; align-items: flex-end; justify-content: center; padding: env(safe-area-inset-top, 0px) 0 0; }
.modal { background: var(--surface); width: 100%; max-width: 540px; max-height: 92%; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 20px max(18px, env(safe-area-inset-left, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)); position: relative; }
@media (min-width: 640px) { .ov { align-items: center; } .modal { border-radius: 18px; } }
.x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg); cursor: pointer; font-size: 18px; }
.modal h2 { font-size: 22px; padding-right: 40px; line-height: 1.35; }
.f { display: grid; gap: 12px; margin-top: 12px; }
.f label { display: grid; gap: 4px; font-weight: 500; font-size: 14px; }
.f input, .f select, .f textarea { background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 100%; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--accent); outline: none; }
.f .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f .chk { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 400; }
.f .chk label { display: flex; gap: 6px; align-items: center; font-weight: 400; }
.f .chk input { width: auto; }
.pv { max-height: 170px; width: auto; max-width: 100%; border-radius: 10px; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin: 0; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 12px; z-index: 60; max-width: calc(100% - 32px); box-shadow: 0 8px 30px rgba(0,0,0,.25); }
footer { border-top: 1px solid var(--line); padding-block: 18px 26px; color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- অতিরিক্ত: লগইন, অ্যাডমিন, বিটা ---- */
body { margin: 0; }
.auth { max-width: 460px; margin: 5vh auto 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.auth h1 { font-size: 28px; margin-bottom: 4px; }
.auth .lead { margin-bottom: 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 8px; }
.seg button { border: 0; background: transparent; padding: 8px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.lnk { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; font-size: 14px; }
.loading { color: var(--muted); padding: 30px 0; text-align: center; }
.pre { white-space: pre-line; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.me-strip { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; }
.me-strip .sp { margin-left: auto; display: flex; gap: 8px; }
.banner { background: var(--signal-soft); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 12px 0 0; }
.f .chk label { font-weight: 400; }
.tbl { display: grid; gap: 8px; }
.mini { font-size: 12px; color: var(--muted); }
a.dl { color: var(--accent); }

/* পোর্টফোলিও */
.site { margin: 6px 0 0; }
.site a { color: var(--accent); font-weight: 600; text-decoration: none; word-break: break-all; }
.site a:hover { text-decoration: underline; }
.pfgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pfc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; }
.pfc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pfb { padding: 10px 12px 12px; }
.pfb p { margin: 4px 0 0; color: var(--muted); font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.pfb .ab { position: absolute; top: 6px; right: 6px; background: var(--surface); border-radius: 8px; }

/* চাপ দিলে হালকা রঙ বদল: ট্যাব, ছোট বোতাম, চিপ */
button, .tabs a { -webkit-tap-highlight-color: transparent; }
.tabs a { transition: background-color .15s ease, color .15s ease, transform .12s ease; }
.tabs a:active { background: var(--accent-soft); color: var(--accent); transform: scale(.96); }
.ab { transition: background-color .15s ease, transform .12s ease; }
.ab:active { background: var(--accent-soft); transform: scale(.92); }
@media (prefers-reduced-motion: reduce) { .btn, .tabs a, .ab { transition: none; } .btn:active, .tabs a:active, .ab:active { transform: none; } }
a.tag { text-decoration: none; font-weight: 600; }

.ph.cls { background: var(--accent-soft); color: var(--accent); }
.ph.cls span { font-size: 44px; }

/* ভাষা বাছাই */
.lang { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.langsel { font: inherit; font-size: 13px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line, #d8d2c8); background: var(--card, #fff); color: inherit; }

/* হোমের স্বাগত অংশ */
.hero { background: linear-gradient(135deg, #0B6B4D, #0f8b64); color: #fff; border-radius: 16px; padding: 18px; margin: 4px 0 14px; }
.hero h2 { margin: 0; font-size: 21px; line-height: 1.3; color: #fff; }
.hero p { margin: 6px 0 14px; font-size: 14px; opacity: .92; max-width: 52ch; }
.hbs { display: flex; gap: 10px; flex-wrap: wrap; }
.hb { flex: 1 1 140px; text-align: center; text-decoration: none; padding: 11px 12px; border-radius: 11px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; border: 1px solid transparent; }
.hb.w { background: #fff; color: #0B6B4D; }
.hb.g { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.55); }
.hb:active { transform: scale(.97); filter: brightness(.95); }

/* ক্যাটাগরি আইকন সারি */
.catrow { display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.catrow::-webkit-scrollbar { display: none; }
.catb { flex: 0 0 auto; width: 64px; background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-align: center; }
.catb i { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin: 0 auto 4px; border-radius: 50%; background: var(--accent-soft); font-size: 25px; font-style: normal; border: 2px solid transparent; transition: transform .12s, border-color .12s; }
.catb span { font-size: 12px; display: block; }
.catb:active i { transform: scale(.92); }
.catb[aria-pressed="true"] i { border-color: var(--accent); background: var(--accent); }
.catb[aria-pressed="true"] span { color: var(--accent); font-weight: 700; }

/* নিচের মেনুবার, ইনস্টল বোতাম ও হোমের অংশ */
.bnav { display: none; }
.instbtn { display: block; width: 100%; margin: -4px 0 12px; padding: 9px 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: 11px; cursor: pointer; }
.instbtn:active { transform: scale(.98); }
.hsec { font-size: 15px; margin: 14px 2px 8px; }
.hrow { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.hrow::-webkit-scrollbar { display: none; }
.hcard { flex: 0 0 140px; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.hcard .av { margin-bottom: 4px; }
.hcard b { font-size: 14px; }
.hcard small { color: var(--muted); font-size: 12px; }
.hcard em { font-style: normal; color: var(--signal); font-size: 12.5px; font-weight: 600; }
.hcard:active, .tile:active, .hjob:active { transform: scale(.97); }
.hstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hstat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 12px; color: var(--muted); }
.hstat b { display: block; font-size: 19px; color: var(--ink); margin-top: 2px; }
.hjob { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; }
.hjob .pill { float: right; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 8px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; font-size: 12.5px; text-align: center; }
.tile i { font-size: 24px; font-style: normal; }
.tile .n { position: absolute; top: 6px; right: 8px; font-family: var(--font-mono); font-size: 11px; background: var(--signal); color: #1c1400; border-radius: 99px; padding: 0 6px; }
@media (max-width: 720px) {
  .tabs { display: none; }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .bnav a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; text-decoration: none; color: var(--muted); font-size: 11px; padding: 2px 0; }
  .bnav a i { font-size: 21px; font-style: normal; }
  .bnav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
  .bnav a:active { transform: scale(.94); }
  .bnav .n { position: absolute; top: -2px; left: 54%; font-family: var(--font-mono); font-size: 10px; background: var(--signal); color: #1c1400; border-radius: 99px; padding: 0 5px; }
  main.g { padding-bottom: 76px; }
  footer.g { padding-bottom: 76px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* যাচাই ব্যাজ */
.vb { display: inline-block; vertical-align: middle; margin-left: 5px; padding: 0 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; line-height: 18px; white-space: nowrap; }
h1 .vb { font-size: 13px; line-height: 22px; }

/* ===== রাউন্ড ৩: অফার, সেভ, আগে-পরে, সরাসরি অনুরোধ ===== */
.tag.offer { background: #FFE9B8; color: #5A3700; font-weight: 700; }
.tag.dir { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.oldp { color: var(--muted); font-weight: 400; font-size: .72em; text-decoration: line-through; }
.pact { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.ba figure { margin: 0; position: relative; }
.ba img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.ba figcaption { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, .68); color: #fff; font-size: 12px; padding: 2px 9px; border-radius: 99px; }
a.hcard { text-decoration: none; color: inherit; }
.hc-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.ab.sv[aria-pressed="true"] { background: var(--accent-soft); }

/* ===== রাউন্ড ৪: দাম প্রস্তাব ===== */
button.hjob { width: 100%; text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.prop-list { padding: 4px 12px 12px; display: grid; gap: 8px; }
.prop { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.prop.mine { margin: 0 12px 12px; }
.prop .pa { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
#pushbtn[hidden] { display: none; }

/* round 5: deals / files in inbox */
#deals{display:flex;flex-direction:column;gap:10px;margin:10px 0}
#deals:empty{display:none}
.deal{border:1px solid var(--line,#ddd);border-radius:12px;padding:10px 12px;background:var(--card,#fff)}
.deal .dh{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:6px}
.dfile{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 0;border-top:1px dashed var(--line,#ddd);word-break:break-all}
.dfile small{color:#777}
.pm{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.pmo{display:flex;gap:8px;align-items:center;padding:10px;border:1px solid var(--line,#ddd);border-radius:10px}
