/* =====================================================================
   Nkabom Susu design system — white & green (approved v3)
   One stylesheet, no framework. Tokens first, then base, layout, components.
   ===================================================================== */
:root {
  --canvas: #F6F7F6;
  --surface: #FFFFFF;
  --subtle: #F4F6F3;
  --border: #ECEEEA;
  --border-strong: #DEE2DB;
  --ink: #111811;
  --ink-2: #5B655B;
  --ink-3: #9AA39A;
  --brand: #3D9B2C;
  --brand-hover: #348A25;
  --brand-bright: #6BCB4C;
  --brand-mid: #A6DE8D;
  --brand-soft: #E3F5DA;
  --brand-tint: #F2FAEE;
  --brand-text: #2E7D21;
  --red: #D93A3A;   --red-tint: #FDEEEE;
  --amber: #B7791F; --amber-tint: #FDF5E7;
  --blue: #2F6FDB;  --blue-tint: #EEF3FD;
  --glow: rgba(61, 155, 44, .28);
  --shadow: 0 1px 2px rgba(17, 24, 17, .04), 0 1px 3px rgba(17, 24, 17, .03);
  --shadow-lg: 0 18px 40px -12px rgba(17, 24, 17, .18);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px;
  --sidebar-w: 248px;
  --topbar-h: 64px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { margin: 0; letter-spacing: -0.015em; line-height: 1.25; text-wrap: balance; }
p { margin: 0; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { color: var(--brand-hover); }
img { max-width: 100%; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.icon { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon-lg { width: 20px; height: 20px; }
.icon-xl { width: 24px; height: 24px; }

/* ---------- Utilities ---------- */
.num, .money { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 12.5px; }
.xs { font-size: 11.5px; }
.strong { font-weight: 600; }
.medium { font-weight: 500; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.green { color: var(--brand-text); }
.red { color: var(--red); }
.amber { color: var(--amber); }
.flex { display: flex; align-items: center; gap: 8px; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.end { justify-content: flex-end; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 16px; align-content: start; }
.stack-sm { display: grid; gap: 8px; align-content: start; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-main-side { grid-template-columns: minmax(0, 1fr) 340px; }
.cols-side-main { grid-template-columns: 340px minmax(0, 1fr); }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
@media (max-width: 1199.98px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-main-side, .cols-side-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767.98px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); } .span-2 { grid-column: auto; } .hide-sm { display: none !important; } }
@media (min-width: 768px) { .show-sm { display: none !important; } }

/* ---------- App shell ---------- */
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 40; transition: transform .2s ease-out; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; height: var(--topbar-h); padding: 0 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, var(--brand-bright), var(--brand)); color: #fff; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo .icon { width: 18px; height: 18px; }
.brand b { font-size: 15px; font-weight: 600; display: block; line-height: 1.2; }
.brand small { font-size: 11.5px; color: var(--ink-3); }
.sidebar nav { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.nav-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; margin-bottom: 6px; border: 1px solid var(--border); border-radius: 10px; color: var(--ink-3); font-size: 13px; cursor: pointer; background: var(--surface); font: inherit; width: 100%; text-align: left; }
.nav-search:hover { border-color: var(--border-strong); }
.kbd { margin-left: auto; font-size: 11px; color: var(--ink-3); border: 1px solid var(--border); border-radius: 6px; padding: 0 5px; font-family: var(--font); }
.nav-group { font-size: 12px; color: var(--ink-3); padding: 14px 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 10px; color: var(--ink); font-size: 13.5px; border: 1px solid transparent; transition: background .15s ease-out; }
.nav-link .icon { color: var(--ink-2); }
.nav-link:hover { background: var(--subtle); color: var(--ink); }
.nav-link.active { background: var(--surface); border-color: var(--border); color: var(--brand-text); font-weight: 500; box-shadow: var(--shadow); }
.nav-link.active .icon { color: var(--brand); }
.nav-count { margin-left: auto; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nav-count.alert { color: #fff; background: var(--red); border-radius: 999px; padding: 0 7px; font-weight: 600; line-height: 18px; }
.nav-count.info { color: var(--brand-text); font-weight: 600; }
.sidebar .foot { padding: 12px; border-top: 1px solid var(--border); display: grid; gap: 2px; }
.help-box { margin: 10px 2px 6px; border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; display: grid; gap: 6px; }
.help-box b { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.help-box span { font-size: 12px; color: var(--ink-2); }
.nav-link.logout { width: 100%; background: none; font: inherit; cursor: pointer; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 24px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar .search-pill { width: 340px; max-width: 40vw; position: relative; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.me { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; font-size: 11.5px; font-weight: 600; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; border-radius: 16px; }
.avatar-xl { width: 88px; height: 88px; font-size: 26px; border-radius: 22px; }
.page { padding: 24px; display: grid; gap: 20px; align-content: start; flex: 1; width: 100%; max-width: 1480px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 600; }
.page-head .sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.footer { padding: 16px 24px 24px; color: var(--ink-3); font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.backdrop { display: none; }

/* Staff bottom tab bar (phones) */
.tabbar { display: none; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .backdrop.open { display: block; position: fixed; inset: 0; background: rgba(17, 24, 17, .35); z-index: 35; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 0 14px; }
  .topbar .search-pill { display: none; }
  .page { padding: 16px 14px 24px; gap: 16px; }
  .page-head h1 { font-size: 20px; }
  .has-tabbar .main { padding-bottom: 76px; }
  .has-tabbar .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--border); padding: 6px 6px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--ink-3); padding: 4px 0; }
  .tabbar a .icon { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--brand-text); font-weight: 600; }
  .tabbar a.active .icon { color: var(--brand); }
  .tabbar a.collect .icon { color: #fff; background: var(--brand); border-radius: 10px; width: 38px; height: 28px; padding: 4px 10px; box-shadow: 0 4px 12px var(--glow); }
  .footer { display: none; }
}

/* ---------- Buttons ---------- */
.btn { font: inherit; font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s ease-out, border-color .15s ease-out, box-shadow .15s ease-out, color .15s; user-select: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--glow); }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px var(--glow); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--subtle); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--subtle); color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--red); border-color: #F2C9C9; }
.btn-danger:hover { background: var(--red-tint); color: var(--red); }
.btn-solid-danger { background: var(--red); color: #fff; }
.btn-solid-danger:hover { background: #C23030; color: #fff; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; font-weight: 600; }
.btn-block { width: 100%; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: inline-grid; place-items: center; color: var(--ink-2); position: relative; cursor: pointer; padding: 0; font: inherit; flex-shrink: 0; }
.icon-btn:hover { background: var(--subtle); color: var(--ink); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid var(--surface); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-text); cursor: pointer; }
.link-btn.red { color: var(--red); }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 0; font-size: 12.5px; font-weight: 500; white-space: nowrap; background: none; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.b-green { color: var(--brand-text); }
.b-amber { color: var(--amber); }
.b-red { color: var(--red); }
.b-blue { color: var(--blue); }
.b-gray { color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip-up { color: var(--brand-text); }
.chip-down { color: var(--red); }
.chip-gray { color: var(--ink-3); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.card-head h2, .card-head h3 { font-size: 14.5px; font-weight: 600; }
.card-head .sub { font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-top: 1px; }
.card-head + .card-body { padding-top: 0; }
.card-head.bordered { border-bottom: 1px solid var(--border); }
.card-head.bordered + .card-body { padding-top: 16px; }
.card-body { padding: 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card.flush > .table-wrap:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card.accent { border-color: var(--brand-mid); background: linear-gradient(180deg, var(--brand-tint), var(--surface) 70%); }

/* KPI cards */
.kpi-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .kpi-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); min-width: 0; color: var(--ink); }
a.kpi:hover { border-color: var(--border-strong); color: var(--ink); }
.kpi .ico { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--ink); flex-shrink: 0; }
.kpi .ico .icon { width: 20px; height: 20px; }
.kpi .ico.green { background: var(--brand-tint); border-color: var(--brand-soft); color: var(--brand); }
.kpi .ico.amber { background: var(--amber-tint); border-color: #F6E6C7; color: var(--amber); }
.kpi .ico.red { background: var(--red-tint); border-color: #F5D5D5; color: var(--red); }
.kpi .body { flex: 1; min-width: 0; }
.kpi .label { font-size: 12.5px; color: var(--ink-3); }
.kpi .value { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.3; font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: 12.5px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; margin-right: -4px; }
.kpi .meta { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.kpi.hero { background: linear-gradient(140deg, #4BAF37, var(--brand) 60%, #2F8A22); border-color: transparent; color: #fff; box-shadow: 0 12px 28px -10px var(--glow); }
.kpi.hero .ico { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .15); color: #fff; }
.kpi.hero .label, .kpi.hero .meta, .kpi.hero .value small { color: rgba(255, 255, 255, .8); }
.kpi.hero .chip { color: #fff; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.label { font-size: 13px; font-weight: 500; color: var(--ink); }
.label.req::after { content: " *"; color: var(--red); }
.hint { font-size: 12px; color: var(--ink-3); }
.error { font-size: 12px; color: var(--red); }
.input, .select, .textarea { font: inherit; font-size: 14px; width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239AA39A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--glow); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--red); }
.input:disabled, .select:disabled { background: var(--subtle); color: var(--ink-3); }
.input-sm, .select-sm { height: 34px; font-size: 13px; border-radius: 8px; }
input[type="file"].input { padding: 8px 10px; height: auto; }
.input-group { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); overflow: hidden; }
.input-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--glow); }
.input-group .input { border: 0; box-shadow: none; border-radius: 0; }
.input-group .addon { padding: 0 12px; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 767.98px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 1px 0 0; flex-shrink: 0; }
.switch { display: flex; align-items: center; gap: 12px; font-size: 13.5px; cursor: pointer; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .15s; flex-shrink: 0; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s ease-out; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(16px); }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; }
.section-title .step { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-tint); color: var(--brand-text); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
details.more { border: 1px dashed var(--border-strong); border-radius: var(--r-md); }
details.more > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-2); }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { border-bottom: 1px dashed var(--border-strong); }
details.more > summary .icon:last-child { margin-left: auto; transition: transform .15s; }
details.more[open] > summary .icon:last-child { transform: rotate(180deg); }
details.more > .inner { padding: 16px; display: grid; gap: 16px; }

/* Filter bar */
.filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.filters .field { flex: 1 1 160px; max-width: 240px; }
.filters .field.wide { flex: 2 1 240px; max-width: 360px; }
.filters .input, .filters .select { height: 38px; font-size: 13px; }
.filters .actions { display: flex; gap: 8px; }
.search-pill { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink-3); min-width: 0; }
.search-pill input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 13.5px; color: var(--ink); flex: 1; min-width: 0; }
.search-pill:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--glow); }

