/* BartaPilot — প্যানেলের ডিজাইন
   ব্র্যান্ড: Facebook পেজের মতো গাঢ় নীল গ্রেডিয়েন্ট + কমলা "Pilot"; রোলভেদে আলাদা রঙ (নীল / সবুজাভ নীল / বেগুনি) */

:root {
  --ink: #1c2433;
  --ink-2: #4a5568;
  --ink-3: #7a8494;
  --line: #dce1e8;
  --line-2: #eceff3;
  --paper: #f2f4f7;
  --surface: #ffffff;
  --brand: #1f42d6;
  --brand-deep: #0c1b6b;
  --brand-grad: linear-gradient(135deg, #2a4ee6 0%, #1733b8 50%, #0c1b6b 100%);
  --orange: #f7941d;
  --band: var(--brand-grad);

  --accent: #3b3ba8;
  --accent-ink: #ffffff;
  --accent-soft: #ebebf8;

  --ok: #1e7b45;    --ok-soft: #e4f3ea;
  --warn: #9a5a06;  --warn-soft: #fcf0dc;
  --bad: #b4262e;   --bad-soft: #fbe6e7;
  --info: #2f5da8;  --info-soft: #e6eef9;

  --r-panel: 14px;
  --r-ctl: 9px;
  --font: "Anek Bangla", "Noto Sans Bengali", system-ui, sans-serif;
  --tap: 48px;
}

/* রোলের রঙ */
.role-admin     { --accent: #1f42d6; --accent-soft: #e8edfc; }
.role-agent     { --accent: #0b6e66; --accent-soft: #e2f2ef; }
.role-moderator { --accent: #8a2d74; --accent-soft: #f6e8f2; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}
a { color: var(--accent); text-underline-offset: 3px; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  font-variation-settings: "wdth" 87.5;
}
h1 { font-size: 1.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }

/* ---------- বোতাম ও ফর্ম ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px;
  border: 1.5px solid transparent; border-radius: var(--r-ctl);
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: background-color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-block { width: 100%; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-3); }
.input {
  width: 100%; min-height: var(--tap); padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-ctl);
  background: var(--surface); color: var(--ink); font: inherit;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.is-invalid { border-color: var(--bad); }
.error { color: var(--bad); font-size: 0.875rem; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.alert { padding: 12px 16px; border-radius: var(--r-ctl); font-size: 0.95rem; margin-bottom: 18px; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-bad { background: var(--bad-soft); color: var(--bad); }
.alert-info { background: var(--accent-soft); color: var(--ink); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- লগইন / সাইনআপ ---------- */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 44%) 1fr;
}
.auth-side {
  background: var(--band); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px 44px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; font-variation-settings: "wdth" 87.5;
  color: #fff; text-decoration: none; line-height: 1;
}
.brand em { font-style: normal; color: var(--orange); }
.brand-mark {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px;
  background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
.brand-mark svg { width: 18px; height: 18px; }

.auth-pitch { display: grid; gap: 26px; }
.auth-headline { font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1.2; max-width: 16ch; color: #fff; font-variation-settings: "wdth" 87.5; }

/* কোলাজের নমুনা */
.mock {
  width: 300px; background: #fff; color: #111; border-radius: 6px; overflow: hidden;
  transform: rotate(-2.5deg); box-shadow: 0 18px 40px rgba(4, 10, 50, .45);
  font-size: 12px; line-height: 1.35;
}
.mock-band { background: #000; color: #fff; font-weight: 800; font-size: 26px; padding: 6px 12px; font-variation-settings: "wdth" 80; letter-spacing: -.01em; }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px 4px; }
.mock-row b { color: #1e7b45; font-size: 14px; }
.mock-mid { background: #e0262f; color: #fff; font-weight: 700; padding: 2px 7px; border-radius: 4px; font-size: 10px; }
.mock-meta { display: flex; gap: 18px; margin: 0 10px; padding: 3px 6px; border: 1.5px solid #000; font-weight: 700; }
.mock-body { display: grid; grid-template-columns: 1fr 120px; gap: 8px; padding: 8px 10px; }
.mock-body ol { margin: 0; padding-left: 16px; font-weight: 700; }
.mock-photo {
  height: 74px; border-radius: 3px;
  background: repeating-linear-gradient(45deg, #9b2335 0 6px, #7c1a2a 6px 12px);
}
.mock-color { display: flex; align-items: center; gap: 8px; margin: 0 10px 10px; padding: 6px 8px; background: #f3f3f3; font-weight: 700; }
.mock-swatch { width: 26px; height: 18px; border-radius: 3px; background: #8b1e2d; }

/* ফুটার */
.site-foot { margin-top: 36px; text-align: center; color: var(--ink-3); font-size: .82rem; line-height: 1.6; }
.site-foot a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.content .site-foot { margin-top: 48px; }
.auth-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 34ch; }
.auth-steps li { display: grid; grid-template-columns: 30px 1fr; align-items: baseline; color: #d6defc; }
.auth-steps b { color: var(--orange); font-weight: 700; }
.auth-foot { color: #a9b6f0; font-size: .85rem; }

.auth-main { display: grid; place-items: center; padding: 40px 20px; background: var(--surface); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { margin-bottom: 6px; }
.auth-card > .muted { margin-bottom: 26px; }
.auth-switch { margin-top: 22px; text-align: center; color: var(--ink-2); }

.segment {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  background: var(--paper); border-radius: 12px; margin-bottom: 22px;
}
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment label {
  display: grid; gap: 2px; text-align: center; padding: 10px 8px; border-radius: 9px;
  cursor: pointer; color: var(--ink-2); font-weight: 600;
}
.segment label small { font-weight: 400; font-size: .78rem; color: var(--ink-3); }
.segment input:checked + label { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1.5px var(--line); }
.segment input:focus-visible + label { outline: 3px solid var(--accent); }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-side { padding: 22px 20px 26px; gap: 18px; }
  .mock { display: none; }
  .auth-pitch { gap: 0; }
  .auth-headline { font-size: 1.45rem; max-width: 22ch; }
  .auth-steps, .auth-foot { display: none; }
  .auth-main { place-items: start center; padding: 28px 16px 40px; }
}

/* ---------- প্যানেল ---------- */
.shell {
  min-height: 100vh; display: grid; grid-template-columns: 252px 1fr;
  background: linear-gradient(to right, var(--surface) 251px, var(--line) 251px, var(--line) 252px, var(--paper) 252px);
}
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--line);
}
.grid-2 > .panel { margin-top: 0; }
.side-band { background: var(--band); color: #fff; padding: 20px 20px 18px; }
.side-band .brand { display: flex; }
.role-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  background: #fff; color: var(--accent); font-size: .8rem; font-weight: 700;
}
.role-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.side-nav { padding: 14px 10px; display: grid; gap: 2px; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 12px; border-radius: 9px;
  color: var(--ink-2); text-decoration: none; font-weight: 600;
}
.nav-link svg { width: 20px; height: 20px; flex: none; }
.nav-link:hover { background: var(--paper); color: var(--ink); }
.nav-link.is-active { background: var(--accent-soft); color: var(--accent); }
.nav-link .count {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--bad); color: #fff; font-size: .75rem; display: grid; place-items: center;
}
.side-foot { margin-top: auto; padding: 14px 16px 18px; border-top: 1px solid var(--line-2); }
.side-user { display: grid; gap: 2px; margin-bottom: 10px; }
.side-user b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user span { font-size: .82rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkish {
  background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2);
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 36px;
}
.linkish:hover { color: var(--ink); }
.side-foot .linkish:hover { color: var(--bad); }
.linkish svg { width: 18px; height: 18px; }

.main { min-width: 0; }
.topbar { display: none; }
.content { max-width: 1120px; margin: 0 auto; padding: 32px 32px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { margin-top: 4px; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel);
}
.panel + .panel, .panel + .grid-2, .grid-2 + .panel, .stats + .panel, .stats + .grid-2 { margin-top: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.panel-body { padding: 18px 20px 20px; }
.grid-2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }

/* এক প্যানেলে ভাগ করা সংখ্যা */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel);
}
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 18px 20px; border-left: 1px solid var(--line-2); }
.stat:first-child { border-left: 0; }
.stat b {
  display: block; font-size: 2rem; line-height: 1.1; font-weight: 700;
  font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums;
}
.stat span { color: var(--ink-2); font-size: .9rem; }
.stat.attention b { color: var(--warn); }

/* টেবিল */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th {
  text-align: left; font-weight: 600; color: var(--ink-3); font-size: .85rem;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
}
.table td { padding: 14px 20px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-main { font-weight: 600; }
.cell-sub { color: var(--ink-3); font-size: .85rem; }

.chip {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-bad { background: var(--bad-soft); color: var(--bad); }
.chip-muted { background: var(--paper); color: var(--ink-2); }

.empty { padding: 28px 20px; text-align: center; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); margin-bottom: 4px; }

/* শুরু করার ধাপ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps .dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); color: var(--ink-3); font-weight: 700; font-size: .9rem;
}
.steps .done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps .done .dot svg { width: 16px; height: 16px; }

/* Agent কোড: কাপড়ের দোকানের ঝোলানো ট্যাগ */
.tag {
  position: relative; color: var(--ink);
  background: var(--accent-soft); border-radius: 16px 16px 16px 16px;
  padding: 26px 24px 22px 58px; overflow: hidden;
}
.tag::before { /* ফুটো */
  content: ""; position: absolute; left: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--accent);
}
.tag::after { /* সেলাই */
  content: ""; position: absolute; inset: 8px; border: 2px dashed var(--accent);
  border-radius: 10px; opacity: .45; pointer-events: none;
}
.tag-label { font-size: .9rem; color: var(--ink-2); }
.tag-code {
  font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 800; line-height: 1.1; margin: 4px 0 14px;
  letter-spacing: .12em; font-variation-settings: "wdth" 80; color: var(--accent);
  word-break: break-all;
}
.tag-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-actions .btn { min-height: 42px; padding: 0 14px; font-size: .95rem; }

/* অপেক্ষার পেজ */
.waiting { max-width: 560px; margin: 24px auto 0; text-align: center; padding: 36px 24px; }
.waiting .clock { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--accent); }
.waiting h1 { font-size: 1.5rem; margin-bottom: 8px; }
.waiting .agent-name { display: inline-block; margin-top: 18px; padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); font-weight: 600; }

/* নোটিফিকেশন */
.note-list { list-style: none; margin: 0; padding: 0; }
.note-list li { display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; align-items: baseline; padding: 14px 20px; border-top: 1px solid var(--line-2); }
.note-list li:first-child { border-top: 0; }
.note-list .unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.note-list .read .unread-dot { background: transparent; }

.pager { display: flex; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--line-2); }

/* ---------- ফোন ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; background: var(--paper); }
  .side { display: none; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; top: 0; z-index: 20;
    background: var(--band); color: #fff; padding: 12px 16px;
  }
  .topbar .role-chip { margin: 0; }
  .topbar-left { display: flex; align-items: center; gap: 10px; }
  .content { padding: 20px 16px 104px; }
  h1 { font-size: 1.5rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats, .stats.three { grid-template-columns: 1fr 1fr; }
  .tag { padding: 22px 18px 18px; }
  .tag::before { left: auto; right: 22px; top: 26px; margin-top: 0; }
  .tag-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .tag-actions .btn:first-child { grid-column: span 2; }
  .tag-actions .btn { padding: 0 10px; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .stats.three .stat:nth-child(3) { grid-column: span 2; }

  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .tab {
    position: relative; display: grid; justify-items: center; gap: 2px;
    min-height: 54px; padding: 6px 4px; border-radius: 10px;
    color: var(--ink-3); text-decoration: none; font-size: .78rem; font-weight: 600;
    background: none; border: 0; font-family: inherit; cursor: pointer;
  }
  .tab svg { width: 22px; height: 22px; }
  .tab.is-active { color: var(--accent); background: var(--accent-soft); }
  .tab .count {
    position: absolute; top: 4px; left: 50%; margin-left: 6px;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: var(--bad); color: #fff; font-size: .7rem; display: grid; place-items: center;
  }

  /* টেবিল ফোনে কার্ডের মতো */
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
  .table.stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
  .table.stack tr:last-child { border-bottom: 0; }
  .table.stack td { padding: 3px 0; border: 0; text-align: left; }
  .table.stack td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-3); font-size: .85rem; }
  .table.stack .num { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* কোড বসানোর ঘর */
.code-input {
  font-size: 1.6rem; font-weight: 700; letter-spacing: .45em; text-align: center;
  font-variant-numeric: tabular-nums; padding-left: calc(14px + .45em);
}
.code-input::placeholder { color: var(--line); }

/* সেটিংস */
.locked {
  display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 14px;
  border: 1.5px dashed var(--line); border-radius: var(--r-ctl); background: var(--paper);
  letter-spacing: .08em;
}
.locked svg { width: 18px; height: 18px; color: var(--ink-3); }
.warn-hint { color: var(--warn) !important; }
.form-actions { display: flex; justify-content: flex-end; margin: 20px 0; }
.test-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.test-row p { max-width: 52ch; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 900px) {
  .form-actions .btn { width: 100%; }
  .test-row form, .test-row .btn { width: 100%; }
}

/* গ্রিডের ভেতরের প্যানেলে বাড়তি ফাঁক নয় */
.grid-2 > .panel + .panel { margin-top: 0; }

/* ছোট বোতাম, সারির কাজ, নোটিস */
.btn-sm { min-height: 38px; padding: 0 12px; font-size: .9rem; }
.row-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.notice { margin: 12px 20px 0; padding: 10px 14px; border-radius: var(--r-ctl); background: var(--warn-soft); color: var(--warn); font-size: .92rem; }
.stat .of { font-size: .55em; color: var(--ink-3); font-weight: 600; margin-left: 2px; }
@media (max-width: 900px) {
  .row-actions { justify-content: flex-start; margin-top: 6px; }
  .row-actions .btn { min-height: 44px; }
}

/* বিলিং */
.stepper { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; }
.stepper .btn { padding: 0; font-size: 1.3rem; }
.stepper .input { text-align: center; font-size: 1.2rem; font-weight: 700; }
.amount {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 16px; margin: 4px 0 16px; border-radius: var(--r-ctl); background: var(--accent-soft);
}
.amount b { font-size: 1.6rem; color: var(--accent); font-variation-settings: "wdth" 85; font-variant-numeric: tabular-nums; }
.bkash { border: 1.5px solid #f3c6dc; background: #fdf2f7; border-radius: var(--r-ctl); padding: 12px 14px; margin-bottom: 16px; }
.bkash p { font-size: .92rem; color: var(--ink-2); }
.bkash-number { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.bkash-number b { font-size: 1.35rem; letter-spacing: .04em; color: #c2185b; font-variant-numeric: tabular-nums; }
.howto { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ট্যাব */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; }
.tabs a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  text-decoration: none; color: var(--ink-2); font-weight: 600; background: var(--surface); border: 1px solid var(--line); white-space: nowrap;
}
.tabs a.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tab-count { font-size: .8rem; opacity: .8; }
@media (max-width: 900px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.stat-link { color: inherit; text-decoration: none; } .stat-link:hover span { color: var(--accent); }

/* বিলিং: মডারেটরের মেয়াদ তালিকা */
.mod-list { list-style: none; margin: 8px 0 0; padding: 0; }
.mod-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line-2); }
.mod-list li:first-child { border-top: 0; }
select.input { appearance: auto; }

/* লক / স্বাগতম ব্যানার */
.lock-banner {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px;
  padding: 16px 18px; border-radius: var(--r-panel); background: var(--bad-soft); color: var(--bad);
}
.lock-banner svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.lock-banner b { display: block; font-size: 1.05rem; }
.lock-banner span { color: var(--ink-2); }
.lock-welcome { display: grid; gap: 4px; background: var(--accent-soft); color: var(--accent); }

/* ---------- ডার্ক থিম ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e7ebf2; --ink-2: #aab3c2; --ink-3: #7f8a9b;
  --line: #2c3444; --line-2: #222937;
  --paper: #0e131b; --surface: #161c26;
  --ok: #4cc38a;   --ok-soft: #12291f;
  --warn: #f0b04c; --warn-soft: #2d2412;
  --bad: #ff7a72;  --bad-soft: #321a1a;
  --info: #7aa5ff; --info-soft: #172338;
}
html[data-theme="dark"] .role-admin     { --accent: #7d95ff; --accent-soft: #1b2445; --accent-ink: #0e131b; }
html[data-theme="dark"] .role-agent     { --accent: #3fc1ad; --accent-soft: #11302c; --accent-ink: #0e131b; }
html[data-theme="dark"] .role-moderator { --accent: #e07ccb; --accent-soft: #33192e; --accent-ink: #0e131b; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    color-scheme: dark;
    --ink: #e7ebf2; --ink-2: #aab3c2; --ink-3: #7f8a9b;
    --line: #2c3444; --line-2: #222937;
    --paper: #0e131b; --surface: #161c26;
    --ok: #4cc38a;   --ok-soft: #12291f;
    --warn: #f0b04c; --warn-soft: #2d2412;
    --bad: #ff7a72;  --bad-soft: #321a1a;
    --info: #7aa5ff; --info-soft: #172338;
  }
  html[data-theme="system"] .role-admin     { --accent: #7d95ff; --accent-soft: #1b2445; --accent-ink: #0e131b; }
  html[data-theme="system"] .role-agent     { --accent: #3fc1ad; --accent-soft: #11302c; --accent-ink: #0e131b; }
  html[data-theme="system"] .role-moderator { --accent: #e07ccb; --accent-soft: #33192e; --accent-ink: #0e131b; }
}
/* ডার্কে আলাদা করে ঠিক করতে হয় এমন অংশ */
html[data-theme="dark"] .bkash { background: #2a1520; border-color: #5a2a43; }
html[data-theme="dark"] .bkash-number b { color: #ff7fb5; }
html[data-theme="dark"] .btn-dark { background: var(--brand); }
html[data-theme="dark"] .segment input:checked + label { background: var(--line); }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .bkash { background: #2a1520; border-color: #5a2a43; }
  html[data-theme="system"] .bkash-number b { color: #ff7fb5; }
  html[data-theme="system"] .segment input:checked + label { background: var(--line); }
}

/* ---------- ভাষা ও থিম বদলের মেনু ---------- */
.prefs { position: relative; }
.prefs > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-weight: 600;
}
.prefs > summary::-webkit-details-marker { display: none; }
.prefs > summary svg { width: 18px; height: 18px; }
.prefs > summary:hover { background: var(--paper); color: var(--ink); }
.prefs-menu {
  position: absolute; z-index: 40; bottom: calc(100% + 6px); left: 0; width: 240px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  box-shadow: 0 12px 32px rgba(10, 16, 40, .18); display: grid; gap: 12px;
}
.prefs-menu .label { font-size: .8rem; color: var(--ink-3); margin-bottom: 6px; }
.pill-group { display: flex; gap: 4px; padding: 3px; background: var(--paper); border-radius: 10px; }
.pill-group button {
  flex: 1; min-height: 34px; border: 0; border-radius: 8px; background: none; color: var(--ink-2);
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.pill-group button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.topbar .prefs > summary { color: #d6defc; padding: 0 6px; }
.topbar .prefs > summary:hover { background: rgba(255,255,255,.12); color: #fff; }
.topbar .prefs-menu { bottom: auto; top: calc(100% + 8px); left: auto; right: 0; }
.auth-prefs { position: absolute; top: 16px; right: 16px; }
.auth-prefs .prefs-menu { bottom: auto; top: calc(100% + 6px); left: auto; right: 0; }
.auth-main { position: relative; }

/* ===== পেজের সেটিং আর অর্ডার (ধাপ ৬-১০) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.head-actions { display: flex; gap: 10px; flex-wrap: nowrap; align-items: center; flex: 0 1 auto; }
.head-actions .search-form { flex: 0 1 340px; width: auto; }
.search-form { display: flex; gap: 8px; width: min(100%, 340px); }
.page-head .search-form .input { min-width: 0; }

.logo-row { display: flex; align-items: center; gap: 12px; }
.logo-ball {
  flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--ink-3);
}
.logo-ball img { width: 100%; height: 100%; object-fit: cover; }
.logo-ball svg { width: 24px; height: 24px; }

.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.theme-swatch {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink);
  font: inherit; font-size: .85rem; cursor: pointer;
}
.theme-swatch[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.theme-swatch .sw { display: flex; border-radius: 6px; overflow: hidden; border: 1px solid rgba(0,0,0,.12); }
.theme-swatch .sw i { width: 14px; height: 22px; }
.color-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0; }
.color-row label { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.color-row input[type="color"] { width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }

/* Photo Collage-এর মাথার ছোট নমুনা (আসলটা canvas-এ আঁকা হয়) */
.collage-head { background: #fff; border: 1px solid #c9ced6; border-radius: 8px; overflow: hidden; color: #000; font-family: "Noto Sans Bengali", var(--font); }
.ch-pid { font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1; padding: 14px 12px 12px; letter-spacing: -.01em; }
.ch-pid small { font-size: .7em; vertical-align: .3em; }
.ch-row { display: flex; align-items: center; gap: 8px; padding: 10px; flex-wrap: wrap; }
.ch-logo { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 1px solid #999; flex: none; }
.ch-logo:empty { display: none; }
.ch-logo img { width: 100%; height: 100%; object-fit: cover; }
.ch-page { font-size: 1.05rem; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-mid { font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.ch-tag { background: #000; color: #fff; font-weight: 700; font-size: .8rem; padding: 4px 18px 4px 10px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }

/* নতুন অর্ডার */
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.order-form .panel + .panel { margin-top: 16px; }
.preview-col { position: sticky; top: 20px; }
.step-no {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 6px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: .85rem; vertical-align: 2px;
}
.paste-box { min-height: 130px; resize: vertical; line-height: 1.55; }
.paste-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.parse-status { color: var(--ink-2); flex: 1 1 200px; }
.parse-status.is-ok { color: var(--ok); }
.parse-status.is-warn { color: var(--warn); }
.parse-status.is-bad { color: var(--bad); }

.items { display: grid; gap: 8px; margin-bottom: 10px; }
.item { display: grid; grid-template-columns: 30px 1fr 40px; align-items: center; gap: 8px; }
.item b { color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-ctl); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-3); font: inherit; cursor: pointer;
}
.icon-btn:hover { color: var(--bad); border-color: var(--bad); }
.icon-btn:disabled { opacity: .4; cursor: default; }

.drop {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 72px; padding: 14px; border: 1.5px dashed var(--line); border-radius: var(--r-ctl);
  color: var(--ink-2); cursor: pointer; text-align: center; background: var(--paper);
}
.drop:hover, .drop:focus-within { border-color: var(--accent); color: var(--accent); }
.drop svg { width: 22px; height: 22px; flex: none; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-sm { min-height: 48px; padding: 8px 12px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .icon-btn { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; font-size: .8rem; background: rgba(0,0,0,.6); color: #fff; border: 0; }

.submit-bar { margin-top: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); }
.next-code { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--ink-2); }
.next-code b { color: var(--ink); font-size: 1.15rem; letter-spacing: .02em; }
.result:empty { display: none; }
.result { margin-top: 12px; margin-bottom: 0; }

.preview-panel .panel-head { padding-bottom: 14px; }
.canvas-wrap { padding: 0 20px; }
.canvas-wrap canvas { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.preview-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 20px 20px; }
.preview-actions .btn { flex: 1 1 140px; }

/* হোমের বড় বোতাম আর সাম্প্রতিক অর্ডার */
.cta-panel { display: flex; align-items: center; gap: 18px; padding: 20px; }
.cta-panel > div:nth-child(2) { flex: 1; }
.cta-panel h2 { margin-bottom: 2px; }
.cta-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.cta-icon svg { width: 26px; height: 26px; }
.mini-orders { list-style: none; margin: 0; padding: 6px 20px 14px; }
.mini-orders li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.mini-orders li:first-child { border-top: 0; }
.mini-orders li span:first-of-type { flex: 1; color: var(--ink-2); min-width: 0; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 280px; }

@media (max-width: 1100px) {
  .order-grid { grid-template-columns: 1fr; }
  .preview-col { position: static; }
}
@media (max-width: 900px) {
  .theme-grid { grid-template-columns: repeat(4, 1fr); }
  .cta-panel { flex-wrap: wrap; }
  .cta-panel .btn { width: 100%; }
  .canvas-wrap { padding: 0 12px; }
  .preview-actions { padding: 12px; }
  .search-form { width: 100%; }
  .head-actions { width: 100%; flex-wrap: wrap; }
  .head-actions .search-form { flex-basis: 100%; }
}
.collage-head + .hint { display: block; margin-top: 10px; }
.head-actions > .btn { white-space: nowrap; flex: none; }
.page-pick { display: flex; align-items: center; gap: 12px; padding: 14px 20px; margin-bottom: 16px; flex-wrap: wrap; }
.page-pick label { font-weight: 600; }
.page-pick select { flex: 1 1 260px; max-width: 420px; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip-link {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); text-decoration: none; font-size: .9rem;
}
.chip-link.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.table td:first-child .cell-main, .table td:first-child .cell-sub { white-space: nowrap; }
.quick-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.quick-chips .chip-link { font: inherit; font-size: .85rem; cursor: pointer; padding: 6px 12px; }
.btn-danger:hover { color: var(--bad); border-color: var(--bad); }
.mini-menu { position: relative; }
.mini-menu > summary { list-style: none; cursor: pointer; }
.mini-menu > summary::-webkit-details-marker { display: none; }
.mini-menu[open] > summary { border-color: var(--accent); }
.mini-menu-body {
  display: grid; gap: 10px; text-align: left; padding: 14px; margin-top: 6px; width: 260px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl);
}
.mini-menu[open] { z-index: 5; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; cursor: pointer; }
.pill:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.pill input { accent-color: var(--accent); }
.trial-banner { border-left: 4px solid var(--warn); }
.mini-menu[open] > .mini-menu-body { position: absolute; right: 0; top: calc(100% + 4px); margin-top: 0; box-shadow: 0 12px 32px rgba(15, 23, 42, .16); }
.mini-form { display: grid; gap: 10px; }
@media (max-width: 900px) {
  .mini-menu[open] > .mini-menu-body { position: static; width: 100%; box-shadow: none; }
}

/* ===== রিপোর্ট / ড্যাশবোর্ড ===== */
.stats-6 { grid-template-columns: repeat(6, 1fr); }
.stats-6 .stat b { font-size: 1.7rem; }
.stats-6 .stat b.money { font-size: 1.35rem; padding-top: 6px; }
.stat-ok b { color: var(--ok); }
.stat-bad b { color: var(--bad); }
.stats + .panel, .chips-row + .stats { margin-top: 0; }
.stats + .panel { margin-top: 20px; }
.day-chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-bottom: 20px; }
.day-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-width: 3px; }
.day-bar span { display: block; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .85; }
.day-bar span.is-zero { background: var(--line); }
.day-bar em { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .72rem; color: var(--ink-3); }
.status-cell .linkish { margin-top: 4px; display: inline-block; }
@media (max-width: 1100px) { .stats-6 { grid-template-columns: repeat(3, 1fr); } .stats-6 .stat:nth-child(4) { border-left: 0; } }
@media (max-width: 900px) { .stats-6 { grid-template-columns: 1fr 1fr; } .stats-6 .stat:nth-child(odd) { border-left: 0; } .stats-6 .stat:nth-child(4) { border-left: 1px solid var(--line-2); } .stats-6 .stat { border-top: 1px solid var(--line-2); } .stats-6 .stat:nth-child(-n+2) { border-top: 0; } }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.section-head h2 { font-size: 1.15rem; }
.section-head .linkish { display: inline-flex; align-items: center; gap: 6px; }
.section-head .linkish svg { width: 16px; height: 16px; }
.copy-row { display: flex; gap: 8px; } .copy-row .input { min-width: 0; font-family: ui-monospace, monospace; font-size: .85rem; }
td form .linkish.small, .status-cell .linkish { font-size: .82rem; }
.money-chart { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding: 22px 0 22px; }
.money-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; position: relative; }
.money-bar span { display: block; background: var(--accent); border-radius: 6px 6px 0 0; }
.money-bar span.is-zero { background: var(--line); }
.money-bar b { display: block; margin-bottom: 4px; text-align: center; font-size: .75rem; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.money-bar em { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-style: normal; font-size: .8rem; color: var(--ink-3); }
.stat .money { font-size: 1.4rem; padding-top: 6px; }
.grid-2 + .grid-2, .stats + .grid-2, .section-head + .stats + .grid-2 { margin-top: 20px; }
.announce { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 16px; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--info-soft); color: var(--ink); }
.announce > svg { width: 22px; height: 22px; flex: none; color: var(--info); margin-top: 2px; }
.announce > div { flex: 1; min-width: 0; }
.announce p { margin-top: 4px; color: var(--ink-2); }
.announce .icon-btn { width: 32px; height: 32px; flex: none; background: transparent; }
.announce-ok { background: var(--ok-soft); } .announce-ok > svg { color: var(--ok); }
.announce-warn { background: var(--warn-soft); } .announce-warn > svg { color: var(--warn); }
.trial-cta { margin-bottom: 20px; border-color: var(--accent); }

/* ---------- ডান পাশের নোটিশ (toast) ---------- */
.toasts { position: fixed; top: 76px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 12px; padding: 14px 40px 16px 14px; border-radius: 12px; background: var(--surface, #fff); color: var(--ink); box-shadow: 0 10px 30px rgba(15, 23, 42, .18); border-left: 5px solid; font-size: .95rem; line-height: 1.45; pointer-events: auto; animation: toast-in .28s ease-out; transition: opacity .3s, transform .3s; }
.toast.is-out { opacity: 0; transform: translateX(30px); }
.toast-ok { border-color: var(--ok); }
.toast-bad { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.toast-warn { border-color: var(--warn); }
.toast-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; }
.toast-ok .toast-ico { background: var(--ok); }
.toast-bad .toast-ico { background: var(--bad); }
.toast-warn .toast-ico { background: var(--warn); }
.toast-msg { flex: 1; font-weight: 600; padding-top: 1px; }
.toast-x { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: inherit; opacity: .55; cursor: pointer; font-size: .9rem; padding: 4px 6px; }
.toast-x:hover { opacity: 1; }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; animation: toast-bar linear forwards; }
.toast-ok .toast-bar { background: var(--ok); }
.toast-bad .toast-bar { background: var(--bad); }
.toast-warn .toast-bar { background: var(--warn); }
.toast.is-paused .toast-bar { animation-play-state: paused; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 640px) { .toasts { top: 12px; right: 16px; left: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ---------- Admin: Agent-এর বিস্তারিত ---------- */
.cell-link { color: inherit; text-decoration: none; display: block; }
.cell-link:hover { color: var(--accent); }
.collage-count { display: inline-block; min-width: 44px; padding: 4px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 700; text-decoration: none; text-align: center; }
.collage-count:hover { outline: 2px solid var(--ok); }
.back-link { display: inline-block; margin-bottom: 10px; }
.stats-4 { grid-template-columns: repeat(4, 1fr); }
.big-num { font-size: 1.15rem; }
.total-row td { border-top: 2px solid var(--line); background: var(--paper); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; padding: 18px 20px; margin: 0; }
.kv dt { color: var(--ink-2); font-size: .85rem; }
.kv dd { margin: 2px 0 0; font-weight: 600; }
@media (max-width: 640px) { .stats-4 { grid-template-columns: repeat(2, 1fr); } }
.total-row td:first-child { border-bottom-left-radius: var(--r-panel); } .total-row td:last-child { border-bottom-right-radius: var(--r-panel); }
@media (max-width: 640px) { .table.stack tfoot { display: none; } }

/* ---------- Admin: চিরতরে মুছে ফেলা ---------- */
.btn-delete { background: var(--bad-soft); color: var(--bad); border: 1px solid transparent; }
.btn-delete:hover { border-color: var(--bad); }
.btn-delete-solid { background: var(--bad); color: #fff; border: 0; }
.btn-delete-solid:hover { filter: brightness(1.08); }
.delete-box { width: 300px; border-color: var(--bad) !important; text-align: left; }
.delete-title { color: var(--bad); }
.delete-list { margin: 4px 0 2px; padding-left: 18px; font-size: .88rem; color: var(--ink-2); line-height: 1.6; }

/* ---------- রিপোর্ট: অর্ডারের হিসাব ---------- */
.table-scroll { overflow-x: auto; }
.order-sheet td.wrap { white-space: normal; min-width: 180px; max-width: 280px; }
.order-sheet td { vertical-align: top; }
.order-sheet td:nth-child(-n+3) { white-space: nowrap; }
@media (max-width: 640px) { .order-sheet td:nth-child(-n+3) { white-space: normal; } }

/* ---------- Admin: বুকিং সমস্যা ---------- */
.err-list { display: grid; }
.err-item { padding: 18px 20px; border-top: 1px solid var(--line-2); }
.err-item:first-child { border-top: 0; }
.err-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.err-code { font-size: 1.05rem; margin-right: 8px; }
.err-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.err-msg { margin: 10px 0 4px; padding: 10px 12px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.err-kv { padding: 8px 0 0; }
.err-raw summary { cursor: pointer; color: var(--accent); font-size: .9rem; margin-top: 6px; }
.err-raw pre { margin: 8px 0 0; padding: 12px; border-radius: 10px; background: var(--paper); font-size: .82rem; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }

.err-item.is-resolved { opacity: .6; }
.err-actions { justify-content: flex-start; margin-top: 10px; align-items: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; word-break: break-word; }
.chips-sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
.chip-link b { margin-left: 4px; font-size: .8em; background: var(--bad-soft); color: var(--bad); border-radius: 999px; padding: 0 6px; }
.panel-foot { padding: 12px 20px; border-top: 1px solid var(--line-2); }

/* ---------- সেটিংসের দুই ভাগ ---------- */
.settings-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.settings-tab { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); color: var(--ink); text-decoration: none; }
.settings-tab svg { width: 22px; height: 22px; flex: none; color: var(--ink-2); }
.settings-tab span { display: grid; gap: 2px; }
.settings-tab small { color: var(--ink-2); font-size: .82rem; }
.settings-tab:hover { border-color: var(--accent); }
.settings-tab.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.settings-tab.is-active svg { color: var(--accent); }
@media (max-width: 640px) { .settings-tabs { grid-template-columns: 1fr; } }

/* ---------- রিপোর্ট: টাকার হিসাব ---------- */
.money-flow { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-2); }
.money-flow > div { padding: 16px 20px; border-left: 1px solid var(--line-2); display: grid; gap: 4px; }
.money-flow > div:first-child { border-left: 0; }
.money-flow span { color: var(--ink-2); font-size: .88rem; }
.money-flow b { font-size: 1.3rem; }
.money-flow .minus b { color: var(--bad); }
.money-flow .net { background: var(--ok-soft); }
.money-flow .net b { color: var(--ok); font-size: 1.5rem; }
.money-foot { padding: 10px 20px 14px; border-top: 1px solid var(--line-2); }
.warn-text { color: var(--warn); }
.order-sheet b.neg { color: var(--bad); } .order-sheet b.pos { color: var(--ok); }
@media (max-width: 900px) { .money-flow { grid-template-columns: repeat(2, 1fr); } .money-flow > div { border-left: 0; border-top: 1px solid var(--line-2); } .money-flow .net { grid-column: 1 / -1; } }

/* ---------- Create an Order: উজ্জ্বল বোতাম ---------- */
.nav-link.nav-cta {
  position: relative; overflow: hidden; color: #fff !important; font-weight: 700;
  background: linear-gradient(120deg, #6d28d9, #db2777 55%, #f59e0b);
  background-size: 200% 200%; animation: cta-flow 6s ease infinite;
  box-shadow: 0 6px 18px rgba(219, 39, 119, .28); margin: 4px 0;
}
.nav-link.nav-cta svg { color: #fff; }
.nav-link.nav-cta::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); animation: cta-shine 3.2s ease-in-out infinite;
}
.nav-link.nav-cta.is-active { box-shadow: 0 0 0 2px #fff inset, 0 6px 18px rgba(219, 39, 119, .35); }
.tab.tab-cta svg { color: #db2777; }
.tab.tab-cta { color: #db2777; font-weight: 700; }
.btn-cta {
  color: #fff; border: 0; font-weight: 700;
  background: linear-gradient(120deg, #6d28d9, #db2777 55%, #f59e0b); background-size: 200% 200%;
  animation: cta-flow 6s ease infinite; box-shadow: 0 8px 22px rgba(219, 39, 119, .3);
}
.btn-cta:hover { filter: brightness(1.06); color: #fff; }
@keyframes cta-flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes cta-shine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .nav-link.nav-cta, .btn-cta, .nav-link.nav-cta::after { animation: none; } }

/* ---------- Dashboard ---------- */
.dash-head { align-items: flex-end; }
.dash-date { margin: 0 0 2px; }
.board-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin: 20px 0; }
.money-flow .net.is-neg { background: var(--bad-soft); } .money-flow .net.is-neg b { color: var(--bad); }
.board { margin: 0; }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 6px; }
.board-head h2 { font-size: 1.05rem; margin: 0; }
.board-rows { list-style: none; margin: 0; padding: 4px 8px 10px; }
.board-rows a { display: grid; grid-template-columns: 42px 1fr auto 18px; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.board-rows li + li a { border-top: 1px solid var(--line-2); border-radius: 0; }
.board-rows a:hover { background: var(--paper); border-radius: 12px; }
.board-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.board-ico svg { width: 20px; height: 20px; }
.tone-amber { background: #fef3c7; color: #b45309; } .tone-blue { background: #dbeafe; color: #1d4ed8; }
.tone-violet { background: #ede9fe; color: #6d28d9; } .tone-green { background: #dcfce7; color: #15803d; } .tone-red { background: #fee2e2; color: #b91c1c; }
.board-txt { display: grid; gap: 2px; } .board-txt small { color: var(--ink-2); font-size: .8rem; }
.board-num { text-align: right; display: grid; gap: 2px; } .board-num b { font-size: 1.2rem; } .board-num small { color: var(--ink-2); font-size: .8rem; }
.board-go svg { width: 16px; height: 16px; color: var(--ink-3); }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 8px 16px 16px; }
.quick { display: grid; justify-items: center; gap: 8px; padding: 18px 8px; border-radius: 14px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .88rem; text-align: center; border: 1px solid transparent; }
.quick svg { width: 22px; height: 22px; color: var(--accent); }
.quick:hover { border-color: var(--accent); }
.quick-main { color: #fff; background: linear-gradient(120deg, #6d28d9, #db2777 60%, #f59e0b); }
.quick-main svg { color: #fff; }
@media (max-width: 900px) { .board-grid { grid-template-columns: 1fr; } }

/* ---------- রিপোর্ট: নিজের মতো তারিখ ---------- */
.period-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.period-bar .chips-row { margin: 0; }
.date-range { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.date-range.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.date-range label { display: flex; gap: 6px; align-items: center; font-size: .88rem; color: var(--ink-2); }
.date-range .input { padding: 6px 8px; height: auto; width: auto; }

/* ---------- উপরে ডানে: বেল আর অ্যাকাউন্ট ---------- */
.topbar { display: flex; justify-content: flex-end; align-items: center; padding: 14px 32px 0; max-width: 1184px; margin: 0 auto; }
.topbar-left, .topbar-prefs { display: none; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.top-bell { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.top-bell svg { width: 20px; height: 20px; }
.top-bell:hover, .top-bell.is-active { color: var(--accent); border-color: var(--accent); }
.top-bell .count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--paper); }
.acct { position: relative; }
.acct > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.acct > summary::-webkit-details-marker { display: none; }
.acct > summary:hover { border-color: var(--accent); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #6d28d9, #db2777); }
.acct-name { font-weight: 600; font-size: .9rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(15,23,42,.16); padding: 8px; }
.acct-who { display: grid; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.acct-who span { color: var(--ink-2); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; }
.acct-who .chip { justify-self: start; margin-top: 4px; }
.acct-menu a, .acct-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 10px; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; text-align: left; }
.acct-menu svg { width: 18px; height: 18px; color: var(--ink-2); }
.acct-menu a:hover, .acct-menu button:hover { background: var(--paper); }
.acct-menu form button:hover { color: var(--bad); } .acct-menu form button:hover svg { color: var(--bad); }
.content { padding-top: 18px; }
@media (max-width: 900px) {
  .topbar { max-width: none; justify-content: space-between; padding: 10px 16px; }
  .topbar-left { display: flex; } .topbar-prefs { display: inline-flex; }
  .top-bell { background: rgba(255,255,255,.12); border-color: transparent; color: #fff; width: 38px; height: 38px; }
  .top-bell .count { border-color: transparent; }
  .acct > summary { background: rgba(255,255,255,.12); border-color: transparent; padding: 3px; }
  .acct-name { display: none; }
  .content { padding-top: 20px; }
}

/* ---------- Dashboard: খোঁজা আর পার্সেলের কার্ড ---------- */
.dash-search { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 20px 0; }
.dash-search > svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.dash-search .input { border: 0; background: transparent; box-shadow: none; padding-left: 0; }
.dash-search .input:focus { outline: none; }
.dash-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.status-wrap { margin-bottom: 22px; }
.status-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.status-head h2 { margin: 0; font-size: 1.1rem; }
.stuck-pill { padding: 6px 14px; border-radius: 999px; background: #fff7ed; color: #9a3412; font-size: .88rem; border: 1px solid #fed7aa; }
.stuck-pill b { font-size: 1rem; margin-left: 4px; }
.status-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.status-card { position: relative; display: grid; gap: 4px; padding: 16px; border-radius: 18px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.status-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: currentColor; opacity: .0; }
.status-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,23,42,.10); }
.sc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sc-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; }
.sc-ico svg { width: 21px; height: 21px; }
.sc-go svg { width: 16px; height: 16px; color: var(--ink-3); }
.sc-label { font-weight: 700; font-size: 1rem; }
.sc-sub { color: var(--ink-2); font-size: .8rem; }
.sc-count { margin-top: 8px; color: var(--ink-2); font-size: .85rem; }
.sc-count b { font-size: 1.7rem; color: var(--ink); margin-right: 2px; }
.sc-money { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
.sc-money small { color: var(--ink-2); font-size: .78rem; } .sc-money b { font-size: 1.05rem; }
.status-card.tone-amber .sc-ico { background: #fef3c7; color: #b45309; } .status-card.tone-amber .sc-money b { color: #b45309; }
.status-card.tone-blue .sc-ico { background: #dbeafe; color: #1d4ed8; } .status-card.tone-blue .sc-money b { color: #1d4ed8; }
.status-card.tone-violet .sc-ico { background: #ede9fe; color: #6d28d9; } .status-card.tone-violet .sc-money b { color: #6d28d9; }
.status-card.tone-green .sc-ico { background: #dcfce7; color: #15803d; } .status-card.tone-green .sc-money b { color: #15803d; }
.status-card.tone-red .sc-ico { background: #fee2e2; color: #b91c1c; } .status-card.tone-red .sc-money b { color: #b91c1c; }
.status-card.tone-amber, .status-card.tone-blue, .status-card.tone-violet, .status-card.tone-green, .status-card.tone-red { background: var(--surface); }
@media (max-width: 1100px) { .status-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .status-cards { grid-template-columns: 1fr 1fr; } .status-card:last-child { grid-column: span 2; } .sc-count b { font-size: 1.45rem; } }

.report-search { display: flex; gap: 6px; margin-left: auto; margin-right: 8px; }
.report-search .input { width: 220px; height: 36px; padding: 6px 10px; }
.panel-head:has(.report-search) { flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .report-search { width: 100%; margin: 0; } .report-search .input { width: 100%; } }

@media (max-width: 520px) { .topbar .role-chip { display: none; } .topbar-right { gap: 6px; } .topbar .prefs > summary span { display: none; } }

/* ---------- Tutorial ভিডিও ---------- */
.tut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 22px; }
.tut-card { display: grid; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: transform .15s, box-shadow .15s; }
.tut-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,23,42,.10); }
.tut-thumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, #312e81, #6d28d9 55%, #db2777) center / cover no-repeat; }
.tut-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.35)); }
.tut-play { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #db2777; box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: transform .15s; }
.tut-play svg { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }
.tut-card:hover .tut-play { transform: scale(1.08); }
.tut-no { position: absolute; z-index: 1; left: 10px; top: 10px; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.tut-body { display: grid; gap: 4px; padding: 12px 14px 14px; }
.tut-body b { font-size: .98rem; line-height: 1.35; }
.tut-body small { color: var(--ink-2); font-size: .84rem; line-height: 1.45; }
.tut-modal { width: min(960px, 94vw); padding: 0; border: 0; border-radius: 16px; background: #000; color: #fff; overflow: hidden; }
.tut-modal::backdrop { background: rgba(10,12,20,.75); }
.tut-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: #111; }
.tut-modal-head .icon-btn { color: #fff; border-color: rgba(255,255,255,.2); background: transparent; }
.tut-frame { aspect-ratio: 16 / 9; }
.tut-frame iframe, .tut-frame video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.section-head h2 { display: inline-flex; align-items: center; gap: 8px; }
.section-head h2 svg { width: 18px; height: 18px; color: #db2777; }
.section-title { font-size: 1.05rem; margin: 26px 0 12px; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .85rem; margin: 4px 0 14px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tut-list { list-style: none; margin: 0; padding: 6px 12px 12px; }
.tut-list li { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--line-2); }
.tut-list li:first-child { border-top: 0; }
.tut-mini { width: 72px; aspect-ratio: 16 / 9; border-radius: 8px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #6d28d9, #db2777) center / cover no-repeat; }
.tut-mini svg { width: 18px; height: 18px; fill: currentColor; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.tut-meta { display: grid; gap: 2px; min-width: 0; } .tut-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tut-meta small { color: var(--ink-2); font-size: .8rem; }
.tut-list .row-actions { display: flex; gap: 4px; }
.tut-list .icon-btn svg { width: 16px; height: 16px; }
.tut-admin { align-items: start; }

.tut-list li.is-editing { background: var(--accent-soft); border-radius: 10px; }
form.is-editing { box-shadow: inset 3px 0 0 var(--accent); }
a.icon-btn { display: inline-grid; place-items: center; }

/* ---------- কুপন ---------- */
.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.coupon-row .btn { flex: none; }
.coupon-msg { display: block; margin-top: 8px; padding: 8px 12px; border-radius: 10px; font-size: .85rem; font-weight: 600; }
.coupon-msg.is-ok { background: var(--ok-soft); color: var(--ok); }
.coupon-msg.is-bad { background: var(--bad-soft); color: var(--bad); }
.amount .was { color: var(--ink-3); font-weight: 500; font-size: .85em; margin-right: 4px; }
.coupon-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 600; }
.coupon-tag svg { width: 14px; height: 14px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--line-2); border-radius: 12px; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: block; padding: 8px 16px; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.seg-opt input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--accent); }
.input-affix { position: relative; }
.input-affix .input { padding-right: 44px; }
.input-affix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-3); }
.coupon-list { list-style: none; margin: 0; padding: 6px 14px 14px; }
.coupon-list li { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ticket actions" "meta meta"; gap: 12px 14px; align-items: center; padding: 14px 4px; border-top: 1px solid var(--line-2); }
.coupon-list .coupon-ticket { grid-area: ticket; }
.coupon-list .coupon-meta { grid-area: meta; }
.coupon-list .row-actions { grid-area: actions; justify-self: end; }
.coupon-list li:first-child { border-top: 0; }
.coupon-list li.is-editing { background: var(--accent-soft); border-radius: 12px; padding-inline: 10px; }
.coupon-list li.is-off .coupon-ticket { filter: grayscale(1); opacity: .6; }
.coupon-ticket { position: relative; display: grid; gap: 2px; min-width: 120px; padding: 10px 16px; border-radius: 10px; background: var(--brand-grad); color: #fff; text-align: center; }
.coupon-ticket::before, .coupon-ticket::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--surface); }
.coupon-ticket::before { left: -6px; } .coupon-ticket::after { right: -6px; }
.coupon-ticket b { font-size: 1rem; letter-spacing: .08em; }
.coupon-ticket span { font-size: .78rem; opacity: .92; }
.coupon-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: .82rem; color: var(--ink-2); }
.coupon-list .row-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn.is-done { color: var(--ok); }
@media (max-width: 420px) {
    .coupon-list li { grid-template-columns: 1fr; grid-template-areas: "ticket" "meta" "actions"; }
    .coupon-list .row-actions { justify-self: start; }
}
.num .coupon-tag { display: flex; justify-content: flex-end; }

/* ---------- Home Delivery / Invoice ---------- */
.delivery-pick .panel-body { padding-top: 16px; padding-bottom: 16px; }
.dlv-title { margin: 0 0 12px; font-size: 1rem; }
.dlv-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dlv-opt { position: relative; cursor: pointer; }
.dlv-opt input { position: absolute; opacity: 0; pointer-events: none; }
.dlv-opt > span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; height: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s, background .15s; }
.dlv-opt svg { grid-row: span 2; width: 28px; height: 28px; padding: 8px; box-sizing: content-box; border-radius: 12px; background: var(--line-2); color: var(--ink-2); }
.dlv-opt b { font-size: 1.02rem; }
.dlv-opt small { color: var(--ink-3); font-size: .8rem; line-height: 1.35; }
.dlv-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.dlv-opt input:checked + span svg { background: var(--accent); color: #fff; }
.dlv-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.dlv-opt input:disabled + span { cursor: default; opacity: .75; }
.inv-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.dm-list { list-style: none; margin: 0; padding: 6px 14px 14px; }
.dm-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line-2); }
.dm-list li:first-child { border-top: 0; }
.dm-list li.is-editing { background: var(--accent-soft); border-radius: 12px; padding-inline: 10px; }
.dm-list .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-grad); color: #fff; font-weight: 700; }
.dm-meta { display: grid; min-width: 0; }
.dm-meta small { color: var(--ink-3); }
.dm-list .row-actions { display: flex; gap: 6px; }
@media (max-width: 520px) { .dlv-options { grid-template-columns: 1fr; } }
.chip-info { background: var(--info-soft); color: var(--info); }

/* ---------- Home Delivery রিপোর্ট ---------- */
.report-tabs { margin-bottom: 16px; }
.status-cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.status-card.is-picked { outline: 3px solid currentColor; outline-offset: -1px; }
.status-head h2 b { font-weight: 800; }
.dm-table tr.is-picked td { background: var(--accent-soft); }
.dm-link { color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--ink-3); }
.dm-link:hover { color: var(--accent); }
.home-sheet .reason { color: var(--warn); max-width: 220px; white-space: normal; }
b.neg { color: var(--bad); } b.pos { color: var(--ok); }
dialog.settle { width: min(100% - 24px, 520px); border: 0; border-radius: 20px; padding: 0; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
dialog.settle::backdrop { background: rgba(15,23,42,.5); }
dialog.settle form { padding: 20px 22px 22px; }
.settle-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.settle-head h2 { margin: 0; font-size: 1.15rem; }
.settle-head p { margin: 2px 0 0; }
.settle-states { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.seg-card { position: relative; cursor: pointer; }
.seg-card input { position: absolute; opacity: 0; pointer-events: none; }
.seg-card span { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 2px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .9rem; }
.seg-card svg { width: 18px; height: 18px; flex: none; }
.seg-card input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.st-paid input:checked + span { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.st-hold input:checked + span { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.st-returned input:checked + span { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.seg-card input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.settle-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; border-radius: 12px; background: var(--ok-soft); margin-bottom: 14px; }
.settle-total b { font-size: 1.5rem; color: var(--ok); }
.settle-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
@media (max-width: 900px) { .status-cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.status-cards.four .status-card:last-child { grid-column: auto; }
.home-sheet td.wrap { min-width: 130px; max-width: 200px; }
.disc-tag { color: var(--ok); font-weight: 600; }
.verify-lines > div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 2px 14px; border-bottom: 1px dashed var(--line); margin-bottom: 14px; }
.verify-lines b { font-size: 1.3rem; }
.stat-note { display: block; margin-top: 4px; color: var(--ink-3); font-size: .78rem; }

/* ---------- সাপ্লায়ার / কেনা দাম ---------- */
.rate-table td, .rate-table th { padding: 6px 8px; vertical-align: middle; }
.rate-table .input { min-height: 38px; padding: 6px 10px; }
.rate-table .num-input { width: 96px; text-align: right; }
.items-table { min-width: 760px; }
.items-table .kw-input { min-width: 220px; }
.items-table .unit-sel { min-width: 100px; }
.sticky-actions { position: sticky; bottom: 76px; z-index: 3; display: flex; justify-content: flex-end; padding: 10px 0; }
@media (min-width: 900px) { .sticky-actions { bottom: 12px; } }
.danger-text { color: var(--bad); }
.cost-panel .cost-lines { list-style: none; margin: 0; padding: 0; }
.cost-panel .cost-lines li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.cost-panel .cost-lines li small { grid-column: 1 / -1; color: var(--ink-3); }
.cost-panel .cost-lines li.is-unknown { color: var(--bad); }
.cost-panel .cost-lines li.is-unknown input { width: 80px; min-height: 32px; padding: 4px 8px; }
.cost-sum { display: grid; gap: 4px; margin-top: 10px; }
.cost-sum > div { display: flex; justify-content: space-between; }
.cost-sum .profit { padding: 10px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 1.05rem; }
.cost-sum .profit.neg { background: var(--bad-soft); color: var(--bad); }
.secret-chip { display: inline-flex; align-items: center; gap: 4px; }
.profit-strip { margin: 16px 0 20px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.ps-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.ps-head h2 { margin: 0; font-size: 1.05rem; }
.ps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ps-grid > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--paper, #f6f7fb); }
.ps-grid small { color: var(--ink-2); font-weight: 600; }
.ps-grid b { font-size: 1.35rem; }
.ps-grid span { color: var(--ink-3); font-size: .78rem; }
.ps-grid .ps-total { background: var(--ok-soft); color: var(--ok); }
.ps-grid .ps-total.neg { background: var(--bad-soft); color: var(--bad); }
.ps-grid .ps-total small, .ps-grid .ps-total span { color: inherit; opacity: .85; }
.ps-warn { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: .85rem; }
.linkish.is-warn { color: var(--bad); font-weight: 700; }
.dlg-lines { margin-bottom: 14px !important; }
.cost-panel { margin-top: 6px; padding: 14px; border-radius: 14px; border: 1px dashed var(--line); background: var(--paper, #f6f7fb); }
.cost-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
@media (max-width: 900px) { .ps-grid { grid-template-columns: 1fr 1fr; } }
.dlg-lines { list-style: none; padding: 0; margin: 0; }
.dlg-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.dlg-lines li.is-unknown { color: var(--bad); }
button.linkish { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.settle-cell { margin-bottom: 6px; }
.acct-menu a.acct-more { display: none; }
@media (max-width: 900px) { .acct-menu a.acct-more { display: flex; } }

/* =========================================================
   UI পলিশ: এক ব্র্যান্ড রং, পড়তে সহজ বাংলা লেখা
   - সব রোলে একই মূল রং (BartaPilot নীল); রোল বোঝায় শুধু ছোট চিপ
   - সবুজ/লাল/হলুদ শুধু টাকা আর স্ট্যাটাসে
   ========================================================= */
:root { --ink-3: #5f6b7d; --line: #d6dce5; }
.role-admin, .role-agent, .role-moderator { --accent: #1f42d6; --accent-soft: #e9eefd; --accent-ink: #fff; }
html[data-theme="dark"] .role-admin, html[data-theme="dark"] .role-agent, html[data-theme="dark"] .role-moderator { --accent: #8ea2ff; --accent-soft: #1b2445; --accent-ink: #0e131b; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .role-admin, html[data-theme="system"] .role-agent, html[data-theme="system"] .role-moderator { --accent: #8ea2ff; --accent-soft: #1b2445; --accent-ink: #0e131b; }
}
html[data-theme="dark"] { --ink-3: #9aa6b8; }
@media (prefers-color-scheme: dark) { html[data-theme="system"] { --ink-3: #9aa6b8; } }

/* রোলের চিপ: রোল আলাদা করে চেনা যায়, কিন্তু পুরো অ্যাপের রং বদলায় না */
.role-chip { font-weight: 700; }
.role-agent .role-chip::before { background: #10b981; }
.role-moderator .role-chip::before { background: #f59e0b; }

/* Create an Order: ব্র্যান্ডের নীল থেকে বেগুনি — চোখে পড়ে, কিন্তু ব্র্যান্ডের ভেতরে */
.nav-link.nav-cta, .btn-cta { background: linear-gradient(120deg, #2a4ee6, #4338ca 50%, #7c3aed); background-size: 200% 200%; box-shadow: 0 6px 18px rgba(67, 56, 202, .28); }
.nav-link.nav-cta.is-active { box-shadow: 0 0 0 2px #fff inset, 0 6px 18px rgba(67, 56, 202, .35); }
.tab.tab-cta, .tab.tab-cta svg { color: #4338ca; }

/* বাংলা লেখা: ছোট লেখা একটু বড় আর গাঢ় */
html[lang="bn"] body { font-size: 16.5px; }
html[lang="bn"] .small, html[lang="bn"] .field .hint { font-size: .92rem; }
html[lang="bn"] .cell-sub, html[lang="bn"] .sc-sub, html[lang="bn"] .acct-who span { font-size: .9rem; }
html[lang="bn"] th { font-size: .86rem; }
.field .hint, .cell-sub, .sc-sub { color: var(--ink-3); }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { font-variation-settings: "wdth" 100; }
.sc-label { font-weight: 700; }

/* অ্যাকাউন্ট মেনু: মোবাইলে নাম দেখা যেত না (উপরের নীল বারের সাদা লেখা চলে আসছিল) */
.acct-menu { color: var(--ink); }
.acct-who b { color: var(--ink); }

/* সেভ বাটন: কন্টেন্টের ওপর ভাসবে না, নিচে পুরো বার */
.sticky-actions { left: 0; right: 0; margin: 12px 0 0; padding: 12px 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 -6px 20px rgba(15,23,42,.06); }
.kg-check { width: 20px; height: 20px; accent-color: var(--accent); }
.extra-row { display: grid; grid-template-columns: 1fr 110px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.extra-row .input { min-height: 40px; }
.ps-review { display: block; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--info-soft); color: var(--info); font-weight: 700; font-size: .9rem; text-decoration: none; }
.ps-review:hover { filter: brightness(.97); }
.cost-lines li.is-review { color: var(--info); font-weight: 600; }
.items-table { min-width: 0; width: max-content; }
.items-table td:first-child .input { min-width: 170px; }
.items-table .kw-input { min-width: 200px; }
.items-table .num-input { width: 84px; }
.ov-box { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.cost-panel .cost-lines li .ov-mode { width: auto; min-height: 32px; padding: 4px 8px; font-size: .85rem; }
.cost-panel .cost-lines li .ov-box input { width: 80px; min-height: 32px; padding: 4px 8px; }
.cost-panel .cost-lines li.is-kg { color: var(--info); }
.cost-panel .cost-lines li.is-manual small { color: var(--ink-3); }
#items tr.is-kg .num-input { opacity: .35; }
.cost-panel .cost-lines li.is-ask { color: var(--warn); }
.ask-btns { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ask-box { display: grid; gap: 10px; margin-top: 6px; }
.ask-item { padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); }
.ask-item b { color: var(--ink); }
.ask-item p { margin: 4px 0 8px; font-size: .9rem; }
.mode-pick { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); }
.extra-kg { display: grid; gap: 4px; max-width: 220px; margin-top: 8px; }

/* ---------- HRM ---------- */
.hr-head { margin-bottom: 10px; }
.hr-tabs { display: flex; gap: 4px; margin: 0 0 18px; padding: 4px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; scrollbar-width: none; }
.hr-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; font-size: .96rem; border-radius: 10px; color: var(--ink-2); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hr-tabs a svg { width: 17px; height: 17px; }
.hr-tabs a:hover { background: var(--paper); color: var(--ink); }
.hr-tabs a.is-active { background: var(--accent); color: #fff; }
.month-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-bottom: 16px; }
.month-pick { display: flex; justify-content: center; } .month-pick .input { width: auto; font-weight: 700; }
.toolbar-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar-row p { margin: 0; max-width: 640px; }
.emp-cell { display: flex; gap: 10px; align-items: center; }
.emp-cell > div { display: grid; }
.emp-ava { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
tr.is-dim td { opacity: .55; }
.hr-today { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hr-today > div { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.hr-today b { font-size: 1.3rem; }
.hr-pay-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.hr-pay-line:last-child { border-bottom: 0; } .hr-pay-line b { font-size: 1.15rem; }
.ok-text { color: var(--ok); } .bad-text { color: var(--bad); }
.leave-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.leave-row:last-child { border-bottom: 0; }
.leave-act { display: flex; gap: 6px; }
.slip-link { color: inherit; text-decoration: none; } .slip-link:hover b { color: var(--accent); }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.pay-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 14px; }
.pay-total b { font-size: 1.35rem; color: var(--accent); }
.att-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.att-date { display: flex; align-items: center; gap: 8px; } .att-date .input { width: auto; }
.att-pick { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.att-pick input { position: absolute; opacity: 0; pointer-events: none; }
.att-pick label { padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.att-pick input:focus-visible + label { outline: 3px solid var(--accent); }
.att-pick input:checked + .ap-present, .att-dot.ap-present, .cal-day.ap-present { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.att-pick input:checked + .ap-late, .att-dot.ap-late, .cal-day.ap-late { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.att-pick input:checked + .ap-half, .att-dot.ap-half, .cal-day.ap-half { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.att-pick input:checked + .ap-absent, .att-dot.ap-absent, .cal-day.ap-absent { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.att-pick input:checked + .ap-leave, .att-dot.ap-leave, .cal-day.ap-leave { background: var(--paper); color: var(--ink); border-color: var(--ink-3); }
.time-in { width: 118px; }
.att-sheet { font-size: .82rem; }
.att-sheet th, .att-sheet td { padding: 8px 4px; text-align: center; }
.att-sheet th:first-child, .att-sheet td:first-child { text-align: left; padding-left: 16px; position: sticky; left: 0; background: var(--surface); }
.att-sheet .is-off { background: var(--paper); }
.att-dot { display: inline-block; min-width: 22px; padding: 2px 3px; border-radius: 6px; font-weight: 700; font-size: .72rem; border: 1px solid transparent; }
.nowrap { white-space: nowrap; }
.bar-track { height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; margin: 6px 0 3px; }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.bar-track.is-done i { background: var(--ok); }
.payroll-table td { vertical-align: middle; padding-left: 10px; padding-right: 10px; }
.payroll-table th { padding-left: 10px; padding-right: 10px; }
.payroll-table td:nth-child(2) { white-space: nowrap; }
.payroll-table td:nth-child(2) .cell-main { display: inline; margin-right: 6px; }
.payroll-table .chip { display: inline-block; font-size: .72rem; }
.payroll-table tr.is-paid td { background: color-mix(in srgb, var(--ok-soft) 40%, transparent); }
.payroll-table tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.payroll-table .net { font-size: 1.1rem; }
.num-input.mini { width: 76px; min-height: 36px; padding: 4px 8px; }
form.inline { display: inline; }
.pay-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pay-bar > span { margin-right: auto; }
.pay-method { width: auto; min-height: 36px; padding: 4px 10px; font-weight: 600; }
.empty-state { text-align: center; padding: 34px 20px; color: var(--ink-2); }
.day-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.day-pick label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.day-pick label:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.quota-row { display: grid; grid-template-columns: 1fr 100px auto; align-items: center; gap: 10px; }
.quota-row label { margin: 0; }
.checkin-card .panel-body { display: grid; justify-items: center; gap: 14px; padding: 26px 20px; text-align: center; }
.ci-time { display: grid; } .ci-time b { font-size: 2.4rem; letter-spacing: -.02em; } .ci-time span { color: var(--ink-2); }
.btn-lg { min-height: 52px; padding: 0 30px; font-size: 1.05rem; }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.cal-day { display: grid; place-items: center; padding: 6px 0; border-radius: 10px; border: 1px solid var(--line); }
.cal-day small { font-size: .7rem; font-weight: 700; min-height: 1em; }
.cal-day.is-off { background: var(--paper); color: var(--ink-3); }
.cal-day.is-today { box-shadow: 0 0 0 2px var(--accent); }
@media (max-width: 700px) { .hr-today { grid-template-columns: 1fr 1fr; } .pay-grid { grid-template-columns: 1fr; } .month-bar .btn { padding: 0 10px; } }
.att-top + .notice { margin: 0 0 14px; }
.payroll-table .icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.att-pick { flex-wrap: nowrap; }
.att-pick label { padding: 6px 9px; }
.att-table td:last-child .input { min-width: 120px; }
.att-table td, .att-table th { padding-left: 12px; padding-right: 12px; }
/* ---------- Profit & Loss ---------- */
.pnl-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--surface); }
.pnl-hero > div { display: grid; gap: 2px; }
.pnl-hero > div span { color: var(--ink-2); font-weight: 600; }
.pnl-hero > div b { font-size: 2.4rem; line-height: 1.1; letter-spacing: -.02em; }
.pnl-hero > div small { color: var(--ink-3); font-weight: 600; }
.pnl-hero.is-profit { border-color: var(--ok); background: color-mix(in srgb, var(--ok-soft) 55%, var(--surface)); } .pnl-hero.is-profit > div b { color: var(--ok); }
.pnl-hero.is-loss { border-color: var(--bad); background: color-mix(in srgb, var(--bad-soft) 55%, var(--surface)); } .pnl-hero.is-loss > div b { color: var(--bad); }
.pnl-hero dl { display: flex; gap: 28px; margin: 0; flex-wrap: wrap; }
.pnl-hero dl div { display: grid; } .pnl-hero dt { color: var(--ink-2); font-size: .88rem; } .pnl-hero dd { margin: 0; font-size: 1.25rem; font-weight: 800; }
.pnl-notes { display: grid; gap: 6px; margin: 14px 0 0; }
.pnl-notes p { display: flex; gap: 8px; align-items: center; margin: 0; padding: 9px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); font-size: .92rem; }
.pnl-notes svg { width: 17px; height: 17px; flex: none; }
.pnl-hero + .grid-2, .pnl-notes + .grid-2 { margin-top: 20px; }
.pnl-sheet { display: grid; padding-top: 6px; }
.pl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.pl-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-row a { margin-left: 6px; }
.pl-in b { color: var(--ok); font-size: 1.1rem; }
.pl-sub { border-bottom: 2px solid var(--line); font-weight: 700; background: var(--paper); margin: 0 -20px; padding: 12px 20px; }
.pl-sub b { font-size: 1.1rem; }
.pl-total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 14px; font-weight: 800; }
.pl-total b { font-size: 1.45rem; }
.pnl-trend { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; }
.pnl-trend a { display: grid; justify-items: center; gap: 4px; color: inherit; text-decoration: none; padding: 6px 0; border-radius: 10px; }
.pnl-trend a.is-current { background: var(--accent-soft); }
.pnl-trend .bar-wrap { height: 110px; width: 26px; display: flex; align-items: flex-end; }
.pnl-trend i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: var(--ok); }
.pnl-trend i.neg { background: var(--bad); }
.pnl-trend b { font-size: .82rem; } .pnl-trend small { color: var(--ink-3); font-size: .78rem; }
.toolbar-total { display: grid; margin-left: auto; text-align: right; } .toolbar-total span { color: var(--ink-2); font-size: .85rem; } .toolbar-total b { font-size: 1.2rem; }
.salary-big { font-size: 1.3rem; font-weight: 700; max-width: 260px; }
.payroll-table td:nth-child(2) .cell-sub { display: block; }
.payroll-table .num-input.mini { width: 66px; }
.payroll-table th, .payroll-table td { padding-left: 8px; padding-right: 8px; }

/* ---------- প্যাকেজ ও বিলিং ---------- */
.plan-now { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.plan-now > div { padding: 20px 24px; display: grid; gap: 4px; align-content: start; }
.plan-now .pn-seats { border-left: 1px solid var(--line-2); }
.pn-label { color: var(--ink-2); font-size: .86rem; font-weight: 600; }
.pn-name { font-size: 1.6rem; letter-spacing: -.01em; }
.pn-date, .pn-sub { color: var(--ink-2); font-size: .92rem; }
.pn-seats b { font-size: 1.6rem; } .pn-seats b small { font-size: .6em; color: var(--ink-3); }
.pn-main .chip { justify-self: start; margin-top: 4px; }
.pn-next { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; margin: 0; padding: 12px 24px; border-top: 1px solid var(--line-2); background: var(--warn-soft); color: var(--warn); font-size: .92rem; }
.pn-next svg { width: 17px; height: 17px; flex: none; }
.bar-track.is-full i { background: var(--warn); }
.pkg-section { margin-top: 24px; }
.pkg-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.pkg-head h2 { margin: 0; font-size: 1.25rem; }
.cycle-toggle { width: auto; }
.save-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--ok-soft); color: var(--ok) !important; font-weight: 700 !important; font-size: .72rem !important; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pkg-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.pkg-card.is-pop { border: 2px solid var(--accent); box-shadow: 0 16px 40px -20px color-mix(in srgb, var(--accent) 60%, transparent); }
.pkg-card.is-current { border-color: var(--ok); }
.pkg-badge { position: absolute; top: -12px; left: 22px; padding: 3px 12px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; }
.pkg-badge.cur { background: var(--ok); }
.pkg-card h3 { margin: 0; font-size: 1.3rem; }
.pkg-tag { margin: -6px 0 0; color: var(--ink-2); font-size: .92rem; min-height: 1.4em; }
.pkg-price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.pkg-price b { font-size: 2.1rem; letter-spacing: -.02em; line-height: 1.1; }
.pkg-price span { color: var(--ink-2); font-weight: 600; }
.pkg-price s { color: var(--ink-3); margin-right: 4px; }
.pkg-price small { flex-basis: 100%; color: var(--ok); font-weight: 600; font-size: .84rem; }
.pkg-seats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--paper); font-weight: 600; font-size: .92rem; }
.pkg-seats svg { width: 17px; height: 17px; color: var(--accent); }
.pkg-seats small { flex-basis: 100%; color: var(--ink-2); font-weight: 500; padding-left: 23px; }
.pkg-feat { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 7px; font-size: .92rem; flex: 1; }
.pkg-feat li { position: relative; padding-left: 24px; }
.pkg-feat li::before { position: absolute; left: 0; top: 0; width: 18px; text-align: center; font-weight: 800; }
.pkg-feat li.yes::before { content: '✓'; color: var(--ok); }
.pkg-feat li.no { color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 50%, transparent); }
.pkg-feat li.no::before { content: '–'; color: var(--ink-3); }
.pkg-feat small { color: var(--ink-2); }
.quick-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; }
.stepper { display: flex; gap: 6px; align-items: center; } .stepper .input { width: 90px; text-align: center; font-weight: 700; }
.stepper .btn { min-width: 42px; padding: 0; font-size: 1.2rem; }
.nav-lock { margin-left: auto; display: inline-flex; color: var(--ink-3); } .nav-lock svg { width: 14px; height: 14px; }
.upgrade-card { max-width: 620px; margin: 30px auto; padding: 36px 30px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.upgrade-card h1 { margin: 0; font-size: 1.5rem; }
.upgrade-card p { margin: 0; }
.up-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.up-icon svg { width: 26px; height: 26px; }
.up-pkgs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 6px 0; }
.up-pkgs div { display: grid; padding: 10px 18px; border: 1px solid var(--line); border-radius: 12px; } .up-pkgs span { color: var(--ink-2); font-size: .9rem; }
.pkg-admin td { vertical-align: top; } .pkg-admin .mini-in { margin-top: 6px; min-height: 34px; font-size: .85rem; }
.feat-checks { display: grid; gap: 3px; min-width: 210px; }
.section-title { margin: 28px 0 12px; font-size: 1.15rem; }
@media (max-width: 900px) { .pkg-grid { grid-template-columns: 1fr; } .plan-now { grid-template-columns: 1fr; } .plan-now .pn-seats { border-left: 0; border-top: 1px solid var(--line-2); } }
.pkg-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 6px 20px 18px; }
.pkg-admin-card { display: grid; gap: 4px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.pkg-admin-card .field-row { grid-template-columns: 1fr 1fr; gap: 10px; }
.pa-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; } .pa-head b { font-size: 1.15rem; margin-right: auto; }
@media (max-width: 1100px) { .pkg-admin-grid { grid-template-columns: 1fr; } }
.nav-link { white-space: nowrap; }
@media (max-width: 600px) { .cta-panel > div:nth-child(2) { flex-basis: calc(100% - 70px); min-width: 0; } .cta-panel form { width: 100%; } .pkg-head { align-items: flex-start; } }
.terms-check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.5; }
.terms-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.terms-check a { font-weight: 700; }
.terms-check.is-invalid span { color: var(--bad); }
.btn-red { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-red:hover { background: color-mix(in srgb, var(--bad) 88%, #000); color: #fff; }
.seat-alert { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 20px 4px; padding: 12px 16px; border-radius: 14px; background: var(--bad-soft); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); color: var(--bad); }
.seat-alert > svg { width: 22px; height: 22px; flex: none; }
.seat-alert > div { flex: 1; min-width: 220px; display: grid; gap: 2px; }
.seat-alert b { color: var(--bad); } .seat-alert span { color: var(--ink); font-size: .93rem; }
.disc-badge { font-style: normal; display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-weight: 800; font-size: .8rem; align-self: center; }
.disc-in { display: grid; grid-template-columns: 1fr 70px; gap: 6px; }
a.err-who { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--line); } a.err-who:hover { color: var(--accent); border-color: var(--accent); }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.edit-log { list-style: none; margin: 0; display: grid; gap: 12px; } .edit-log s { color: var(--ink-3); }
.row-edit { display: inline-flex; gap: 6px; margin-top: 6px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; }
.pw-eye:hover { background: var(--paper); color: var(--ink); }
.pw-eye:focus-visible { outline: 3px solid var(--accent); }
.pw-eye svg { width: 20px; height: 20px; }

/* ---- প্রোডাক্ট ক্যাটালগ (ই-কমার্স) ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.req { color: var(--bad); font-weight: 700; }
.catalog-note { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: .92rem; }
.catalog-note svg { flex: 0 0 auto; width: 18px; height: 18px; }
.stock-low { color: var(--bad); }
.var-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 0 8px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.var-table th, .var-table td { padding: 6px 8px; }
.var-table input { min-width: 64px; }
.stats.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pur-table select.input { min-width: 220px; }
.pur-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--paper); }
.pur-sum > div { display: flex; flex-direction: column; gap: 4px; }
.pur-sum span, .pur-sum label { font-size: .85rem; color: var(--ink-2); }
.pur-sum b { font-size: 1.1rem; }
.pur-sum .pur-total b { font-size: 1.3rem; }
.pur-sum-read { margin: 0 20px 18px; }
.pur-sum-read > div { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
@media (max-width: 760px) { .pur-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-actions { gap: 14px; align-items: center; flex-wrap: wrap; }
/* ফোনে কেনা আর সাইজ/রং-এর সারি কার্ডের মতো, যাতে পাশে স্ক্রল করতে না হয় */
@media (max-width: 640px) {
  .var-table thead { display: none; }
  .var-table, .var-table tbody { display: block; width: 100%; }
  .var-table tr { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line-2); align-items: end; }
  .var-table td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; }
  .var-table td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--ink-2); margin-bottom: 3px; }
  .var-table .input { min-width: 0; width: 100%; }
  /* কেনা: পণ্য পুরো লাইনে, তারপর পরিমাণ · দাম · মোট · ✕ */
  .pur-table tr { grid-template-columns: 1fr 1fr auto auto; }
  .pur-table td:first-child { grid-column: 1 / -1; }
  .pur-table td[data-amount] { align-self: center; font-weight: 600; }
  .pur-table select.input { min-width: 0; }
  /* সাইজ/রং: সাইজ · রং, তারপর স্টক · দাম · সতর্ক · ✕ */
  .var-table:not(.pur-table) tr { grid-template-columns: 1fr 1fr 1fr auto; }
  .var-table:not(.pur-table) td:nth-of-type(1) { grid-column: 1 / 3; }
  .var-table:not(.pur-table) td:nth-of-type(2) { grid-column: 3 / 5; }
  .table-wrap { overflow-x: visible; }
}

/* ---- ই-কমার্স অর্ডার / দোকানে বিক্রি ---- */
.sale-channels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .sale-channels { grid-template-columns: 1fr; } }
.pick { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 12px; }
.pick:focus-within { border-color: var(--accent); }
.pick > svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.pick .input { border: 0; background: transparent; box-shadow: none; padding-left: 0; }
.pick .input:focus { outline: none; }
.pick-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 23, 42, .14); }
.pick-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.pick-list li.is-active, .pick-list li:hover { background: var(--accent-soft); }
.pick-list li.is-out { opacity: .65; }
.pick-list .pick-meta { flex: none; font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.pick-list .pick-none { cursor: default; color: var(--ink-2); }
.sale-table .input[data-qty], .sale-table .input[data-price] { width: 110px; margin-left: auto; }
.empty-rows { margin: 4px 0 0; }
.sale-sum { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sale-sum .cod-line b, .sale-sum .change-line b { font-size: 1.3rem; color: var(--accent); }
.sale-sum .pos-only:has(.pay-chips) { grid-column: 1 / -1; }
.label-like { font-size: .85rem; color: var(--ink-2); }
.pay-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-chip { position: relative; cursor: pointer; }
.pay-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pay-chip span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9rem; }
.pay-chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.pay-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.sale-profit, .sale-profit-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--line); }
.sale-profit span, .sale-profit-row > span { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); font-size: .9rem; }
.sale-profit svg, .sale-profit-row svg { width: 16px; height: 16px; }
.sale-profit b { font-size: 1.2rem; color: var(--ok); }
.sale-profit.neg b { color: var(--bad); }
.pur-sum-read .sale-profit-row { margin-top: 4px; grid-column: 1 / -1; }
.sale-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.sale-side { display: grid; gap: 18px; }
@media (max-width: 960px) { .sale-grid { grid-template-columns: 1fr; } }
.sale-edit { margin-top: 12px; }
.sale-edit summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9rem; }
.sale-edit form { margin-top: 10px; }
.sale-return { margin-top: 18px; }
.sale-return[data-suggest] { border-color: var(--warn); }
.return-rows { display: grid; gap: 10px; margin-bottom: 14px; }
.return-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.return-row .input { width: 110px; flex: none; }
.sale-log { list-style: none; margin: 0; padding: 4px 20px 16px; }
.sale-log li { display: grid; grid-template-columns: 170px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.sale-log li:last-child { border-bottom: 0; }
@media (max-width: 640px) { .sale-log li { grid-template-columns: 1fr; gap: 2px; } }
.chip-link-bad { border-color: var(--bad); color: var(--bad); }
.sale-item-line { white-space: normal; }
.btn.is-loading { opacity: .7; pointer-events: none; }
@media (max-width: 640px) {
  .sale-table .input[data-qty], .sale-table .input[data-price] { width: 100%; }
  .sale-sum { grid-template-columns: 1fr 1fr; }
  .head-actions { flex-wrap: wrap; }
}
.sale-totals { margin: 4px 20px 18px; padding: 14px 16px; border-radius: 12px; background: var(--paper); display: grid; gap: 6px; }
.sale-totals > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sale-totals > div > span { color: var(--ink-2); font-size: .92rem; }
.sale-totals .pur-total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.sale-totals .pur-total span { color: var(--ink); font-weight: 600; }
.sale-totals .pur-total b { font-size: 1.3rem; }
.sale-totals .sale-profit-row { margin-top: 6px; background: var(--surface); }
.book-when { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-link-warn { border-color: var(--warn); color: var(--warn); display: inline-flex; align-items: center; gap: 6px; }
.chip-link-warn svg { width: 15px; height: 15px; }
.chip-link-warn.is-active { background: var(--warn); border-color: var(--warn); color: #fff; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-2); background: var(--paper); }
.bulk-bar .btn { margin-left: auto; }
.sale-list .pick-col { width: 36px; }
.sale-list .pick-col input { width: 18px; height: 18px; }
@media (max-width: 640px) { .bulk-bar .btn { margin-left: 0; width: 100%; justify-content: center; } }
.cust-hist { display: grid; gap: 8px; justify-items: start; margin: -4px 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--paper); }
.cust-hist .hist-line b { font-weight: 600; }
.cust-hist .hist-line.is-risk b { color: var(--bad); }
.cust-hist .hist-risk { color: var(--bad); font-size: .9rem; font-weight: 600; }

/* ---- খরচ আর লাভ-ক্ষতি ---- */
.stock-warn { color: var(--warn); }
.month-pick .input { min-width: 170px; }
.exp-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.exp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.exp-grid .exp-title { grid-column: 1 / -1; }
@media (max-width: 760px) { .exp-grid { grid-template-columns: 1fr 1fr; } }
.pl-hero { display: grid; gap: 2px; padding: 20px 22px; border-radius: 18px; background: var(--ok-soft); color: var(--ok); margin-bottom: 14px; }
.pl-hero span { font-weight: 600; }
.pl-hero b { font-size: 2.2rem; line-height: 1.15; }
.pl-hero small { color: var(--ink-2); }
.pl-hero.is-loss { background: var(--bad-soft); color: var(--bad); }
.pl-notes { display: grid; gap: 6px; margin-bottom: 14px; }
.pl-notes p { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--paper); color: var(--ink-2); font-size: .92rem; }
.pl-notes p.warn { background: var(--warn-soft); color: var(--warn); }
.pl-notes svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 960px) { .pl-grid { grid-template-columns: 1fr; } }
.pl-sheet { margin: 0; padding: 6px 20px 18px; }
.pl-sheet > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.pl-sheet dt { color: var(--ink); }
.pl-sheet dd { margin: 0; font-weight: 600; white-space: nowrap; }
.pl-sheet .minus dt { color: var(--ink-2); padding-left: 12px; }
.pl-sheet .minus dd { color: var(--ink-2); font-weight: 500; }
.pl-sheet .sub { background: var(--paper); margin: 4px -10px; padding: 10px; border-radius: 10px; border: 0; }
.pl-sheet .sub dt, .pl-sheet .sub dd { font-weight: 700; }
.pl-sheet .total { border: 0; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px; }
.pl-sheet .total dt { font-weight: 700; font-size: 1.05rem; }
.pl-sheet .total dd { font-size: 1.4rem; color: var(--ok); }
.pl-sheet .total.is-loss dd { color: var(--bad); }
.pl-trend { padding: 0 12px 14px; }
.trend-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 10px; align-items: center; padding: 10px 8px; border-bottom: 1px solid var(--line-2); color: inherit; text-decoration: none; border-radius: 10px; }
.trend-row > :not(:first-child) { text-align: right; white-space: nowrap; }
.trend-head { font-size: .8rem; color: var(--ink-2); border-bottom: 1px solid var(--line); border-radius: 0; }
a.trend-row:hover { background: var(--paper); }
.trend-row.is-current { background: var(--accent-soft); }
.trend-bar { display: block; height: 4px; margin-top: 6px; width: var(--w); min-width: 2px; border-radius: 4px; background: var(--accent); opacity: .5; }
@media (max-width: 520px) { .trend-row { grid-template-columns: 1.2fr 1fr 1fr 1fr; font-size: .85rem; gap: 6px; } }
.csv-menu { position: relative; }
.csv-menu > summary { list-style: none; cursor: pointer; }
.csv-menu > summary::-webkit-details-marker { display: none; }
.csv-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(320px, 86vw); display: grid; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 23, 42, .14); }
.csv-pop p { margin: 0 0 4px; }
@media (max-width: 640px) { .csv-pop { left: 0; right: auto; } }
