/* ==========================================================================
   Dukauza design system
   Palette: forest green (trust, money), lime (energy), warm paper.
   One stylesheet, no build step - cached by the browser and the PWA.
   ========================================================================== */

:root {
    --ink: #0b1d16;
    --forest-900: #08251b;
    --forest-800: #0d3326;
    --forest-700: #114634;
    --green-600: #157a55;
    --green-500: #1a9468;
    --green-100: #dcf3e8;
    --green-50: #eefaf3;
    --lime: #c9f26b;
    --lime-soft: #e8fbc0;
    --cream: #f6f4ec;
    --paper: #ffffff;
    --line: #e5e2d6;
    --line-strong: #d3cfbf;
    --muted: #68766e;
    --muted-2: #8b978f;
    --amber: #b5760b;
    --amber-soft: #fdf3d7;
    --red: #b23a22;
    --red-soft: #fdeae4;
    --blue: #1e5f8a;
    --blue-soft: #e7f1f8;
    --purple: #6d4aa8;
    --purple-soft: #f0eafa;
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --shadow-xs: 0 1px 2px rgba(11, 29, 22, .06);
    --shadow-sm: 0 2px 8px rgba(11, 29, 22, .06);
    --shadow: 0 12px 30px -18px rgba(11, 29, 22, .45), 0 2px 6px rgba(11, 29, 22, .05);
    --shadow-lg: 0 30px 70px -40px rgba(11, 29, 22, .55);
    --sidebar: 262px;
    --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; vertical-align: middle; }