/* Segmented control & tabs */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--subtle); border: 1px solid var(--border); flex-wrap: wrap; }
.seg a, .seg button { font: inherit; font-size: 12.5px; border: 0; background: transparent; color: var(--ink-3); padding: 5px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg a:hover, .seg button:hover { color: var(--ink); }
.seg .on { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: var(--shadow); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs a, .tabs button { font: inherit; font-size: 13.5px; background: none; border: 0; padding: 0 0 12px; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs .on { color: var(--ink); border-bottom-color: var(--brand); font-weight: 500; }
.tab-panel:not(.on) { display: none; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.table th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 10px 16px; background: var(--subtle); white-space: nowrap; border-bottom: 1px solid var(--border); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #FAFBFA; }
.table .right, .table th.right { text-align: right; }
.table td.money { white-space: nowrap; font-weight: 500; }
.table tfoot td { font-weight: 600; background: var(--brand-tint); border-top: 1px solid var(--brand-soft); border-bottom: 0; }
.table-sm td { padding: 9px 14px; }
.table-sm th { padding: 8px 14px; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .avatar { width: 32px; height: 32px; }
.person b { font-weight: 500; display: block; color: var(--ink); }
.person small { display: block; color: var(--ink-3); font-size: 12px; }
.pager { display: flex; gap: 4px; align-items: center; }
.pager a, .pager span { min-width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; font-size: 13px; color: var(--ink-2); padding: 0 8px; }
.pager a:hover { background: var(--subtle); }
.pager .on { background: var(--brand-tint); color: var(--brand-text); font-weight: 600; }
.pager .off { opacity: .4; }

/* ---------- Lists & key/value ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li, .list > a { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border); color: var(--ink); }
.list > a:hover { background: #FAFBFA; }
.list > :first-child { border-top: 0; }
.list .grow small { display: block; font-size: 12px; color: var(--ink-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.red { background: var(--red); } .dot.amber { background: var(--amber); } .dot.blue { background: var(--blue); } .dot.green { background: var(--brand-bright); }
.kv { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 0; margin: 0; font-size: 13.5px; }
.kv dt, .kv dd { padding: 9px 0; border-top: 1px solid var(--border); }
.kv dt:first-of-type, .kv dt:first-of-type + dd { border-top: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .kv { grid-template-columns: minmax(0, 1fr); } .kv dd { border-top: 0; padding-top: 0; } }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border: 1px solid var(--border); border-radius: var(--r-md); }
.stat-row > div { padding: 12px 14px; }
.stat-row > div + div { border-left: 1px solid var(--border); }
.stat-row small { display: block; font-size: 12px; color: var(--ink-3); }
.stat-row b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) { .stat-row > div + div { border-left: 0; border-top: 1px solid var(--border); } }
.progress { height: 8px; border-radius: 999px; background: var(--brand-soft); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--brand-bright); }

/* ---------- Alerts, empty, toast ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-md); font-size: 13.5px; border: 1px solid transparent; }
.alert .icon { margin-top: 2px; }
.alert .grow > b { display: block; font-weight: 600; }
.alert-info { background: var(--blue-tint); color: #24508F; border-color: #DCE6FA; }
.alert-success { background: var(--brand-tint); color: var(--brand-text); border-color: var(--brand-soft); }
.alert-warning { background: var(--amber-tint); color: #8A5A12; border-color: #F4E3C1; }
.alert-danger { background: var(--red-tint); color: #A82A2A; border-color: #F5D2D2; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 40px 16px; text-align: center; color: var(--ink-2); }
.empty .ring { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 6px; }
.empty b { color: var(--ink); font-weight: 600; }
.empty span { font-size: 13px; max-width: 36ch; }
.toasts { position: fixed; top: 16px; right: 16px; z-index: 100; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-lg); animation: toastIn .2s ease-out; font-size: 13.5px; }
.toast .ti { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.toast.success .ti { background: var(--brand-tint); color: var(--brand); }
.toast.danger .ti { background: var(--red-tint); color: var(--red); }
.toast.warning .ti { background: var(--amber-tint); color: var(--amber); }
.toast.info .ti { background: var(--blue-tint); color: var(--blue); }
.toast .msg { flex: 1; padding-top: 2px; overflow-wrap: anywhere; }
.toast button { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 2px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Dialogs, dropdowns, palette ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--r-xl); width: min(520px, calc(100vw - 24px)); box-shadow: var(--shadow-lg); color: var(--ink); background: var(--surface); }
dialog.modal { max-height: calc(100dvh - 24px); overflow-y: auto; }
dialog.modal .kv, .kv.compact { grid-template-columns: auto minmax(0, 1fr); gap: 0 16px; }
dialog.modal .kv dd, .kv.compact dd { text-align: right; padding: 8px 0; border-top: 1px solid var(--border); }
dialog.modal .kv dt, .kv.compact dt { padding: 8px 0; }
dialog.modal .kv dt:first-of-type + dd, .kv.compact dt:first-of-type + dd { border-top: 0; }
dialog.modal .modal-foot { position: sticky; bottom: 0; }
dialog.modal::backdrop { background: rgba(17, 24, 17, .4); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 4px; }
.modal-head h3 { font-size: 16px; font-weight: 600; }
.modal-body { padding: 12px 20px 18px; display: grid; gap: 14px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: var(--subtle); border-radius: 0 0 var(--r-xl) var(--r-xl); }
details.dropdown { position: relative; }
details.dropdown > summary { list-style: none; cursor: pointer; }
details.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; font: inherit; font-size: 13.5px; color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--subtle); }
.dropdown-menu .sep { height: 1px; background: var(--border); margin: 6px 0; }
.dropdown-menu .head { padding: 8px 10px; font-size: 12px; color: var(--ink-3); }
.notif-menu { width: 360px; max-width: calc(100vw - 24px); padding: 0; }
.notif-menu .head { display: flex; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--ink); font-weight: 600; }
.notif-menu .items { max-height: 380px; overflow-y: auto; }
.notif-menu .item { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); border-radius: 0; color: var(--ink); }
.notif-menu .item.unread { background: var(--brand-tint); }
.notif-menu .item b { font-size: 13px; font-weight: 500; display: block; }
.notif-menu .item small { font-size: 12px; color: var(--ink-3); display: block; }
.palette-results { display: grid; gap: 2px; max-height: 360px; overflow-y: auto; }
.palette-results a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--ink); }
.palette-results a:hover, .palette-results a.sel { background: var(--subtle); }
.palette-results small { display: block; color: var(--ink-3); font-size: 12px; }

/* ---------- Charts ---------- */
.chart-box { position: relative; height: 280px; padding: 4px 16px 16px; }
.chart-box.sm { height: 220px; }
.gauge-wrap { display: grid; justify-items: center; padding: 0 16px 18px; }
.gauge-wrap .amt { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gauge-wrap .amt small { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.donut-wrap { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: center; padding: 0 18px 18px; }
@media (max-width: 575.98px) { .donut-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; } .donut-wrap ul { width: 100%; } }
.donut-wrap ul { list-style: none; margin: 0; padding: 0; }
.donut-wrap li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.donut-wrap li:last-child { border-bottom: 0; }

/* ---------- Staff (field) screens ---------- */
.hold-card { padding: 18px; display: grid; gap: 4px; }
.hold-card .label { font-size: 12.5px; color: var(--ink-3); display: flex; justify-content: space-between; align-items: center; font-weight: 400; }
.hold-card .value { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.hold-card .value small { font-size: 15px; color: var(--ink-3); font-weight: 500; margin-right: 4px; letter-spacing: 0; }
.hold-card .meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); }
.quick-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qa { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 500; text-align: center; color: var(--ink); box-shadow: var(--shadow); }
.qa:hover { border-color: var(--border-strong); color: var(--ink); }
.qa .ring { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.qa .ring .icon { width: 20px; height: 20px; }
.qa.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 20px -6px var(--glow); }
.qa.primary .ring { background: rgba(255, 255, 255, .2); color: #fff; }
.big-search { position: relative; }
.big-search .search-pill { height: 54px; padding: 0 18px; border-color: var(--border-strong); box-shadow: var(--shadow); }
.big-search .search-pill input { font-size: 16px; }
.big-search .search-pill .icon { width: 20px; height: 20px; }
.result-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.result-card + .result-card { margin-top: 10px; }
.result-card .grow b { font-weight: 600; display: block; }
.result-card .grow small { display: block; font-size: 12px; color: var(--ink-3); }
.result-card .paid { font-size: 12px; color: var(--brand-text); font-weight: 500; }
.amount-card { padding: 22px 18px 18px; display: grid; gap: 14px; text-align: center; }
.amount-card .cur { font-size: 13px; color: var(--ink-3); }
.amount-input { border: 0; outline: 0; background: transparent; text-align: left; font: inherit; font-size: 48px; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); width: 5ch; min-width: 2.5ch; max-width: 9ch; font-variant-numeric: tabular-nums; padding: 0; field-sizing: content; }
.amount-input::placeholder { color: var(--border-strong); }
.amount-line { display: flex; align-items: baseline; justify-content: center; gap: 6px; border-bottom: 2px solid var(--brand-soft); padding-bottom: 6px; margin: 0 auto; max-width: 300px; }
.amount-line:focus-within { border-bottom-color: var(--brand); }
.amount-line span { font-size: 20px; color: var(--ink-3); font-weight: 500; }
.quick-amounts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.quick-amounts button { font: inherit; font-size: 13.5px; font-weight: 500; height: 38px; min-width: 68px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.quick-amounts button.on, .quick-amounts button:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-text); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--r-md); font-size: 13.5px; background: var(--surface); cursor: pointer; text-align: center; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-text); font-weight: 600; box-shadow: 0 0 0 1px var(--brand) inset; }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px var(--glow); }
.sticky-action { position: sticky; bottom: 0; z-index: 5; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow-lg); }
@media (max-width: 991.98px) { .has-tabbar .sticky-action { bottom: 76px; } }
.sticky-action .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.signature-pad { width: 100%; height: 160px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-md); background: var(--subtle); touch-action: none; display: block; }
.who { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.who b { font-weight: 600; display: block; font-size: 15px; }
.who small { font-size: 12.5px; color: var(--ink-3); display: block; }

/* ---------- Payment successful / receipt ---------- */
.success-page { max-width: 460px; margin: 0 auto; width: 100%; display: grid; gap: 16px; }
.done { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 12px 0 4px; }
.done .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(61,155,44,.12), 0 0 0 22px rgba(61,155,44,.06), 0 12px 28px var(--glow); margin-bottom: 18px; }
.done .tick svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done .tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .2s ease-out forwards; }
.done.reversed .tick { background: var(--ink-3); box-shadow: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h1 { font-size: 17px; font-weight: 600; }
.done .amt { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.done .amt small { font-size: 17px; font-weight: 500; color: var(--ink-3); margin-right: 4px; letter-spacing: 0; }
.done .when { font-size: 13px; color: var(--ink-2); }
.success-bg { background: linear-gradient(180deg, var(--brand-tint), rgba(242, 250, 238, 0) 340px); margin: -24px -24px 0; padding: 24px; }
@media (max-width: 991.98px) { .success-bg { margin: -16px -14px 0; padding: 16px 14px; } }
.slip-wrap { filter: drop-shadow(0 8px 18px rgba(17, 24, 17, .09)); padding-bottom: 10px; }
.slip { position: relative; background: var(--surface); border-radius: 16px 16px 0 0; padding: 18px 18px 16px; }
.slip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; background: radial-gradient(circle at 7px 10px, transparent 5.5px, var(--surface) 6px) 0 0 / 14px 10px repeat-x; }
.slip .co { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed var(--border-strong); }
.slip .co .logo { width: 34px; height: 34px; border-radius: 9px; }
.slip .co b { font-size: 14px; font-weight: 600; display: block; line-height: 1.25; }
.slip .co small { font-size: 11.5px; color: var(--ink-3); }
.slip .title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 0 10px; }
.slip .title span { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--ink-3); }
.slip .title b { font-size: 16px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.slip .rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; font-size: 13px; margin: 0; }
.slip .rows dt { color: var(--ink-3); }
.slip .rows dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.slip .total { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--brand-tint); display: grid; gap: 2px; }
.slip .total div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.slip .total span { font-size: 12.5px; color: var(--brand-text); font-weight: 500; }
.slip .total b { font-size: 20px; font-weight: 700; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.slip .total em { font-style: normal; font-size: 12px; color: var(--ink-2); }
.slip.reversed .total { background: var(--subtle); }
.slip.reversed .total span, .slip.reversed .total b { color: var(--ink-2); text-decoration: line-through; }
.slip .bal { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; border: 1px solid var(--border); border-radius: 12px; }
.slip .bal div { padding: 10px 12px; }
.slip .bal div + div { border-left: 1px solid var(--border); }
.slip .bal small { display: block; font-size: 11.5px; color: var(--ink-3); }
.slip .bal b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.slip .sig { margin-top: 12px; text-align: center; }
.slip .sig img { max-height: 64px; }
.slip .foot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border-strong); display: grid; justify-items: center; gap: 6px; text-align: center; }
.slip .foot svg { width: 100%; height: 36px; }
.slip .foot b { font-size: 11.5px; letter-spacing: .3em; font-weight: 600; font-variant-numeric: tabular-nums; }
.slip .foot span { font-size: 11.5px; color: var(--ink-3); }
.sent-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--ink-2); }
.sent-note i { width: 20px; height: 20px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.receipt-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.receipt-actions .btn { height: 46px; padding: 0 10px; }
.receipt-actions .wide { grid-column: 1 / -1; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); }
.auth-art { margin: 16px; border-radius: 24px; background: linear-gradient(160deg, var(--brand-tint) 0%, var(--brand-soft) 100%); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(107, 203, 76, .18); }
.auth-art h2 { font-size: 34px; font-weight: 700; line-height: 1.15; max-width: 14ch; letter-spacing: -0.025em; }
.auth-art p { color: var(--ink-2); max-width: 44ch; margin-top: 12px; }
.auth-art .stats { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.auth-art .stat { background: var(--surface); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow); min-width: 160px; }
.auth-art .stat small { display: block; font-size: 12px; color: var(--ink-3); }
.auth-art .stat b { font-size: 18px; font-weight: 600; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 380px; display: grid; gap: 22px; }
.auth-card h1 { font-size: 24px; font-weight: 600; }
.auth-card .sub { color: var(--ink-2); margin-top: 4px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 6px; }
.otp-input { font-size: 26px !important; letter-spacing: .4em; text-align: center; height: 56px !important; font-variant-numeric: tabular-nums; }
@media (max-width: 991.98px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { display: none; } }
.blank-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }

