/* ============================================================
   BusinessPilot — ড্যাশবোর্ড ও লগইনের স্টাইল
   ============================================================ */
:root {
  --brand: #2457f5;
  --brand-600: #1c47d6;
  --brand-50: #eef3ff;
  --brand-100: #dde7ff;
  --ink: #0f1729;
  --ink-2: #3b4559;
  --mute: #6b768a;
  --line: #e4e8ef;
  --line-2: #eef1f5;
  --bg: #f5f7fb;
  --card: #ffffff;
  --side: #0c1424;
  --side-2: #16213a;
  --side-ink: #c7d0e0;
  --ok: #0f9d58;
  --ok-50: #e7f6ee;
  --warn: #c2410c;
  --warn-50: #fff1e7;
  --bad: #d92d20;
  --bad-50: #fdecea;
  --ai: #7c3aed;
  --ai-50: #f3edff;
  --r: 12px;
  --r-sm: 8px;
  --sh: 0 1px 2px rgba(15, 23, 41, .05), 0 1px 1px rgba(15, 23, 41, .03);
  --sh-lg: 0 18px 50px rgba(15, 23, 41, .14);
  --font: "Hind Siliguri", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
code, pre, .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
svg.i { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }

/* ---------- বাটন ও ফর্ম ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { background: #f8fafc; border-color: #d3d9e3; text-decoration: none; }
.btn:focus-visible { outline: 3px solid var(--brand-100); outline-offset: 1px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-600); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-50); border-color: #f5c2bd; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--line-2); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13.5px; }
.btn.icon { width: 36px; padding: 0; }
.btn.block { width: 100%; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--mute); }
.input, textarea.input, select.input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d5dbe5; border-radius: var(--r-sm); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.input[readonly] { background: #f8fafc; color: var(--mute); }
.input-group { position: relative; display: flex; }
.input-group .input { padding-right: 44px; }
.input-group .peek { position: absolute; right: 4px; top: 4px; height: 34px; width: 36px; border: 0; background: none; color: var(--mute); cursor: pointer; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.input-group .peek:hover { background: var(--line-2); }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* টগল সুইচ */
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 12px 0; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { flex: none; width: 42px; height: 24px; border-radius: 12px; background: #cfd6e2; position: relative; transition: background .2s; margin-top: 1px; }
.switch .track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--brand-100); }
.switch b { display: block; font-size: 14.5px; }
.switch small { display: block; color: var(--mute); font-size: 13px; }

/* সেগমেন্ট */
.seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--mute); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--sh); }

