/* দোকানি — ডিজাইন: শান্ত ধূসর জমিন, একটা টিল অ্যাকসেন্ট, দামের ট্যাগ সিগনেচার */
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --raised: #f4f4f5;
  --line: rgba(23, 23, 23, 0.08);
  --line-strong: rgba(23, 23, 23, 0.14);
  --text: #171717;
  --text-2: #525252;
  --text-3: #737373;
  --accent: #1f5f5b;
  --accent-ink: #174a47;
  --accent-soft: #e8f0ef;
  --paper: #fbf7ee;
  --ok: #16a34a;
  --bad: #dc2626;
  --warn: #b45309;
  --r-ctl: 10px;
  --r-card: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Hind Siliguri", system-ui, sans-serif;
  --display: "Tiro Bangla", "Hind Siliguri", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--font); font-feature-settings: "tnum"; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.3; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0; }
.i { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- কন্ট্রোল ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong);
  background: var(--card); color: var(--text); font: 500 15px/1 var(--font); cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 120ms var(--ease);
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { background: var(--raised); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-lg { height: 48px; padding: 0 20px; font-size: 16px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 14px; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--raised); }
.btn-danger { color: var(--bad); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.btn-fb:hover { background: #0f63d3; }

.field { display: grid; gap: 4px; }
.field > span { font-size: 14px; color: var(--text-2); }
.field small { color: var(--text-3); font-size: 13px; }
.input, select.input, textarea.input {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  background: var(--card); color: var(--text); font: 400 15px/1.4 var(--font);
  transition: border-color 150ms var(--ease);
}
textarea.input { height: auto; min-height: 112px; padding: 12px; line-height: 1.6; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.muted { color: var(--text-3); }
.sec { color: var(--text-2); }
.small { font-size: 13px; }
.mono { font-variant-numeric: tabular-nums; }

.flash { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-radius: var(--r-ctl); margin-bottom: 20px; background: var(--card); border: 1px solid var(--line); }
.flash-ok { color: #15803d; }
.flash-err { color: var(--bad); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.card-tight { padding: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d4d4d4; margin-right: 8px; vertical-align: 1px; }
.dot-on { background: var(--ok); }
.dot-warn { background: #f59e0b; }
.dot-bad { background: var(--bad); }

/* সিগনেচার: দামের ট্যাগ */
.tag {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 20px;
  background: var(--paper); color: var(--text); border: 1px solid rgba(120, 90, 30, 0.18);
  border-radius: 4px 8px 8px 4px; font-size: 14px; font-weight: 500; white-space: nowrap;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}
.tag-hole { position: absolute; left: 9px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px rgba(120, 90, 30, 0.25); }
.tag-done { background: var(--accent-soft); border-color: rgba(31, 95, 91, 0.2); color: var(--accent-ink); }
.tag-fail { background: #fdecec; border-color: rgba(220, 38, 38, 0.2); color: #991b1b; }

/* ---------- অ্যাপ শেল ---------- */
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; padding: 20px 12px; border-right: 1px solid var(--line); background: #f5f5f4; }
.brand { display: flex; align-items: center; gap: 8px; padding: 0 8px; font-weight: 600; font-size: 18px; color: var(--text); text-decoration: none !important; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; }
.side-shop { padding: 0 8px; }
.side-shop-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-shop-meta { font-size: 13px; color: var(--text-3); }
.nav { display: grid; gap: 2px; }
.nav-row { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--text-2); text-decoration: none !important; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.nav-row:hover { background: rgba(23, 23, 23, 0.04); color: var(--text); }
.nav-row.is-active { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.04); }
.nav-row.is-active .i { color: var(--accent); }
.side-foot { margin-top: auto; display: grid; gap: 2px; }
.side-credit { padding: 12px 10px 0; font-size: 12px; color: var(--text-3); }
.main { padding: 32px; max-width: 1200px; width: 100%; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-title p { color: var(--text-2); margin-top: 4px; }
.tabbar { display: none; }

/* ---------- হোম ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.stat-label { font-size: 14px; color: var(--text-2); }
.stat-num { font-size: 30px; font-weight: 500; line-height: 1.2; margin-top: 8px; }
.stat-note { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.home-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.slots { display: grid; gap: 12px; }
.slot { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.slot img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--raised); }
.slot-empty { width: 64px; height: 64px; border-radius: 8px; background: var(--raised); display: grid; place-items: center; color: var(--text-3); }
.slot-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checklist { display: grid; gap: 12px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; }
.check-box { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; margin-top: 2px; }
.check-box.is-done { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- ছবি দিন / পোস্টার ---------- */
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.drop { display: grid; place-items: center; gap: 8px; text-align: center; padding: 32px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-card); background: var(--card); color: var(--text-2); cursor: pointer; transition: border-color 150ms var(--ease), background-color 150ms var(--ease); }
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop strong { color: var(--text); font-weight: 500; }
.poster-stage { position: sticky; top: 24px; }
.poster-frame { background: #e7e5e4; border-radius: var(--r-card); padding: 16px; }
.poster-frame canvas { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); background: #fff; display: block; }
.tpl-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tpl { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--card); font: 400 14px var(--font); cursor: pointer; color: var(--text-2); }
.tpl.is-on { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: var(--raised); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on { border-color: var(--accent); }
.thumb.is-saved::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px #fff; }

/* ---------- সারি ---------- */
.queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.q-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.q-item img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--raised); }
.q-body { padding: 12px 16px 16px; display: grid; gap: 8px; flex: 1; }
.q-cap { font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.q-err { font-size: 13px; color: var(--bad); }
.q-actions { display: flex; gap: 4px; margin-top: auto; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; background: var(--raised); border-radius: 10px; gap: 4px; }
.seg a { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 6px; color: var(--text-2); text-decoration: none !important; font-size: 14px; }
.seg a.is-on { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }

/* ---------- প্ল্যান ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { display: grid; gap: 12px; align-content: start; }
.plan.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-price { font-size: 30px; font-weight: 500; }
.plan-price small { font-size: 14px; color: var(--text-3); font-weight: 400; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--text-2); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.pay-box { background: var(--paper); border: 1px solid rgba(120, 90, 30, 0.16); border-radius: 12px; padding: 16px; }

/* ---------- পাবলিক পেজ (লগইন, উইজার্ড) ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; margin-bottom: 24px; justify-content: center; color: var(--text); }
.wizard { max-width: 640px; margin: 0 auto; padding: 32px 16px 64px; }
.steps { display: flex; gap: 4px; margin: 16px 0 24px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line-strong); }
.steps span.is-done { background: var(--accent); }
.page-pick { display: grid; gap: 8px; }
.page-opt { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; background: var(--card); }
.page-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.page-opt img { width: 40px; height: 40px; border-radius: 50%; }
.legal { max-width: 720px; margin: 0 auto; padding: 48px 16px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { margin: 32px 0 8px; font-size: 18px; }
.legal p, .legal li { color: var(--text-2); }

/* ---------- ল্যান্ডিং ---------- */
.lp-nav { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 20px 24px; }
.lp-nav .row a:not(.btn) { color: var(--text-2); }
.hero { max-width: 1200px; margin: 0 auto; padding: 48px 24px 96px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: 52px; line-height: 1.25; }
.hero-sub { font-size: 19px; line-height: 1.7; color: var(--text-2); margin: 20px 0 32px; max-width: 34rem; }
.hero-visual { position: relative; }
.phone { width: 300px; margin: 0 auto; background: #111; border-radius: 40px; padding: 12px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18); }
.phone-in { background: #fff; border-radius: 30px; overflow: hidden; }
.fb-post-head { display: flex; gap: 8px; align-items: center; padding: 12px; font-size: 13px; }
.fb-post-head b { font-weight: 600; display: block; }
.fb-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); }
.fb-post-cap { padding: 0 12px 8px; font-size: 13px; line-height: 1.5; }
.hero-tags { position: absolute; left: 0; bottom: 40px; display: grid; gap: 8px; }
.features { max-width: 1200px; margin: 0 auto; padding: 0 24px 96px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature h3 { margin: 12px 0 4px; }
.feature p { color: var(--text-2); }
.feature-num { font-family: var(--display); font-size: 28px; color: var(--accent); }
.lp-plans { max-width: 1200px; margin: 0 auto; padding: 0 24px 96px; }
.lp-foot { border-top: 1px solid var(--line); padding: 24px; text-align: center; color: var(--text-3); font-size: 14px; }
.lp-foot a { color: var(--text-2); margin: 0 8px; }

/* ---------- মোবাইল ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 20px 16px 96px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); z-index: 20; }
  .tab { display: grid; justify-items: center; gap: 2px; padding: 8px 0; font-size: 12px; color: var(--text-3); text-decoration: none !important; }
  .tab.is-active { color: var(--accent-ink); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .card:last-child { grid-column: span 2; }
  .home-grid, .add-grid, .plans, .grid-2 { grid-template-columns: 1fr; }
  .poster-stage { position: static; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero h1 { font-size: 36px; }
  .hero-tags { display: none; }
  .features { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
  .card { padding: 20px; }
}