/* ---------- Loading ---------- */
.loading { position: fixed; inset: 0; background: rgba(255, 255, 255, .6); z-index: 200; display: none; place-items: center; }
.loading.on { display: grid; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .7s linear infinite; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; display: inline-block; vertical-align: -3px; }
.skeleton { background: linear-gradient(90deg, var(--subtle), var(--border), var(--subtle)); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; border-radius: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .done .tick path { stroke-dashoffset: 0; } }

/* ---------- Print ---------- */
@media print {
  .sidebar, .topbar, .tabbar, .footer, .no-print, .toasts, .backdrop { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  .page { padding: 0 !important; }
  body, .success-bg { background: #fff !important; }
  .card, .kpi { box-shadow: none !important; }
  .slip-wrap { filter: none; }
  .slip { border: 1px solid #ccc; border-radius: 0; }
  .slip::after { display: none; }
}

/* =====================================================================
   Public website (landing page)
   ===================================================================== */
body.site { background: var(--surface); }
.site-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.site-brand { color: var(--ink); gap: 10px; }
.site-brand b { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.site-links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.site-links a { color: var(--ink-2); }
.site-links a:hover { color: var(--ink); }
.site-nav > .flex:last-child { margin-left: auto; }
@media (min-width: 768px) { .site-nav > .flex:last-child { margin-left: 8px; } }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--brand-text); background: none; border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 12px; justify-self: start; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 10px; }

.hero { position: relative; overflow: hidden; background: radial-gradient(900px 420px at 85% 10%, var(--brand-tint), transparent 70%), linear-gradient(180deg, #FBFDFA, var(--surface)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-block: 72px 88px; }
.hero-copy { display: grid; gap: 22px; align-content: start; }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; max-width: 14ch; }
.hero .lead { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.hero-points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; color: var(--ink-2); }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-art { position: relative; min-height: 470px; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: 420px; height: 420px; max-width: 100%; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 68%); }
.hero-phone { position: relative; width: 290px; max-width: 100%; border-radius: 34px; background: var(--canvas); border: 8px solid #fff; box-shadow: 0 0 0 1px var(--border-strong), 0 40px 70px -30px rgba(17, 24, 17, .35); padding: 12px 14px 22px; display: grid; gap: 12px; animation: floaty 6s ease-in-out infinite; }
.hp-top { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; padding: 2px 6px; }
.hp-head { display: flex; align-items: center; gap: 10px; padding: 6px 4px 10px; border-bottom: 1px solid var(--border); }
.hp-head b { display: block; font-size: 13px; }
.hp-head small { font-size: 11px; color: var(--ink-3); }
.bubble { background: #fff; border: 1px solid var(--border); border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-size: 12.5px; line-height: 1.5; color: var(--ink); box-shadow: var(--shadow); }
.bubble.faint-b { color: var(--ink-2); }
.hero-card { position: absolute; left: 0; bottom: 64px; width: 210px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-lg); display: grid; gap: 2px; animation: floaty 7s ease-in-out infinite reverse; }
.hero-card b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.hero-badge { position: absolute; right: 0; top: 70px; display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow-lg); animation: floaty 8s ease-in-out infinite; }
.hero-badge .tick { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.hero-badge b { display: block; font-size: 13px; }
.hero-badge small { font-size: 11.5px; color: var(--ink-3); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.strip { border-block: 1px solid var(--border); background: var(--surface); }
.strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip-grid > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 22px 18px; }
.strip-grid > div + div { border-left: 1px solid var(--border); }
.strip-grid .ring { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.strip-grid b { font-size: 14px; }
.strip-grid small { font-size: 12.5px; color: var(--ink-3); }

.site-section { padding-block: 88px; }
.site-section.tint { background: var(--canvas); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.site-section h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.section-head p { margin-top: 12px; font-size: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.steps li { position: relative; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: 8px; align-content: start; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -18px; width: 18px; border-top: 2px dashed var(--brand-mid); }
.step-n { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; box-shadow: 0 6px 16px var(--glow); margin-bottom: 6px; }
.steps h3 { font-size: 16px; font-weight: 600; }
.steps p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.plan { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }
.plan.featured { border-color: var(--brand-mid); box-shadow: 0 0 0 1px var(--brand-mid) inset, 0 20px 40px -24px var(--glow); }
.plan h3 { font-size: 19px; font-weight: 600; }
.plan .price { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan ul { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border); display: grid; gap: 9px; font-size: 14px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .icon { margin-top: 2px; }

.trust-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.trust-grid h2 { margin-bottom: 14px; }
.trust-grid > div:first-child p { font-size: 16px; line-height: 1.6; }
.trust-list { display: grid; gap: 14px; }
.trust-list > div { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); }
.trust-list .ring { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.trust-list b { font-size: 15px; display: block; margin-bottom: 4px; }
.trust-list p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

.faq-wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--ink-3); transition: transform .15s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

.cta-band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding: 48px; border-radius: 28px; color: #fff; background: radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(135deg, #46A935, var(--brand) 55%, #2B7E1F); box-shadow: 0 30px 60px -30px var(--glow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); font-size: 16px; margin-top: 10px; max-width: 46ch; }
.cta-btn { background: #fff; color: var(--brand-text); }
.cta-btn:hover { background: var(--brand-tint); color: var(--brand-text); }
.cta-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.branch-list { display: grid; gap: 10px; }
.branch-list > div { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.branch-list .ring { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; flex-shrink: 0; }
.branch-list b { display: block; font-size: 14.5px; }
.branch-list small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .8); }

.site-footer { border-top: 1px solid var(--border); padding-block: 48px 28px; background: var(--canvas); }
.site-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr .8fr; gap: 28px; }
.site-foot-grid a { color: var(--ink-2); }
.site-foot-grid a:hover { color: var(--ink); }
.site-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); }

@media (max-width: 991.98px) {
  .hero-grid, .trust-grid, .faq-wrap, .cta-band { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { padding-block: 48px 56px; gap: 24px; }
  .hero-art { min-height: 440px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li::after { display: none; }
  .strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-grid > div:nth-child(3) { border-left: 0; }
  .strip-grid > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .site-section { padding-block: 64px; }
  .site-foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 32px 24px; }
}
@media (max-width: 575.98px) {
  .steps, .strip-grid { grid-template-columns: minmax(0, 1fr); }
  .strip-grid > div { border-left: 0 !important; }
  .strip-grid > div + div { border-top: 1px solid var(--border); }
  .hero-card { left: 0; bottom: 24px; width: 170px; padding: 12px; }
  .hero-card b { font-size: 19px; }
  .hero-badge { right: 0; top: 30px; }
  .site-foot-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Landing page photography */
.hero-photo { position: relative; margin: 0; width: 100%; max-width: 520px; aspect-ratio: 4 / 4.4; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(17, 24, 17, .35); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; display: block; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(17, 24, 17, .25)); }
.hero-sms { position: absolute; right: -12px; bottom: 36px; width: 250px; background: #fff; border: 1px solid var(--border); border-radius: 18px 18px 18px 6px; padding: 12px 14px; box-shadow: var(--shadow-lg); display: grid; gap: 8px; animation: floaty 7s ease-in-out infinite; }
.hero-sms .hp-head { padding: 0 0 8px; }
.hero-sms p { font-size: 12.5px; line-height: 1.5; }
.hero-art .hero-card { left: -20px; bottom: auto; top: 46%; }
.hero-art .hero-badge { right: auto; left: 24px; top: 24px; }
.trust-photo { margin: 28px 0 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-lg); }
.trust-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(110deg, rgba(43, 126, 31, .96) 0%, rgba(61, 155, 44, .9) 45%, rgba(61, 155, 44, .55) 100%), var(--cta-photo, none); background-size: cover; background-position: center; }
@media (max-width: 991.98px) {
  .hero-photo { max-width: 100%; aspect-ratio: 4 / 3.6; }
  .hero-art .hero-card { left: 0; top: auto; bottom: 18px; }
  .hero-sms { right: 0; bottom: auto; top: 18px; width: 230px; }
  .hero-art .hero-badge { display: none; }
}
@media (max-width: 575.98px) {
  .hero-art { min-height: 0; transform: none; }
  .hero-sms { width: 210px; top: auto; bottom: 12px; right: 10px; }
  .hero-sms p { font-size: 11.5px; }
  .hero-art .hero-card { display: none; }
  .hero-photo img { object-position: 62% 25%; }
}

/* ---------- Landing v2: raised icon tiles, timeline, editorial trust section ---------- */
.feat-icon { position: relative; width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; color: var(--ink);
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F5F2 100%); border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(17, 24, 17, .06), 0 8px 18px -10px rgba(17, 24, 17, .28); }
.feat-icon .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.feat-icon::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-bright); border: 2px solid #fff; }
.pill .dot { width: 7px; height: 7px; }

.feature-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: -28px; margin-bottom: 8px; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 24px 48px -28px rgba(17, 24, 17, .25); position: relative; z-index: 2; }
.feature-row > div { display: flex; gap: 14px; align-items: center; padding: 22px 20px; }
.feature-row > div + div { border-left: 1px solid var(--border); }
.feature-row b { display: block; font-size: 14.5px; }
.feature-row small { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }
.hero { padding-bottom: 36px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; border-top: 1px dashed var(--border-strong); }
.timeline li { position: relative; display: grid; gap: 10px; align-content: start; }
.t-num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--border-strong); font-size: 17px; font-weight: 700; color: var(--brand-text); letter-spacing: .02em; box-shadow: 0 0 0 6px var(--surface), 0 10px 22px -12px rgba(17, 24, 17, .3); position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.timeline li:first-child .t-num { background: var(--brand); border-color: var(--brand); color: #fff; }
.timeline h3 { font-size: 17px; font-weight: 600; margin-top: 8px; }
.timeline p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

.plan { gap: 18px; }
.plan h3 { font-size: 20px; }
.plan ul { margin-top: 0; flex: 1; }
.plan .pill { font-weight: 600; }

.trust-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; }
.trust-grid h2 { margin-bottom: 12px; }
.trust-photo { position: relative; margin: 0; aspect-ratio: 4 / 4.8; border-radius: 28px; }
.trust-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); box-shadow: var(--shadow-lg); display: grid; gap: 2px; }
.trust-photo figcaption b { font-size: 14px; }
.trust-photo figcaption span { font-size: 12.5px; color: var(--ink-3); }
.trust-list { margin-top: 28px; gap: 0; }
.trust-list > div { border: 0; border-radius: 0; padding: 18px 0; border-top: 1px solid var(--border); align-items: flex-start; }
.trust-list > div:last-child { border-bottom: 1px solid var(--border); }
.trust-list .ring { display: none; }