/* চিপ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); font-size: 13.5px; font-weight: 600; }
.chip button { border: 0; background: none; width: 22px; height: 22px; border-radius: 50%; color: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.chip button:hover { background: rgba(36, 87, 245, .14); }

/* ট্যাগ */
.tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .1px; white-space: nowrap; }
.tag.human { background: var(--warn-50); color: var(--warn); }
.tag.ai { background: var(--ai-50); color: var(--ai); }
.tag.agent { background: var(--brand-50); color: var(--brand-600); }
.tag.closed { background: var(--line-2); color: var(--mute); }
.tag.ok { background: var(--ok-50); color: var(--ok); }
.tag.off { background: var(--line-2); color: var(--mute); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* কার্ড */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.card-h { padding: 18px 20px 0; }
.card-h h3 { font-size: 16.5px; }
.card-h p { margin: 4px 0 0; color: var(--mute); font-size: 13.5px; }
.card-b { padding: 18px 20px 20px; }
.card + .card { margin-top: 16px; }
.stats > .card, .two-col > .card { margin-top: 0; }
.divider { height: 1px; background: var(--line); margin: 4px 0; }

/* টোস্ট */
#toasts { position: fixed; z-index: 1000; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--sh-lg); font-size: 14px; animation: tIn .2s ease-out; pointer-events: auto; max-width: 90vw; }
.toast.err { background: var(--bad); }
.toast.ok { background: #0b7a45; }
@keyframes tIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   লগইন পেজ
   ============================================================ */
.auth { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-art { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at -10% -10%, #2f62ff 0%, transparent 55%), radial-gradient(900px 500px at 110% 110%, #6d3cf5 0%, transparent 50%), #0b1430; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand .logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #4f7bff, #2457f5); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.brand .logo svg { width: 20px; height: 20px; color: #fff; }
.auth-art h1 { font-size: 38px; line-height: 1.2; margin: auto 0 14px; max-width: 520px; font-weight: 700; letter-spacing: -.3px; }
.auth-art .lead { color: #c3cdf0; font-size: 16.5px; max-width: 480px; margin: 0 0 28px; }
.auth-feats { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 12px; }
.auth-feats li { display: flex; gap: 12px; align-items: center; color: #e3e8fb; font-size: 15px; }
.auth-feats .fi { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex: none; }
.auth-feats .fi svg { width: 16px; height: 16px; }
.mock { position: relative; width: 100%; max-width: 420px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 16px; backdrop-filter: blur(4px); margin-bottom: auto; }
.mock .m { max-width: 80%; padding: 8px 12px; border-radius: 14px; font-size: 13.5px; margin-bottom: 8px; }
.mock .m.v { margin-left: auto; background: #2f62ff; border-bottom-right-radius: 4px; }
.mock .m.a { background: rgba(255,255,255,.12); border-bottom-left-radius: 4px; }
.mock .m small { display: block; font-size: 10.5px; opacity: .7; font-weight: 700; }
.auth-foot { color: #8e9bc5; font-size: 12.5px; margin-top: 24px; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .brand { color: var(--ink); margin-bottom: 32px; display: none; }
.auth-card h2 { font-size: 26px; margin-bottom: 6px; letter-spacing: -.2px; }
.auth-card .sub { color: var(--mute); margin: 0 0 26px; }
.auth-tabs { display: flex; gap: 4px; background: var(--line-2); padding: 4px; border-radius: 10px; margin-bottom: 24px; }
.auth-tabs button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 8px; font-weight: 600; cursor: pointer; color: var(--mute); }
.auth-tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--sh); }
.auth-err { background: var(--bad-50); color: var(--bad); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; margin-bottom: 16px; }
.auth-note { font-size: 13px; color: var(--mute); margin-top: 18px; text-align: center; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-card .brand { display: flex; }
}

/* ============================================================
   অ্যাপ শেল
   ============================================================ */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); height: 100vh; height: 100dvh; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 18px 12px; overflow-y: auto; }
.side .brand { color: #fff; padding: 2px 8px 18px; font-size: 16.5px; }
.ws-pill { margin: 0 4px 16px; padding: 10px 12px; background: var(--side-2); border-radius: 10px; display: flex; align-items: center; gap: 10px; }
.ws-pill .av { width: 30px; height: 30px; border-radius: 8px; background: #2a3a5f; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.ws-pill b { color: #fff; font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-pill small { font-size: 11.5px; color: #8b97b3; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: #6c7a99; padding: 14px 12px 6px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: var(--side-ink); font-weight: 500; font-size: 14.5px; }
.nav a:hover { background: var(--side-2); color: #fff; text-decoration: none; }
.nav a.on { background: var(--brand); color: #fff; }
.nav a .badge { margin-left: auto; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; display: flex; align-items: center; justify-content: center; }
.nav a .soon { margin-left: auto; font-size: 10.5px; background: #24314f; color: #9fb0d6; padding: 1px 7px; border-radius: 6px; font-weight: 700; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid #1e2a44; display: flex; align-items: center; gap: 10px; padding-left: 8px; }
.side-foot .av { width: 32px; height: 32px; border-radius: 50%; background: #2a3a5f; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.side-foot b { display: block; color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot small { display: block; font-size: 11.5px; color: #8b97b3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot button { margin-left: auto; background: none; border: 0; color: #8b97b3; cursor: pointer; width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.side-foot button:hover { background: var(--side-2); color: #fff; }

.scrim { display: none; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { display: none; }
.view { flex: 1; min-height: 0; overflow-y: auto; }
.page { max-width: 1080px; margin: 0 auto; padding: 28px 32px 48px; }
.page-h { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-h h1 { font-size: 24px; letter-spacing: -.2px; }
.page-h p { margin: 4px 0 0; color: var(--mute); }
.page-h .actions { margin-left: auto; display: flex; gap: 8px; }

/* ওভারভিউ */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 16px 18px; }
.stat .k { color: var(--mute); font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .k .ic { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.stat .k .ic svg { width: 15px; height: 15px; }
.stat .v { font-size: 30px; font-weight: 700; margin-top: 8px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12.5px; color: var(--mute); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.checklist li:last-child { border-bottom: 0; }
.checklist .ck { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cfd6e2; flex: none; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.checklist li.done .ck { background: var(--ok); border-color: var(--ok); color: #fff; }
.checklist .ck svg { width: 13px; height: 13px; }
.checklist b { display: block; font-size: 14.5px; }
.checklist li.done b { color: var(--mute); text-decoration: line-through; text-decoration-color: #b8c0cd; }
.checklist small { color: var(--mute); font-size: 13px; }
.checklist a.btn { margin-left: auto; }
.progress { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin-top: 12px; }
.progress span { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .4s; }
.recent a { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); color: inherit; }
.recent a:last-child { border-bottom: 0; }
.recent a:hover { text-decoration: none; background: #fafbfd; }
.empty-s { text-align: center; padding: 28px 12px; color: var(--mute); font-size: 14px; }
.empty-s svg { width: 36px; height: 36px; color: #b5bfd0; margin-bottom: 8px; }

/* অ্যাভাটার */
.av-c { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13.5px; flex: none; color: #fff; }

/* ============================================================
   ইনবক্স
   ============================================================ */
.inbox { display: grid; grid-template-columns: 330px minmax(0, 1fr) 290px; height: 100%; background: #fff; }
.ib-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ib-head { padding: 16px 16px 10px; border-bottom: 1px solid var(--line); }
.ib-head h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.ib-search { position: relative; margin-top: 12px; }
.ib-search svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--mute); }
.ib-search .input { height: 38px; padding-left: 34px; background: #f7f9fc; }
.ib-filters { display: flex; gap: 4px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.ib-filters button { border: 0; background: none; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--mute); cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ib-filters button:hover { background: var(--line-2); }
.ib-filters button.on { background: var(--brand-50); color: var(--brand-600); }
.ib-filters .n { background: var(--line-2); color: var(--ink-2); border-radius: 6px; padding: 0 6px; font-size: 11.5px; min-width: 18px; text-align: center; }
.ib-filters button.on .n { background: #fff; color: var(--brand-600); }
.ib-items { flex: 1; overflow-y: auto; }
.ib-item { display: flex; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; position: relative; }
.ib-item:hover { background: #f8fafd; }
.ib-item.on { background: var(--brand-50); }
.ib-item.on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.ib-item .mid { flex: 1; min-width: 0; }
.ib-item .top { display: flex; align-items: center; gap: 6px; }
.ib-item .nm { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-item .tm { margin-left: auto; font-size: 12px; color: var(--mute); flex: none; }
.ib-item .pv { font-size: 13.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ib-item.unread .nm, .ib-item.unread .pv { color: var(--ink); font-weight: 600; }
.ib-item .bt { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.ib-item .un { margin-left: auto; background: var(--brand); color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }

.ib-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #f7f9fc; }
.ch-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); min-height: 64px; }
.ch-head .who b { font-size: 15.5px; display: block; }
.ch-head .who small { color: var(--mute); font-size: 12.5px; display: flex; gap: 8px; align-items: center; }
.ch-head .acts { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.ch-msgs { flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.ch-day { align-self: center; font-size: 12px; color: var(--mute); background: #eaeef5; padding: 2px 10px; border-radius: 10px; margin: 10px 0; }
.bub { max-width: min(72%, 560px); padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.55; font-size: 14.5px; position: relative; }
.bub .meta { display: block; font-size: 11px; margin-top: 3px; opacity: .72; }
.bub.visitor { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bub.ai { align-self: flex-end; background: var(--ai-50); border: 1px solid #e3d6ff; border-bottom-right-radius: 5px; }
.bub.agent { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.bub.system { align-self: center; background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; font-size: 13px; border-radius: 10px; text-align: center; max-width: 80%; }
.bub + .bub.visitor, .bub.visitor + .bub:not(.visitor) { margin-top: 8px; }
.bub a { color: inherit; text-decoration: underline; }
.ch-banner { margin: 0 18px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; display: flex; align-items: center; gap: 10px; }
.ch-banner.ai { background: var(--ai-50); color: #5b21b6; }
.ch-banner.human { background: var(--warn-50); color: var(--warn); }
.ch-banner.closed { background: var(--line-2); color: var(--ink-2); }
.ch-banner .btn { margin-left: auto; }
.composer { padding: 12px 18px 16px; }
.composer form { background: #fff; border: 1px solid #d5dbe5; border-radius: 14px; padding: 8px 8px 8px 14px; display: flex; gap: 8px; align-items: flex-end; box-shadow: var(--sh); }
.composer form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.composer textarea { flex: 1; border: 0; outline: none; resize: none; min-height: 24px; max-height: 160px; padding: 7px 0; line-height: 1.5; background: none; }
.composer .hint { font-size: 12px; color: var(--mute); margin-top: 6px; padding-left: 4px; }

.ib-info { border-left: 1px solid var(--line); overflow-y: auto; padding: 20px 18px; }
.ib-info .vc { text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ib-info .vc .av-c { width: 60px; height: 60px; font-size: 20px; margin: 0 auto 10px; }
.ib-info .vc b { font-size: 16px; display: block; }
.ib-info .vc .row { justify-content: center; margin-top: 12px; }
.kv { list-style: none; margin: 0; padding: 14px 0 0; }
.kv li { padding: 8px 0; font-size: 13.5px; }
.kv li span { display: block; color: var(--mute); font-size: 12px; font-weight: 600; margin-bottom: 1px; }
.kv li div { word-break: break-word; }
.ib-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--mute); text-align: center; padding: 24px; }
.ib-empty svg { width: 54px; height: 54px; color: #c2cad8; margin-bottom: 12px; }
.ib-empty b { color: var(--ink); font-size: 16px; display: block; margin-bottom: 4px; }
.back-btn { display: none; }

/* ============================================================
   উইজেট সেটিং + প্রিভিউ
   ============================================================ */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.preview-wrap { position: sticky; top: 20px; }
.preview { position: relative; height: 620px; border-radius: 16px; background: linear-gradient(180deg, #eef2f8, #e6ebf3); border: 1px solid var(--line); overflow: hidden; }
.preview .fake { position: absolute; inset: 16px 16px auto; display: grid; gap: 10px; }
.preview .fake i { display: block; height: 12px; border-radius: 6px; background: #dfe5ee; }
.preview .fake i:nth-child(1) { width: 40%; height: 18px; }
.preview .fake i:nth-child(3) { width: 80%; }
.preview .fake i:nth-child(4) { width: 60%; }
.pv-panel { position: absolute; bottom: 88px; width: 330px; max-width: calc(100% - 28px); background: #fff; border-radius: 18px; box-shadow: 0 16px 40px rgba(15,23,41,.18); overflow: hidden; display: flex; flex-direction: column; }
.pv-head { padding: 14px 16px; display: flex; gap: 10px; align-items: center; }
.pv-head .pav { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.pv-head b { display: block; font-size: 15px; }
.pv-head small { font-size: 12px; opacity: .85; }
.pv-body { padding: 14px; background: #f4f6fa; display: flex; flex-direction: column; gap: 8px; min-height: 190px; }
.pv-msg { background: #fff; padding: 9px 12px; border-radius: 14px; border-bottom-left-radius: 4px; font-size: 13.5px; max-width: 85%; white-space: pre-wrap; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.pv-qr { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pv-qr span { border: 1px solid; background: #fff; border-radius: 14px; padding: 4px 10px; font-size: 12.5px; }
.pv-form { background: #fff; border-radius: 12px; padding: 12px; display: grid; gap: 8px; font-size: 12.5px; }
.pv-form i { display: block; height: 32px; border: 1px solid #dfe4ec; border-radius: 8px; padding: 6px 10px; font-style: normal; color: #9aa4b5; }
.pv-form .go { height: 32px; border-radius: 8px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.pv-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #edf0f5; }
.pv-foot i { flex: 1; height: 38px; border: 1px solid #dfe4ec; border-radius: 12px; padding: 8px 12px; font-style: normal; color: #9aa4b5; font-size: 13.5px; }
.pv-foot b { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.pv-pw { text-align: center; font-size: 10.5px; color: #a3acbb; padding: 0 0 8px; }
.pv-launch { position: absolute; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 8px 20px rgba(15,23,41,.25); }
.pv-launch svg { width: 26px; height: 26px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatches button.on { box-shadow: 0 0 0 2px var(--ink); }
.swatches input[type=color] { width: 40px; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.savebar { position: sticky; bottom: 0; background: rgba(245,247,251,.92); backdrop-filter: blur(6px); padding: 14px 0; margin-top: 8px; display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); }
.savebar .dirty { color: var(--warn); font-size: 13.5px; font-weight: 600; }

/* ============================================================
   ইনস্টল ও AI
   ============================================================ */
.codebox { position: relative; background: #0d1528; color: #dfe7ff; border-radius: 12px; padding: 16px 18px; font-size: 13.5px; line-height: 1.65; overflow-x: auto; white-space: pre; }
#code { white-space: pre-wrap; word-break: break-all; padding-right: 96px; }
.codebox .tk-t { color: #7fb4ff; } .codebox .tk-a { color: #ffcb6b; } .codebox .tk-s { color: #a5e38f; }
.codebox .copy { position: absolute; top: 10px; right: 10px; height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid #2c3a5c; background: #16223d; color: #dfe7ff; font-size: 12.5px; font-weight: 600; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.codebox .copy:hover { background: #1f2d4f; }
.codebox .copy svg { width: 14px; height: 14px; }
.keyline { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
.keyline code { font-size: 13px; }
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 38px; font-size: 14.5px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.steps code { background: var(--line-2); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.status-card { display: flex; gap: 14px; align-items: center; padding: 16px 20px; }
.status-card .big { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.status-card .big svg { width: 22px; height: 22px; }
.status-card b { font-size: 16px; display: block; }
.status-card small { color: var(--mute); font-size: 13.5px; }
.test-out { margin-top: 14px; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.test-out.ok { background: var(--ok-50); color: #065f3a; }
.test-out.err { background: var(--bad-50); color: #9b1c13; }
.test-out pre { font-family: var(--font); margin: 8px 0 0; white-space: pre-wrap; font-size: 12.5px; background: rgba(255,255,255,.6); padding: 8px 10px; border-radius: 8px; color: var(--ink-2); }
details.doc { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; margin-top: 12px; background: #fff; }
details.doc summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14.5px; }
details.doc[open] summary { border-bottom: 1px solid var(--line-2); margin-bottom: 12px; }
details.doc .codebox { margin-bottom: 14px; font-size: 12.5px; }
details.doc p { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }

/* সাবস্ক্রিপশন */
.soon-hero { text-align: center; padding: 48px 24px; }
.soon-hero .ic { width: 64px; height: 64px; border-radius: 18px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.soon-hero .ic svg { width: 30px; height: 30px; }
.soon-hero h2 { font-size: 22px; margin-bottom: 8px; }
.soon-hero p { color: var(--mute); max-width: 460px; margin: 0 auto; }
.plan-skel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.plan-skel div { border: 1px dashed #cfd6e2; border-radius: 12px; padding: 18px; text-align: left; color: var(--mute); }
.plan-skel b { color: var(--ink); display: block; margin-bottom: 4px; }

/* লোডিং */
.loading { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 200px; color: var(--mute); gap: 10px; }
.loading .spin { width: 20px; height: 20px; border: 2.5px solid var(--brand); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* ============================================================
   রেসপনসিভ
   ============================================================ */
@media (max-width: 1240px) {
  .inbox { grid-template-columns: 310px minmax(0, 1fr); }
  .ib-info { display: none; }
}
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .preview-wrap { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .side { transform: none; box-shadow: var(--sh-lg); }
  .scrim { position: fixed; inset: 0; background: rgba(12,20,36,.45); z-index: 40; display: none; }
  .shell.nav-open .scrim { display: block; }
  .topbar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line); flex: none; }
  .topbar b { font-size: 16px; }
  .page { padding: 20px 16px 40px; }
  .inbox { grid-template-columns: 1fr; }
  .inbox .ib-chat { display: none; }
  .inbox.open .ib-list { display: none; }
  .inbox.open .ib-chat { display: flex; }
  .back-btn { display: inline-flex; }
  .ch-head { padding: 10px 12px; }
  .ch-head .acts .lbl { display: none; }
  .ch-msgs { padding: 16px 12px; }
  .bub { max-width: 86%; }
  .composer { padding: 10px 12px 12px; }
  .grid-2 { grid-template-columns: 1fr; }
  .plan-skel { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat .v { font-size: 24px; }
  .page-h h1 { font-size: 21px; }
}

/* ============================================================
   ভাষা টগল, ডেমো বক্স, ডায়ালগ
   ============================================================ */
.lang-switch button { padding: 5px 12px; }
.side-lang { margin: 12px 4px 0; background: var(--side-2); display: flex; }
.side-lang button { flex: 1; color: #8b97b3; }
.side-lang button.on { background: #2a3a5f; color: #fff; box-shadow: none; }
.top-lang { margin-left: auto; }
.top-lang button { padding: 4px 10px; }
.auth-main { position: relative; }
.auth-lang { position: absolute; top: 20px; right: 24px; }
.demo-box { display: flex; align-items: center; gap: 12px; background: var(--brand-50); border: 1px dashed #b9cbff; border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.demo-box b { font-size: 13.5px; color: var(--brand-600); display: block; }
.demo-box .mono { font-size: 12.5px; color: var(--ink-2); word-break: break-all; }
.btn.danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger-solid:hover { background: #b42318; }
.modal-wrap { position: fixed; inset: 0; z-index: 900; background: rgba(12, 20, 36, .45); display: flex; align-items: center; justify-content: center; padding: 16px; animation: tIn .15s ease-out; }
.modal { background: #fff; border-radius: 14px; box-shadow: var(--sh-lg); padding: 22px; width: 100%; max-width: 400px; }
.modal h3 { font-size: 17px; margin-bottom: 6px; }
.modal p { color: var(--ink-2); margin: 0 0 18px; font-size: 14.5px; }
html[lang="en"] body { font-family: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif; }
@media (max-width: 860px) { .side-lang { display: none; } }
@media (min-width: 861px) { .top-lang { display: none; } }
.ch-head .who { flex: 1; min-width: 0; }
.ch-head .who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-head .who small { white-space: nowrap; overflow: hidden; }
.ch-head .acts { flex: none; margin-left: 0; }
.tl-tabs { margin-bottom: 14px; }

/* Google লগইন */
.g-slot { display: flex; justify-content: center; min-height: 44px; }
.gbtn { height: 44px; gap: 10px; border-color: #d5dbe5; }
.gbtn svg { width: 18px; height: 18px; }
.g-note { font-size: 12.5px; color: var(--ink-2); background: var(--line-2); border-radius: 8px; padding: 8px 10px; margin-top: 10px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ============================================================
   নতুন লগইন কার্ড (Google / Outlook / ইমেইল কোড)
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.login-box { background: #fff; border: 1px solid #e7e7e4; border-radius: 22px; padding: 28px 26px 22px; box-shadow: 0 12px 40px rgba(15, 23, 41, .07); }
.lb-title { font-size: 22px; letter-spacing: -.2px; text-align: center; }
.lb-sub { color: var(--mute); text-align: center; margin: 6px 0 22px; font-size: 14.5px; }
.sso { display: flex; flex-direction: column; gap: 12px; }
.sso-btn { height: 48px; border: 0; border-radius: 12px; background: #f1f1ef; color: #1a1a1a; font: inherit; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: background .15s; width: 100%; }
.sso-btn:hover { background: #e8e8e5; }
.sso-btn:focus-visible { outline: 3px solid var(--brand-100); outline-offset: 1px; }
.sso-btn svg { width: 18px; height: 18px; flex: none; }
.sso-note { font-size: 13px; color: var(--ink-2); background: var(--brand-50); border-radius: 10px; padding: 10px 12px; }
.or-line { text-align: center; color: #8a8a86; font-size: 12.5px; letter-spacing: .6px; text-transform: uppercase; margin: 18px 0; }
#emailForm { display: flex; flex-direction: column; gap: 12px; }
.lb-input { height: 48px; border-radius: 12px; border-color: #e3e3e0; font-size: 15px; }
.lb-dark { height: 48px; border-radius: 12px; background: #1a1a1a; border-color: #1a1a1a; color: #fff; font-size: 15px; width: 100%; }
.lb-dark:hover { background: #000; border-color: #000; }
.lb-legal { text-align: center; color: #6f6f6b; font-size: 12.5px; margin: 16px 0 0; line-height: 1.6; }
.lb-legal a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }
.lb-back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--mute); font: inherit; font-size: 13.5px; cursor: pointer; padding: 0; margin-bottom: 14px; }
.lb-back svg { width: 16px; height: 16px; }
.lb-back:hover { color: var(--ink); }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.otp input { height: 54px; width: 100%; min-width: 0; text-align: center; font-size: 22px; font-weight: 700; border: 1px solid #d9d9d5; border-radius: 12px; outline: none; font-variant-numeric: tabular-nums; background: #fff; color: var(--ink); }
.otp input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
#codeForm .lb-dark { margin: 0; }
.lb-resend { text-align: center; font-size: 13.5px; color: var(--mute); margin: 14px 0 0; }
.lb-resend button { border: 0; background: none; color: var(--brand-600); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.lb-resend button:disabled { color: var(--mute); font-weight: 400; cursor: default; }
.lb-hint { text-align: center; font-size: 12.5px; color: var(--mute); margin: 6px 0 0; }
#stepCode .sso-note { margin-bottom: 12px; text-align: center; font-weight: 600; }
.auth-card .demo-box { margin: 16px 0 0; }
.auth-card .auth-err { margin-bottom: 14px; }
@media (max-width: 480px) { .login-box { padding: 22px 16px 18px; border-radius: 18px; } .otp { gap: 6px; } .otp input { height: 48px; font-size: 20px; } }

/* অটো লগইন */
.side-foot .av img, .ws-pill .av img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }
.side-foot .av { overflow: hidden; }
.pf-av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.sent-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; margin: 4px auto 14px; }
.sent-ic svg { width: 28px; height: 28px; }
#stepSent .lb-dark { display: flex; align-items: center; justify-content: center; margin-bottom: 14px; text-decoration: none; }
.wait-line { display: flex; align-items: center; justify-content: center; gap: 10px; background: #f6f6f4; border-radius: 12px; padding: 12px; font-size: 13.5px; color: var(--ink-2); text-align: left; }
.wait-line .spin { width: 16px; height: 16px; border: 2px solid var(--brand); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
.busy-big { display: flex; justify-content: center; margin: 18px 0 16px; }
.busy-big .spin { width: 34px; height: 34px; border: 3px solid var(--brand); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
#stepBusy .lb-title { margin-bottom: 14px; }

.setup-note { font-size: 12.5px; color: #8a4b0f; background: #fff6e8; border: 1px dashed #f0c48a; border-radius: 10px; padding: 10px 12px; }
#stepStart .sso + .lb-legal, #stepStart .sso ~ .lb-legal { margin-top: 18px; }
