/* ekomeye — single stylesheet. Brand colours are CSS variables overridden from Admin → Settings → Branding. */
:root {
  --brand: #0b8a5f; --brand-600: #087350; --brand-50: #e8f6f0; --accent: #ff7a1a;
  --ink: #0f1a24; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --line-2: #eef2f6;
  --bg: #f6f8fa; --card: #ffffff; --danger: #dc2626; --danger-50: #fef2f2; --warn: #b45309; --warn-50: #fffbeb; --info: #2563eb; --info-50: #eff6ff;
  --ok: #059669; --ok-50: #ecfdf5; --radius: 12px; --shadow: 0 1px 2px rgba(15,26,36,.05), 0 4px 16px rgba(15,26,36,.05);
  --font: 'Inter', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55; }
html[lang="bn"] body { font-family: 'Hind Siliguri', 'Inter', system-ui, sans-serif; font-size: 15.5px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: var(--line-2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 9px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; background: var(--brand); color: #fff; text-decoration: none !important; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--brand-600); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent); outline-offset: 1px; }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--line-2); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--line-2); }
.btn.danger { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn.danger:hover { background: var(--danger-50); }
.btn.accent { background: var(--accent); }
.btn.accent:hover { filter: brightness(.95); }
.btn.sm { padding: 5px 10px; font-size: .82rem; border-radius: 7px; }
.btn.lg { padding: 13px 24px; font-size: 1rem; border-radius: 11px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 5px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=tel], input[type=search], input:not([type]), select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: .94rem; background: #fff; color: var(--ink); }
textarea { min-height: 96px; resize: vertical; }
textarea.html { min-height: 260px; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.field { margin-bottom: 14px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; font-weight: 400; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }

/* ---------- cards, tables, badges ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-h h2, .card-h h3 { margin: 0; font-size: 1rem; }
.card-b { padding: 18px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: #fbfcfd; white-space: nowrap; }
tbody tr:hover { background: #fafbfc; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tfoot td { font-weight: 700; background: #fbfcfd; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap; text-transform: capitalize; }
.b-pending, .b-new, .b-ordered, .b-unpaid, .b-trial, .b-draft { background: var(--warn-50); color: var(--warn); }
.b-confirmed, .b-packed, .b-follow_up, .b-in_transit, .b-info { background: var(--info-50); color: var(--info); }
.b-shipped { background: #f5f3ff; color: #6d28d9; }
.b-delivered, .b-paid, .b-active, .b-converted, .b-received, .b-published, .b-ok, .b-local { background: var(--ok-50); color: var(--ok); }
.b-returned, .b-cancelled, .b-lost, .b-expired, .b-suspended, .b-failed, .b-past_due { background: var(--danger-50); color: var(--danger); }
.b-idea { background: var(--line-2); color: var(--ink-2); } .b-scheduled { background: var(--info-50); color: var(--info); } .b-skipped { background: var(--line-2); color: var(--muted); text-decoration: line-through; }
.b-pay-unpaid { background: var(--line-2); color: var(--muted); } .b-pay-collected { background: var(--warn-50); color: var(--warn); } .b-pay-settled { background: var(--ok-50); color: var(--ok); }
.b-foreign, .b-import { background: #fff7ed; color: #c2410c; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; font-size: .92rem; }
.alert.success { background: var(--ok-50); border-color: #a7f3d0; color: #065f46; }
.alert.error { background: var(--danger-50); border-color: #fecaca; color: #991b1b; }
.alert.warn { background: var(--warn-50); border-color: #fde68a; color: #92400e; }
.alert.info { background: var(--info-50); border-color: #bfdbfe; color: #1e40af; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi .l { font-size: .8rem; color: var(--muted); font-weight: 600; }
.kpi .v { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: .78rem; color: var(--muted); }
.kpi.good .v { color: var(--ok); } .kpi.bad .v { color: var(--danger); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; font-weight: 600; font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills a { padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.pills a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pills a:hover { text-decoration: none; }
.pager { display: flex; gap: 6px; justify-content: center; padding: 14px; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .86rem; background: #fff; }
.pager span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.filters .field { margin: 0; min-width: 130px; flex: 1 1 140px; max-width: 220px; }
.filters label { font-size: .74rem; }
.bar { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: .92rem; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; font-weight: 600; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: #0f1a24; color: #cbd5e1; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; font-weight: 800; font-size: 1.15rem; }
.side .brand:hover { text-decoration: none; }
.side .tenant { margin: 0 6px 14px; padding: 10px 12px; background: rgba(255,255,255,.06); border-radius: 10px; font-size: .82rem; }
.side .tenant b { color: #fff; display: block; font-size: .9rem; }
.side .grp { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #64748b; padding: 14px 12px 6px; font-weight: 700; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: #cbd5e1; font-size: .9rem; font-weight: 500; }
.side a.nav:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.side a.nav.on { background: var(--brand); color: #fff; }
.side a.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.side a.nav .cnt { margin-left: auto; background: var(--accent); color: #fff; font-size: .7rem; padding: 1px 7px; border-radius: 99px; font-weight: 700; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.top .sp { flex: 1; }
.top .who { font-size: .86rem; color: var(--muted); }
.langsw { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.langsw a { padding: 4px 10px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.langsw a.on { background: var(--ink); color: #fff; }
.langsw a:hover { text-decoration: none; }
.content { padding: 24px; max-width: 1360px; width: 100%; }
.page-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-h h1 { margin: 0; }
.page-h .sub { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.help-link { font-size: .82rem; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.subbanner { background: var(--warn-50); border-bottom: 1px solid #fde68a; color: #92400e; padding: 8px 24px; font-size: .86rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.subbanner.bad { background: var(--danger-50); border-color: #fecaca; color: #991b1b; }

/* charts */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.chart .col i { display: block; width: 100%; max-width: 30px; background: var(--brand); border-radius: 5px 5px 2px 2px; min-height: 2px; }
.chart .col span { font-size: .66rem; color: var(--muted); white-space: nowrap; }
.chart .col:hover i { background: var(--accent); }

/* order form items */
.items-table input, .items-table select { padding: 7px 9px; }
.items-table td { padding: 6px 8px; }
.totals { max-width: 360px; margin-left: auto; }
.totals .row { justify-content: space-between; padding: 4px 0; }
.totals .grand { font-size: 1.15rem; font-weight: 800; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.histbox { font-size: .84rem; padding: 10px 12px; border-radius: 9px; background: var(--line-2); margin-top: 6px; display: none; }
.histbox.show { display: block; }
.histbox.risk { background: var(--danger-50); color: #991b1b; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.timeline li { padding: 8px 0 8px 16px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.reply { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: .86rem; }
.reply b { display: block; margin-bottom: 4px; }

/* ---------- public site ---------- */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: .86rem; padding: 8px 16px; }
.announce a { color: #fff; text-decoration: underline; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.nav-pub { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.nav-pub .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo img { height: 34px; width: auto; }
.logo img.wordmark { height: 34px; }
.inv-brand { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; color: #888; font-size: .78rem; }
.inv-brand img { height: 16px; width: auto; }
.nav-pub .links { display: flex; gap: 22px; flex: 1; }
.nav-pub .links a { color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.nav-pub .cta { display: flex; gap: 10px; align-items: center; }
.nav-pub .burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 6px; }
body.pub { background: #fff; }
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 400px at 70% -10%, var(--brand-50), transparent 70%), linear-gradient(180deg, #fff, #fbfcfd); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.3vw, 3.25rem); letter-spacing: -.035em; line-height: 1.08; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 560px; margin-bottom: 26px; }
.hero .badge-top { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 6px; font-size: .82rem; font-weight: 600; margin-bottom: 18px; box-shadow: var(--shadow); }
.hero .badge-top span { background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: .72rem; }
.hero .ticks { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: .88rem; }
.mock { background: #0f1a24; border-radius: 16px; padding: 14px; box-shadow: 0 30px 60px -20px rgba(15,26,36,.35); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.mock .scr { background: #f6f8fa; border-radius: 10px; padding: 14px; display: grid; gap: 10px; }
.mock .k { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.mock .k div { background: #fff; border-radius: 8px; padding: 10px; border: 1px solid var(--line); }
.mock .k b { display: block; font-size: 1.05rem; }
.mock .k small { font-size: .7rem; }
.mock .o { background: #fff; border-radius: 8px; border: 1px solid var(--line); font-size: .76rem; }
.mock .o div { display: flex; justify-content: space-between; padding: 7px 10px; border-bottom: 1px solid var(--line-2); gap: 8px; }
.mock .bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; background: #fff; border-radius: 8px; padding: 10px; border: 1px solid var(--line); }
.mock .bars i { flex: 1; background: var(--brand); border-radius: 3px; opacity: .85; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { text-align: center; } .stats b { display: block; font-size: 1.7rem; letter-spacing: -.03em; } .stats span { color: var(--muted); font-size: .86rem; }
section.sec { padding: 72px 0; }
section.sec.alt { background: var(--bg); }
.sec-h { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-h h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.03em; }
.sec-h p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; display: block; }
.feat { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feat .f { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; transition: transform .2s, box-shadow .2s; }
.feat .f:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -12px rgba(15,26,36,.18); }
.feat .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 1.05rem; } .feat p { color: var(--muted); font-size: .93rem; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; counter-reset: s; }
.steps div { position: relative; padding: 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.steps div::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: .9rem; margin: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; position: relative; }
.plan.pop { border: 2px solid var(--brand); box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--brand) 45%, transparent); }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .74rem; font-weight: 700; padding: 3px 12px; border-radius: 99px; white-space: nowrap; }
.plan .price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 0; }
.plan .price small { font-size: .95rem; font-weight: 500; }
.plan .bdt { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: .93rem; }
.plan li::before { content: ''; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230b8a5f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.quotes blockquote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; font-size: .95rem; }
.quotes cite { display: block; margin-top: 14px; font-style: normal; font-weight: 700; font-size: .88rem; }
.quotes cite span { font-weight: 500; color: var(--muted); display: block; }
.cta-band { background: var(--ink); color: #fff; border-radius: 20px; padding: 48px; text-align: center; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: #94a3b8; }
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.post-card .cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand), #0f1a24); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.1rem; padding: 18px; text-align: center; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pb { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.post-card h3 { font-size: 1.05rem; } .post-card h3 a { color: var(--ink); }
.post-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.meta-line { font-size: .8rem; color: var(--muted); }
.prose { font-size: 1.04rem; line-height: 1.75; color: #1e293b; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; } .prose h3 { font-size: 1.15rem; margin-top: 1.5em; }
.prose img { border-radius: 12px; } .prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .4em; }
.prose blockquote { border-left: 4px solid var(--brand); margin: 1.4em 0; padding: 4px 0 4px 18px; color: var(--ink-2); }
.prose table { border: 1px solid var(--line); border-radius: 8px; } .prose code { font-size: .88em; }
.article { max-width: 760px; margin: 0 auto; }
.page-hero { padding: 56px 0 36px; background: linear-gradient(180deg, var(--brand-50), #fff); text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -.03em; }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }
.guide-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.guide-nav { position: sticky; top: 86px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; max-height: calc(100vh - 110px); overflow: auto; }
.guide-nav .sec-t { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 10px 8px 4px; }
.guide-nav a { display: block; padding: 6px 8px; border-radius: 7px; font-size: .9rem; color: var(--ink-2); }
.guide-nav a.on { background: var(--brand-50); color: var(--brand); font-weight: 700; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.guide-cards a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--ink); }
.guide-cards a:hover { border-color: var(--brand); text-decoration: none; }
.guide-cards small { display: block; color: var(--brand); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
footer.pub { background: #0f1a24; color: #94a3b8; padding: 56px 0 28px; margin-top: 0; font-size: .9rem; }
footer.pub .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; }
footer.pub h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
footer.pub a { color: #cbd5e1; display: block; padding: 3px 0; }
footer.pub .logo { color: #fff; margin-bottom: 12px; }
footer.pub .bottom { border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; }
.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 16px; background: radial-gradient(900px 300px at 50% 0, var(--brand-50), transparent 70%); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 560px; }
.demo-box { margin-top: 16px; font-size: .84rem; }
.demo-box button { margin: 3px 4px 0 0; }
.hp { position: absolute; left: -5000px; }

/* invoice print */
.invoice { max-width: 780px; margin: 24px auto; background: #fff; padding: 36px; border: 1px solid var(--line); border-radius: 12px; }
@media print {
  .no-print, .side, .top, .subbanner { display: none !important; }
  body { background: #fff; } .shell { display: block; } .content { padding: 0; } .invoice { border: 0; margin: 0; padding: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .feat, .quotes, .posts { grid-template-columns: repeat(2,1fr); } .steps { grid-template-columns: repeat(2,1fr); }
  .hero .wrap { grid-template-columns: 1fr; } .mock { transform: none; }
  footer.pub .cols { grid-template-columns: 1fr 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .top .burger { display: block; } .top .who { display: none; }
  .content { padding: 16px; } .top { padding: 10px 16px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; } .guide-nav { position: static; max-height: none; }
  .nav-pub .links, .nav-pub .cta .hide-m { display: none; }
  .nav-pub .burger { display: block; }
  body.nav-open .nav-pub .links { display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; background: #fff; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 14px; }
  .stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .feat, .quotes, .posts, .steps, .g4 { grid-template-columns: 1fr; }
  section.sec { padding: 52px 0; } .hero { padding: 44px 0 36px; } .cta-band { padding: 32px 20px; }
  footer.pub .cols { grid-template-columns: 1fr; }
  th, td { padding: 8px 10px; }
  .filters .field { max-width: none; }
  .mock .k { grid-template-columns: repeat(2,1fr); }
}

/* social inbox */
.chatlog { display: flex; flex-direction: column; gap: 8px; max-height: 58vh; overflow-y: auto; padding: 4px; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 14px; font-size: .92rem; white-space: pre-wrap; word-wrap: break-word; }
.bubble small { display: block; margin-top: 3px; font-size: .7rem; opacity: .7; }
.bubble.in { background: var(--line-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.out small { opacity: .9; }

/* content calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cal .dow { background: #fbfcfd; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.cal .day { min-height: 118px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 6px; font-size: .78rem; }
.cal .day.out { background: #fafbfc; }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal .num { font-weight: 700; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.cal .num a { color: var(--muted); font-weight: 400; }
.cal .item { display: block; margin-top: 4px; padding: 3px 6px 0; border-bottom: 3px solid transparent; border-radius: 6px; background: var(--brand-50); color: var(--ink); line-height: 1.25; overflow: hidden; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal .item:hover { text-decoration: none; filter: brightness(.96); }
.cal .item.published { background: var(--ok-50); } .cal .item.idea { background: var(--line-2); } .cal .item.scheduled { background: var(--info-50); } .cal .item.skipped { opacity: .5; text-decoration: line-through; }
.pf { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; background: var(--muted); }
.pf-facebook { background: #1877f2; } .pf-instagram { background: #e1306c; } .pf-tiktok { background: #111; } .pf-youtube { background: #ff0000; } .pf-whatsapp { background: #25d366; } .pf-website { background: var(--accent); }
.cal .wd { display: none; font-weight: 500; margin-left: 6px; }
.cal-empty { display: none; }
@media (max-width: 860px) { .cal { grid-template-columns: 1fr; } .cal .dow, .cal .day.out, .cal .day.blank:not(.today) { display: none; } .cal .day { min-height: 0; } .cal .wd { display: inline; } .cal-empty { display: block; } }

/* WhatsApp broadcasts */
.b-bc-draft, .b-bc-queued { background: var(--line-2); color: var(--ink-2); } .b-bc-sending { background: var(--info-50); color: var(--info); } .b-bc-paused { background: var(--warn-50); color: var(--warn); }
.b-bc-done, .b-bc-delivered, .b-bc-read { background: var(--ok-50); color: var(--ok); } .b-bc-sent { background: #f5f3ff; color: #6d28d9; } .b-bc-cancelled, .b-bc-failed { background: var(--danger-50); color: var(--danger); }

.pay-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 24px; }
.pay-badges img { width: 150px; max-width: 45%; height: auto; background: #fff; border-radius: 8px; padding: 2px; }
@media (max-width: 640px) { .pay-badges { justify-content: center; } }
.trial-pill { display: inline-block; margin-top: 14px; padding: 8px 16px; border-radius: 999px; background: var(--accent-50, #fff1e6); color: var(--accent, #ff7a1a); font-weight: 700; }
/* Stock entry type switch + movement badges */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; flex-wrap: wrap; }
.seg label { display: flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: .88rem; font-weight: 600; cursor: pointer; border-right: 1px solid var(--line); margin: 0; }
.seg label:last-child { border-right: 0; }
.seg input { width: auto; margin: 0; accent-color: var(--brand); }
.seg label:has(input:checked) { background: var(--brand-50); color: var(--brand); }
.mv-in, .mv-purchase, .mv-return, .mv-cancel { background: var(--ok-50); color: var(--ok); }
.mv-sale { background: var(--info-50); color: var(--info); }
.mv-damage, .mv-lost { background: var(--danger-50); color: var(--danger); }
.mv-adjust { background: var(--warn-50); color: var(--warn); }
footer.pub .langsw a { display: inline-block; padding: 4px 10px; margin: 0; } footer.pub .langsw a.on { background: #fff; color: var(--ink); }
/* admin technical docs */
.doc { max-width: 980px; line-height: 1.65; }
.doc h1 { font-size: 1.7rem; margin: 0 0 12px; } .doc h2 { font-size: 1.3rem; margin: 30px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); } .doc h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.doc pre { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: .85rem; line-height: 1.5; }
.doc code { background: var(--line-2); padding: 1px 5px; border-radius: 5px; font-size: .88em; } .doc pre code { background: none; padding: 0; }
.doc blockquote { margin: 12px 0; padding: 10px 14px; border-radius: 8px; background: var(--info-50); color: var(--ink-2); }
.doc table { font-size: .9rem; } .doc li { margin: 3px 0; }