.faq-wrap h2 { font-size: clamp(26px, 3.4vw, 36px); }
.branch-list .ring { background: transparent; border: 1px solid rgba(255, 255, 255, .45); }
.branch-list > div { background: rgba(255, 255, 255, .1); }

@media (max-width: 991.98px) {
  .feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
  .feature-row > div:nth-child(3) { border-left: 0; }
  .feature-row > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline::before { display: none; }
  .trust-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .trust-photo { aspect-ratio: 4 / 3.2; max-height: 460px; width: 100%; }
  .trust-photo img { object-position: 50% 28%; }
}
@media (max-width: 575.98px) {
  .trust-photo { aspect-ratio: 4 / 3.6; border-radius: 22px; }
  .trust-photo figcaption { left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; }
  .trust-list > div { gap: 14px; padding: 16px 0; }
  .trust-list .feat-icon { width: 42px; height: 42px; border-radius: 12px; }
}
@media (max-width: 575.98px) {
  .feature-row, .timeline { grid-template-columns: minmax(0, 1fr); }
  .feature-row > div { border-left: 0 !important; }
  .feature-row > div + div { border-top: 1px solid var(--border); }
  .timeline { gap: 22px; }
  .timeline li { grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; }
  .timeline li h3 { margin-top: 0; grid-column: 2; }
  .timeline li p { grid-column: 2; }
  .timeline li .t-num { grid-row: span 2; }
}