/* Inline icons default to text size; component rules below override. */
svg.icon { width: 16px; height: 16px; flex: 0 0 auto; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--forest-800); }
h1, h2, h3, h4 { margin: 0 0 .35em; line-height: 1.18; letter-spacing: -.02em; font-weight: 700; color: var(--forest-900); }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
small { font-size: .8rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }
ul, ol { padding-left: 1.2rem; }
code, pre, .mono { font-family: var(--mono); font-size: .85em; }
pre { background: var(--forest-900); color: #d8f5e6; padding: 1rem; border-radius: var(--radius-sm); overflow: auto; }
::selection { background: var(--lime); color: var(--forest-900); }

:focus-visible { outline: 3px solid rgba(26, 148, 104, .35); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout shell ---------- */
.app-shell { min-height: 100vh; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    background: radial-gradient(120% 80% at 0% 0%, #144f3b 0%, var(--forest-900) 55%, #061c14 100%);
    color: #d9e9e1;
    display: flex;
    flex-direction: column;
    padding: 18px 14px 16px;
    z-index: 40;
    transition: transform .25s ease;
    overflow-y: auto;
    scrollbar-width: thin;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 4px; }

.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 16px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(145deg, var(--lime), #9fdc43);
    color: var(--forest-900); display: grid; place-items: center;
    font-weight: 800; font-size: 19px; letter-spacing: -.06em;
    box-shadow: 0 6px 16px -6px rgba(201, 242, 107, .7);
    flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.brand-sub { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #9dc2b1; }

.sidebar-business {
    margin: 2px 4px 14px;
    padding: 10px 12px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-sm);
    display: flex; gap: 10px; align-items: center;
}
.sidebar-business .avatar { background: rgba(201, 242, 107, .16); color: var(--lime); }
.sidebar-business strong { display: block; color: #fff; font-size: 13px; line-height: 1.25; }
.sidebar-business span { font-size: 11px; color: #9dc2b1; }

.nav-scroll { flex: 1; }
.nav-group { margin-bottom: 16px; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .15em; color: #7fa38f; padding: 0 10px 7px; font-weight: 600; }
.nav-link {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 11px; border-radius: 9px;
    color: #cfe3d8; font-size: 13.5px; font-weight: 500;
    margin-bottom: 2px; position: relative;
    transition: background .15s ease, color .15s ease;
}
.nav-link .icon { width: 17px; height: 17px; opacity: .8; }
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-link.is-active { background: var(--lime); color: var(--forest-900); font-weight: 650; box-shadow: 0 8px 18px -10px rgba(201, 242, 107, .6); }
.nav-link.is-active .icon { opacity: 1; }
.nav-link .lock { margin-left: auto; width: 13px; height: 13px; opacity: .55; }
.nav-badge { margin-left: auto; font-size: 10px; font-weight: 700; background: rgba(255,255,255,.13); padding: 1px 7px; border-radius: 20px; }
.nav-link.is-active .nav-badge { background: rgba(11, 29, 22, .12); }

.sidebar-foot { padding: 12px 6px 0; border-top: 1px solid rgba(255,255,255,.08); margin-top: 8px; }
.plan-mini { background: rgba(255,255,255,.06); border-radius: 11px; padding: 11px 12px; font-size: 12px; color: #b9d3c6; }
.plan-mini strong { color: #fff; display: block; font-size: 12.5px; }
.plan-mini .meter { height: 5px; border-radius: 4px; background: rgba(255,255,255,.12); margin: 8px 0 6px; overflow: hidden; }
.plan-mini .meter span { display: block; height: 100%; background: var(--lime); border-radius: 4px; }
.plan-mini a { color: var(--lime); font-weight: 600; font-size: 12px; }

.main { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    position: sticky; top: 0; z-index: 30;
    height: 62px;
    display: flex; align-items: center; gap: 14px;
    padding: 0 26px;
    background: rgba(246, 244, 236, .88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(211, 207, 191, .7);
}
.topbar-title { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.topbar-title strong { color: var(--ink); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.icon-btn {
    width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center;
    background: var(--paper); border: 1px solid var(--line); color: var(--muted);
    cursor: pointer; transition: .15s;
}
.icon-btn:hover { color: var(--forest-800); border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.icon-btn .icon { width: 17px; height: 17px; }

.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; border-radius: 10px; border: 1px solid transparent; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: var(--paper); border-color: var(--line); }
.user-menu .avatar { width: 30px; height: 30px; font-size: 11.5px; }
.user-menu strong { font-size: 12.5px; font-weight: 600; line-height: 1.1; display: block; }
.user-menu small { font-size: 10.5px; color: var(--muted); }
.user-menu .panel {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 6px; z-index: 50;
}
.user-menu .panel a, .user-menu .panel button { display: flex; width: 100%; gap: 9px; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--ink); background: none; border: 0; text-align: left; cursor: pointer; }
.user-menu .panel a:hover, .user-menu .panel button:hover { background: var(--green-50); }
.user-menu .panel .sep { height: 1px; background: var(--line); margin: 5px 4px; }

.content { padding: 24px 26px 46px; width: 100%; max-width: 1360px; margin: 0 auto; }
.content-narrow { max-width: 880px; }

.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .grow { flex: 1; min-width: 220px; }
.page-head h1 { font-size: 1.55rem; margin-bottom: 3px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.trial-banner {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: linear-gradient(110deg, var(--forest-900), var(--forest-700) 65%, #1c6a4e);
    color: #dff3e7; border-radius: var(--radius); padding: 13px 16px; margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.trial-banner .spark { width: 32px; height: 32px; border-radius: 9px; background: rgba(201,242,107,.15); display: grid; place-items: center; color: var(--lime); flex: 0 0 auto; }
.trial-banner p { margin: 0; font-size: 13px; }
.trial-banner strong { color: var(--lime); }
.trial-banner .btn { margin-left: auto; }
.trial-banner.warn { background: linear-gradient(110deg, #3a2a06, #6b4a09); }
.trial-banner.warn .spark { color: #ffdf8a; background: rgba(255,223,138,.14); }

/* ---------- Typography helpers ---------- */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green-600); margin-bottom: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11px; }
.strong { font-weight: 700; }
.pos-num, .tabular { font-variant-numeric: tabular-nums; }
.text-green { color: var(--green-600); }
.text-red { color: var(--red); }
.text-amber { color: var(--amber); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 14px; } .mt-3 { margin-top: 22px; }
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; } .wrap { flex-wrap: wrap; } .gap-1 { gap: 8px; } .gap-2 { gap: 14px; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 38px; padding: 8px 15px;
    border-radius: 10px; border: 1px solid transparent;
    font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--forest-800); color: #fff; box-shadow: 0 8px 18px -12px rgba(13, 51, 38, .9); }
.btn-primary:hover { background: var(--forest-700); color: #fff; }
.btn-accent { background: var(--lime); color: var(--forest-900); font-weight: 700; box-shadow: 0 10px 22px -14px rgba(159, 220, 67, .9); }
.btn-accent:hover { background: #d8f78a; color: var(--forest-900); }
.btn-outline { background: var(--paper); border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--green-500); color: var(--green-600); background: var(--green-50); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(11,29,22,.05); color: var(--ink); }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: #f3cfc6; }
.btn-danger:hover { background: #fbdcd3; color: var(--red); }
.btn-sm { min-height: 31px; padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.link-arrow { font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.link-arrow .icon { width: 14px; height: 14px; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.card-pad { padding: 18px 20px; }
.card-head { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 14.5px; }
.card-head .grow { flex: 1; }
.card-body { padding: 16px 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line); background: #fbfaf5; border-radius: 0 0 var(--radius) var(--radius); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-sidebar { grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); }
.grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }

.stat { position: relative; padding: 16px 18px; overflow: hidden; }
.stat .label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.stat .value { font-size: 1.62rem; font-weight: 750; letter-spacing: -.03em; color: var(--forest-900); margin: 5px 0 2px; font-variant-numeric: tabular-nums; }
.stat .meta { font-size: 12px; color: var(--muted); }
.stat .stat-icon { position: absolute; top: 15px; right: 15px; width: 33px; height: 33px; border-radius: 10px; display: grid; place-items: center; background: var(--green-50); color: var(--green-600); }
.stat .stat-icon .icon { width: 17px; height: 17px; }
.stat.is-accent { background: linear-gradient(135deg, var(--forest-900), var(--forest-700)); color: #fff; border-color: transparent; }
.stat.is-accent .label, .stat.is-accent .meta { color: #a9cbbb; }
.stat.is-accent .value { color: #fff; }
.stat.is-accent .stat-icon { background: rgba(201,242,107,.14); color: var(--lime); }
.stat .trend { font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 3px; }
.trend.up { color: var(--green-600); } .trend.down { color: var(--red); }
.stat.is-accent .trend.up { color: var(--lime); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; font-weight: 650; margin-bottom: 5px; color: var(--forest-900); }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.field .error { font-size: 12px; color: var(--red); margin-top: 4px; }
.input, .select, .textarea {
    width: 100%; min-height: 40px; padding: 9px 11px;
    border: 1px solid var(--line-strong); border-radius: 9px;
    background: #fff; color: var(--ink); font-family: inherit; font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(26,148,104,.13); }
.input.is-error, .select.is-error { border-color: var(--red); }

/* Password fields get a Show/Hide control from app.js */
.pw { position: relative; display: block; }
.pw .input.has-pw-toggle { padding-right: 60px; }
.pw-toggle {
    position: absolute; top: 50%; right: 5px; transform: translateY(-50%);
    border: 0; background: transparent; border-radius: 7px;
    padding: 5px 7px; font: inherit; font-size: 11.5px; font-weight: 700;
    color: var(--muted); cursor: pointer; line-height: 1;
}
.pw-toggle:hover { color: var(--forest-800); background: #f1f0e9; }
.pw-toggle:focus-visible { outline: 0; color: var(--forest-800); box-shadow: 0 0 0 3px rgba(26,148,104,.18); }

/* File pickers, e.g. the product import */
.input[type="file"] { padding: 6px 8px; font-size: 13px; cursor: pointer; }
.input[type="file"]::file-selector-button {
    margin-right: 10px; padding: 6px 11px;
    border: 1px solid var(--line-strong); border-radius: 7px;
    background: #f7f6f1; color: var(--forest-900);
    font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer;
}
.input[type="file"]::file-selector-button:hover { background: #efede4; }
.textarea { min-height: 92px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2368766e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: 9px 0 0 9px; }
.input-group .btn { border-radius: 0 9px 9px 0; min-height: 40px; }
.input-prefix { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; overflow: hidden; }
.input-prefix span { padding: 0 10px; color: var(--muted); font-size: 12.5px; background: #f7f6f1; align-self: stretch; display: flex; align-items: center; border-right: 1px solid var(--line); }
.input-prefix input { border: 0; min-height: 38px; padding: 8px 10px; flex: 1; font: inherit; width: 100%; }
.input-prefix input:focus { outline: 0; }

.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--green-600); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 20px; background: #d8d5c8; position: relative; cursor: pointer; transition: background .18s; flex: 0 0 auto; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked { background: var(--green-600); }
.switch input:checked::after { transform: translateX(16px); }

.segmented { display: inline-flex; background: #efede4; border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button, .segmented a { border: 0; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.segmented .is-active { background: #fff; color: var(--forest-900); box-shadow: var(--shadow-xs); }

.filter-bar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar .field { min-width: 150px; }
.filter-bar .field.grow { flex: 1; min-width: 200px; }
.search-box { position: relative; flex: 1; min-width: 200px; }

/* Live filter: the list stays put and dims while the matching rows arrive. */
.is-loading { opacity: .55; }
[data-live-region] { transition: opacity .12s ease; }
.search-box .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted-2); }
.search-box .input { padding-left: 34px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
    color: var(--muted); font-weight: 700; padding: 10px 12px;
    border-bottom: 1px solid var(--line); white-space: nowrap; background: #fbfaf5;
}
.table td { padding: 11px 12px; border-bottom: 1px solid #efede4; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfbf7; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions a { font-size: 12.5px; font-weight: 600; }
.table .actions form { display: inline; }
.link-danger {
    background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
    font: inherit; font-size: 12.5px; font-weight: 600; color: var(--red);
}
.link-danger:hover { text-decoration: underline; }
.table-compact td, .table-compact th { padding: 8px 10px; }
.row-main { font-weight: 600; color: var(--forest-900); }
.row-sub { font-size: 11.5px; color: var(--muted); }
.table tfoot td { font-weight: 700; border-top: 2px solid var(--line-strong); background: #fbfaf5; }

.avatar { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--green-100); color: var(--forest-700); font-weight: 700; font-size: 12.5px; flex: 0 0 auto; }
.avatar.round { border-radius: 50%; }
.cell-person { display: flex; align-items: center; gap: 9px; }
.cell-person strong { display: block; font-size: 13.5px; line-height: 1.2; }

/* ---------- Badges & alerts ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .01em; background: #efede4; color: var(--muted); white-space: nowrap; }
.badge-green { background: var(--green-100); color: #0e6a49; }
.badge-lime { background: var(--lime-soft); color: #4e6b0f; }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-purple { background: var(--purple-soft); color: var(--purple); }
.badge-dark { background: var(--forest-800); color: var(--lime); }
.badge-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; border: 1px solid transparent; }
.alert .icon { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.alert-success { background: var(--green-50); border-color: #c9ebda; color: #125c40; }
.alert-error { background: var(--red-soft); border-color: #f5cec4; color: #8f2c18; }
.alert-warning { background: var(--amber-soft); border-color: #f2dfa7; color: #7a5008; }
.alert-info { background: var(--blue-soft); border-color: #cfe3f0; color: #174f73; }

/* ---------- Empty state, pagination ---------- */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .empty-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--green-50); color: var(--green-600); display: grid; place-items: center; margin: 0 auto 12px; }
.empty .empty-icon .icon { width: 24px; height: 24px; }
.empty h3 { font-size: 15px; margin-bottom: 4px; }
.empty p { font-size: 13px; max-width: 360px; margin: 0 auto 14px; }

.pagination { display: flex; align-items: center; gap: 5px; justify-content: space-between; flex-wrap: wrap; padding: 12px 2px 0; font-size: 12.5px; color: var(--muted); }
.pagination .pages { display: flex; gap: 4px; }
.pagination a, .pagination span.page { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12.5px; padding: 0 7px; }
.pagination .is-current { background: var(--forest-800); border-color: var(--forest-800); color: #fff; font-weight: 700; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--forest-900); border-bottom-color: var(--green-600); }

/* ---------- Dashboard specifics ---------- */
.chart-bars { display: flex; align-items: flex-end; gap: 7px; height: 132px; padding-top: 10px; }
.chart-bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; height: 100%; }
.chart-bars .bar span { width: 100%; max-width: 26px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--green-500), #0f5c41); min-height: 2px; transition: opacity .15s; }
.chart-bars .bar:hover span { opacity: .75; }
.chart-bars .bar em { font-size: 9.5px; color: var(--muted-2); font-style: normal; }
.chart-bars .bar.today span { background: linear-gradient(180deg, var(--lime), #86c22e); }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0eee6; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list .grow { flex: 1; min-width: 0; }
.mini-list strong { font-size: 13px; display: block; line-height: 1.25; }
.mini-list small { color: var(--muted); font-size: 11.5px; }
.mini-list .amount { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 13px; }
.checklist .tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: 0 0 auto; color: var(--muted-2); }
.checklist .tick .icon { width: 12px; height: 12px; }
.checklist li.done .tick { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.checklist li.done span.label { color: var(--muted); text-decoration: line-through; }

.progress { height: 7px; border-radius: 6px; background: #eae7dc; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-500), var(--lime)); border-radius: 6px; }

/* ---------- POS ---------- */
.pos-body { background: #eef0e9; }
.pos-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--forest-900); color: #fff; position: sticky; top: 0; z-index: 20; }
.pos-top .brand-mark { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; }
.pos-top .shop { font-weight: 700; font-size: 14px; line-height: 1.15; }
.pos-top .shop small { display: block; font-weight: 400; font-size: 10.5px; color: #9dc2b1; }
.pos-top .top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pos-top .btn-outline { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.pos-top .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.pos-top .clock { font-family: var(--mono); font-size: 12px; color: #9dc2b1; }
.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 0; min-height: calc(100vh - 56px); }
.pos-catalog { padding: 14px 16px 20px; min-width: 0; }
.pos-search-row { display: flex; gap: 9px; margin-bottom: 12px; }
.pos-search { flex: 1; position: relative; }
.pos-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted-2); }
.pos-search input { width: 100%; min-height: 46px; padding: 10px 12px 10px 38px; border-radius: 11px; border: 1px solid var(--line-strong); font-size: 15px; background: #fff; }
.pos-search input:focus { outline: 0; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(26,148,104,.13); }
.pos-cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.pos-cats::-webkit-scrollbar { display: none; }
.pos-cats button { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 6px 13px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; cursor: pointer; }
.pos-cats button.is-active { background: var(--forest-800); border-color: var(--forest-800); color: #fff; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 9px; }
.pos-tile {
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 11px 9px;
    text-align: left; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 3px;
    min-height: 92px; transition: .12s; position: relative; overflow: hidden;
}
.pos-tile:hover { border-color: var(--green-500); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.pos-tile:active { transform: scale(.985); }
.pos-tile .name { font-weight: 650; font-size: 12.8px; line-height: 1.25; color: var(--forest-900); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pos-tile .price { font-weight: 800; font-size: 13.5px; color: var(--green-600); margin-top: auto; font-variant-numeric: tabular-nums; }
.pos-tile .stock { font-size: 10px; color: var(--muted-2); }
.pos-tile .stock.low { color: var(--red); font-weight: 700; }
.pos-tile .cat-dot { position: absolute; top: 9px; right: 9px; width: 6px; height: 6px; border-radius: 50%; }
.pos-tile.out { opacity: .55; }

.pos-cart { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: calc(100vh - 56px); position: sticky; top: 56px; max-height: calc(100vh - 56px); }
.cart-head { padding: 12px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.cart-head strong { font-size: 14px; }
.cart-head .badge { margin-left: auto; }
.cart-customer { padding: 10px 15px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.cart-customer select { flex: 1; min-height: 34px; padding: 5px 26px 5px 9px; font-size: 12.5px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; }
.cart-lines { flex: 1; overflow-y: auto; padding: 4px 10px; }
.cart-empty { text-align: center; color: var(--muted); padding: 44px 16px; font-size: 13px; }
.cart-empty .icon { width: 34px; height: 34px; color: var(--line-strong); margin-bottom: 8px; }
.cart-line { display: flex; gap: 9px; padding: 9px 5px; border-bottom: 1px solid #f1efe7; align-items: center; }
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .info strong { display: block; font-size: 12.8px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-line .info small { font-size: 11px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 25px; height: 27px; border: 0; background: #f7f6f1; font: inherit; font-size: 15px; line-height: 1; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--green-50); color: var(--green-600); }
.qty input { width: 38px; height: 27px; border: 0; text-align: center; font: inherit; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.qty input:focus { outline: 0; background: var(--green-50); }
.cart-line .line-total { font-weight: 700; font-size: 12.5px; min-width: 62px; text-align: right; font-variant-numeric: tabular-nums; }
.cart-line .remove { border: 0; background: none; color: var(--muted-2); cursor: pointer; padding: 2px; }
.cart-line .remove:hover { color: var(--red); }
.cart-line .remove .icon { width: 14px; height: 14px; }

.cart-summary { border-top: 1px solid var(--line); padding: 11px 15px 13px; background: #fbfaf5; }
.sum-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 2px 0; }
.sum-row.total { font-size: 19px; font-weight: 800; color: var(--forest-900); padding-top: 7px; margin-top: 5px; border-top: 1px dashed var(--line-strong); font-variant-numeric: tabular-nums; }
.cart-pay { padding: 11px 15px 14px; border-top: 1px solid var(--line); }
.pay-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 9px; }
.pay-methods button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 2px; font: inherit; font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pay-methods button .icon { width: 14px; height: 14px; }
.pay-methods button.is-active { border-color: var(--green-600); background: var(--green-50); color: var(--green-600); }
.cart-pay .tender-row { display: flex; gap: 7px; margin-bottom: 8px; }
.cart-pay .tender-row .input-prefix { flex: 1; }
.cart-pay .change { font-size: 11.5px; color: var(--green-600); font-weight: 700; margin-bottom: 7px; }
.btn-charge { width: 100%; min-height: 46px; font-size: 14.5px; font-weight: 800; border-radius: 11px; }
.pos-hint { font-size: 10.5px; color: var(--muted-2); text-align: center; margin-top: 7px; }
.pos-offline { background: var(--amber-soft); color: #7a5008; font-size: 11.5px; padding: 6px 15px; border-bottom: 1px solid #f0dca0; display: none; }
.pos-offline.show { display: block; }

/* Receipt */
.receipt-paper { background: #fff; max-width: 320px; margin: 0 auto; padding: 22px 18px; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: #111; }
.receipt-paper.center { text-align: center; }
.receipt-paper h1 { font-family: var(--font); font-size: 18px; margin-bottom: 2px; letter-spacing: -.02em; }
.receipt-paper .rc-meta { color: #555; font-size: 10.5px; }
.receipt-paper .rule { border-top: 1px dashed #999; margin: 9px 0; }
.receipt-paper table { width: 100%; border-collapse: collapse; font-size: 10.8px; }
.receipt-paper th { text-align: left; font-weight: 700; padding: 3px 0; border-bottom: 1px solid #999; }
.receipt-paper td { padding: 2px 0; vertical-align: top; }
.receipt-paper .r { text-align: right; }
.receipt-paper .total { font-size: 15px; font-weight: 800; }
.receipt-paper .thanks { margin-top: 10px; font-size: 10.5px; }
.receipt-paper .barcode { letter-spacing: 2px; font-size: 10px; }

/* ---------- Public landing ---------- */
.public { background: #fbfaf4; }

/* Contact strip that sits directly above the sticky navigation */
.public-topbar { background: radial-gradient(120% 200% at 0% 0%, var(--forest-800) 0%, var(--forest-900) 62%); color: #cfe6da; font-size: 12px; }
.public-topbar-inner { max-width: 1180px; margin: 0 auto; padding: 7px 24px; display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; }
.ptb-group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ptb-group.ptb-end { margin-left: auto; }
.ptb-item { display: inline-flex; align-items: center; gap: 6px; color: #cfe6da; text-decoration: none; font-weight: 550; white-space: nowrap; }
.ptb-item .icon { width: 13px; height: 13px; color: var(--lime); flex: 0 0 auto; }
.ptb-item:hover { color: #fff; }
.ptb-wa { display: inline-flex; align-items: center; gap: 6px; background: var(--lime); color: var(--forest-900); border-radius: 20px; padding: 3px 10px 3px 8px; font-size: 11.5px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.ptb-wa svg { width: 13px; height: 13px; flex: 0 0 auto; }
.ptb-wa:hover { background: #dcf99a; color: var(--forest-900); }

/* Sticky navigation: the contact strip scrolls away, the bar stays */
.public-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 244, .93); -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .18s ease, box-shadow .18s ease; }
.public-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 16px 30px -26px rgba(11, 29, 22, .7); }
.public-nav { max-width: 1180px; margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; gap: 22px; }
.public-nav .brand { padding: 0; color: var(--forest-900); }
.public-nav .brand-sub { color: var(--muted); }
.public-nav .links { display: flex; gap: 20px; margin-left: auto; font-size: 13.5px; font-weight: 550; }
.public-nav .links a { color: var(--muted); }
.public-nav .links a:hover { color: var(--forest-900); }
.public-nav .nav-actions { display: flex; align-items: center; gap: 8px; }

/* Anchors must clear the sticky bar instead of hiding under it */
#features, #businesses, #pricing, #faq { scroll-margin-top: 84px; }

/* Floating WhatsApp button */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 45; display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px 12px 15px; border-radius: 999px; background: #25d366; color: #06301a; font-size: 13px; font-weight: 750; text-decoration: none; box-shadow: 0 18px 32px -16px rgba(6, 48, 26, .75), 0 2px 8px rgba(6, 48, 26, .18); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.wa-float:hover { background: #22c55e; color: #06301a; transform: translateY(-2px); box-shadow: 0 24px 38px -18px rgba(6, 48, 26, .8), 0 3px 10px rgba(6, 48, 26, .2); }
.wa-float:focus-visible { outline: 3px solid rgba(6, 48, 26, .35); outline-offset: 3px; }
.wa-float-icon { width: 24px; height: 24px; flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } .wa-float:hover { transform: none; } }

.hero { max-width: 1180px; margin: 0 auto; padding: 48px 24px 30px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.65rem); line-height: 1.04; letter-spacing: -.045em; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--green-600); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 1%; right: 1%; bottom: 4px; height: 10px; background: var(--lime); z-index: -1; border-radius: 2px; }
.hero .lede { font-size: 16.5px; color: #47544d; max-width: 520px; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 12px; color: var(--muted); margin-top: 12px; display: flex; gap: 6px; align-items: center; }
.hero-note .icon { width: 14px; height: 14px; color: var(--green-600); }

.hero-visual { position: relative; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 40px 80px -50px rgba(11,29,22,.55); padding: 18px; transform: rotate(-1.2deg); }
.hero-card .hc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.hero-card .hc-head strong { font-size: 12.5px; }
.hero-card .hc-head .badge { margin-left: auto; }
.hero-total { font-size: 33px; font-weight: 800; letter-spacing: -.04em; color: var(--forest-900); margin: 4px 0 2px; }
.hero-bars { display: flex; align-items: flex-end; gap: 6px; height: 84px; margin: 16px 0 10px; }
.hero-bars span { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--green-500), #0d5b40); }
.hero-bars span:nth-child(6) { background: var(--lime); }
.hero-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.hero-mini div { background: #fbfaf5; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.hero-mini small { color: var(--muted); font-size: 10px; display: block; }
.hero-mini strong { font-size: 15px; letter-spacing: -.02em; }
.floating-receipt { position: absolute; right: -8px; bottom: -26px; width: 152px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-family: var(--mono); font-size: 8.5px; box-shadow: var(--shadow); transform: rotate(2.5deg); line-height: 1.5; }
.floating-receipt .fr-title { font-family: var(--font); font-weight: 800; font-size: 10px; }
.floating-receipt .fr-rule { border-top: 1px dashed #aaa; margin: 5px 0; }

.trust { max-width: 1180px; margin: 26px auto 0; padding: 0 24px; }
.trust-inner { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 15px 0; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.trust-inner strong { color: var(--forest-900); font-size: 12.5px; }
.trust-item { display: flex; align-items: center; gap: 6px; }
.trust-item .icon { width: 14px; height: 14px; color: var(--green-600); }

.section { max-width: 1180px; margin: 0 auto; padding: 62px 24px; }
.section-head { max-width: 640px; margin: 0 auto 34px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.035em; }
.section-head p { color: var(--muted); font-size: 15px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; transition: .18s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfdccf; }
.feature .fi { width: 38px; height: 38px; border-radius: 11px; background: var(--green-50); color: var(--green-600); display: grid; place-items: center; margin-bottom: 13px; }
.feature .fi .icon { width: 19px; height: 19px; }
.feature h3 { font-size: 15px; margin-bottom: 5px; }
.feature p { font-size: 13px; color: var(--muted); margin: 0; }
.feature .tag { font-size: 10.5px; font-weight: 700; color: var(--amber); background: var(--amber-soft); padding: 1px 7px; border-radius: 20px; margin-left: 5px; }

.type-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.type-chip { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 13px; display: flex; gap: 9px; align-items: center; }
.type-chip .icon { width: 18px; height: 18px; color: var(--green-600); flex: 0 0 auto; }
.type-chip strong { font-size: 12.5px; line-height: 1.2; }
.type-chip small { display: block; font-size: 10.5px; color: var(--muted); }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; position: relative; }
.plan.popular { border-color: var(--forest-800); box-shadow: 0 26px 50px -34px rgba(11,29,22,.5); }
.plan .pop-tag { position: absolute; top: -11px; left: 20px; background: var(--lime); color: var(--forest-900); font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 20px; letter-spacing: .03em; }
.plan h3 { font-size: 15px; }
.plan .plan-tag { font-size: 12px; color: var(--muted); min-height: 34px; }
.plan .price { font-size: 30px; font-weight: 800; letter-spacing: -.04em; color: var(--forest-900); margin: 6px 0 2px; }
.plan .price small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; flex: 1; }
.plan li { display: flex; gap: 7px; font-size: 12.5px; padding: 4px 0; color: #3d4a43; }
.plan li .icon { width: 14px; height: 14px; color: var(--green-600); flex: 0 0 auto; margin-top: 2px; }
.plan .btn { width: 100%; }
.pricing-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 16px; }

.cta-band { max-width: 1180px; margin: 20px auto 0; padding: 0 24px; }
.cta-inner { background: radial-gradient(110% 160% at 0% 0%, #175b43 0%, var(--forest-900) 70%); color: #e6f4ec; border-radius: 24px; padding: 40px 38px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: 1.75rem; margin-bottom: 6px; }
.cta-inner p { color: #b6d3c4; font-size: 14px; margin: 0; max-width: 540px; }
.cta-inner .btn { margin-left: auto; }
.public-foot { max-width: 1180px; margin: 40px auto 0; padding: 26px 24px 104px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.public-foot .spacer { flex: 1; }

/* ---------- Auth ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.02fr .98fr; background: #fbfaf4; }
.auth-aside { background: radial-gradient(130% 100% at 0% 0%, #175b43 0%, var(--forest-900) 62%, #051a12 100%); color: #dceee3; padding: 44px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(201,242,107,.16), transparent 65%); right: -140px; bottom: -120px; }
.auth-aside .brand { color: #fff; padding: 0 0 40px; }
.auth-aside h2 { color: #fff; font-size: 2rem; letter-spacing: -.035em; max-width: 420px; margin-top: auto; }
.auth-aside p { color: #b3cfc1; max-width: 420px; font-size: 14px; }
.auth-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; max-width: 400px; }
.auth-points li { display: flex; gap: 10px; font-size: 13px; color: #d3e7dc; }
.auth-points .tick { width: 20px; height: 20px; border-radius: 50%; background: rgba(201,242,107,.14); color: var(--lime); display: grid; place-items: center; flex: 0 0 auto; }
.auth-points .tick .icon { width: 12px; height: 12px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.75rem; letter-spacing: -.03em; margin-bottom: 5px; }
.auth-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .btn { margin-top: 5px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.auth-demo { margin-top: 22px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 10px; background: #fff; font-size: 12px; color: var(--muted); }
.auth-demo strong { color: var(--ink); }

/* ---------- Onboarding wizard ---------- */
.wizard { max-width: 860px; margin: 0 auto; }
.wizard-steps { display: flex; gap: 0; margin-bottom: 22px; }
.wizard-steps div { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); position: relative; }
.wizard-steps div::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); margin: 0 8px; }
.wizard-steps div:last-child::after { display: none; }
.wizard-steps .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e9e6da; font-weight: 700; font-size: 11px; flex: 0 0 auto; }
.wizard-steps .is-active .n { background: var(--forest-800); color: #fff; }
.wizard-steps .is-active { color: var(--forest-900); font-weight: 650; }
.wizard-steps .is-done .n { background: var(--green-600); color: #fff; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.type-option { position: relative; }
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option label { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; background: #fff; height: 100%; transition: .15s; }
.type-option label:hover { border-color: var(--line-strong); }
.type-option .icon { width: 18px; height: 18px; color: var(--green-600); }
.type-option strong { font-size: 12.5px; line-height: 1.2; }
.type-option small { font-size: 10.5px; color: var(--muted); line-height: 1.35; }
.type-option input:checked + label { border-color: var(--green-600); background: var(--green-50); box-shadow: 0 0 0 2px rgba(26,148,104,.14); }

/* ---------- Errors ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; text-align: center; background: radial-gradient(80% 60% at 50% 0%, #eef7f1, var(--cream)); }
.error-page .code { font-size: 80px; font-weight: 800; color: var(--forest-800); letter-spacing: -.06em; line-height: 1; }
.error-page h1 { font-size: 1.4rem; margin-top: 8px; }
.error-page p { color: var(--muted); max-width: 440px; margin: 0 auto 20px; }
.error-page .actions { display: flex; gap: 8px; justify-content: center; }

/* ---------- Toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
    background: var(--forest-900); color: #fff; padding: 10px 17px; border-radius: 10px;
    font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 90;
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 30px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.receipt-toolbar { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }

/* ---------- Utility ---------- */
.mobile-toggle { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.scroll-x { overflow-x: auto; }
.d-none { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .hero { grid-template-columns: 1fr; padding-top: 34px; }
    .hero-visual { max-width: 460px; }
    .feature-grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .type-strip { grid-template-columns: repeat(3, 1fr); }
    .pos-layout { grid-template-columns: minmax(0, 1fr) 350px; }
}

@media (max-width: 960px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .mobile-toggle { display: grid; }
    .content { padding: 18px 16px 40px; }
    .topbar { padding: 0 16px; height: 58px; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .grid-sidebar, .grid-2-1 { grid-template-columns: 1fr; }
    .pricing { grid-template-columns: 1fr; }
    .cta-inner { padding: 30px 24px; }
    .cta-inner .btn { margin-left: 0; }
    .pos-layout { grid-template-columns: 1fr; }
    .pos-cart { position: fixed; inset: inset auto 0 0; bottom: 0; left: 0; right: 0; top: auto; max-height: 72vh; min-height: 0; border-left: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -20px 50px -30px rgba(0,0,0,.5); transform: translateY(calc(100% - 64px)); transition: transform .25s ease; z-index: 35; }
    .pos-cart.open { transform: translateY(0); }
    .pos-cart .cart-summary { position: absolute; bottom: 0; left: 0; right: 0; }
    .mobile-cart-bar { display: flex !important; }
    .pos-cart .cart-lines { padding-bottom: 120px; }
    .pos-cart .cart-pay { padding-bottom: 12px; }
    .type-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    body { font-size: 14px; }
    .content { padding: 16px 12px 36px; }
    .page-head h1 { font-size: 1.3rem; }
    .grid-2, .grid-3, .grid-4, .feature-grid, .form-grid, .form-grid .full { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
    .stat .value { font-size: 1.35rem; }
    .public-nav .links { display: none; }
    .public-topbar-inner { padding: 6px 16px; gap: 6px 12px; }
    .ptb-group { gap: 12px; }
    .ptb-hours, .ptb-map, .ptb-mail { display: none; }
    .public-nav { padding: 10px 16px; gap: 12px; }
    .public-nav .brand-sub { display: none; }
    .wa-float { right: 14px; bottom: 14px; padding: 12px; gap: 0; }
    .wa-float-text { display: none; }
    #features, #businesses, #pricing, #faq { scroll-margin-top: 72px; }
    .section { padding: 42px 16px; }
    .hero { padding: 26px 16px 22px; }
    .hero .lede { font-size: 15px; }
    .trust { padding: 0 16px; }
    .cta-band { padding: 0 16px; }
    .type-strip { grid-template-columns: repeat(2, 1fr); }
    .public-foot { padding: 22px 16px 92px; }
    .table th, .table td { padding: 9px 8px; }
    .auth-main { padding: 28px 16px; }
    .wizard-steps div span.label { display: none; }
    .type-grid { grid-template-columns: 1fr 1fr; }
    .mobile-cart-bar { display: flex !important; }
    .pos-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
}

/* Stacked cards in a column (document builders, sidebars) */
.stack { display: grid; gap: 16px; align-content: start; }
.card-title { font-size: 14.5px; margin: 0 0 12px; display: flex; align-items: center; gap: 7px; }
.card-title .icon { width: 16px; height: 16px; color: var(--green-600); }
.table .input, .table .select { min-height: 34px; padding: 6px 9px; font-size: 13px; border-radius: 8px; }
.table .input.num { text-align: right; }
.table .line-total { font-weight: 650; white-space: nowrap; }
.badge-soft { background: var(--green-50); color: var(--green-700); border-radius: 20px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.doc-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; font-size: 13px; }
.doc-meta dt { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.doc-meta dd { margin: 0 0 6px; font-weight: 600; }

/* Cart bar that floats above the collapsed POS cart on phones */
.mobile-cart-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 36; background: var(--forest-900); color: #fff; padding: 10px 14px; align-items: center; gap: 10px; }
.mobile-cart-bar strong { font-size: 14px; }
.mobile-cart-bar .btn { margin-left: auto; }
.mobile-cart-bar .count { background: var(--lime); color: var(--forest-900); font-size: 11px; font-weight: 800; border-radius: 20px; padding: 1px 7px; }

/* ---------- Print ---------- */
@media print {
    body { background: #fff; }
    .sidebar, .topbar, .page-actions, .no-print, .mobile-cart-bar, .trial-banner, .public-topbar, .public-header, .wa-float { display: none !important; }
    .main { margin: 0; }
    .content { padding: 0; max-width: none; }
    .card { border: 0; box-shadow: none; }
    .print-only { display: block !important; }
    a { color: inherit; text-decoration: none; }
}

.print-only { display: none; }

@page thermal58 { size: 58mm auto; margin: 2mm; }
@page thermal80 { size: 80mm auto; margin: 3mm; }
@page a4 { size: A4; margin: 14mm; }

.thermal-58 { width: 58mm; }
.thermal-80 { width: 80mm; }

@media print {
    body.thermal-58, body.thermal-80 { width: auto; }
    .receipt-paper { max-width: none; width: 100%; padding: 0; }
}
