@font-face {
  font-family: "Noto Sans Bengali MB";
  src: url("../fonts/bn400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Bengali MB";
  src: url("../fonts/bn600.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --ink: #0b2420;
  --ink-2: #123f36;
  --brand: #12855f;
  --brand-2: #0b6b4d;
  --brand-soft: #e8f7ef;
  --amber: #f0a63c;
  --amber-soft: #fdf3e2;
  --red: #cc4b3f;
  --red-soft: #fdeeec;
  --bg: #f3f8f5;
  --card: #ffffff;
  --line: #dde9e3;
  --muted: #688077;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 36, 32, 0.08);
  --font: "Noto Sans Bengali MB", "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  font-size: 15px;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 10px; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 12px; }
small, .small { font-size: 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.wrap-sm { max-width: 520px; margin: 0 auto; padding: 0 18px; }
.sr { position: absolute; left: -9999px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 10px 16px;
  background: var(--brand); color: #fff; font-weight: 600; cursor: pointer;
  transition: filter .15s, transform .05s; text-decoration: none;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: var(--brand-soft); color: var(--brand-2); border: 1px solid #bfe3d2; }
.btn.line { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.btn.amber { background: var(--amber); color: #3b2a10; }
.btn.danger { background: var(--red-soft); color: var(--red); border: 1px solid #f3cdc8; }
.btn.block { width: 100%; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.lg { padding: 13px 22px; font-size: 16px; border-radius: 14px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}

/* forms */
label.field { display: block; margin: 0 0 12px; }
label.field > span, .lbl { display: block; font-size: 12.5px; font-weight: 600; color: #3f5a51; margin-bottom: 5px; }
input, select, textarea {
  width: 100%; border: 1px solid #c9d9d1; border-radius: 11px;
  padding: 10px 12px; background: #fbfdfc; font-size: 14.5px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(18, 133, 95, .25); border-color: var(--brand); }
textarea { min-height: 70px; resize: vertical; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field-grid.three { grid-template-columns: repeat(3, 1fr); }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin: 6px 0 12px; }
.check input { width: 17px; height: 17px; padding: 0; }
.form-note { font-size: 12px; color: var(--muted); margin-top: -4px; }

/* cards & layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 14px; }
.card h2, .card h3 { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.pad { padding: 18px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap-row { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* badges & chips */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; background: #eef3f0; color: #48625a; white-space: nowrap;
}
.badge.ok { background: var(--brand-soft); color: var(--brand-2); }
.badge.warn { background: var(--amber-soft); color: #8a5a10; }
.badge.bad { background: var(--red-soft); color: var(--red); }
.badge.blue { background: #eaf2fd; color: #245d9e; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 12.5px; cursor: pointer;
}
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; text-transform: none; color: var(--muted); font-weight: 600; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 8px; border-bottom: 1px solid #edf3f0; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }

/* stat cards */
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; }
.stat .k { font-size: 11.5px; color: var(--muted); }
.stat .v { font-size: 21px; font-weight: 800; line-height: 1.4; }
.stat .v small { font-size: 12px; font-weight: 500; color: var(--muted); }

/* landing */
.market-head {
  position: sticky; top: 0; z-index: 30; background: rgba(243, 248, 245, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.market-head .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, var(--brand), var(--brand-2));
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; letter-spacing: .5px;
  box-shadow: 0 6px 14px rgba(18, 133, 95, .25);
}
.logo small { display: block; font-size: 9.5px; letter-spacing: .28em; color: var(--brand-2); font-weight: 700; }
.nav-links { display: flex; gap: 20px; margin-left: 18px; font-size: 13.5px; }
.nav-links a { color: #43645a; }
.head-cta { margin-left: auto; display: flex; gap: 8px; }

.hero { padding: 52px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: center; }
.kicker { font-size: 11.5px; letter-spacing: .22em; font-weight: 700; color: var(--brand-2); margin-bottom: 12px; }
.hero h1 { font-size: 42px; line-height: 1.28; letter-spacing: -.4px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 16.5px; color: #48645b; max-width: 520px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 14px; }
.hero-trust { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.hero-trust b { color: var(--ink); }

.phone {
  width: min(340px, 100%); margin: 0 auto; background: #0b2420; border-radius: 38px; padding: 12px;
  box-shadow: 0 30px 60px rgba(11, 36, 32, .22); position: relative;
}
.phone:before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 92px; height: 9px; border-radius: 9px; background: #081a17; }
.phone-screen { background: var(--bg); border-radius: 28px; overflow: hidden; padding: 30px 14px 16px; min-height: 520px; }
.mini-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mini-title { font-size: 13px; font-weight: 700; }
.mini-sub { font-size: 9.5px; color: var(--muted); }
.mini-stat { background: linear-gradient(135deg, #0d3a30, #12855f); color: #fff; border-radius: 14px; padding: 13px; margin-bottom: 10px; }
.mini-stat .k { font-size: 9.5px; opacity: .75; }
.mini-stat .v { font-size: 24px; font-weight: 800; }
.mini-stat .row { font-size: 9.5px; opacity: .8; justify-content: space-between; margin-top: 4px; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 10.5px; display: flex; justify-content: space-between; gap: 6px; margin-bottom: 7px; }
.mini-tab { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; background: #fff; border-top: 1px solid var(--line); margin: 12px -14px -16px; padding: 9px 8px; font-size: 8px; text-align: center; color: var(--muted); }
.mini-tab .on { color: var(--brand); font-weight: 700; }

.strip { background: #0c2b27; color: #cfe6da; padding: 16px 0; font-size: 13px; }
.strip .wrap { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.strip b { color: #fff; }

.section { padding: 54px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: 26px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { color: #4f6a61; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feature .ico { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 10px; }
.feature h3 { font-size: 15.5px; margin-bottom: 5px; }
.feature p { font-size: 13px; color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding-left: 54px; }
.step .n { position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 4px 0 4px; }
.step p { font-size: 13px; color: var(--muted); margin: 0; }

.pricing { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px; text-align: center; display: flex; flex-direction: column; }
.plan.best { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.plan.best:after { content: "সবচেয়ে জনপ্রিয়"; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 10px; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.plan .name { font-size: 13px; color: var(--muted); }
.plan .price { font-size: 25px; font-weight: 800; margin: 4px 0 2px; }
.plan .price small { font-size: 12px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 10px 0 4px; margin: 0; font-size: 12px; color: #4f6a61; text-align: left; }
.plan ul li { padding: 3px 0 3px 18px; position: relative; }
.plan ul li:before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.plan .btn { margin-top: auto; }
.industries { display: flex; flex-wrap: wrap; gap: 8px; }
.industries span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; }

.cta-band { background: linear-gradient(135deg, #0b2420, #0f5d49); color: #fff; padding: 40px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #cfe6da; margin: 0; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 13px 16px; margin-bottom: 9px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.faq details p { margin: 9px 0 2px; color: #4f6a61; font-size: 13.5px; }

.site-foot { padding: 30px 0 40px; font-size: 12.5px; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-foot .links { display: flex; gap: 16px; flex-wrap: wrap; }

/* auth pages */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-side { background: linear-gradient(160deg, #0b2420 0%, #0e5141 70%, #12855f 130%); color: #fff; padding: 48px 52px; display: flex; flex-direction: column; }
.auth-side .logo { color: #fff; }
.auth-side h1 { font-size: 34px; margin: 60px 0 14px; }
.auth-side p { color: #cfe6da; font-size: 15px; max-width: 440px; }
.auth-side ul { list-style: none; padding: 0; margin: 26px 0 0; }
.auth-side li { padding: 7px 0 7px 26px; position: relative; color: #e2f1e9; font-size: 14px; }
.auth-side li:before { content: "✓"; position: absolute; left: 0; color: #8fe3b8; font-weight: 800; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 36px 18px; }
.auth-card { width: min(460px, 100%); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #e7efe9; border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.auth-tabs button { border: 0; background: transparent; padding: 9px; border-radius: 9px; font-weight: 600; font-size: 14px; cursor: pointer; color: #4f6a61; }
.auth-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(11,36,32,.08); }
.msg { padding: 10px 12px; border-radius: 10px; font-size: 13px; margin: 10px 0; display: none; }
.msg.bad { display: block; background: var(--red-soft); color: var(--red); border: 1px solid #f3cdc8; }
.msg.good { display: block; background: var(--brand-soft); color: var(--brand-2); border: 1px solid #bfe3d2; }
.msg.warn { display: block; background: var(--amber-soft); color: #8a5a10; border: 1px solid #f0d9ae; }

/* app shell */
.app-top {
  position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line);
  padding: 8px 16px; display: flex; align-items: center; gap: 10px;
}
.app-top .logo { font-size: 15px; gap: 7px; }
.app-top .logo .mark { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.biz-select { max-width: 210px; border-radius: 9px; padding: 6px 8px; font-size: 12.5px; background: #f7fbf9; }
.sync-chip { font-size: 11px; color: var(--muted); background: #f2f7f4; border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.sync-chip.pending { background: var(--amber-soft); color: #8a5a10; border-color: #f0d9ae; }
.sync-chip.off { background: var(--red-soft); color: var(--red); border-color: #f3cdc8; }
.app-body { display: grid; grid-template-columns: 208px 1fr; gap: 18px; max-width: 1200px; margin: 0 auto; padding: 16px; }
.side-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; height: fit-content; position: sticky; top: 64px; }
.side-nav button {
  display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent;
  padding: 9px 11px; border-radius: 10px; font-size: 13.5px; color: #456; cursor: pointer; text-align: left;
}
.side-nav button.on { background: var(--brand-soft); color: var(--brand-2); font-weight: 700; }
.side-nav .sep { height: 1px; background: var(--line); margin: 7px 4px; }
.app-main { min-width: 0; padding-bottom: 80px; }
.app-view { display: none; }
.app-view.on { display: block; animation: fade .18s ease; }
@keyframes fade { from { opacity: .3; } to { opacity: 1; } }
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.view-head h1 { font-size: 22px; margin: 0; }
.mobile-nav { display: none; }

.banner { border-radius: 13px; padding: 11px 14px; font-size: 13px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banner.warn { background: var(--amber-soft); border: 1px solid #f0d9ae; color: #7a4f0d; }
.banner.bad { background: var(--red-soft); border: 1px solid #f3cdc8; color: #96362c; }
.banner.info { background: #eaf2fd; border: 1px solid #cfe0f7; color: #245d9e; }

.pos-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: start; }
.pos-search { display: flex; gap: 8px; margin-bottom: 12px; }
.pos-list { max-height: 62vh; overflow: auto; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.pos-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #eef4f1; cursor: pointer; }
.pos-item:last-child { border-bottom: 0; }
.pos-item:hover { background: #f7fbf9; }
.pos-item .nm { flex: 1; min-width: 0; }
.pos-item .nm b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-item .nm span { font-size: 11px; color: var(--muted); }
.pos-item .pr { font-weight: 700; color: var(--brand-2); font-size: 13px; white-space: nowrap; }
.pos-item .add { width: 30px; height: 30px; border-radius: 9px; border: 1px solid #bfe3d2; background: var(--brand-soft); color: var(--brand-2); font-weight: 700; cursor: pointer; }

.bill { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: sticky; top: 64px; }
.bill-items { max-height: 34vh; overflow: auto; margin: 6px -4px 10px; }
.bill-row { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px dashed #e8f0ec; font-size: 13px; }
.bill-row .bn { flex: 1; min-width: 0; }
.bill-row .bn b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bill-row .bn span { font-size: 10.5px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; line-height: 1; }
.qty b { min-width: 22px; text-align: center; font-size: 12.5px; }
.bill-row .amt { width: 64px; text-align: right; font-weight: 600; font-size: 12.5px; }
.bill-empty { padding: 26px 8px; text-align: center; color: var(--muted); font-size: 13px; }
.bill-totals { border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; }
.bill-totals .r { display: flex; justify-content: space-between; padding: 3px 0; }
.bill-totals .r.big { font-size: 17px; font-weight: 800; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }
.bill-actions { display: flex; gap: 8px; margin-top: 10px; }
.bill-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; margin-top: 8px; }
.bill-fields label.field { margin-bottom: 8px; }
.bill-fields input, .bill-fields select { padding: 7px 9px; font-size: 12.5px; border-radius: 9px; }
.bill-method { display: flex; gap: 6px; margin: 4px 0 8px; }
.bill-method button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 6px; font-size: 12px; cursor: pointer; }
.bill-method button.on { background: var(--brand-soft); border-color: #bfe3d2; color: var(--brand-2); font-weight: 700; }

.list-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid #eef4f1; }
.list-row:last-child { border-bottom: 0; }
.list-row .main { flex: 1; min-width: 0; }
.list-row .main b { display: block; font-size: 13.5px; font-weight: 600; }
.list-row .main span { font-size: 11.5px; color: var(--muted); }
.list-row .end { text-align: right; white-space: nowrap; }
.list-row .end b { font-size: 13.5px; }
.list-row .end span { display: block; font-size: 11px; color: var(--muted); }
.empty { padding: 34px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar input[type="search"], .toolbar input[type="text"] { flex: 1; min-width: 140px; max-width: 320px; }
.toolbar select { max-width: 180px; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 24, 21, .55); z-index: 80; display: none; align-items: flex-end; justify-content: center; padding: 0; }
.modal-backdrop.on { display: flex; }
.modal { background: #fff; width: min(560px, 100%); max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px; animation: up .2s ease; }
@keyframes up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal h2 { font-size: 18px; margin: 0; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.modal .foot { display: flex; gap: 8px; margin-top: 16px; }
.modal .foot .btn { flex: 1; }
@media (min-width: 700px) {
  .modal-backdrop { align-items: center; padding: 24px; }
  .modal { border-radius: 18px; }
}

.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: #0b2420; color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 13px; z-index: 120; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; text-align: center; }
.toast.on { opacity: 1; }

/* voucher */
.voucher-paper { background: #fff; border: 1px dashed #b9cec3; border-radius: 10px; padding: 16px; font-size: 12.5px; }
.voucher-paper h3 { margin: 0 0 2px; font-size: 16px; }
.voucher-paper .meta { font-size: 10.5px; color: var(--muted); }
.voucher-lines { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 11.5px; }
.voucher-lines td { padding: 4px 2px; border-bottom: 1px dotted #d8e5de; }
.voucher-lines td.num { text-align: right; white-space: nowrap; }
.voucher-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; padding-top: 7px; }
.voucher-foot { font-size: 9.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.voucher-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* owner dashboard */
.dash-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.dash-top .wrap { display: flex; align-items: center; gap: 12px; height: 62px; }
.dash-body { max-width: 1040px; margin: 0 auto; padding: 22px 18px 60px; }
.biz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.biz-card + .biz-card { margin-top: 12px; }
.biz-card .row { align-items: flex-start; }
.owner-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.owner-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.plan-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0; }
.plan-pick { border: 1px solid var(--line); border-radius: 11px; padding: 9px 6px; text-align: center; cursor: pointer; background: #fff; }
.plan-pick.on { border-color: var(--brand); background: var(--brand-soft); }
.plan-pick b { display: block; font-size: 15px; color: var(--brand-2); }
.plan-pick span { font-size: 10.5px; color: var(--muted); }
.pay-box { background: var(--amber-soft); border: 1px solid #f0d9ae; border-radius: 12px; padding: 12px; font-size: 13px; }
.pay-box .no { font-weight: 800; font-size: 16px; letter-spacing: .4px; }
.copy-chip { display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 1px solid #e3cfab; border-radius: 8px; padding: 4px 8px; cursor: pointer; font-size: 13px; margin: 4px 6px 0 0; }
.ref-code { font-size: 22px; font-weight: 800; letter-spacing: 2px; color: var(--brand-2); }
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs-line button { border: 0; background: transparent; padding: 9px 12px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs-line button.on { color: var(--brand-2); border-bottom-color: var(--brand); font-weight: 700; }

/* admin */
.admin-body { max-width: 1160px; margin: 0 auto; padding: 20px 16px 60px; }
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.admin-tabs button { border: 0; background: transparent; padding: 9px 13px; border-bottom: 2px solid transparent; cursor: pointer; font-size: 13px; color: var(--muted); white-space: nowrap; }
.admin-tabs button.on { color: var(--brand-2); border-bottom-color: var(--brand); font-weight: 700; }
.admin-pane { display: none; }
.admin-pane.on { display: block; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; }

/* receipt */
.receipt-wrap { max-width: 640px; margin: 30px auto; padding: 0 16px 40px; }
.receipt { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.receipt .head { display: flex; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 14px; }
.receipt h1 { font-size: 20px; margin: 0; }
.receipt .no { font-size: 11px; color: var(--muted); }
.receipt .line { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dotted #dbe8e1; font-size: 13.5px; }
.receipt .total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; padding-top: 12px; }

/* print */
.print-only { display: none; }
@media print {
  body { background: #fff; }
  body.printing > :not(.print-area) { display: none !important; }
  .print-area { display: block !important; }
  .print-only { display: block; }
  .app-top, .side-nav, .mobile-nav, .app-body > .app-main > *:not(.print-area) { display: none !important; }
  @page { margin: 12mm; }
  .receipt, .voucher-paper { border: 0; }
}

/* responsiveness */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 32px; }
  .phone { width: min(300px, 92%); }
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: repeat(3, 1fr); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .app-body { grid-template-columns: 1fr; padding: 12px 12px 88px; }
  .side-nav { display: none; }
  .mobile-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--line); z-index: 50; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-nav button { border: 0; background: transparent; font-size: 10.5px; color: var(--muted); padding: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
  .mobile-nav button .ic { font-size: 17px; line-height: 1; }
  .mobile-nav button.on { color: var(--brand-2); font-weight: 700; }
  .pos-grid { grid-template-columns: 1fr; }
  .bill { position: static; }
  .pos-list { max-height: 40vh; }
  .owner-stats { grid-template-columns: 1fr 1fr; }
  .field-grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  h1 { font-size: 25px; }
  .hero h1 { font-size: 27px; }
  .feature-grid, .steps, .grid.two, .grid.three { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr 1fr; }
  .plan.best:after { font-size: 9px; }
  .owner-stats { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .head-cta .btn span { display: none; }
  .field-grid { grid-template-columns: 1fr; }
  .bill-fields { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 14px; }
  .card { padding: 14px; }
  .plan-row { grid-template-columns: 1fr 1fr 1fr; }
}