/* Brand mark (unity rings) */
.logo { background: linear-gradient(145deg, #55BC41 0%, #2B7E1F 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(17, 24, 17, .12); }
.logo .brand-mark { width: 100%; height: 100%; display: block; }

/* ---------- Icon tiles v2: white raised tile + ink icon + small status dot (no green fills) ---------- */
.kpi .ico, .qa .ring, .empty .ring, .strip-grid .ring, .section-title .step {
  position: relative; color: var(--ink); border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F5F2 100%);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(17, 24, 17, .06), 0 8px 18px -10px rgba(17, 24, 17, .28);
}
.kpi .ico .icon, .qa .ring .icon { stroke-width: 1.7; }
.qa .ring, .empty .ring { border-radius: 14px; }
.kpi .ico::after, .qa .ring::after, .empty .ring::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink-4, #C7CCC5); border: 2px solid #fff;
}
.kpi .ico.green, .kpi .ico.amber, .kpi .ico.red { background: linear-gradient(180deg, #FFFFFF 0%, #F3F5F2 100%); border-color: var(--border-strong); color: var(--ink); }
.kpi .ico.green::after, .qa .ring::after, .empty .ring::after { background: var(--brand-bright); }
.kpi .ico.amber::after { background: var(--amber); }
.kpi .ico.red::after { background: var(--red); }
.kpi.hero .ico { background: rgba(255, 255, 255, .96); border-color: transparent; color: var(--brand-text); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .3); }
.kpi.hero .ico::after { background: #fff; border-color: var(--brand); }
.qa.primary .ring { background: #fff; color: var(--brand-text); border-color: transparent; }
.qa.primary .ring::after { background: #fff; border-color: var(--brand); }
.section-title .step { color: var(--ink); font-variant-numeric: tabular-nums; }
.toast.success .ti, .sent-note i { background: transparent; border: 1.5px solid var(--brand-bright); color: var(--brand-text); }
.avatar { background: #EEF1ED; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--border); }
.avatar img { box-shadow: none; }

/* ---------- Spinning loader ---------- */
.loading { background: rgba(250, 251, 249, .72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.loading.on { animation: loaderIn .18s ease-out; }
.loader-card { display: grid; justify-items: center; gap: 14px; padding: 26px 30px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--border); box-shadow: 0 24px 48px -20px rgba(17, 24, 17, .28); }
.loader-ring { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.loader-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--brand); border-right-color: var(--brand-bright); animation: spin .8s cubic-bezier(.55, .15, .45, .85) infinite; }
.loader-ring .logo { width: 36px; height: 36px; border-radius: 10px; animation: loaderPulse 1.6s ease-in-out infinite; }
.loader-text { font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: .01em; }
@keyframes loaderIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes loaderPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(.92); } }
@media (prefers-reduced-motion: reduce) { .loader-ring::before { animation-duration: 1.6s; } .loader-ring .logo { animation: none; } }
/* Page-load loader: shown from first paint; hidden by JS on load (CSS fallback hides it after 12s if JS fails) */
.loading.boot { animation: loaderIn .15s ease-out, loaderGone 0s linear 12s forwards; }
.loading.leaving { opacity: 0; transition: opacity .2s ease-out; }
@keyframes loaderGone { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media print { .loading { display: none !important; } }

/* ---------- Login: photo panel (desktop) and photo banner + overlapping card (phone) ---------- */
.auth-art { background: #1F4F17 url("../img/hero.jpg") center 35% / cover no-repeat; color: #fff; isolation: isolate; }
.auth-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 52, 15, .55) 0%, rgba(20, 52, 15, .15) 38%, rgba(18, 46, 13, .88) 100%); }
.auth-art::after { display: none; }
.auth-art h2 { color: #fff; }
.auth-art p { color: rgba(255, 255, 255, .86); }
.auth-art .flex b { color: #fff; }
.auth-art .logo { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.auth-art .stat { background: rgba(255, 255, 255, .95); color: var(--ink); }
.auth-panel { background: radial-gradient(700px 320px at 100% 0%, var(--brand-tint), transparent 70%), var(--surface); }
.auth-art-mobile { display: none; }

@media (max-width: 991.98px) {
  .auth { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; background: var(--surface); }
  .auth-art { display: flex; margin: 0; border-radius: 0; min-height: 300px; height: 40vh; max-height: 380px; padding: 22px 20px 52px; gap: 16px; background-position: center 30%; }
  .auth-art::before { background: linear-gradient(180deg, rgba(20, 52, 15, .6) 0%, rgba(20, 52, 15, .2) 40%, rgba(18, 46, 13, .85) 100%); }
  .auth-art h2 { font-size: 26px; max-width: 16ch; }
  .auth-art p { display: none; }
  .auth-art .stats { display: none; }
  .auth-panel { position: relative; z-index: 1; margin-top: -32px; border-radius: 26px 26px 0 0; align-items: flex-start; padding: 28px 20px 32px; background: var(--surface); box-shadow: 0 -12px 30px -18px rgba(17, 24, 17, .35); }
  .auth-card .show-sm { display: none !important; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .auth-art p { display: block; }
  .auth-panel { padding-top: 36px; }
  .auth-card { max-width: 440px; }
}

/* Go live (Settings > System) */
.golive { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); display: grid; gap: 16px; }
.golive-head { display: flex; gap: 12px; align-items: flex-start; }
.golive-head .step { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border-strong); background: linear-gradient(180deg, #fff, #F3F5F2); flex-shrink: 0; }
.golive-head h3 { font-size: 17px; font-weight: 600; }
.golive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.golive-grid > div { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; background: var(--surface); }
.golive-grid span { font-size: 12px; color: var(--ink-3); }
.golive-grid b { font-size: 18px; font-weight: 600; }
